Extends two interfaces #SPV3D_ViewModelBase and SALOME_View. More...
#include <SPV3D_ViewModel.h>

Public Member Functions | |
| void | setView (pqView *view) |
| pqView * | getView () const |
| void | render () const |
| SPV3D_ViewModel () | |
| virtual | ~SPV3D_ViewModel () |
| virtual void | initialize () |
| virtual SUIT_ViewWindow * | createView (SUIT_Desktop *) |
| See SUIT_ViewModel::createView. More... | |
| virtual void | setViewManager (SUIT_ViewManager *theViewManager) |
| See SUIT_ViewModel::createView. More... | |
| virtual void | contextMenuPopup (QMenu *) |
| See SUIT_ViewModel::contextMenuPopup. More... | |
| virtual QString | getType () const |
| See SUIT_ViewModel::getType. More... | |
| void | enableSelection (bool isEnabled) |
| bool | isSelectionEnabled () const |
| void | updatePVPrsPipeline (const SPV3D_Prs *aPrs) |
| void | Display (const SALOME_PV3DPrs *) |
| See #SALOME_View::Display( const SALOME_Prs* ) More... | |
| void | Erase (const SALOME_PV3DPrs *, const bool=false) |
| See SALOME_View::Erase( const SALOME_PV3DPrs*, const bool = false ) More... | |
| void | EraseAll (SALOME_Displayer *, const bool=false) |
| See SALOME_View::EraseAll( SALOME_Displayer*, const bool = false ) More... | |
| virtual void | GetVisible (SALOME_ListIO &) |
| See #SALOME_View::getVisible( SALOME_ListIO& ) More... | |
| SALOME_Prs * | CreatePrs (const char *entry=0) |
| See SALOME_View::CreatePrs( const char* entry = 0 ) More... | |
| virtual bool | isVisible (const Handle(SALOME_InteractiveObject)&) |
| See SALOME_View::isVisible( const Handle(SALOME_InteractiveObject)& ) More... | |
| virtual void | Repaint () |
| See SALOME_View::Repaint() More... | |
Public Member Functions inherited from PV3DViewer_ViewModel | |
| PV3DViewer_ViewModel () | |
| virtual | ~PV3DViewer_ViewModel () |
| virtual SUIT_ViewWindow * | createView (SUIT_Desktop *) |
| virtual QString | getType () const |
Public Member Functions inherited from SUIT_ViewModel | |
| SUIT_ViewModel () | |
| virtual | ~SUIT_ViewModel () |
| virtual SUIT_ViewWindow * | createView (SUIT_Desktop *theDesktop) |
| virtual void | setViewManager (SUIT_ViewManager *theViewManager) |
| SUIT_ViewManager * | getViewManager () const |
| virtual QString | getType () const |
| virtual void | contextMenuPopup (QMenu *) |
| virtual void | applyClippingPlanes (bool theUpdateHatch) |
Public Member Functions inherited from SALOME_View | |
| virtual | ~SALOME_View () |
| Destructor. More... | |
| void | Display (SALOME_Displayer *, const SALOME_Prs *) |
| This Display() method should be called to display given presentation created anywhere by anybody. More... | |
| void | Erase (SALOME_Displayer *, const SALOME_Prs *, const bool=false) |
| This Erase() method should be called to erase given presentation created anywhere by anybody. More... | |
| virtual void | EraseAll (SALOME_Displayer *, const bool=false) |
| This EraseAll() method should be called to erase all presentations created anywhere by anybody. More... | |
| void | LocalSelection (const SALOME_Prs *, const int) |
| This LocalSelection() method should be called to activate sub-shapes selection created anywhere by anybody. More... | |
| void | LocalSelection (const SALOME_Prs *, const std::list< int >) |
| virtual void | Display (const SALOME_OCCPrs *) |
| Display SALOME_OCCPrs presentation. More... | |
| virtual void | Display (const SALOME_VTKPrs *) |
| Display SALOME_VTKPrs presentation. More... | |
| virtual void | Display (const SALOME_PV3DPrs *) |
| Display SALOME_PV3DPrs presentation. More... | |
| virtual void | Display (const SALOME_Prs2d *) |
| Display SALOME_Prs2d presentation. More... | |
| virtual void | Erase (const SALOME_OCCPrs *, const bool=false) |
| Erase SALOME_OCCPrs. More... | |
| virtual void | Erase (const SALOME_VTKPrs *, const bool=false) |
| Erase SALOME_VTKPrs. More... | |
| virtual void | Erase (const SALOME_PV3DPrs *, const bool=false) |
| Erase SALOME_PV3DPrs. More... | |
| virtual void | Erase (const SALOME_Prs2d *, const bool=false) |
| Erase SALOME_Prs2d. More... | |
| virtual void | LocalSelection (const SALOME_OCCPrs *, const int) |
| Local selection SALOME_OCCPrs. More... | |
| virtual void | LocalSelection (const SALOME_OCCPrs *, const std::list< int >) |
| Multiple local selection SALOME_OCCPrs. More... | |
| virtual void | LocalSelection (const SALOME_VTKPrs *, const int) |
| Local selection SALOME_VTKPrs. More... | |
| virtual void | LocalSelection (const SALOME_PV3DPrs *, const int) |
| Local selection SALOME_PV3DPrs. More... | |
| virtual void | LocalSelection (const SALOME_Prs2d *, const int) |
| Local selection SALOME_Prs2d. More... | |
| virtual void | GlobalSelection (const bool=false) const |
| Deactivates selection of sub-shapes (must be redefined with OCC viewer) More... | |
| virtual SALOME_Prs * | CreatePrs (const char *=0) |
| Creates empty presentation of corresponding type. More... | |
| virtual void | BeforeDisplay (SALOME_Displayer *, const SALOME_Prs *) |
| virtual void | AfterDisplay (SALOME_Displayer *, const SALOME_Prs *) |
| virtual void | BeforeErase (SALOME_Displayer *, const SALOME_Prs *) |
| virtual void | AfterErase (SALOME_Displayer *, const SALOME_Prs *) |
| virtual bool | isVisible (const Handle(SALOME_InteractiveObject)&) |
| virtual void | Repaint () |
| Null body here. More... | |
| virtual void | GetVisible (SALOME_ListIO &) |
Static Public Member Functions | |
| static QString | Type () |
| Define string representation of the viewer type. More... | |
Static Public Member Functions inherited from PV3DViewer_ViewModel | |
| static QString | Type () |
Static Public Member Functions inherited from SUIT_ViewModel | |
| static void | setHotButton (InteractionStyle theInteractionStyle, HotOperation theOper, Qt::KeyboardModifiers theState, Qt::MouseButtons theButton) |
| static void | getHotButton (InteractionStyle theInteractionStyle, HotOperation theOper, Qt::KeyboardModifiers &theState, Qt::MouseButtons &theButton) |
Protected Slots | |
| void | onMousePress (SUIT_ViewWindow *, QMouseEvent *) |
| void | onMouseMove (SUIT_ViewWindow *, QMouseEvent *) |
| void | onMouseRelease (SUIT_ViewWindow *, QMouseEvent *) |
| void | onViewCreated (SUIT_ViewWindow *) |
| void | onSourceCreated (pqPipelineSource *source) |
| void | showSelectedMode () |
Protected Attributes | |
| pqPipelineSource * | GeometrySource = nullptr |
| pqPipelineSource * | MeshSource = nullptr |
Protected Attributes inherited from SUIT_ViewModel | |
| SUIT_ViewManager * | myViewManager |
Private Attributes | |
| bool | mySelectionEnabled |
| pqView * | _view = nullptr |
Additional Inherited Members | |
Public Types inherited from SUIT_ViewModel | |
| enum | HotOperation { PAN , ZOOM , ROTATE , FIT_AREA } |
| enum | InteractionStyle { STANDARD , KEY_FREE } |
| typedef QMap< HotOperation, Qt::KeyboardModifiers > | StatesMap |
| typedef QMap< HotOperation, Qt::MouseButtons > | ButtonsMap |
| typedef QMap< InteractionStyle, StatesMap > | InteractionStyle2StatesMap |
| typedef QMap< InteractionStyle, ButtonsMap > | InteractionStyle2ButtonsMap |
Static Public Attributes inherited from SUIT_ViewModel | |
| static InteractionStyle2StatesMap | myStateMap |
| static InteractionStyle2ButtonsMap | myButtonMap |
Extends two interfaces #SPV3D_ViewModelBase and SALOME_View.
| SPV3D_ViewModel::SPV3D_ViewModel | ( | ) |
Constructor
References mySelectionEnabled.
|
virtual |
Destructor
|
virtual |
See SUIT_ViewModel::contextMenuPopup.
Builds popup for vtk viewer
Reimplemented from SUIT_ViewModel.
|
virtual |
See SALOME_View::CreatePrs( const char* entry = 0 )
Create presentation corresponding to the entry
| entry | - entry |
Reimplemented from SALOME_View.
References SUIT_ViewModel::getViewManager().
|
virtual |
See SUIT_ViewModel::createView.
Create new instance of view window on desktop theDesktop.
| SUIT_ViewWindow* | - created view window pointer. |
Reimplemented from PV3DViewer_ViewModel.
References PVViewer_Core::GetPVAppCore(), SPV3D_ViewWindow::init(), isSelectionEnabled(), onSourceCreated(), PVViewer_Core::ParaviewInitApp(), SPV3D_ViewWindow::SetSelectionEnabled(), and setView().
|
virtual |
See #SALOME_View::Display( const SALOME_Prs* )
Display presentation
| prs | - presentation |
Reimplemented from SALOME_View.
References getView(), and updatePVPrsPipeline().
| void SPV3D_ViewModel::enableSelection | ( | bool | isEnabled | ) |
Enables/disables selection
| isEnabled | - new state |
! To be done for view windows
References SUIT_ViewModel::getViewManager(), and mySelectionEnabled.
|
virtual |
See SALOME_View::Erase( const SALOME_PV3DPrs*, const bool = false )
Erase presentation
| prs | - presentation |
| forced | - removes object from view |
Reimplemented from SALOME_View.
References getView(), and updatePVPrsPipeline().
|
virtual |
See SALOME_View::EraseAll( SALOME_Displayer*, const bool = false )
Erase all presentations
| forced | - removes all objects from view |
Reimplemented from SALOME_View.
References SALOME_View::EraseAll(), SUIT_ViewModel::getViewManager(), and Repaint().
|
inlinevirtual |
Reimplemented from PV3DViewer_ViewModel.
References PV3DViewer_ViewModel::Type().
| pqView * SPV3D_ViewModel::getView | ( | ) | const |
References _view.
|
virtual |
See #SALOME_View::getVisible( SALOME_ListIO& )
\Collect objects visible in viewer
| theList | - visible objects collection |
Reimplemented from SALOME_View.
|
virtual |
|
inline |
|
virtual |
See SALOME_View::isVisible( const Handle(SALOME_InteractiveObject)& )
| obj | - object to be checked |
Reimplemented from SALOME_View.
References SUIT_ViewModel::getViewManager().
|
protectedslot |
SLOT: called on mouse move, empty implementation
|
protectedslot |
SLOT: called on mouse button press, empty implementation
|
protectedslot |
SLOT: called on mouse button release, empty implementation
|
protectedslot |
References GeometrySource, and showSelectedMode().
|
protectedslot |
| void SPV3D_ViewModel::render | ( | ) | const |
References _view.
|
virtual |
|
inline |
|
virtual |
See SUIT_ViewModel::createView.
Sets new view manager
| theViewManager | - new view manager |
Reimplemented from SUIT_ViewModel.
References onMouseMove(), onMousePress(), onMouseRelease(), onViewCreated(), and SUIT_ViewModel::setViewManager().
|
protectedslot |
References GeometrySource.
|
inlinestatic |
Define string representation of the viewer type.
| void SPV3D_ViewModel::updatePVPrsPipeline | ( | const SPV3D_Prs * | aPrs | ) |
|
private |
|
protected |
|
protected |
|
private |