1 // PARAVIS : ParaView wrapper SALOME module
3 // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 // File : PVGUI_Module.h
23 // Author : Sergey ANIKIN
26 #ifndef PVGUI_Module_H
27 #define PVGUI_Module_H
29 #include <LightApp_Module.h>
32 class LightApp_Selection;
33 class LightApp_SelectionMgr;
34 class PVGUI_ProcessModuleHelper;
41 class PVGUI_Module : public LightApp_Module
77 SelectPointsThroughId,
101 ComparativeViewInspectorId,
102 SelectionInspectorId,
124 CreateCustomFilterId,
125 ManageCustomFiltersId,
129 ManagePluginsExtensionsId,
132 RecordTestScreenshotId,
145 lgLoadFile = 931, //!< load text file
146 lgSaveFile, //!< save text file
147 lgDisplayLine, //!< display selected line
148 lgEraseLine, //!< erase selected line
149 lgEditLine, //!< edit selected line
150 lgAddLine, //!< insert new line
151 lgDelLine, //!< delete selected line
152 lgClear //!< clear all contents
160 virtual void initialize( CAM_Application* );
161 virtual void windows( QMap<int, int>& ) const;
163 //virtual LightApp_Selection* createSelection() const;
165 pqViewManager* getMultiViewManager() const;
168 //virtual CAM_DataModel* createDataModel();
171 //! Initialize ParaView if not yet done (once per session)
172 static bool pvInit();
173 //! Shutdown ParaView, should be called on application exit
174 static void pvShutdown();
176 //! Create actions for ParaView GUI operations
177 //! duplicating menus and toolbars in pqMainWindow ParaView class
178 void pvCreateActions();
180 //! Create menus for ParaView GUI operations
181 //! duplicating menus in pqMainWindow ParaView class
182 void pvCreateMenus();
184 //! Create toolbars for ParaView GUI operations
185 //! duplicating toolbars in pqMainWindow ParaView class
186 void pvCreateToolBars();
188 //! Create dock widgets for ParaView widgets
189 void setupDockWidgets();
191 //! Create dock widgets context menus
192 void setupDockWidgetsContextMenu();
194 //! Shows or hides ParaView view window
195 void showView( bool );
197 //! Returns QMenu object for a given menu id
198 QMenu* getMenu( const int );
201 void onUndoLabel( const QString& );
202 void onRedoLabel( const QString& );
204 void onCameraUndoLabel( const QString& );
205 void onCameraRedoLabel( const QString& );
209 void onSelectionModeChanged(int mode);
211 void onShowCenterAxisChanged(bool);
213 void setTimeRanges(double, double);
215 void onPlaying(bool);
217 void onAddCameraLink();
222 virtual bool activateModule( SUIT_Study* );
223 virtual bool deactivateModule( SUIT_Study* );
226 class pqImplementation;
227 pqImplementation* Implementation;
229 int mySelectionControlsTb;
232 #endif // PVGUI_Module_H