32 #include <SalomeApp_Module.h>
35 #include <SALOME_InteractiveObject.hxx>
36 #include <SALOMEDSClient.hxx>
49 #include <TColStd_HArray1OfByte.hxx>
52 #include "SALOMEconfig.h"
53 #include CORBA_CLIENT_HEADER(SALOMEDS)
55 #include <SALOME_ListIO.hxx>
61 class LightApp_VTKSelector;
63 class SUIT_ViewManager;
64 class SalomeApp_Study;
85 virtual void initialize( CAM_Application* );
86 virtual QString engineIOR()
const;
88 static Handle(TColStd_HArray1OfByte) getTexture (
int,
int&,
int&);
90 static bool InitGeomGen();
92 static GEOM::GEOM_Gen_var GetGeomGen();
94 static CORBA::Object_var ClientSObjectToObject (_PTR(SObject) theSObject);
95 static bool IsInGeomComponent( _PTR(SObject) theSObject );
96 static SALOMEDS::Study_var getStudyServant();
98 static void Modified(
bool =
true );
109 void SetActiveDialogBox(
QDialog* aDlg );
112 void EmitSignalDeactivateDialog();
113 void EmitSignalCloseAllDialogs();
114 void EmitSignalDefaultStepValueChanged(
double newVal );
117 void OnGUIEvent(
int id,
const QVariant& theParam = QVariant( QVariant::Invalid ) );
118 virtual bool activateOperation(
int actionId );
119 virtual bool activateOperation(
const QString& actionId );
120 virtual bool activateOperation(
const QString& actionId,
const QString& plugin );
125 void ActiveWorkingPlane();
127 virtual bool renameObject(
const QString&,
const QString& );
128 virtual bool renameAllowed(
const QString& )
const;
130 virtual void windows( QMap<int, int>& )
const;
131 virtual void viewManagers( QStringList& )
const;
133 virtual void contextMenuPopup(
const QString&, QMenu*, QString& );
134 virtual void createPreferences();
135 virtual void preferencesChanged(
const QString&,
const QString& );
136 int getLocalSelectionMode()
const;
137 void setLocalSelectionMode(
const int mode);
139 virtual void storeVisualParameters (
int savePoint);
140 virtual void restoreVisualParameters(
int savePoint);
142 QAction* getAction(
const int id);
144 virtual void message(
const QString& msg);
145 static void ClearShapeBuffer( GEOM::GEOM_Object_ptr );
146 static GEOM::GEOM_Object_ptr
147 GetObjectFromIOR(
const QString& IOR );
149 static QString GetIORFromObject( GEOM::GEOM_Object_ptr
object );
151 virtual bool isDraggable(
const SUIT_DataObject* what )
const;
152 virtual bool isDropAccepted(
const SUIT_DataObject* where )
const;
153 virtual void dropObjects(
const DataObjectList& what,
154 SUIT_DataObject* where,
155 const int row, Qt::DropAction action );
157 void emitDimensionsUpdated( QString entry );
158 void emitAnnotationsUpdated( QString entry );
161 virtual bool deactivateModule( SUIT_Study* );
162 virtual bool activateModule( SUIT_Study* );
163 virtual void OnKeyPress ( SUIT_ViewWindow*, QKeyEvent* );
164 virtual void OnMousePress( SUIT_ViewWindow*, QMouseEvent* );
165 virtual void OnMouseMove ( SUIT_ViewWindow*, QMouseEvent* );
166 virtual void OnMouseRelease ( SUIT_ViewWindow*, QMouseEvent* );
169 virtual void onViewManagerAdded( SUIT_ViewManager* );
170 virtual void onViewManagerRemoved( SUIT_ViewManager* );
174 void onWindowActivated( SUIT_ViewWindow* );
175 void onViewAboutToShow();
176 void OnSetMaterial(
const QString& );
177 void updateMaterials();
178 void updateCreationInfo();
179 void onAutoBringToFront();
180 void updateFieldColorScale();
196 GEOMGUI* getLibrary(
const QString& libraryName );
197 GEOMPluginGUI* getPluginLibrary(
const QString& libraryName );
198 void createGeomAction(
const int id,
const QString& po_id,
199 const QString& icon_id,
200 const int key,
const bool toggle,
201 const QString& shortcutAction);
202 void createGeomAction(
const int id,
const QString& po_id,
203 const QString& icon_id = QString(
""),
204 const int key = 0,
const bool toggle =
false);
207 const bool isSingle =
false,
const int isVisible = -1,
208 const bool isExpandAll =
false,
const bool isOCC =
false,
209 const int parentId = -1 );
210 void addPluginActions();
212 void createOriginAndBaseVectors();
#define SHAPE_READER(obj)
Definition: GEOM_Client.hxx:96
#define GEOMGUI_EXPORT
Definition: GEOM_GEOMGUI.hxx:36
Definition: DisplayGUI.h:40
A help class to process visualization of annotation presentations. It contains a map of presentations...
Definition: GEOMGUI_AnnotationMgr.h:47
A widget showing information about object creation:
Definition: GEOMGUI_CreationInfoWdg.h:46
Definition: GEOMGUI_OCCSelector.h:35
Tree view contains Dimension and Annotation text items:
Definition: GEOMGUI_TextTreeWdg.h:47
Definition: GEOMPluginGUI.h:38
Definition: GEOM_Client.hxx:60
Definition: GeometryGUI.h:74
void SignalAnnotationsUpdated(const QString &)
void SignalCloseAllDialogs()
QPair< QString, QString > PluginAction
Definition: GeometryGUI.h:221
void SignalDependencyTreeRenameObject(const QString &)
void SignalDefaultStepValueChanged(double newVal)
void createPopupItem(const int, const QString &clients, const QString &types, const bool isSingle=false, const int isVisible=-1, const bool isExpandAll=false, const bool isOCC=false, const int parentId=-1)
void SignalDeactivateActiveDialog()
gp_Ax3 myWorkingPlane
Definition: GeometryGUI.h:225
static GEOM::GEOM_Gen_var myComponentGeom
Definition: GeometryGUI.h:215
gp_Ax3 GetWorkingPlane()
Definition: GeometryGUI.h:124
int myLocalSelectionMode
Definition: GeometryGUI.h:235
GEOMGUI_TextTreeWdg * myTextTreeWdg
Definition: GeometryGUI.h:239
QList< GEOMGUI_OCCSelector * > myOCCSelectors
Definition: GeometryGUI.h:231
QMap< int, PluginAction > myPluginActions
Definition: GeometryGUI.h:228
GEOMGUI_CreationInfoWdg * myCreationInfoWdg
Definition: GeometryGUI.h:237
QDialog * myActiveDialogBox
Definition: GeometryGUI.h:224
QMap< QString, QString > myPluginLibs
Definition: GeometryGUI.h:229
QList< LightApp_VTKSelector * > myVTKSelectors
Definition: GeometryGUI.h:232
SALOME_ListIO myTopLevelIOList
Definition: GeometryGUI.h:242
void SetWorkingPlane(gp_Ax3 wp)
Definition: GeometryGUI.h:123
GEOM_Client & GetShapeReader()
Definition: GeometryGUI.h:100
GEOMGUI_AnnotationMgr * myAnnotationMgr
Definition: GeometryGUI.h:240
void SignalDependencyTreeParamChanged(const QString &, const QString &)
LightApp_Displayer * myDisplayer
Definition: GeometryGUI.h:234
QDialog * GetActiveDialogBox()
Definition: GeometryGUI.h:107
void DimensionsUpdated(const QString &)
QMap< QString, GEOMGUI * > GUIMap
Definition: GeometryGUI.h:219
void SignalTextTreeRenameObject(const QString &)
GUIMap myGUIMap
Definition: GeometryGUI.h:223
static Handle(TColStd_HArray1OfByte) getTexture(int