Implementation SALOME module wrapping ParaView GUI.
#include <PVGUI_Module.h>
|
static PVServer_ServiceWrapper * | GetEngine () |
| Retrieve the PVSERVER CORBA engine. This uses the Python wrapper provided by the PVViewer code in GUI (class PVViewer_EngineWrapper). More...
|
|
static pqPVApplicationCore * | GetPVApplication () |
| Get the ParaView application singleton. More...
|
|
|
enum | {
OpenFileId,
LoadStateId,
SaveStateId,
SaveDataId,
SaveScreenshotId,
ExportId,
SaveAnimationId,
SaveGeometryId,
ConnectId,
DisconnectId,
UndoId,
RedoId,
CameraUndoId,
CameraRedoId,
FindDataId,
ChangeInputId,
IgnoreTimeId,
DeleteId,
DeleteAllId,
SettingsId,
ViewSettingsId,
FullScreenId,
FirstFrameId,
PreviousFrameId,
PlayId,
NextFrameId,
LastFrameId,
LoopId,
CreateCustomFilterId,
ManageCustomFiltersId,
CreateLookmarkId,
ManageLinksId,
AddCameraLinkId,
ManagePluginsExtensionsId,
DumpWidgetNamesId,
RecordTestId,
RecordTestScreenshotId,
PlayTestId,
MaxWindowSizeId,
CustomWindowSizeId,
TimerLogId,
OutputWindowId,
PythonShellId,
ShowTraceId,
RestartTraceId,
AboutParaViewId,
ParaViewHelpId,
EnableTooltipsId
} |
| Menu actions. More...
|
|
typedef QMap< QWidget *, bool > | WgMap |
|
typedef QMap< int, bool > | DockWindowMap |
|
Enumerator |
---|
OpenFileId |
|
LoadStateId |
|
SaveStateId |
|
SaveDataId |
|
SaveScreenshotId |
|
ExportId |
|
SaveAnimationId |
|
SaveGeometryId |
|
ConnectId |
|
DisconnectId |
|
UndoId |
|
RedoId |
|
CameraUndoId |
|
CameraRedoId |
|
FindDataId |
|
ChangeInputId |
|
IgnoreTimeId |
|
DeleteId |
|
DeleteAllId |
|
SettingsId |
|
ViewSettingsId |
|
FullScreenId |
|
FirstFrameId |
|
PreviousFrameId |
|
PlayId |
|
NextFrameId |
|
LastFrameId |
|
LoopId |
|
CreateCustomFilterId |
|
ManageCustomFiltersId |
|
CreateLookmarkId |
|
ManageLinksId |
|
AddCameraLinkId |
|
ManagePluginsExtensionsId |
|
DumpWidgetNamesId |
|
RecordTestId |
|
RecordTestScreenshotId |
|
PlayTestId |
|
MaxWindowSizeId |
|
CustomWindowSizeId |
|
TimerLogId |
|
OutputWindowId |
|
PythonShellId |
|
ShowTraceId |
|
RestartTraceId |
|
AboutParaViewId |
|
ParaViewHelpId |
|
EnableTooltipsId |
|
PVGUI_Module::PVGUI_Module |
( |
| ) |
|
PVGUI_Module::~PVGUI_Module |
( |
| ) |
|
void PVGUI_Module::initialize |
( |
CAM_Application * |
app | ) |
|
|
virtual |
- Parameters
-
app | SALOME GUI application instance |
References myDockWidgets, myGuiElements, myInitTimer, myToolbarBreaks, myToolbars, onEndProgress(), onInitTimer(), onStartProgress(), onStopTrace(), PARAVIS_MODULE_NAME, pvCreateActions(), pvCreateMenus(), pvCreateToolBars(), setupDockWidgets(), updateMacros(), and VTKConnect.
void PVGUI_Module::windows |
( |
QMap< int, int > & |
m | ) |
const |
|
virtual |
- Parameters
-
m | map to be filled in ("type":"default_position") |
void PVGUI_Module::openFile |
( |
const char * |
theName | ) |
|
void PVGUI_Module::executeScript |
( |
const char * |
script | ) |
|
void PVGUI_Module::saveParaviewState |
( |
const QString & |
theFileName | ) |
|
void PVGUI_Module::loadParaviewState |
( |
const QString & |
theFileName | ) |
|
void PVGUI_Module::clearParaviewState |
( |
| ) |
|
QString PVGUI_Module::getTraceString |
( |
| ) |
|
void PVGUI_Module::startTrace |
( |
| ) |
|
Start trace invoking the newly introduced C++ API (PV 4.2) (inspired from pqTraceReaction::start())
References PARAVIS_MODULE_NAME.
void PVGUI_Module::stopTrace |
( |
| ) |
|
void PVGUI_Module::saveTrace |
( |
const char * |
theName | ) |
|
pqServer * PVGUI_Module::getActiveServer |
( |
| ) |
|
void PVGUI_Module::createPreferences |
( |
| ) |
|
|
virtual |
PVServer_ServiceWrapper * PVGUI_Module::GetEngine |
( |
| ) |
|
|
static |
pqPVApplicationCore * PVGUI_Module::GetPVApplication |
( |
| ) |
|
|
static |
CAM_DataModel * PVGUI_Module::createDataModel |
( |
| ) |
|
|
virtual |
- Returns
- module specific data model
void PVGUI_Module::pvCreateActions |
( |
| ) |
|
|
private |
Create actions for ParaView GUI operations duplicating menus and toolbars in MainWindow class of the standard ParaView GUI client application.
References AboutParaViewId, AddCameraLinkId, CameraRedoId, CameraUndoId, ChangeInputId, ConnectId, CreateCustomFilterId, CustomWindowSizeId, DeleteAllId, DeleteId, DisconnectId, ExportId, FindDataId, IgnoreTimeId, LoadStateId, ManageCustomFiltersId, ManageLinksId, ManagePluginsExtensionsId, MaxWindowSizeId, onRestartTrace(), onShowTrace(), OpenFileId, OutputWindowId, ParaViewHelpId, PlayTestId, PythonShellId, RecordTestId, RedoId, RestartTraceId, SaveAnimationId, SaveDataId, SaveGeometryId, SaveScreenshotId, SaveStateId, ShowTraceId, TimerLogId, and UndoId.
void PVGUI_Module::pvCreateMenus |
( |
| ) |
|
|
private |
In particular, ParaView is responsible for updating "Sources" and "Filters" menus. For this, specific menu managers created by pqMainWindowCore class are used, and PVGUI_Module is responsible for creation of corresponding QMenu objects only.
References AboutParaViewId, AddCameraLinkId, CameraRedoId, CameraUndoId, ChangeInputId, ConnectId, CreateCustomFilterId, CustomWindowSizeId, DeleteAllId, DeleteId, DisconnectId, ExportId, FindDataId, FullScreenId, IgnoreTimeId, LoadStateId, ManageCustomFiltersId, ManageLinksId, ManagePluginsExtensionsId, MaxWindowSizeId, myFiltersMenuId, myMacrosMenuId, myRecentMenuId, mySourcesMenuId, OpenFileId, OutputWindowId, ParaViewHelpId, PlayTestId, PythonShellId, RecordTestId, RedoId, RestartTraceId, SaveAnimationId, SaveDataId, SaveGeometryId, SaveScreenshotId, SaveStateId, ShowTraceId, TimerLogId, and UndoId.
void PVGUI_Module::pvCreateToolBars |
( |
| ) |
|
|
private |
void PVGUI_Module::setupDockWidgets |
( |
| ) |
|
|
private |
Create dock widgets for ParaView widgets such as object inspector, pipeline browser, etc. ParaView pqMainWindowCore class is fully responsible for these dock widgets' contents. ==> To update this function, see the reference set up of ParaView in Application/Paraview/ParaviewMainWindow.ui.
References myDockWidgets, and showHelpForProxy().
void PVGUI_Module::saveDockWidgetsState |
( |
bool |
hideWidgets = true | ) |
|
|
private |
void PVGUI_Module::restoreDockWidgetsState |
( |
| ) |
|
|
private |
void PVGUI_Module::showView |
( |
bool |
toShow | ) |
|
|
private |
Shows (toShow = true) or hides ParaView view window.
QStringList PVGUI_Module::getEmbeddedMacrosList |
( |
| ) |
|
|
private |
void PVGUI_Module::updateMacros |
( |
| ) |
|
|
private |
void PVGUI_Module::storeCommonWindowsState |
( |
| ) |
|
|
private |
Store visibility of the common dockable windows (OB, PyConsole, ... etc.)
References myCommonMap.
void PVGUI_Module::restoreCommonWindowsState |
( |
| ) |
|
|
private |
Restore visibility of the common dockable windows (OB, PyConsole, ... etc.)
References myCommonMap.
void PVGUI_Module::showHelpForProxy |
( |
const QString & |
groupname, |
|
|
const QString & |
proxyname |
|
) |
| |
|
privateslot |
void PVGUI_Module::onPreAccept |
( |
| ) |
|
|
privateslot |
void PVGUI_Module::onPostAccept |
( |
| ) |
|
|
privateslot |
void PVGUI_Module::endWaitCursor |
( |
| ) |
|
|
privateslot |
void PVGUI_Module::onDataRepresentationUpdated |
( |
| ) |
|
|
privateslot |
void PVGUI_Module::onStartProgress |
( |
| ) |
|
|
privateslot |
void PVGUI_Module::onEndProgress |
( |
| ) |
|
|
privateslot |
void PVGUI_Module::onShowTrace |
( |
| ) |
|
|
privateslot |
void PVGUI_Module::onRestartTrace |
( |
| ) |
|
|
privateslot |
void PVGUI_Module::onStopTrace |
( |
| ) |
|
|
privateslot |
bool PVGUI_Module::activateModule |
( |
SUIT_Study * |
study | ) |
|
|
virtualslot |
- Parameters
-
- Returns
true
if activaion is done successfully or 0 to prevent activation on error
References myFiltersMenuId, myMacrosMenuId, myMenus, myOldMsgHandler, myRecentMenuId, mySourcesMenuId, paravisCleanUp(), ParavisMessageOutput(), restoreDockWidgetsState(), showView(), and storeCommonWindowsState().
bool PVGUI_Module::deactivateModule |
( |
SUIT_Study * |
study | ) |
|
|
virtualslot |
void PVGUI_Module::onApplicationClosed |
( |
SUIT_Application * |
theApp | ) |
|
|
virtualslot |
Process finalize application functionality from ParaView in order to save server settings and nullify application pointer if the application is being closed.
- Parameters
-
void PVGUI_Module::studyClosed |
( |
SUIT_Study * |
study | ) |
|
|
virtualslot |
void PVGUI_Module::onInitTimer |
( |
| ) |
|
|
protectedvirtualslot |
void PVGUI_Module::onViewManagerAdded |
( |
SUIT_ViewManager * |
vm | ) |
|
|
protectedvirtualslot |
void PVGUI_Module::onViewManagerRemoved |
( |
SUIT_ViewManager * |
vm | ) |
|
|
protectedvirtualslot |
void PVGUI_Module::onPVViewCreated |
( |
SUIT_ViewWindow * |
vw | ) |
|
|
protectedvirtualslot |
void PVGUI_Module::onPVViewDelete |
( |
SUIT_ViewWindow * |
view | ) |
|
|
protectedvirtualslot |
int PVGUI_Module::mySourcesMenuId |
|
private |
int PVGUI_Module::myFiltersMenuId |
|
private |
int PVGUI_Module::myMacrosMenuId |
|
private |
int PVGUI_Module::myRecentMenuId |
|
private |
WgMap PVGUI_Module::myDockWidgets |
|
private |
WgMap PVGUI_Module::myToolbars |
|
private |
WgMap PVGUI_Module::myToolbarBreaks |
|
private |
QList<QMenu*> PVGUI_Module::myMenus |
|
private |
QtMessageHandler PVGUI_Module::myOldMsgHandler |
|
private |
vtkEventQtSlotConnect* PVGUI_Module::VTKConnect |
|
private |
pqPythonScriptEditor* PVGUI_Module::myTraceWindow |
|
private |
QTimer* PVGUI_Module::myInitTimer |
|
private |
PVViewer_GUIElements* PVGUI_Module::myGuiElements |
|
private |