Version: 9.15.0
SPV3D_ViewWindow Class Reference

Define a container for SALOME PV3D view window. More...

#include <SPV3D_ViewWindow.h>

Inheritance diagram for SPV3D_ViewWindow:
Inheritance graph

Public Slots

virtual void showEvent (QShowEvent *)
 
virtual void hideEvent (QHideEvent *)
 
void showCenterAxes (bool)
 
void pickCenterOfRotation (int posx, int posy)
 
void goSelect (bool val)
 
- Public Slots inherited from SUIT_ViewWindow
virtual void onDumpView ()
 
void setVisible (bool)
 

Signals

void Show (QShowEvent *)
 
void Hide (QHideEvent *)
 
- Signals inherited from SUIT_ViewWindow
void tryClosing (SUIT_ViewWindow *)
 
void closing (SUIT_ViewWindow *)
 
void mousePressed (SUIT_ViewWindow *, QMouseEvent *)
 
void mouseReleased (SUIT_ViewWindow *, QMouseEvent *)
 
void mouseDoubleClicked (SUIT_ViewWindow *, QMouseEvent *)
 
void mouseMoving (SUIT_ViewWindow *, QMouseEvent *)
 
void wheeling (SUIT_ViewWindow *, QWheelEvent *)
 
void keyPressed (SUIT_ViewWindow *, QKeyEvent *)
 
void keyReleased (SUIT_ViewWindow *, QKeyEvent *)
 
void contextMenuRequested (QContextMenuEvent *e)
 
void viewModified (SUIT_ViewWindow *)
 
void vpStartRotate (int, int, qint64)
 
void vpRotate (int, int, qint64)
 
void vpEndRotate (int, int, qint64)
 

Public Member Functions

 SPV3D_ViewWindow (SUIT_Desktop *theDesktop, SPV3D_ViewModel *theModel)
 To construct SPV3D_ViewWindow instance. More...
 
SPV3D_PrsfindOrCreatePrs (const char *entry)
 
unsigned int isEntryAlreadyExist (const char *entry) const
 
void ExportToSPV3D (vtkPolyData *ds, const char *)
 
void init ()
 
virtual ~SPV3D_ViewWindow ()
 
bool isVisible (const Handle(SALOME_InteractiveObject)&theIObject)
 
virtual void Display (const Handle(SALOME_InteractiveObject)&theIObject, bool theImmediatly=true)
 Redirect the request to #SPV3D_View::Display (to support old code) More...
 
virtual void DisplayOnly (const Handle(SALOME_InteractiveObject)&theIObject)
 Redirect the request to #SPV3D_View::DisplayOnly (to support old code) More...
 
virtual void Erase (const Handle(SALOME_InteractiveObject)&theIObject, bool theImmediatly=true)
 Redirect the request to #SPV3D_View::Erase (to support old code) More...
 
virtual void DisplayAll ()
 Redirect the request to #SPV3D_View::DisplayAll (to support old code) More...
 
virtual void EraseAll ()
 Redirect the request to #SPV3D_View::EraseAll (to support old code) More...
 
virtual void Repaint (bool theUpdateTrihedron=true)
 To repaint the viewer. More...
 
virtual void SetSelectionEnabled (bool)
 Enable/disable selection. More...
 
- Public Member Functions inherited from PV3DViewer_ViewWindow
 PV3DViewer_ViewWindow (SUIT_Desktop *, PV3DViewer_ViewModel *)
 Constructor. More...
 
virtual ~PV3DViewer_ViewWindow ()
 Destructor. As pqViewManager persists through the whole session, the destructor first removes it from the children of this PV3DViewer_ViewWindow to prevent its unexpected deletion. More...
 
pqTabbedMultiViewWidget * getMultiViewManager () const
 Returns the ParaView multi-view manager previously set with setPVManager() More...
 
- Public Member Functions inherited from SUIT_ViewWindow
 SUIT_ViewWindow (SUIT_Desktop *)
 
virtual ~SUIT_ViewWindow ()
 
virtual void setViewManager (SUIT_ViewManager *)
 
SUIT_ViewManagergetViewManager () const
 
bool event (QEvent *)
 
virtual QImage dumpView ()
 
bool dumpViewToFormat (const QString &fileName, const QString &format)
 
bool onAccelAction (int)
 
bool closable () const
 
bool setClosable (const bool)
 
virtual QString getVisualParameters ()
 
virtual void setVisualParameters (const QString &parameters)
 
void setDestructiveClose (const bool)
 
int getId () const
 
QtxActionToolMgrtoolMgr () const
 
virtual void setDropDownButtons (bool)
 Set buttons mode to drop-down (on = true) or ligned (on = false) More...
 
bool dropDownButtons () const
 Get current buttons mode. More...
 
virtual void enableAutoRotation (const bool)
 
virtual bool isAutoRotationEnabled () const
 
virtual SUIT_CameraProperties cameraProperties ()
 

Protected Slots

void onKeyPressed (QKeyEvent *event)
 
void onKeyReleased (QKeyEvent *event)
 
void onMousePressed (QMouseEvent *event)
 
void onMouseDoubleClicked (QMouseEvent *event)
 
void onMouseReleased (QMouseEvent *event)
 
void onMouseMoving (QMouseEvent *event)
 
- Protected Slots inherited from SUIT_ViewWindow
void updateSyncViews ()
 
void onSynchronizeView (bool)
 
virtual void synchronize (SUIT_ViewWindow *)
 
void emitViewModified ()
 

Protected Attributes

SPV3D_CADSelectionmySelection = nullptr
 
int myToolBar = -1
 
SPV3D_ViewModelmyModel
 
std::list< std::pair< std::string, SPV3D_Prs * > > Prs
 
std::unique_ptr< SPV3D_EXPORTSPV3DDatamyPrs
 
- Protected Attributes inherited from SUIT_ViewWindow
SUIT_DesktopmyDesktop
 
SUIT_ViewManagermyManager
 

Additional Inherited Members

- Static Public Member Functions inherited from PV3DViewer_ViewWindow
static void removePVMgr ()
 
- Protected Member Functions inherited from SUIT_ViewWindow
void closeEvent (QCloseEvent *)
 
virtual void contextMenuEvent (QContextMenuEvent *)
 
virtual QString filter () const
 
virtual bool action (const int)
 
virtual bool dumpViewToFormat (const QImage &, const QString &fileName, const QString &format)
 
virtual QActionsynchronizeAction ()
 
- Static Protected Member Functions inherited from SUIT_ViewWindow
static void synchronizeView (SUIT_ViewWindow *viewWindow, int id)
 

Detailed Description

Define a container for SALOME PV3D view window.

Constructor & Destructor Documentation

◆ SPV3D_ViewWindow()

SPV3D_ViewWindow::SPV3D_ViewWindow ( SUIT_Desktop theDesktop,
SPV3D_ViewModel theModel 
)

To construct SPV3D_ViewWindow instance.

Constructor

◆ ~SPV3D_ViewWindow()

SPV3D_ViewWindow::~SPV3D_ViewWindow ( )
virtual

Destructor

Member Function Documentation

◆ Display()

void SPV3D_ViewWindow::Display ( const Handle(SALOME_InteractiveObject)&  theIObject,
bool  theImmediatly = true 
)
virtual

Redirect the request to #SPV3D_View::Display (to support old code)

Display object

Parameters
theIO- object
theImmediatly- update viewer

◆ DisplayAll()

void SPV3D_ViewWindow::DisplayAll ( )
virtual

Redirect the request to #SPV3D_View::DisplayAll (to support old code)

Display all objects in view

◆ DisplayOnly()

void SPV3D_ViewWindow::DisplayOnly ( const Handle(SALOME_InteractiveObject)&  theIObject)
virtual

Redirect the request to #SPV3D_View::DisplayOnly (to support old code)

Display only passed object

Parameters
theIO- object

◆ Erase()

void SPV3D_ViewWindow::Erase ( const Handle(SALOME_InteractiveObject)&  theIObject,
bool  theImmediatly = true 
)
virtual

Redirect the request to #SPV3D_View::Erase (to support old code)

Erase object

Parameters
theIO- object
theImmediatly- update viewer

◆ EraseAll()

void SPV3D_ViewWindow::EraseAll ( )
virtual

Redirect the request to #SPV3D_View::EraseAll (to support old code)

Erase all objects in view

References myModel, myPrs, and SPV3D_ViewModel::render().

◆ ExportToSPV3D()

void SPV3D_ViewWindow::ExportToSPV3D ( vtkPolyData *  ds,
const char *  entry 
)

References myPrs.

◆ findOrCreatePrs()

SPV3D_Prs * SPV3D_ViewWindow::findOrCreatePrs ( const char *  entry)

◆ goSelect

void SPV3D_ViewWindow::goSelect ( bool  val)
slot

◆ Hide

void SPV3D_ViewWindow::Hide ( QHideEvent *  )
signal

◆ hideEvent

void SPV3D_ViewWindow::hideEvent ( QHideEvent *  theEvent)
virtualslot

Custom hide event handler

References Hide().

◆ init()

◆ isEntryAlreadyExist()

unsigned int SPV3D_ViewWindow::isEntryAlreadyExist ( const char *  entry) const

References myPrs.

◆ isVisible()

bool SPV3D_ViewWindow::isVisible ( const Handle(SALOME_InteractiveObject)&  theIObject)

References myPrs.

◆ onKeyPressed

void SPV3D_ViewWindow::onKeyPressed ( QKeyEvent *  event)
protectedslot

Emits key pressed

References SUIT_ViewWindow::event(), and SUIT_ViewWindow::keyPressed().

◆ onKeyReleased

void SPV3D_ViewWindow::onKeyReleased ( QKeyEvent *  event)
protectedslot

Emits key released

References SUIT_ViewWindow::event(), and SUIT_ViewWindow::keyReleased().

◆ onMouseDoubleClicked

void SPV3D_ViewWindow::onMouseDoubleClicked ( QMouseEvent *  event)
protectedslot

Emits mouse double clicked

References SUIT_ViewWindow::event(), and SUIT_ViewWindow::mouseDoubleClicked().

◆ onMouseMoving

void SPV3D_ViewWindow::onMouseMoving ( QMouseEvent *  event)
protectedslot

Emits mouse moving

References SUIT_ViewWindow::event(), and SUIT_ViewWindow::mouseMoving().

◆ onMousePressed

void SPV3D_ViewWindow::onMousePressed ( QMouseEvent *  event)
protectedslot

Emits mouse pressed

References SUIT_ViewWindow::event(), and SUIT_ViewWindow::mousePressed().

◆ onMouseReleased

void SPV3D_ViewWindow::onMouseReleased ( QMouseEvent *  event)
protectedslot

Emits mouse released

References SUIT_ViewWindow::event(), and SUIT_ViewWindow::mouseReleased().

◆ pickCenterOfRotation

void SPV3D_ViewWindow::pickCenterOfRotation ( int  posx,
int  posy 
)
slot

◆ Repaint()

void SPV3D_ViewWindow::Repaint ( bool  theUpdateTrihedron = true)
virtual

To repaint the viewer.

Updates current viewer

References myModel, and SPV3D_ViewModel::render().

◆ SetSelectionEnabled()

void SPV3D_ViewWindow::SetSelectionEnabled ( bool  )
virtual

Enable/disable selection.

Enables/disables selection.

Parameters
theEnableif true - selection will be enabled

◆ Show

void SPV3D_ViewWindow::Show ( QShowEvent *  )
signal

◆ showCenterAxes

void SPV3D_ViewWindow::showCenterAxes ( bool  show_axes)
slot

◆ showEvent

void SPV3D_ViewWindow::showEvent ( QShowEvent *  theEvent)
virtualslot

Custom show event handler

References Show().

Member Data Documentation

◆ myModel

SPV3D_ViewModel* SPV3D_ViewWindow::myModel
protected

◆ myPrs

std::unique_ptr<SPV3D_EXPORTSPV3DData> SPV3D_ViewWindow::myPrs
protected

◆ mySelection

SPV3D_CADSelection* SPV3D_ViewWindow::mySelection = nullptr
protected

◆ myToolBar

int SPV3D_ViewWindow::myToolBar = -1
protected

◆ Prs

std::list< std::pair<std::string, SPV3D_Prs* > > SPV3D_ViewWindow::Prs
protected

The documentation for this class was generated from the following files: