32 #include <Basics_OCCTVersion.hxx>
34 #include <SalomeApp_Module.h>
37 #include <SALOME_InteractiveObject.hxx>
38 #include <SALOMEDSClient.hxx>
51 #include <TColStd_HArray1OfByte.hxx>
54 #include "SALOMEconfig.h"
55 #include CORBA_CLIENT_HEADER(SALOMEDS)
57 #include <SALOME_ListIO.hxx>
63 class LightApp_VTKSelector;
65 class SUIT_ViewManager;
66 class SalomeApp_Study;
87 virtual void initialize( CAM_Application* );
88 virtual QString engineIOR()
const;
90 static Handle(TColStd_HArray1OfByte) getTexture (SalomeApp_Study*,
int,
int&,
int&);
92 static
bool InitGeomGen();
94 static GEOM::GEOM_Gen_var GetGeomGen();
96 static CORBA::Object_var ClientSObjectToObject (_PTR(SObject) theSObject);
97 static SALOMEDS::Study_var ClientStudyToStudy (_PTR(Study) theStudy);
99 static
void Modified(
bool = true );
110 void SetActiveDialogBox(
QDialog* aDlg );
113 void EmitSignalDeactivateDialog();
114 void EmitSignalCloseAllDialogs();
115 void EmitSignalDefaultStepValueChanged(
double newVal );
118 void OnGUIEvent(
int id,
const QVariant& theParam = QVariant( QVariant::Invalid ) );
119 virtual bool activateOperation(
int actionId );
120 virtual bool activateOperation(
const QString& actionId );
121 virtual bool activateOperation(
const QString& actionId,
const QString& plugin );
126 void ActiveWorkingPlane();
128 virtual bool renameObject(
const QString&,
const QString& );
129 virtual bool renameAllowed(
const QString& )
const;
131 virtual void windows( QMap<int, int>& )
const;
132 virtual void viewManagers( QStringList& )
const;
134 virtual void contextMenuPopup(
const QString&, QMenu*, QString& );
135 virtual void createPreferences();
136 virtual void preferencesChanged(
const QString&,
const QString& );
137 int getLocalSelectionMode()
const;
138 void setLocalSelectionMode(
const int mode);
140 virtual void storeVisualParameters (
int savePoint);
141 virtual void restoreVisualParameters(
int savePoint);
143 QAction* getAction(
const int id);
145 virtual void message(
const QString& msg);
146 static void ClearShapeBuffer( GEOM::GEOM_Object_ptr );
147 static GEOM::GEOM_Object_ptr
148 GetObjectFromIOR(
const QString& IOR );
150 static QString GetIORFromObject( GEOM::GEOM_Object_ptr
object );
152 virtual bool isDraggable(
const SUIT_DataObject* what )
const;
153 virtual bool isDropAccepted(
const SUIT_DataObject* where )
const;
154 virtual void dropObjects(
const DataObjectList& what,
155 SUIT_DataObject* where,
156 const int row, Qt::DropAction action );
158 void emitDimensionsUpdated( QString entry );
159 void emitAnnotationsUpdated( QString entry );
162 virtual bool deactivateModule( SUIT_Study* );
163 virtual bool activateModule( SUIT_Study* );
164 virtual void OnKeyPress ( SUIT_ViewWindow*, QKeyEvent* );
165 virtual void OnMousePress( SUIT_ViewWindow*, QMouseEvent* );
166 virtual void OnMouseMove ( SUIT_ViewWindow*, QMouseEvent* );
167 virtual void OnMouseRelease ( SUIT_ViewWindow*, QMouseEvent* );
170 virtual void onViewManagerAdded( SUIT_ViewManager* );
171 virtual void onViewManagerRemoved( SUIT_ViewManager* );
175 void onWindowActivated( SUIT_ViewWindow* );
176 void onViewAboutToShow();
177 void OnSetMaterial(
const QString& );
178 void updateMaterials();
179 void updateCreationInfo();
180 void onAutoBringToFront();
181 void updateFieldColorScale();
184 void SignalDeactivateActiveDialog();
185 void SignalCloseAllDialogs();
186 void SignalDefaultStepValueChanged(
double newVal );
187 void SignalDependencyTreeParamChanged(
const QString&,
const QString& );
188 void SignalDependencyTreeRenameObject(
const QString& );
189 void SignalTextTreeRenameObject(
const QString& );
190 void SignalAnnotationsUpdated(
const QString& );
191 void DimensionsUpdated(
const QString& );
197 GEOMGUI* getLibrary(
const QString& libraryName );
198 GEOMPluginGUI* getPluginLibrary(
const QString& libraryName );
199 void createGeomAction(
const int id,
const QString& po_id,
200 const QString& icon_id = QString(
""),
201 const int key = 0,
const bool toggle =
false,
202 const QString& shortcutAction = QString() );
203 void createPopupItem(
const int,
const QString& clients,
const QString& types,
204 const bool isSingle =
false,
const int isVisible = -1,
205 const bool isExpandAll =
false,
const bool isOCC =
false,
206 const int parentId = -1 );
207 void addPluginActions();
209 void createOriginAndBaseVectors();
216 typedef QMap<long, Handle(TColStd_HArray1OfByte)>
TextureMap;