Version: 9.15.0
SVTK_ViewWindow Class Reference

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

#include <SVTK_ViewWindow.h>

Inheritance diagram for SVTK_ViewWindow:
Inheritance graph

Public Types

enum  ProjectionType { Parallel , Projection , Stereo }
 
enum  StereoType {
  CrystalEyes , RedBlue , Interlaced , Left ,
  Right , Dresden , Anaglyph , Checkerboard ,
  SplitViewPortHorizontal
}
 
enum  AnaglyphFilter { RedCyan , YellowBlue , GreenMagenta }
 

Public Slots

virtual void showEvent (QShowEvent *)
 
virtual void hideEvent (QHideEvent *)
 
virtual void onSelectionChanged ()
 
void onChangeRotationPoint (bool theIsActivate)
 
void activateSetRotationGravity ()
 
void activateSetRotationSelected (void *theData)
 
void activateStartPointSelection (Selection_Mode)
 
void onUpdateRate (bool theIsActivate)
 
void onNonIsometric (bool theIsActivate)
 
void onGraduatedAxes (bool theIsActivate)
 
void activateZoom ()
 
void activateWindowFit ()
 
void activateRotation ()
 
void activatePanning ()
 
void activateGlobalPanning ()
 
void onProjectionMode (QAction *theAction)
 Set the given projection mode. More...
 
void onStereoMode (bool activate)
 Sets Stereo projection mode. More...
 
void onProjectionMode ()
 
void activateProjectionMode (int)
 
void activateSetFocalPointGravity ()
 
void activateSetFocalPointSelected ()
 
void activateStartFocalPointSelection ()
 
void activateInteractiveSelection ()
 
void deactivateCurrectOperation ()
 
void onViewParameters (bool theIsActivate)
 
void onSwitchInteractionStyle (bool theOn)
 
void onSwitchZoomingStyle (bool theOn)
 
void onSwitchPreSelectionMode (int theMode)
 
void onEnableSelection (bool theOn)
 
void onStartRecording ()
 
void onPlayRecording ()
 
void onPauseRecording ()
 
void onStopRecording ()
 
virtual void onFrontView ()
 Redirect the request to SVTK_Renderer::OnFrontView. More...
 
virtual void onBackView ()
 Redirect the request to SVTK_Renderer::OnBackView. More...
 
virtual void onTopView ()
 Redirect the request to SVTK_Renderer::OnTopView. More...
 
virtual void onBottomView ()
 Redirect the request to SVTK_Renderer::OnBottomView. More...
 
virtual void onRightView ()
 Redirect the request to SVTK_Renderer::OnRightView. More...
 
virtual void onLeftView ()
 Redirect the request to SVTK_Renderer::OnLeftView. More...
 
virtual void onClockWiseView ()
 Redirect the request to SVTK_Renderer::onClockWiseView. More...
 
virtual void onAntiClockWiseView ()
 Redirect the request to SVTK_Renderer::onAntiClockWiseView. More...
 
virtual void onResetView ()
 Redirect the request to SVTK_Renderer::OnResetView. More...
 
virtual void onFitAll ()
 Redirect the request to SVTK_Renderer::OnFitAll. More...
 
virtual void onFitSelection ()
 Redirect the request to #SVTK_Renderer::OnFitSelection. More...
 
virtual void onFitIObjects (const SALOME_ListIO &)
 Redirect the request to SVTK_Renderer::OnFitIObjects. More...
 
virtual void onViewTrihedron (bool)
 Redirect the request to SVTK_Renderer::OnViewTrihedron. More...
 
virtual void onViewCubeAxes ()
 Redirect the request to SVTK_Renderer::OnViewCubeAxes. More...
 
virtual void onAdjustTrihedron ()
 Redirect the request to SVTK_Renderer::OnAdjustTrihedron. More...
 
virtual void onAdjustCubeAxes ()
 Redirect the request to SVTK_Renderer::OnAdjustCubeAxes. More...
 
virtual void synchronize (SVTK_ViewWindow *)
 
- Public Slots inherited from SUIT_ViewWindow
virtual void onDumpView ()
 
void setVisible (bool)
 

Signals

void Show (QShowEvent *)
 
void Hide (QHideEvent *)
 
void selectionChanged ()
 
void actorAdded (VTKViewer_Actor *)
 
void actorRemoved (VTKViewer_Actor *)
 
void transformed (SVTK_ViewWindow *)
 
- 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

 SVTK_ViewWindow (SUIT_Desktop *theDesktop)
 To construct SVTK_ViewWindow instance. More...
 
virtual ~SVTK_ViewWindow ()
 
virtual QImage dumpView ()
 
virtual void Initialize (SVTK_ViewModelBase *theModel)
 To initialize SVTK_ViewWindow instance. More...
 
SVTK_ViewgetView ()
 Get SVTK_View. More...
 
vtkRenderWindow * getRenderWindow ()
 Get render window. More...
 
vtkRenderWindowInteractorgetInteractor () const
 Get interactor. More...
 
SVTK_RenderWindowInteractorGetInteractor () const
 Get SVTK interactor. More...
 
vtkInteractorStyleGetInteractorStyle () const
 Get current interactor style. More...
 
void PushInteractorStyle (vtkInteractorStyle *theStyle)
 Add interactor style to the stack of styles. More...
 
void PopInteractorStyle ()
 Remove last interactor style from the stack of styles. More...
 
vtkRenderer * getRenderer () const
 Get renderer. More...
 
SVTK_RendererGetRenderer () const
 Get SVTK renderer. More...
 
SVTK_SelectorGetSelector () const
 Get selector. More...
 
Selection_Mode SelectionMode () const
 Set selection mode. More...
 
virtual void SetSelectionMode (Selection_Mode theMode)
 Change selection mode. More...
 
virtual void setBackgroundColor (const QColor &)
 Set background color [obsolete]. More...
 
QColor backgroundColor () const
 Get background color [obsolete]. More...
 
virtual void setBackground (const Qtx::BackgroundData &)
 Set background. More...
 
Qtx::BackgroundData background () const
 Get background. More...
 
bool isTrihedronDisplayed ()
 Return true if "display trihedron" flag is set. More...
 
bool isCubeAxesDisplayed ()
 Return true if "show graduated axes" flag is set. More...
 
virtual void highlight (const Handle(SALOME_InteractiveObject)&theIO, bool theIsHighlight=true, bool theIsUpdate=true)
 Redirect the request to SVTK_View::highlight (to support old code) More...
 
virtual void unHighlightAll ()
 Redirect the request to SVTK_View::unHighlightAll (to support old code) More...
 
bool isInViewer (const Handle(SALOME_InteractiveObject)&theIObject)
 Redirect the request to SVTK_View::isInViewer (to support old code) More...
 
bool isVisible (const Handle(SALOME_InteractiveObject)&theIObject)
 Redirect the request to SVTK_View::isVisible (to support old code) More...
 
 Handle (SALOME_InteractiveObject) FindIObject(const char *theEntry)
 Redirect the request to #SVTK_View::FindIObject (to support old code) More...
 
virtual void Display (const Handle(SALOME_InteractiveObject)&theIObject, bool theImmediatly=true)
 Redirect the request to SVTK_View::Display (to support old code) More...
 
virtual void DisplayOnly (const Handle(SALOME_InteractiveObject)&theIObject)
 Redirect the request to SVTK_View::DisplayOnly (to support old code) More...
 
virtual void Erase (const Handle(SALOME_InteractiveObject)&theIObject, bool theImmediatly=true)
 Redirect the request to SVTK_View::Erase (to support old code) More...
 
virtual void DisplayAll ()
 Redirect the request to SVTK_View::DisplayAll (to support old code) More...
 
virtual void EraseAll ()
 Redirect the request to SVTK_View::EraseAll (to support old code) More...
 
virtual void Repaint (bool theUpdateTrihedron=true)
 To repaint the viewer. More...
 
virtual void SetScale (double theScale[3])
 Redirect the request to SVTK_Renderer::SetScale. More...
 
virtual void GetScale (double theScale[3])
 Redirect the request to SVTK_Renderer::GetScale. More...
 
virtual void AddActor (VTKViewer_Actor *theActor, bool theIsUpdate=false, bool theIsAdjustActors=true)
 Redirect the request to SVTK_Renderer::AddActor. More...
 
virtual void RemoveActor (VTKViewer_Actor *theActor, bool theIsUpdate=false, bool theIsAdjustActors=true)
 Redirect the request to SVTK_Renderer::RemoveActor. More...
 
virtual void AdjustTrihedrons (const bool theIsForced)
 Redirect the request to SVTK_Renderer::AdjustActors. More...
 
VTKViewer_TrihedronGetTrihedron ()
 Redirect the request to SVTK_Renderer::GetTrihedron. More...
 
SVTK_CubeAxesActor2DGetCubeAxes ()
 Redirect the request to SVTK_Renderer::GetCubeAxes. More...
 
double GetTrihedronSize () const
 Redirect the request to SVTK_Renderer::GetTrihedronSize. More...
 
virtual void SetTrihedronSize (const double, const bool=true)
 Redirect the request to SVTK_Renderer::SetTrihedronSize. More...
 
virtual void SetIncrementalSpeed (const int, const int=0)
 Set incremental speed. More...
 
virtual void SetProjectionMode (const int)
 Set current projection mode. More...
 
virtual void SetStereoType (const int)
 Sets stereo type. More...
 
virtual void SetAnaglyphFilter (const int)
 Sets anaglyph filter. More...
 
virtual void SetQuadBufferSupport (const bool)
 Set support quad-buffered stereo. More...
 
virtual void SetInteractionStyle (const int)
 Set interactive style. More...
 
virtual void SetZoomingStyle (const int)
 Set zooming style. More...
 
virtual void SetPreSelectionMode (Preselection_Mode)
 Set preselection mode. More...
 
virtual void SetSelectionEnabled (bool)
 Enable/disable selection. More...
 
virtual void SetSpacemouseButtons (const int, const int, const int)
 Customize space mouse buttons. More...
 
virtual void SetSelectionProp (const double &theRed=1, const double &theGreen=1, const double &theBlue=0, const int &theWidth=5)
 Set selection properties. More...
 
virtual void SetPreselectionProp (const double &theRed=0, const double &theGreen=1, const double &theBlue=1, const int &theWidth=5)
 Redirect the request to SVTK_Renderer::SetPreselectionProp. More...
 
virtual void SetSelectionTolerance (const double &theTolNodes=0.025, const double &theTolCell=0.001, const double &theTolObjects=0.025)
 Redirect the request to SVTK_Renderer::SetSelectionTolerance. More...
 
bool IsStaticTrihedronVisible () const
 Get visibility status of the static trihedron. More...
 
virtual void SetStaticTrihedronVisible (const bool)
 Set visibility status of the static trihedron. More...
 
virtual void setStaticTrihedronTextColor ()
 Sets static trihedron's text color. More...
 
virtual QString getVisualParameters ()
 Methods to save/restore visual parameters of a view (pan, zoom, etc.) More...
 
virtual void setVisualParameters (const QString &parameters)
 
virtual bool eventFilter (QObject *, QEvent *)
 
virtual void RefreshDumpImage ()
 
void emitTransformed ()
 
void InvokeEvent (unsigned long theEvent, void *theCallData)
 To invoke a VTK event on SVTK_RenderWindowInteractor instance. More...
 
virtual SUIT_CameraProperties cameraProperties ()
 
- 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 *)
 
bool dumpViewToFormat (const QString &fileName, const QString &format)
 
bool onAccelAction (int)
 
bool closable () const
 
bool setClosable (const bool)
 
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
 

Protected Types

enum  {
  DumpId , FitAllId , FitRectId , FitSelectionId ,
  ZoomId , PanId , GlobalPanId , ChangeRotationPointId ,
  RotationId , FrontId , BackId , TopId ,
  BottomId , LeftId , RightId , ClockWiseId ,
  AntiClockWiseId , ResetId , ViewTrihedronId , NonIsometric ,
  GraduatedAxes , UpdateRate , ParallelModeId , ProjectionModeId ,
  StereoModeId , ViewParametersId , SynchronizeId , SwitchInteractionStyleId ,
  SwitchZoomingStyleId , PreselectionId , StandardPreselectionId , DynamicPreselectionId ,
  DisablePreselectionId , EnableSelectionId , StartRecordingId , PlayRecordingId ,
  PauseRecordingId , StopRecordingId
}
 

Protected Slots

void synchronize (SUIT_ViewWindow *)
 
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 Member Functions

virtual void resizeEvent (QResizeEvent *)
 
virtual void Initialize (SVTK_View *theView, SVTK_ViewModelBase *theModel)
 
bool isOpenGlStereoSupport () const
 
void doSetVisualParameters (const QString &, bool=false)
 
void SetEventDispatcher (vtkObject *theDispatcher)
 
QImage dumpViewContent ()
 
virtual QString filter () const
 
virtual bool dumpViewToFormat (const QImage &img, const QString &fileName, const QString &format)
 
virtual bool action (const int)
 
QtxActiongetAction (int) const
 
void createToolBar ()
 
void createActions (SUIT_ResourceMgr *theResourceMgr)
 
- Protected Member Functions inherited from SUIT_ViewWindow
void closeEvent (QCloseEvent *)
 
virtual void contextMenuEvent (QContextMenuEvent *)
 
virtual QActionsynchronizeAction ()
 

Static Protected Member Functions

static void ProcessEvents (vtkObject *object, unsigned long event, void *clientdata, void *calldata)
 
- Static Protected Member Functions inherited from SUIT_ViewWindow
static void synchronizeView (SUIT_ViewWindow *viewWindow, int id)
 

Protected Attributes

SVTK_ViewmyView
 
SVTK_ViewModelBasemyModel
 
SVTK_RenderWindowInteractormyInteractor
 
vtkSmartPointer< SVTK_InteractorStylemyDefaultInteractorStyle
 
vtkSmartPointer< SVTK_KeyFreeInteractorStylemyKeyFreeInteractorStyle
 
QString myVisualParams
 
vtkSmartPointer< vtkObjectmyEventDispatcher
 
vtkSmartPointer< vtkCallbackCommand > myEventCallbackCommand
 
SVTK_NonIsometricDlgmyNonIsometricDlg
 
SVTK_UpdateRateDlgmyUpdateRateDlg
 
SVTK_CubeAxesDlgmyCubeAxesDlg
 
SVTK_SetRotationPointDlgmySetRotationPointDlg
 
SVTK_ViewParameterDlgmyViewParameterDlg
 
QSize myPreRecordingMinSize
 
QSize myPreRecordingMaxSize
 
SVTK_RecordermyRecorder
 
QtxActionmyStartAction
 
QtxActionmyPlayAction
 
QtxActionmyPauseAction
 
QtxActionmyStopAction
 
int myToolBar
 
int myRecordingToolBar
 
salomevtk::vtkPVAxesWidgetmyAxesWidget
 
Qtx::BackgroundData myBackground
 
- Protected Attributes inherited from SUIT_ViewWindow
SUIT_DesktopmyDesktop
 
SUIT_ViewManagermyManager
 

Private Attributes

QImage myDumpImage
 

Detailed Description

Define a container for SALOME VTK view window.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protected
Enumerator
DumpId 
FitAllId 
FitRectId 
FitSelectionId 
ZoomId 
PanId 
GlobalPanId 
ChangeRotationPointId 
RotationId 
FrontId 
BackId 
TopId 
BottomId 
LeftId 
RightId 
ClockWiseId 
AntiClockWiseId 
ResetId 
ViewTrihedronId 
NonIsometric 
GraduatedAxes 
UpdateRate 
ParallelModeId 
ProjectionModeId 
StereoModeId 
ViewParametersId 
SynchronizeId 
SwitchInteractionStyleId 
SwitchZoomingStyleId 
PreselectionId 
StandardPreselectionId 
DynamicPreselectionId 
DisablePreselectionId 
EnableSelectionId 
StartRecordingId 
PlayRecordingId 
PauseRecordingId 
StopRecordingId 

◆ AnaglyphFilter

Enumerator
RedCyan 
YellowBlue 
GreenMagenta 

◆ ProjectionType

Enumerator
Parallel 
Projection 
Stereo 

◆ StereoType

Enumerator
CrystalEyes 
RedBlue 
Interlaced 
Left 
Right 
Dresden 
Anaglyph 
Checkerboard 
SplitViewPortHorizontal 

Constructor & Destructor Documentation

◆ SVTK_ViewWindow()

SVTK_ViewWindow::SVTK_ViewWindow ( SUIT_Desktop theDesktop)

To construct SVTK_ViewWindow instance.

Constructor

References myKeyFreeInteractorStyle, and Window.

◆ ~SVTK_ViewWindow()

SVTK_ViewWindow::~SVTK_ViewWindow ( )
virtual

Destructor

References myAxesWidget, and myRecorder.

Member Function Documentation

◆ action()

bool SVTK_ViewWindow::action ( const int  accelAction)
protectedvirtual

Performs action

Parameters
accelAction- action

Reimplemented from SUIT_ViewWindow.

References SVTK::convertAction(), GetInteractor(), QVTK_RenderWindowInteractor::InvokeEvent(), onFitAll(), and SUIT_Accel::ZoomFit.

◆ activateGlobalPanning

void SVTK_ViewWindow::activateGlobalPanning ( )
slot

Starts global panning transformation

References myEventDispatcher, and SVTK::StartGlobalPan.

◆ activateInteractiveSelection

void SVTK_ViewWindow::activateInteractiveSelection ( )
slot

Activate interactive selection

References myEventDispatcher, and SVTK::StartInteractiveSelection.

◆ activatePanning

void SVTK_ViewWindow::activatePanning ( )
slot

Starts panning transformation

References myEventDispatcher, and SVTK::StartPan.

◆ activateProjectionMode

void SVTK_ViewWindow::activateProjectionMode ( int  theMode)
slot

◆ activateRotation

void SVTK_ViewWindow::activateRotation ( )
slot

Starts rotation transformation

References myEventDispatcher, and SVTK::StartRotate.

◆ activateSetFocalPointGravity

void SVTK_ViewWindow::activateSetFocalPointGravity ( )
slot

Set the gravity center as a focal point

References myEventDispatcher, and SVTK::SetFocalPointGravity.

◆ activateSetFocalPointSelected

void SVTK_ViewWindow::activateSetFocalPointSelected ( )
slot

Set the selected point as a focal point

References myEventDispatcher, and SVTK::SetFocalPointSelected.

◆ activateSetRotationGravity

void SVTK_ViewWindow::activateSetRotationGravity ( )
slot

Set the gravity center as a rotation point

References myEventDispatcher, and SVTK::SetRotateGravity.

◆ activateSetRotationSelected

void SVTK_ViewWindow::activateSetRotationSelected ( void *  theData)
slot

Set the selected point as a rotation point

References SVTK::ChangeRotationPoint, and myEventDispatcher.

◆ activateStartFocalPointSelection

void SVTK_ViewWindow::activateStartFocalPointSelection ( )
slot

Set the point selected by user as a focal point

References myEventDispatcher, and SVTK::StartFocalPointSelection.

◆ activateStartPointSelection

void SVTK_ViewWindow::activateStartPointSelection ( Selection_Mode  theSelectionMode)
slot

Set the gravity center of element selected by user as a rotation point

References myEventDispatcher, SetSelectionMode(), and SVTK::StartPointSelection.

◆ activateWindowFit

void SVTK_ViewWindow::activateWindowFit ( )
slot

Starts window fit transformation

References myEventDispatcher, and SVTK::StartFitArea.

◆ activateZoom

void SVTK_ViewWindow::activateZoom ( )
slot

Starts zoom transformation

References myEventDispatcher, and SVTK::StartZoom.

◆ actorAdded

void SVTK_ViewWindow::actorAdded ( VTKViewer_Actor )
signal

◆ actorRemoved

void SVTK_ViewWindow::actorRemoved ( VTKViewer_Actor )
signal

◆ AddActor()

void SVTK_ViewWindow::AddActor ( VTKViewer_Actor theActor,
bool  theUpdate = false,
bool  theIsAdjustActors = true 
)
virtual

Redirect the request to SVTK_Renderer::AddActor.

Redirect the request to SVTK_Renderer::AddActor

References actorAdded(), SVTK_Renderer::AddActor(), GetRenderer(), and Repaint().

◆ AdjustTrihedrons()

void SVTK_ViewWindow::AdjustTrihedrons ( const bool  theIsForced)
virtual

Redirect the request to SVTK_Renderer::AdjustActors.

If parameter theIsForcedUpdate is true, recalculate parameters for trihedron and cube axes, even if trihedron and cube axes is invisible.

References SVTK_Renderer::AdjustActors(), GetRenderer(), and Repaint().

◆ background()

Qtx::BackgroundData SVTK_ViewWindow::background ( ) const

Get background.

Returns
background data of viewer

References myBackground.

◆ backgroundColor()

QColor SVTK_ViewWindow::backgroundColor ( ) const

Get background color [obsolete].

Returns
background color of viewer [obsolete]

References background(), and Qtx::BackgroundData::color().

◆ cameraProperties()

◆ createActions()

void SVTK_ViewWindow::createActions ( SUIT_ResourceMgr theResourceMgr)
protected

Creates all actions of svtk main window

References QtxActionMgr::action(), activateGlobalPanning(), activatePanning(), activateRotation(), activateWindowFit(), activateZoom(), QtxActionGroup::add(), AntiClockWiseId, BackId, BottomId, ChangeRotationPointId, ClockWiseId, DisablePreselectionId, DumpId, Dynamic_Preselection, DynamicPreselectionId, EnableSelectionId, FitAllId, FitRectId, FitSelectionId, FrontId, getAction(), GlobalPanId, GraduatedAxes, LeftId, QtxResourceMgr::loadPixmap(), myPauseAction, myPlayAction, myStartAction, myStopAction, NonIsometric, onAntiClockWiseView(), onBackView(), onBottomView(), onChangeRotationPoint(), onClockWiseView(), SUIT_ViewWindow::onDumpView(), onEnableSelection(), onFitAll(), onFitSelection(), onFrontView(), onGraduatedAxes(), onLeftView(), onNonIsometric(), onPauseRecording(), onPlayRecording(), onProjectionMode(), onResetView(), onRightView(), onStartRecording(), onStereoMode(), onStopRecording(), onSwitchInteractionStyle(), onSwitchPreSelectionMode(), onSwitchZoomingStyle(), onTopView(), onUpdateRate(), onViewParameters(), onViewTrihedron(), PanId, ParallelModeId, PauseRecordingId, PlayRecordingId, Preselection_Disabled, PreselectionId, ProjectionModeId, QtxActionMgr::registerAction(), ResetId, RightId, RotationId, Standard_Preselection, StandardPreselectionId, StartRecordingId, StereoModeId, StopRecordingId, SwitchInteractionStyleId, SwitchZoomingStyleId, SUIT_ViewWindow::synchronizeAction(), SynchronizeId, SUIT_ViewWindow::toolMgr(), TopId, UpdateRate, ViewParametersId, ViewTrihedronId, and ZoomId.

◆ createToolBar()

◆ deactivateCurrectOperation

void SVTK_ViewWindow::deactivateCurrectOperation ( )
slot

◆ Display()

void SVTK_ViewWindow::Display ( const Handle(SALOME_InteractiveObject)&  theIO,
bool  theImmediatly = true 
)
virtual

Redirect the request to SVTK_View::Display (to support old code)

Display object

Parameters
theIO- object
theImmediatly- update viewer

References SVTK_View::Display(), and myView.

◆ DisplayAll()

void SVTK_ViewWindow::DisplayAll ( )
virtual

Redirect the request to SVTK_View::DisplayAll (to support old code)

Display all objects in view

References SVTK_View::DisplayAll(), and myView.

◆ DisplayOnly()

void SVTK_ViewWindow::DisplayOnly ( const Handle(SALOME_InteractiveObject)&  theIO)
virtual

Redirect the request to SVTK_View::DisplayOnly (to support old code)

Display only passed object

Parameters
theIO- object

References SVTK_View::DisplayOnly(), and myView.

◆ doSetVisualParameters()

void SVTK_ViewWindow::doSetVisualParameters ( const QString &  parameters,
bool  baseParamsOnly = false 
)
protected

◆ dumpView()

QImage SVTK_ViewWindow::dumpView ( )
virtual
Returns
QImage, containing all scene rendering in window

Reimplemented from SUIT_ViewWindow.

References dumpViewContent(), myDumpImage, and RefreshDumpImage().

◆ dumpViewContent()

QImage SVTK_ViewWindow::dumpViewContent ( )
protected

◆ dumpViewToFormat()

bool SVTK_ViewWindow::dumpViewToFormat ( const QImage &  img,
const QString &  fileName,
const QString &  format 
)
protectedvirtual

Saves image to file according to the format

Parameters
image- image
fileName- name of file
format- string contains name of format (for example, "BMP"(default) or "JPEG", "JPG")

Reimplemented from SUIT_ViewWindow.

References SUIT_ViewWindow::dumpViewToFormat(), Qtx::extension(), SVTK_PsOptionsDlg::getLineFactor(), SVTK_PsOptionsDlg::getPointFactor(), getRenderWindow(), SVTK_PsOptionsDlg::getSortType(), SVTK_PsOptionsDlg::isPs3Shading(), and SVTK_PsOptionsDlg::isRasterize3D().

◆ emitTransformed()

void SVTK_ViewWindow::emitTransformed ( )

Emit transformed signal.

References transformed().

◆ Erase()

void SVTK_ViewWindow::Erase ( const Handle(SALOME_InteractiveObject)&  theIO,
bool  theImmediatly = true 
)
virtual

Redirect the request to SVTK_View::Erase (to support old code)

Erase object

Parameters
theIO- object
theImmediatly- update viewer

References SVTK_View::Erase(), and myView.

◆ EraseAll()

void SVTK_ViewWindow::EraseAll ( )
virtual

Redirect the request to SVTK_View::EraseAll (to support old code)

Erase all objects in view

References SVTK_View::EraseAll(), and myView.

◆ eventFilter()

bool SVTK_ViewWindow::eventFilter ( QObject theWatched,
QEvent theEvent 
)
virtual

Delayed setVisualParameters

References doSetVisualParameters(), and myVisualParams.

◆ filter()

QString SVTK_ViewWindow::filter ( ) const
protectedvirtual
Returns
filters for image files

Reimplemented from SUIT_ViewWindow.

◆ getAction()

QtxAction * SVTK_ViewWindow::getAction ( int  id) const
protected
Returns
action by it's id

References QtxActionMgr::action(), and SUIT_ViewWindow::toolMgr().

◆ GetCubeAxes()

SVTK_CubeAxesActor2D * SVTK_ViewWindow::GetCubeAxes ( )

Redirect the request to SVTK_Renderer::GetCubeAxes.

Redirect the request to SVTK_Renderer::GetCubeAxes

References SVTK_Renderer::GetCubeAxes(), and GetRenderer().

◆ getInteractor()

vtkRenderWindowInteractor * SVTK_ViewWindow::getInteractor ( ) const

Get interactor.

Returns
corresponding vtk render window interactor

References QVTK_RenderWindowInteractor::GetDevice(), and myInteractor.

◆ GetInteractor()

SVTK_RenderWindowInteractor * SVTK_ViewWindow::GetInteractor ( ) const

Get SVTK interactor.

Returns
corresponding vtk render window interactor

References myInteractor.

◆ GetInteractorStyle()

vtkInteractorStyle * SVTK_ViewWindow::GetInteractorStyle ( ) const

Get current interactor style.

Redirect the request to SVTK_RenderWindowInteractor::GetInteractorStyle

References GetInteractor(), and SVTK_RenderWindowInteractor::GetInteractorStyle().

◆ getRenderer()

vtkRenderer * SVTK_ViewWindow::getRenderer ( ) const

Get renderer.

Returns
corresponding vtk renderer

References GetInteractor(), and SVTK_RenderWindowInteractor::getRenderer().

◆ GetRenderer()

SVTK_Renderer * SVTK_ViewWindow::GetRenderer ( ) const

◆ getRenderWindow()

vtkRenderWindow * SVTK_ViewWindow::getRenderWindow ( )

Get render window.

Returns
corresponding vtk render window

References GetInteractor(), and QVTK_RenderWindowInteractor::getRenderWindow().

◆ GetScale()

void SVTK_ViewWindow::GetScale ( double  theScale[3])
virtual

Redirect the request to SVTK_Renderer::GetScale.

Redirect the request to SVTK_Renderer::GetScale

References GetRenderer(), SVTK_Renderer::GetScale(), and theScale.

◆ GetSelector()

SVTK_Selector * SVTK_ViewWindow::GetSelector ( ) const

Get selector.

Returns
corresponding vtk selector

References GetInteractor(), and SVTK_RenderWindowInteractor::GetSelector().

◆ GetTrihedron()

VTKViewer_Trihedron * SVTK_ViewWindow::GetTrihedron ( )

Redirect the request to SVTK_Renderer::GetTrihedron.

Redirect the request to SVTK_Renderer::GetTrihedron

References GetRenderer(), and SVTK_Renderer::GetTrihedron().

◆ GetTrihedronSize()

double SVTK_ViewWindow::GetTrihedronSize ( ) const

Redirect the request to SVTK_Renderer::GetTrihedronSize.

Returns
trihedron size

References GetRenderer(), and SVTK_Renderer::GetTrihedronSize().

◆ getView()

SVTK_View * SVTK_ViewWindow::getView ( )

Get SVTK_View.

Returns
corresponding view

References myView.

◆ getVisualParameters()

QString SVTK_ViewWindow::getVisualParameters ( )
virtual

Methods to save/restore visual parameters of a view (pan, zoom, etc.)

The method returns the visual parameters of this view as a formated string

Reimplemented from SUIT_ViewWindow.

References background(), Qtx::backgroundToString(), GetCubeAxes(), getGradAxisVisualParams(), getRenderer(), GetRenderer(), GetScale(), GetTrihedronSize(), and isTrihedronDisplayed().

◆ Handle()

SVTK_ViewWindow::Handle ( SALOME_InteractiveObject  ) const

Redirect the request to #SVTK_View::FindIObject (to support old code)

◆ Hide

void SVTK_ViewWindow::Hide ( QHideEvent *  )
signal

◆ hideEvent

void SVTK_ViewWindow::hideEvent ( QHideEvent *  theEvent)
virtualslot

Custom hide event handler

References Hide().

◆ highlight()

void SVTK_ViewWindow::highlight ( const Handle(SALOME_InteractiveObject)&  theIO,
bool  theIsHighlight = true,
bool  theIsUpdate = true 
)
virtual

Redirect the request to SVTK_View::highlight (to support old code)

Hilights/unhilights object in viewer

Parameters
theIO- object to be updated
theIsHighlight- if it is true, object will be hilighted, otherwise it will be unhilighted
theIsUpdate- update current viewer

References SVTK_View::highlight(), and myView.

◆ Initialize() [1/2]

◆ Initialize() [2/2]

void SVTK_ViewWindow::Initialize ( SVTK_ViewModelBase theModel)
virtual

To initialize SVTK_ViewWindow instance.

To initialize SVTK_ViewWindow instance

References ChangeRotationPointId, createActions(), createToolBar(), QtxActionToolMgr::createToolBar(), Dynamic_Preselection, getAction(), SVTK_Renderer::GetDevice(), QVTK_RenderWindowInteractor::GetDevice(), GetInteractor(), SVTK_RenderWindowInteractor::GetInteractorStyle(), getRenderer(), QVTK_RenderWindowInteractor::getRenderWindow(), salomevtk::vtkPVAxesActor::GetXAxisLabelProperty(), salomevtk::vtkPVAxesActor::GetXAxisShaftProperty(), salomevtk::vtkPVAxesActor::GetXAxisTipProperty(), salomevtk::vtkPVAxesActor::GetYAxisLabelProperty(), salomevtk::vtkPVAxesActor::GetYAxisShaftProperty(), salomevtk::vtkPVAxesActor::GetYAxisTipProperty(), salomevtk::vtkPVAxesActor::GetZAxisLabelProperty(), salomevtk::vtkPVAxesActor::GetZAxisShaftProperty(), salomevtk::vtkPVAxesActor::GetZAxisTipProperty(), GraduatedAxes, ViewerTools_CubeAxesDlgBase::initialize(), SVTK_RenderWindowInteractor::Initialize(), SVTK_Renderer::Initialize(), myAxesWidget, myCubeAxesDlg, myDefaultInteractorStyle, myEventCallbackCommand, myInteractor, myKeyFreeInteractorStyle, myModel, myNonIsometricDlg, myRecorder, myRecordingToolBar, mySetRotationPointDlg, myToolBar, myUpdateRateDlg, myView, myViewParameterDlg, salomevtk::vtkPVAxesWidget::New(), SVTK_GenericRenderWindowInteractor::New(), SVTK_InteractorStyle::New(), SVTK_Recorder::New(), SVTK_Selector::New(), NonIsometric, onResetView(), SVTK::OperationFinished, Preselection_Disabled, ProcessEvents(), SVTK_RenderWindowInteractor::PushInteractorStyle(), SUIT_Session::resourceMgr(), SUIT_Session::session(), setBackground(), SVTK_Selector::SetDynamicPreSelection(), salomevtk::vtkPVAxesWidget::SetEnabled(), SetEventDispatcher(), salomevtk::vtkPVAxesWidget::SetInteractive(), SVTK_Recorder::SetNbFPS(), salomevtk::vtkPVAxesWidget::SetParentRenderer(), SVTK_Selector::SetPreSelectionEnabled(), SVTK_Recorder::SetProgressiveMode(), SVTK_Recorder::SetQuality(), SVTK_GenericRenderWindowInteractor::SetRenderWidget(), SVTK_Selector::SetSelectionEnabled(), SVTK_GenericRenderWindowInteractor::SetSelector(), SVTK_Recorder::SetUseSkippedFrames(), salomevtk::vtkPVAxesWidget::SetViewport(), Standard_Preselection, SUIT_ViewWindow::toolMgr(), UpdateRate, and ViewParametersId.

◆ InvokeEvent()

void SVTK_ViewWindow::InvokeEvent ( unsigned long  theEvent,
void *  theCallData 
)

To invoke a VTK event on SVTK_RenderWindowInteractor instance.

To invoke a VTK event on SVTK_RenderWindowInteractor instance

References GetInteractor(), and QVTK_RenderWindowInteractor::InvokeEvent().

◆ isCubeAxesDisplayed()

bool SVTK_ViewWindow::isCubeAxesDisplayed ( )

Return true if "show graduated axes" flag is set.

Redirect the request to SVTK_Renderer::IsCubeAxesDisplayed

References GetRenderer(), and SVTK_Renderer::IsCubeAxesDisplayed().

◆ isInViewer()

bool SVTK_ViewWindow::isInViewer ( const Handle(SALOME_InteractiveObject)&  theIO)

Redirect the request to SVTK_View::isInViewer (to support old code)

Returns
true if object is in viewer or in collector
Parameters
theIO- object to be checked

References SVTK_View::isInViewer(), and myView.

◆ isOpenGlStereoSupport()

bool SVTK_ViewWindow::isOpenGlStereoSupport ( ) const
protected
Returns
OpenGl stereo support

◆ IsStaticTrihedronVisible()

bool SVTK_ViewWindow::IsStaticTrihedronVisible ( ) const

Get visibility status of the static trihedron.

Get visibility status of the static trihedron

References myAxesWidget.

◆ isTrihedronDisplayed()

bool SVTK_ViewWindow::isTrihedronDisplayed ( )

Return true if "display trihedron" flag is set.

Redirect the request to SVTK_Renderer::IsTrihedronDisplayed

References GetRenderer(), and SVTK_Renderer::IsTrihedronDisplayed().

◆ isVisible()

bool SVTK_ViewWindow::isVisible ( const Handle(SALOME_InteractiveObject)&  theIO)

Redirect the request to SVTK_View::isVisible (to support old code)

Returns
true if object is displayed in viewer
Parameters
theIO- object to be checked

References SVTK_View::isVisible(), and myView.

◆ onAdjustCubeAxes

void SVTK_ViewWindow::onAdjustCubeAxes ( )
virtualslot

◆ onAdjustTrihedron

void SVTK_ViewWindow::onAdjustTrihedron ( )
virtualslot

◆ onAntiClockWiseView

void SVTK_ViewWindow::onAntiClockWiseView ( )
virtualslot

Redirect the request to SVTK_Renderer::onAntiClockWiseView.

Rotate view 90 degrees conterclockwise.

References GetRenderer(), SVTK_Renderer::onAntiClockWiseView(), Repaint(), and transformed().

◆ onBackView

void SVTK_ViewWindow::onBackView ( )
virtualslot

Redirect the request to SVTK_Renderer::OnBackView.

Processes transformation "back view"

References GetRenderer(), SVTK_Renderer::OnBackView(), Repaint(), and transformed().

◆ onBottomView

void SVTK_ViewWindow::onBottomView ( )
virtualslot

Redirect the request to SVTK_Renderer::OnBottomView.

Processes transformation "bottom view"

References GetRenderer(), SVTK_Renderer::OnBottomView(), Repaint(), and transformed().

◆ onChangeRotationPoint

void SVTK_ViewWindow::onChangeRotationPoint ( bool  theIsActivate)
slot

◆ onClockWiseView

void SVTK_ViewWindow::onClockWiseView ( )
virtualslot

Redirect the request to SVTK_Renderer::onClockWiseView.

Rotate view 90 degrees clockwise.

References GetRenderer(), SVTK_Renderer::onClockWiseView(), Repaint(), and transformed().

◆ onEnableSelection

void SVTK_ViewWindow::onEnableSelection ( bool  on)
slot

Enables/disables selection.

Parameters
theOnif true - selection will be enabled

References SVTK_Viewer::enableSelection(), and myModel.

◆ onFitAll

void SVTK_ViewWindow::onFitAll ( )
virtualslot

Redirect the request to SVTK_Renderer::OnFitAll.

Processes transformation "fit all"

References GetRenderer(), SVTK_Renderer::OnFitAll(), Repaint(), and transformed().

◆ onFitIObjects

void SVTK_ViewWindow::onFitIObjects ( const SALOME_ListIO objects)
virtualslot

Redirect the request to SVTK_Renderer::OnFitIObjects.

Processes transformation "fit given objects"

References GetRenderer(), SVTK_Renderer::OnFitIObjects(), Repaint(), and transformed().

◆ onFitSelection

void SVTK_ViewWindow::onFitSelection ( )
virtualslot

Redirect the request to #SVTK_Renderer::OnFitSelection.

Processes transformation "fit selection"

References GetRenderer(), SVTK_Renderer::onFitSelection(), Repaint(), and transformed().

◆ onFrontView

void SVTK_ViewWindow::onFrontView ( )
virtualslot

Redirect the request to SVTK_Renderer::OnFrontView.

Processes transformation "front view"

References GetRenderer(), SVTK_Renderer::OnFrontView(), Repaint(), and transformed().

◆ onGraduatedAxes

void SVTK_ViewWindow::onGraduatedAxes ( bool  theIsActivate)
slot

◆ onKeyPressed

void SVTK_ViewWindow::onKeyPressed ( QKeyEvent *  event)
protectedslot

Emits key pressed

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

◆ onKeyReleased

void SVTK_ViewWindow::onKeyReleased ( QKeyEvent *  event)
protectedslot

Emits key released

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

◆ onLeftView

void SVTK_ViewWindow::onLeftView ( )
virtualslot

Redirect the request to SVTK_Renderer::OnLeftView.

Processes transformation "left view"

References GetRenderer(), SVTK_Renderer::OnLeftView(), Repaint(), and transformed().

◆ onMouseDoubleClicked

void SVTK_ViewWindow::onMouseDoubleClicked ( QMouseEvent *  event)
protectedslot

Emits mouse double clicked

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

◆ onMouseMoving

void SVTK_ViewWindow::onMouseMoving ( QMouseEvent *  event)
protectedslot

Emits mouse moving

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

◆ onMousePressed

void SVTK_ViewWindow::onMousePressed ( QMouseEvent *  event)
protectedslot

Emits mouse pressed

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

◆ onMouseReleased

void SVTK_ViewWindow::onMouseReleased ( QMouseEvent *  event)
protectedslot

Emits mouse released

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

◆ onNonIsometric

void SVTK_ViewWindow::onNonIsometric ( bool  theIsActivate)
slot

◆ onPauseRecording

void SVTK_ViewWindow::onPauseRecording ( )
slot

◆ onPlayRecording

void SVTK_ViewWindow::onPlayRecording ( )
slot

◆ onProjectionMode [1/2]

void SVTK_ViewWindow::onProjectionMode ( )
slot

Set the view projection mode: orthogonal or perspective

References action(), Parallel, ParallelModeId, Projection, ProjectionModeId, SetProjectionMode(), Stereo, StereoModeId, SUIT_ViewWindow::toolMgr(), and transformed().

◆ onProjectionMode [2/2]

void SVTK_ViewWindow::onProjectionMode ( QAction theAction)
slot

◆ onResetView

void SVTK_ViewWindow::onResetView ( )
virtualslot

Redirect the request to SVTK_Renderer::OnResetView.

Processes transformation "reset view": sets default orientation of viewport camera

References GetRenderer(), SVTK_Renderer::OnResetView(), Repaint(), and transformed().

◆ onRightView

void SVTK_ViewWindow::onRightView ( )
virtualslot

Redirect the request to SVTK_Renderer::OnRightView.

Processes transformation "right view"

References GetRenderer(), SVTK_Renderer::OnRightView(), Repaint(), and transformed().

◆ onSelectionChanged

void SVTK_ViewWindow::onSelectionChanged ( )
virtualslot

SLOT: called if selection is changed

References myView, and SVTK_SignalHandler::onSelectionChanged().

◆ onStartRecording

◆ onStereoMode

◆ onStopRecording

◆ onSwitchInteractionStyle

void SVTK_ViewWindow::onSwitchInteractionStyle ( bool  theOn)
slot

◆ onSwitchPreSelectionMode

void SVTK_ViewWindow::onSwitchPreSelectionMode ( int  theMode)
slot

◆ onSwitchZoomingStyle

void SVTK_ViewWindow::onSwitchZoomingStyle ( bool  theOn)
slot

Toogles advanced zooming style (relatively to the cursor position) on/off

References getAction(), myDefaultInteractorStyle, myKeyFreeInteractorStyle, and SwitchZoomingStyleId.

◆ onTopView

void SVTK_ViewWindow::onTopView ( )
virtualslot

Redirect the request to SVTK_Renderer::OnTopView.

Processes transformation "top view"

References GetRenderer(), SVTK_Renderer::OnTopView(), Repaint(), and transformed().

◆ onUpdateRate

void SVTK_ViewWindow::onUpdateRate ( bool  theIsActivate)
slot

◆ onViewCubeAxes

void SVTK_ViewWindow::onViewCubeAxes ( )
virtualslot

◆ onViewParameters

void SVTK_ViewWindow::onViewParameters ( bool  theIsActivate)
slot

Modify view parameters

References SVTK_ViewParameterDlg::addObserver(), and myViewParameterDlg.

◆ onViewTrihedron

void SVTK_ViewWindow::onViewTrihedron ( bool  show)
virtualslot

◆ PopInteractorStyle()

void SVTK_ViewWindow::PopInteractorStyle ( )

Remove last interactor style from the stack of styles.

Redirect the request to SVTK_RenderWindowInteractor::PopInteractorStyle

References GetInteractor(), and SVTK_RenderWindowInteractor::PopInteractorStyle().

◆ ProcessEvents()

void SVTK_ViewWindow::ProcessEvents ( vtkObject object,
unsigned long  event,
void *  clientdata,
void *  calldata 
)
staticprotected

Processes events

References emitTransformed().

◆ PushInteractorStyle()

void SVTK_ViewWindow::PushInteractorStyle ( vtkInteractorStyle theStyle)

Add interactor style to the stack of styles.

Redirect the request to SVTK_RenderWindowInteractor::PushInteractorStyle

References GetInteractor(), and SVTK_RenderWindowInteractor::PushInteractorStyle().

◆ RefreshDumpImage()

void SVTK_ViewWindow::RefreshDumpImage ( )
virtual

\refresh QImage, containing all scene rendering in window

References dumpViewContent(), and myDumpImage.

◆ RemoveActor()

void SVTK_ViewWindow::RemoveActor ( VTKViewer_Actor theActor,
bool  theUpdate = false,
bool  theIsAdjustActors = true 
)
virtual

◆ Repaint()

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

◆ resizeEvent()

void SVTK_ViewWindow::resizeEvent ( QResizeEvent *  theEvent)
protectedvirtual

References Repaint().

◆ selectionChanged

void SVTK_ViewWindow::selectionChanged ( )
signal

◆ SelectionMode()

Selection_Mode SVTK_ViewWindow::SelectionMode ( ) const

Set selection mode.

Returns
selection mode

References GetSelector(), and SVTK_Selector::SelectionMode().

◆ SetAnaglyphFilter()

void SVTK_ViewWindow::SetAnaglyphFilter ( const int  theFilter)
virtual

Sets anaglyph filter.

Sets anaglyph filter

Parameters
theFilter- anaglyph filter

References getRenderWindow(), GreenMagenta, RedCyan, and YellowBlue.

◆ setBackground()

◆ setBackgroundColor()

void SVTK_ViewWindow::setBackgroundColor ( const QColor &  c)
virtual

Set background color [obsolete].

Sets background color [obsolete]

Parameters
color- new background color

References background(), setBackground(), and Qtx::BackgroundData::setColor().

◆ SetEventDispatcher()

void SVTK_ViewWindow::SetEventDispatcher ( vtkObject theDispatcher)
protected

References myEventDispatcher.

◆ SetIncrementalSpeed()

void SVTK_ViewWindow::SetIncrementalSpeed ( const int  theValue,
const int  theMode = 0 
)
virtual

Set incremental speed.

Sets incremental speed

Parameters
theValue- new incremental speed
theMode- modification mode

References GetInteractorStyle().

◆ SetInteractionStyle()

void SVTK_ViewWindow::SetInteractionStyle ( const int  theStyle)
virtual

Set interactive style.

Sets actual interaction style

Parameters
theStyle- type of interaction style ( 0 - standard, 1 - keyboard free )

References onSwitchInteractionStyle().

◆ SetPreSelectionMode()

void SVTK_ViewWindow::SetPreSelectionMode ( Preselection_Mode  theMode)
virtual

Set preselection mode.

Set preselection mode.

Parameters
theModethe mode to set (standard, dynamic or disabled)

References onSwitchPreSelectionMode().

◆ SetPreselectionProp()

void SVTK_ViewWindow::SetPreselectionProp ( const double &  theRed = 0,
const double &  theGreen = 1,
const double &  theBlue = 1,
const int &  theWidth = 5 
)
virtual

Redirect the request to SVTK_Renderer::SetPreselectionProp.

Redirect the request to SVTK_Renderer::SetSelectionProp

References myView, and SVTK_View::SetPreselectionProp().

◆ SetProjectionMode()

void SVTK_ViewWindow::SetProjectionMode ( const int  theMode)
virtual

Set current projection mode.

Sets projection mode

Parameters
theMode- projection mode ( 0 - orthogonal, 1 - perspective, 2 - stereo )

References QtxActionMgr::action(), getRenderWindow(), isOpenGlStereoSupport(), myModel, onProjectionMode(), onStereoMode(), Parallel, ParallelModeId, Projection, SVTK_Viewer::projectionMode(), ProjectionModeId, Stereo, StereoModeId, SwitchZoomingStyleId, SUIT_ViewWindow::toolMgr(), and SUIT_MessageBox::warning().

◆ SetQuadBufferSupport()

void SVTK_ViewWindow::SetQuadBufferSupport ( const bool  theEnable)
virtual

Set support quad-buffered stereo.

Set support quad-buffered stereo

Parameters
theEnable- enable/disable support quad-buffered stereo

References getRenderWindow().

◆ SetScale()

void SVTK_ViewWindow::SetScale ( double  theScale[3])
virtual

Redirect the request to SVTK_Renderer::SetScale.

Redirect the request to SVTK_Renderer::SetScale

References GetRenderer(), Repaint(), SVTK_Renderer::SetScale(), theScale, and transformed().

◆ SetSelectionEnabled()

void SVTK_ViewWindow::SetSelectionEnabled ( bool  theEnable)
virtual

Enable/disable selection.

Enables/disables selection.

Parameters
theEnableif true - selection will be enabled

References EnableSelectionId, getAction(), getRenderer(), GetSelector(), PreselectionId, QtxActionGroup::setEnabled(), and SVTK_Selector::SetSelectionEnabled().

◆ SetSelectionMode()

void SVTK_ViewWindow::SetSelectionMode ( Selection_Mode  theMode)
virtual

Change selection mode.

Change selection mode

Parameters
theMode- new selection mode

References GetSelector().

◆ SetSelectionProp()

void SVTK_ViewWindow::SetSelectionProp ( const double &  theRed = 1,
const double &  theGreen = 1,
const double &  theBlue = 0,
const int &  theWidth = 5 
)
virtual

Set selection properties.

Redirect the request to SVTK_Renderer::SetSelectionProp

References myView, and SVTK_View::SetSelectionProp().

◆ SetSelectionTolerance()

void SVTK_ViewWindow::SetSelectionTolerance ( const double &  theTolNodes = 0.025,
const double &  theTolItems = 0.001,
const double &  theTolObjects = 0.025 
)
virtual

◆ SetSpacemouseButtons()

void SVTK_ViewWindow::SetSpacemouseButtons ( const int  theBtn1,
const int  theBtn2,
const int  theBtn3 
)
virtual

Customize space mouse buttons.

Sets spacemouse buttons for the functions

Parameters
theBtn1- spacemouse button for the "decrease speed increment"
theBtn2- spacemouse button for the "increase speed increment"
theBtn3- spacemouse button for the "dominant combined switch"

References myEventDispatcher, SVTK::SetSMDecreaseSpeedEvent, SVTK::SetSMDominantCombinedSwitchEvent, and SVTK::SetSMIncreaseSpeedEvent.

◆ setStaticTrihedronTextColor()

void SVTK_ViewWindow::setStaticTrihedronTextColor ( )
virtual

Sets static trihedron's text color.

Sets static trihedron's text color

References myAxesWidget, and ViewerTools_TrihedronSetupBase::setTextColor().

◆ SetStaticTrihedronVisible()

void SVTK_ViewWindow::SetStaticTrihedronVisible ( const bool  theIsVisible)
virtual

Set visibility status of the static trihedron.

Set visibility status of the static trihedron

References myAxesWidget, and salomevtk::vtkPVAxesWidget::SetEnabled().

◆ SetStereoType()

void SVTK_ViewWindow::SetStereoType ( const int  theType)
virtual

Sets stereo type.

Sets stereo type

Parameters
theType- stereo type

References Anaglyph, Checkerboard, CrystalEyes, Dresden, getRenderWindow(), Interlaced, Left, RedBlue, Right, and SplitViewPortHorizontal.

◆ SetTrihedronSize()

void SVTK_ViewWindow::SetTrihedronSize ( const double  theSize,
const bool  theRelative = true 
)
virtual

Redirect the request to SVTK_Renderer::SetTrihedronSize.

Sets trihedron size

Parameters
theSize- new trihedron size
theRelative- trihedron relativeness

References GetRenderer(), Repaint(), and SVTK_Renderer::SetTrihedronSize().

◆ setVisualParameters()

void SVTK_ViewWindow::setVisualParameters ( const QString &  parameters)
virtual

The method restores visual parameters of this view or postpones it untill the view is shown

Reimplemented from SUIT_ViewWindow.

References doSetVisualParameters(), GetInteractor(), and myVisualParams.

◆ SetZoomingStyle()

void SVTK_ViewWindow::SetZoomingStyle ( const int  theStyle)
virtual

Set zooming style.

Sets actual zooming style

Parameters
theStyle- type of zooming style ( 0 - standard, 1 - advanced (at cursor) )

References onSwitchZoomingStyle().

◆ Show

void SVTK_ViewWindow::Show ( QShowEvent *  )
signal

◆ showEvent

void SVTK_ViewWindow::showEvent ( QShowEvent *  theEvent)
virtualslot

Custom show event handler

References Show().

◆ synchronize [1/2]

◆ synchronize [2/2]

void SVTK_ViewWindow::synchronize ( SVTK_ViewWindow otherViewWindow)
virtualslot

◆ transformed

void SVTK_ViewWindow::transformed ( SVTK_ViewWindow )
signal

◆ unHighlightAll()

void SVTK_ViewWindow::unHighlightAll ( )
virtual

Redirect the request to SVTK_View::unHighlightAll (to support old code)

Unhilights all objects in viewer

References myView, and SVTK_View::unHighlightAll().

Member Data Documentation

◆ myAxesWidget

salomevtk::vtkPVAxesWidget* SVTK_ViewWindow::myAxesWidget
protected

◆ myBackground

Qtx::BackgroundData SVTK_ViewWindow::myBackground
protected

◆ myCubeAxesDlg

SVTK_CubeAxesDlg* SVTK_ViewWindow::myCubeAxesDlg
protected

◆ myDefaultInteractorStyle

vtkSmartPointer<SVTK_InteractorStyle> SVTK_ViewWindow::myDefaultInteractorStyle
protected

◆ myDumpImage

QImage SVTK_ViewWindow::myDumpImage
private

◆ myEventCallbackCommand

vtkSmartPointer<vtkCallbackCommand> SVTK_ViewWindow::myEventCallbackCommand
protected

◆ myEventDispatcher

vtkSmartPointer<vtkObject> SVTK_ViewWindow::myEventDispatcher
protected

◆ myInteractor

SVTK_RenderWindowInteractor* SVTK_ViewWindow::myInteractor
protected

◆ myKeyFreeInteractorStyle

vtkSmartPointer<SVTK_KeyFreeInteractorStyle> SVTK_ViewWindow::myKeyFreeInteractorStyle
protected

◆ myModel

SVTK_ViewModelBase* SVTK_ViewWindow::myModel
protected

◆ myNonIsometricDlg

SVTK_NonIsometricDlg* SVTK_ViewWindow::myNonIsometricDlg
protected

◆ myPauseAction

QtxAction* SVTK_ViewWindow::myPauseAction
protected

◆ myPlayAction

QtxAction* SVTK_ViewWindow::myPlayAction
protected

◆ myPreRecordingMaxSize

QSize SVTK_ViewWindow::myPreRecordingMaxSize
protected

◆ myPreRecordingMinSize

QSize SVTK_ViewWindow::myPreRecordingMinSize
protected

◆ myRecorder

SVTK_Recorder* SVTK_ViewWindow::myRecorder
protected

◆ myRecordingToolBar

int SVTK_ViewWindow::myRecordingToolBar
protected

◆ mySetRotationPointDlg

SVTK_SetRotationPointDlg* SVTK_ViewWindow::mySetRotationPointDlg
protected

◆ myStartAction

QtxAction* SVTK_ViewWindow::myStartAction
protected

◆ myStopAction

QtxAction* SVTK_ViewWindow::myStopAction
protected

◆ myToolBar

int SVTK_ViewWindow::myToolBar
protected

◆ myUpdateRateDlg

SVTK_UpdateRateDlg* SVTK_ViewWindow::myUpdateRateDlg
protected

◆ myView

SVTK_View* SVTK_ViewWindow::myView
protected

◆ myViewParameterDlg

SVTK_ViewParameterDlg* SVTK_ViewWindow::myViewParameterDlg
protected

◆ myVisualParams

QString SVTK_ViewWindow::myVisualParams
protected

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