Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SVTK_ViewWindow Class Reference

Define a container for SALOME VTK view window.

#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)
 
void onProjectionMode ()
 
void activateProjectionMode (int)
 
void activateSetFocalPointGravity ()
 
void activateSetFocalPointSelected ()
 
void activateStartFocalPointSelection ()
 
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 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 ()
 

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 *)
 

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 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...
 

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 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_InteractorStyle
myDefaultInteractorStyle
 
vtkSmartPointer
< SVTK_KeyFreeInteractorStyle
myKeyFreeInteractorStyle
 
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
 

Member Enumeration Documentation

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 
Enumerator
RedCyan 
YellowBlue 
GreenMagenta 
Enumerator
Parallel 
Projection 
Stereo 
Enumerator
CrystalEyes 
RedBlue 
Interlaced 
Left 
Right 
Dresden 
Anaglyph 
Checkerboard 
SplitViewPortHorizontal 

Constructor & Destructor Documentation

SVTK_ViewWindow::SVTK_ViewWindow ( SUIT_Desktop theDesktop)

Constructor

References myKeyFreeInteractorStyle, and Window.

SVTK_ViewWindow::~SVTK_ViewWindow ( )
virtual

Destructor

References myAxesWidget, and myRecorder.

Member Function Documentation

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.

void SVTK_ViewWindow::activateGlobalPanning ( )
slot

Starts global panning transformation

References myEventDispatcher, and SVTK::StartGlobalPan.

void SVTK_ViewWindow::activatePanning ( )
slot

Starts panning transformation

References myEventDispatcher, and SVTK::StartPan.

void SVTK_ViewWindow::activateProjectionMode ( int  theMode)
slot
void SVTK_ViewWindow::activateRotation ( )
slot

Starts rotation transformation

References myEventDispatcher, and SVTK::StartRotate.

void SVTK_ViewWindow::activateSetFocalPointGravity ( )
slot

Set the gravity center as a focal point

References myEventDispatcher, and SVTK::SetFocalPointGravity.

void SVTK_ViewWindow::activateSetFocalPointSelected ( )
slot

Set the selected point as a focal point

References myEventDispatcher, and SVTK::SetFocalPointSelected.

void SVTK_ViewWindow::activateSetRotationGravity ( )
slot

Set the gravity center as a rotation point

References myEventDispatcher, and SVTK::SetRotateGravity.

void SVTK_ViewWindow::activateSetRotationSelected ( void *  theData)
slot

Set the selected point as a rotation point

References SVTK::ChangeRotationPoint, and myEventDispatcher.

void SVTK_ViewWindow::activateStartFocalPointSelection ( )
slot

Set the point selected by user as a focal point

References myEventDispatcher, and SVTK::StartFocalPointSelection.

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.

void SVTK_ViewWindow::activateWindowFit ( )
slot

Starts window fit transformation

References myEventDispatcher, and SVTK::StartFitArea.

void SVTK_ViewWindow::activateZoom ( )
slot

Starts zoom transformation

References myEventDispatcher, and SVTK::StartZoom.

void SVTK_ViewWindow::actorAdded ( VTKViewer_Actor )
signal
void SVTK_ViewWindow::actorRemoved ( VTKViewer_Actor )
signal
void SVTK_ViewWindow::AddActor ( VTKViewer_Actor theActor,
bool  theUpdate = false,
bool  theIsAdjustActors = true 
)
virtual
void SVTK_ViewWindow::AdjustTrihedrons ( const bool  theIsForcedUpdate)
virtual

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().

Qtx::BackgroundData SVTK_ViewWindow::background ( ) const
Returns
background data of viewer

References myBackground.

QColor SVTK_ViewWindow::backgroundColor ( ) const
Returns
background color of viewer [obsolete]

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

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.

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

Display object

Parameters
theIO- object
theImmediatly- update viewer

References SVTK_View::Display(), and myView.

void SVTK_ViewWindow::DisplayAll ( )
virtual

Display all objects in view

References SVTK_View::DisplayAll(), and myView.

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

Display only passed object

Parameters
theIO- object

References SVTK_View::DisplayOnly(), and myView.

void SVTK_ViewWindow::doSetVisualParameters ( const QString &  parameters,
bool  baseParamsOnly = false 
)
protected
QImage SVTK_ViewWindow::dumpView ( )
virtual
Returns
QImage, containing all scene rendering in window

Reimplemented from SUIT_ViewWindow.

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

QImage SVTK_ViewWindow::dumpViewContent ( )
protected
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().

void SVTK_ViewWindow::emitTransformed ( )

Emit transformed signal.

References transformed().

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

Erase object

Parameters
theIO- object
theImmediatly- update viewer

References SVTK_View::Erase(), and myView.

void SVTK_ViewWindow::EraseAll ( )
virtual

Erase all objects in view

References SVTK_View::EraseAll(), and myView.

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

Delayed setVisualParameters

References doSetVisualParameters(), and myVisualParams.

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

Reimplemented from SUIT_ViewWindow.

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

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

SVTK_CubeAxesActor2D * SVTK_ViewWindow::GetCubeAxes ( )

Redirect the request to SVTK_Renderer::GetCubeAxes

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

vtkRenderWindowInteractor * SVTK_ViewWindow::getInteractor ( ) const
Returns
corresponding vtk render window interactor

References QVTK_RenderWindowInteractor::GetDevice(), and myInteractor.

SVTK_RenderWindowInteractor * SVTK_ViewWindow::GetInteractor ( ) const
Returns
corresponding vtk render window interactor

References myInteractor.

vtkInteractorStyle * SVTK_ViewWindow::GetInteractorStyle ( ) const
vtkRenderer * SVTK_ViewWindow::getRenderer ( ) const
Returns
corresponding vtk renderer

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

SVTK_Renderer * SVTK_ViewWindow::GetRenderer ( ) const
vtkRenderWindow * SVTK_ViewWindow::getRenderWindow ( )
Returns
corresponding vtk render window

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

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

Redirect the request to SVTK_Renderer::GetScale

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

SVTK_Selector * SVTK_ViewWindow::GetSelector ( ) const
Returns
corresponding vtk selector

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

VTKViewer_Trihedron * SVTK_ViewWindow::GetTrihedron ( )
double SVTK_ViewWindow::GetTrihedronSize ( ) const
Returns
trihedron size

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

SVTK_View * SVTK_ViewWindow::getView ( )
Returns
corresponding view

References myView.

QString SVTK_ViewWindow::getVisualParameters ( )
virtual

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().

SVTK_ViewWindow::Handle ( SALOME_InteractiveObject  ) const
void SVTK_ViewWindow::Hide ( QHideEvent *  )
signal
void SVTK_ViewWindow::hideEvent ( QHideEvent *  theEvent)
virtualslot

Custom hide event handler

References Hide().

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

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.

void SVTK_ViewWindow::Initialize ( SVTK_ViewModelBase theModel)
virtual

To initialize SVTK_ViewWindow instance

References ChangeRotationPointId, createActions(), QtxActionToolMgr::createToolBar(), createToolBar(), Dynamic_Preselection, getAction(), SVTK_Renderer::GetDevice(), QVTK_RenderWindowInteractor::GetDevice(), GetInteractor(), SVTK_RenderWindowInteractor::GetInteractorStyle(), 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, SVTK_Renderer::Initialize(), ViewerTools_CubeAxesDlgBase::initialize(), SVTK_RenderWindowInteractor::Initialize(), myAxesWidget, myCubeAxesDlg, myDefaultInteractorStyle, myEventCallbackCommand, myInteractor, myKeyFreeInteractorStyle, myModel, myNonIsometricDlg, myRecorder, myRecordingToolBar, mySetRotationPointDlg, myToolBar, myUpdateRateDlg, myView, myViewParameterDlg, SVTK_Recorder::New(), SVTK_Selector::New(), salomevtk::vtkPVAxesWidget::New(), SVTK_Renderer::New(), SVTK_GenericRenderWindowInteractor::New(), SVTK_InteractorStyle::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_Recorder::SetRenderWindow(), SVTK_Selector::SetSelectionEnabled(), SVTK_GenericRenderWindowInteractor::SetSelector(), SVTK_Recorder::SetUseSkippedFrames(), salomevtk::vtkPVAxesWidget::SetViewport(), Standard_Preselection, SUIT_ViewWindow::toolMgr(), UpdateRate, and ViewParametersId.

void SVTK_ViewWindow::InvokeEvent ( unsigned long  theEvent,
void *  theCallData 
)
bool SVTK_ViewWindow::isCubeAxesDisplayed ( )
bool SVTK_ViewWindow::isInViewer ( const Handle(SALOME_InteractiveObject)&  theIO)
Returns
true if object is in viewer or in collector
Parameters
theIO- object to be checked

References SVTK_View::isInViewer(), and myView.

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

Get visibility status of the static trihedron

References myAxesWidget.

bool SVTK_ViewWindow::isTrihedronDisplayed ( )
bool SVTK_ViewWindow::isVisible ( const Handle(SALOME_InteractiveObject)&  theIO)
Returns
true if object is displayed in viewer
Parameters
theIO- object to be checked

References SVTK_View::isVisible(), and myView.

void SVTK_ViewWindow::onAdjustCubeAxes ( )
virtualslot
void SVTK_ViewWindow::onAdjustTrihedron ( )
virtualslot
void SVTK_ViewWindow::onAntiClockWiseView ( )
virtualslot

Rotate view 90 degrees conterclockwise.

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

void SVTK_ViewWindow::onBackView ( )
virtualslot

Processes transformation "back view"

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

void SVTK_ViewWindow::onBottomView ( )
virtualslot

Processes transformation "bottom view"

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

void SVTK_ViewWindow::onChangeRotationPoint ( bool  theIsActivate)
slot
void SVTK_ViewWindow::onClockWiseView ( )
virtualslot

Rotate view 90 degrees clockwise.

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

void SVTK_ViewWindow::onEnableSelection ( bool  on)
slot

Enables/disables selection.

Parameters
theOnif true - selection will be enabled

References SVTK_Viewer::enableSelection(), and myModel.

void SVTK_ViewWindow::onFitAll ( )
virtualslot

Processes transformation "fit all"

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

void SVTK_ViewWindow::onFitSelection ( )
virtualslot

Processes transformation "fit selection"

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

void SVTK_ViewWindow::onFrontView ( )
virtualslot

Processes transformation "front view"

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

void SVTK_ViewWindow::onGraduatedAxes ( bool  theIsActivate)
slot
void SVTK_ViewWindow::onKeyPressed ( QKeyEvent *  event)
protectedslot

Emits key pressed

References SUIT_ViewWindow::keyPressed().

void SVTK_ViewWindow::onKeyReleased ( QKeyEvent *  event)
protectedslot

Emits key released

References SUIT_ViewWindow::keyReleased().

void SVTK_ViewWindow::onLeftView ( )
virtualslot

Processes transformation "left view"

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

void SVTK_ViewWindow::onMouseDoubleClicked ( QMouseEvent *  event)
protectedslot

Emits mouse double clicked

References SUIT_ViewWindow::mouseDoubleClicked().

void SVTK_ViewWindow::onMouseMoving ( QMouseEvent *  event)
protectedslot

Emits mouse moving

References SUIT_ViewWindow::mouseMoving().

void SVTK_ViewWindow::onMousePressed ( QMouseEvent *  event)
protectedslot

Emits mouse pressed

References SUIT_ViewWindow::mousePressed().

void SVTK_ViewWindow::onMouseReleased ( QMouseEvent *  event)
protectedslot

Emits mouse released

References SUIT_ViewWindow::mouseReleased().

void SVTK_ViewWindow::onNonIsometric ( bool  theIsActivate)
slot
void SVTK_ViewWindow::onPauseRecording ( )
slot
void SVTK_ViewWindow::onPlayRecording ( )
slot
void SVTK_ViewWindow::onProjectionMode ( QAction theAction)
slot
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().

void SVTK_ViewWindow::onResetView ( )
virtualslot

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

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

void SVTK_ViewWindow::onRightView ( )
virtualslot

Processes transformation "right view"

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

void SVTK_ViewWindow::onSelectionChanged ( )
virtualslot

SLOT: called if selection is changed

References myView, and SVTK_SignalHandler::onSelectionChanged().

void SVTK_ViewWindow::onSwitchInteractionStyle ( bool  theOn)
slot
void SVTK_ViewWindow::onSwitchPreSelectionMode ( int  theMode)
slot
void SVTK_ViewWindow::onSwitchZoomingStyle ( bool  theOn)
slot

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

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

void SVTK_ViewWindow::onTopView ( )
virtualslot

Processes transformation "top view"

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

void SVTK_ViewWindow::onUpdateRate ( bool  theIsActivate)
slot
void SVTK_ViewWindow::onViewCubeAxes ( )
virtualslot
void SVTK_ViewWindow::onViewParameters ( bool  theIsActivate)
slot

Modify view parameters

References SVTK_ViewParameterDlg::addObserver(), and myViewParameterDlg.

void SVTK_ViewWindow::onViewTrihedron ( bool  show)
virtualslot
void SVTK_ViewWindow::PopInteractorStyle ( )
void SVTK_ViewWindow::ProcessEvents ( vtkObject object,
unsigned long  event,
void *  clientdata,
void *  calldata 
)
staticprotected

Processes events

References emitTransformed().

void SVTK_ViewWindow::PushInteractorStyle ( vtkInteractorStyle theStyle)
void SVTK_ViewWindow::RefreshDumpImage ( )
virtual

QImage, containing all scene rendering in window

References dumpViewContent(), and myDumpImage.

void SVTK_ViewWindow::RemoveActor ( VTKViewer_Actor theActor,
bool  theUpdate = false,
bool  theIsAdjustActors = true 
)
virtual
void SVTK_ViewWindow::Repaint ( bool  theUpdateTrihedron = true)
virtual
void SVTK_ViewWindow::selectionChanged ( )
signal
Selection_Mode SVTK_ViewWindow::SelectionMode ( ) const
Returns
selection mode

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

void SVTK_ViewWindow::SetAnaglyphFilter ( const int  theFilter)
virtual

Sets anaglyph filter

Parameters
theFilter- anaglyph filter

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

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

Sets background color [obsolete]

Parameters
color- new background color

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

void SVTK_ViewWindow::SetEventDispatcher ( vtkObject theDispatcher)
protected

References myEventDispatcher.

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

Sets incremental speed

Parameters
theValue- new incremental speed
theMode- modification mode

References GetInteractorStyle().

void SVTK_ViewWindow::SetInteractionStyle ( const int  theStyle)
virtual

Sets actual interaction style

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

References onSwitchInteractionStyle().

void SVTK_ViewWindow::SetPreSelectionMode ( Preselection_Mode  theMode)
virtual

Set preselection mode.

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

References onSwitchPreSelectionMode().

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

Set support quad-buffered stereo

Parameters
theEnable- enable/disable support quad-buffered stereo

References getRenderWindow().

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

Enables/disables selection.

Parameters
theEnableif true - selection will be enabled

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

void SVTK_ViewWindow::SetSelectionMode ( Selection_Mode  theMode)
virtual

Change selection mode

Parameters
theMode- new selection mode

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

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

Redirect the request to SVTK_Renderer::SetSelectionProp

References myView, and SVTK_View::SetSelectionProp().

void SVTK_ViewWindow::SetSelectionTolerance ( const double &  theTolNodes = 0.025,
const double &  theTolItems = 0.001,
const double &  theTolObjects = 0.025 
)
virtual
void SVTK_ViewWindow::SetSpacemouseButtons ( const int  theBtn1,
const int  theBtn2,
const int  theBtn3 
)
virtual

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.

void SVTK_ViewWindow::SetStaticTrihedronVisible ( const bool  theIsVisible)
virtual

Set visibility status of the static trihedron

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

void SVTK_ViewWindow::SetStereoType ( const int  theType)
virtual

Sets stereo type

Parameters
theType- stereo type

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

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

Sets trihedron size

Parameters
theSize- new trihedron size
theRelative- trihedron relativeness

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

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.

void SVTK_ViewWindow::SetZoomingStyle ( const int  theStyle)
virtual

Sets actual zooming style

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

References onSwitchZoomingStyle().

void SVTK_ViewWindow::Show ( QShowEvent *  )
signal
void SVTK_ViewWindow::showEvent ( QShowEvent *  theEvent)
virtualslot

Custom show event handler

References Show().

void SVTK_ViewWindow::synchronize ( SVTK_ViewWindow otherViewWindow)
virtualslot
void SVTK_ViewWindow::transformed ( SVTK_ViewWindow )
signal
void SVTK_ViewWindow::unHighlightAll ( )
virtual

Unhilights all objects in viewer

References myView, and SVTK_View::unHighlightAll().

Member Data Documentation

salomevtk::vtkPVAxesWidget* SVTK_ViewWindow::myAxesWidget
protected
Qtx::BackgroundData SVTK_ViewWindow::myBackground
protected
SVTK_CubeAxesDlg* SVTK_ViewWindow::myCubeAxesDlg
protected
vtkSmartPointer<SVTK_InteractorStyle> SVTK_ViewWindow::myDefaultInteractorStyle
protected
QImage SVTK_ViewWindow::myDumpImage
private
vtkSmartPointer<vtkCallbackCommand> SVTK_ViewWindow::myEventCallbackCommand
protected
vtkSmartPointer<vtkObject> SVTK_ViewWindow::myEventDispatcher
protected
SVTK_RenderWindowInteractor* SVTK_ViewWindow::myInteractor
protected
vtkSmartPointer<SVTK_KeyFreeInteractorStyle> SVTK_ViewWindow::myKeyFreeInteractorStyle
protected
SVTK_ViewModelBase* SVTK_ViewWindow::myModel
protected
SVTK_NonIsometricDlg* SVTK_ViewWindow::myNonIsometricDlg
protected
QtxAction* SVTK_ViewWindow::myPauseAction
protected
QtxAction* SVTK_ViewWindow::myPlayAction
protected
QSize SVTK_ViewWindow::myPreRecordingMaxSize
protected
QSize SVTK_ViewWindow::myPreRecordingMinSize
protected
SVTK_Recorder* SVTK_ViewWindow::myRecorder
protected
int SVTK_ViewWindow::myRecordingToolBar
protected
SVTK_SetRotationPointDlg* SVTK_ViewWindow::mySetRotationPointDlg
protected
QtxAction* SVTK_ViewWindow::myStartAction
protected
QtxAction* SVTK_ViewWindow::myStopAction
protected
int SVTK_ViewWindow::myToolBar
protected
SVTK_UpdateRateDlg* SVTK_ViewWindow::myUpdateRateDlg
protected
SVTK_View* SVTK_ViewWindow::myView
protected
SVTK_ViewParameterDlg* SVTK_ViewWindow::myViewParameterDlg
protected
QString SVTK_ViewWindow::myVisualParams
protected

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