Define a container for SALOME VTK view window.
#include <SVTK_ViewWindow.h>
Public Types | |
enum | ProjectionType { Parallel, Projection, Stereo } |
enum | StereoType { CrystalEyes, RedBlue, Interlaced, Left, Right, Dresden, Anaglyph, Checkerboard, SplitViewPortHorizontal } |
enum | AnaglyphFilter { RedCyan, YellowBlue, GreenMagenta } |
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_View * | getView () |
Get SVTK_View. More... | |
vtkRenderWindow * | getRenderWindow () |
Get render window. More... | |
vtkRenderWindowInteractor * | getInteractor () const |
Get interactor. More... | |
SVTK_RenderWindowInteractor * | GetInteractor () const |
Get SVTK interactor. More... | |
vtkInteractorStyle * | GetInteractorStyle () 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_Renderer * | GetRenderer () const |
Get SVTK renderer. More... | |
SVTK_Selector * | GetSelector () 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_Trihedron * | GetTrihedron () |
Redirect the request to SVTK_Renderer::GetTrihedron. More... | |
SVTK_CubeAxesActor2D * | GetCubeAxes () |
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 ¶meters) |
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_ViewManager * | getViewManager () 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 |
QtxActionToolMgr * | toolMgr () 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 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) |
QtxAction * | getAction (int) const |
void | createToolBar () |
void | createActions (SUIT_ResourceMgr *theResourceMgr) |
Protected Member Functions inherited from SUIT_ViewWindow | |
void | closeEvent (QCloseEvent *) |
virtual void | contextMenuEvent (QContextMenuEvent *) |
virtual QAction * | synchronizeAction () |
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_View * | myView |
SVTK_ViewModelBase * | myModel |
SVTK_RenderWindowInteractor * | myInteractor |
vtkSmartPointer < SVTK_InteractorStyle > | myDefaultInteractorStyle |
vtkSmartPointer < SVTK_KeyFreeInteractorStyle > | myKeyFreeInteractorStyle |
QString | myVisualParams |
vtkSmartPointer< vtkObject > | myEventDispatcher |
vtkSmartPointer < vtkCallbackCommand > | myEventCallbackCommand |
SVTK_NonIsometricDlg * | myNonIsometricDlg |
SVTK_UpdateRateDlg * | myUpdateRateDlg |
SVTK_CubeAxesDlg * | myCubeAxesDlg |
SVTK_SetRotationPointDlg * | mySetRotationPointDlg |
SVTK_ViewParameterDlg * | myViewParameterDlg |
QSize | myPreRecordingMinSize |
QSize | myPreRecordingMaxSize |
SVTK_Recorder * | myRecorder |
QtxAction * | myStartAction |
QtxAction * | myPlayAction |
QtxAction * | myPauseAction |
QtxAction * | myStopAction |
int | myToolBar |
int | myRecordingToolBar |
salomevtk::vtkPVAxesWidget * | myAxesWidget |
Qtx::BackgroundData | myBackground |
Protected Attributes inherited from SUIT_ViewWindow | |
SUIT_Desktop * | myDesktop |
SUIT_ViewManager * | myManager |
Private Attributes | |
QImage | myDumpImage |
|
protected |
SVTK_ViewWindow::SVTK_ViewWindow | ( | SUIT_Desktop * | theDesktop | ) |
Constructor
References myKeyFreeInteractorStyle, and Window.
|
virtual |
Destructor
References myAxesWidget, and myRecorder.
|
protectedvirtual |
Performs action
accelAction | - action |
Reimplemented from SUIT_ViewWindow.
References SVTK::convertAction(), GetInteractor(), QVTK_RenderWindowInteractor::InvokeEvent(), onFitAll(), and SUIT_Accel::ZoomFit.
|
slot |
Starts global panning transformation
References myEventDispatcher, and SVTK::StartGlobalPan.
|
slot |
Starts panning transformation
References myEventDispatcher, and SVTK::StartPan.
|
slot |
References QtxActionMgr::action(), ParallelModeId, ProjectionModeId, and SUIT_ViewWindow::toolMgr().
|
slot |
Starts rotation transformation
References myEventDispatcher, and SVTK::StartRotate.
|
slot |
Set the gravity center as a focal point
References myEventDispatcher, and SVTK::SetFocalPointGravity.
|
slot |
Set the selected point as a focal point
References myEventDispatcher, and SVTK::SetFocalPointSelected.
|
slot |
Set the gravity center as a rotation point
References myEventDispatcher, and SVTK::SetRotateGravity.
|
slot |
Set the selected point as a rotation point
References SVTK::ChangeRotationPoint, and myEventDispatcher.
|
slot |
Set the point selected by user as a focal point
References myEventDispatcher, and SVTK::StartFocalPointSelection.
|
slot |
Set the gravity center of element selected by user as a rotation point
References myEventDispatcher, SetSelectionMode(), and SVTK::StartPointSelection.
|
slot |
Starts window fit transformation
References myEventDispatcher, and SVTK::StartFitArea.
|
slot |
Starts zoom transformation
References myEventDispatcher, and SVTK::StartZoom.
|
signal |
|
signal |
|
virtual |
Redirect the request to SVTK_Renderer::AddActor
References actorAdded(), SVTK_Renderer::AddActor(), GetRenderer(), and Repaint().
|
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 |
References myBackground.
QColor SVTK_ViewWindow::backgroundColor | ( | ) | const |
References background(), and Qtx::BackgroundData::color().
|
virtual |
Get camera properties for the SVTK view window.
Reimplemented from SUIT_ViewWindow.
References action(), SUIT_CameraProperties::Dim3D, SUIT_CameraProperties::getProjection(), getRenderer(), GetRenderer(), SVTK_Renderer::GetScale(), ParallelModeId, SUIT_CameraProperties::PrjOrthogonal, SUIT_CameraProperties::PrjPerspective, SUIT_CameraProperties::setAxialScale(), SUIT_CameraProperties::setDimension(), SUIT_CameraProperties::setFocalPoint(), SUIT_CameraProperties::setMappingScale(), SUIT_CameraProperties::setPosition(), SUIT_CameraProperties::setProjection(), SUIT_CameraProperties::setViewAngle(), SUIT_CameraProperties::setViewUp(), and SUIT_ViewWindow::toolMgr().
|
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.
|
protected |
Creates toolbar of svtk main window
References AntiClockWiseId, QtxActionToolMgr::append(), BackId, BottomId, ChangeRotationPointId, ClockWiseId, DumpId, EnableSelectionId, FitAllId, FitRectId, FitSelectionId, FrontId, getAction(), GlobalPanId, GraduatedAxes, QtxActionSet::insertAction(), LeftId, myRecordingToolBar, myToolBar, NonIsometric, PanId, ParallelModeId, PauseRecordingId, PlayRecordingId, PreselectionId, ProjectionModeId, ResetId, RightId, RotationId, QtxActionMgr::separator(), StartRecordingId, StereoModeId, StopRecordingId, SwitchInteractionStyleId, SwitchZoomingStyleId, SynchronizeId, SUIT_ViewWindow::toolMgr(), TopId, UpdateRate, ViewParametersId, ViewTrihedronId, and ZoomId.
|
virtual |
Display object
theIO | - object |
theImmediatly | - update viewer |
References SVTK_View::Display(), and myView.
|
virtual |
Display all objects in view
References SVTK_View::DisplayAll(), and myView.
|
virtual |
Display only passed object
theIO | - object |
References SVTK_View::DisplayOnly(), and myView.
|
protected |
The method restores visual parameters of this view from a formated string
References GetCubeAxes(), getRenderer(), GetRenderer(), GetTrihedron(), nAllParams, nGradAxisParams, nNormalParams, Repaint(), setBackground(), setGradAxisVisualParams(), SVTK_Renderer::SetScale(), SetTrihedronSize(), Qtx::stringToBackground(), VTKViewer_Trihedron::VisibilityOff(), and VTKViewer_Trihedron::VisibilityOn().
|
virtual |
Reimplemented from SUIT_ViewWindow.
References dumpViewContent(), myDumpImage, and RefreshDumpImage().
|
protected |
|
protectedvirtual |
Saves image to file according to the format
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().
|
virtual |
Erase object
theIO | - object |
theImmediatly | - update viewer |
References SVTK_View::Erase(), and myView.
|
virtual |
Erase all objects in view
References SVTK_View::EraseAll(), and myView.
Delayed setVisualParameters
References doSetVisualParameters(), and myVisualParams.
|
protectedvirtual |
Reimplemented from SUIT_ViewWindow.
|
protected |
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 |
References QVTK_RenderWindowInteractor::GetDevice(), and myInteractor.
SVTK_RenderWindowInteractor * SVTK_ViewWindow::GetInteractor | ( | ) | const |
References myInteractor.
vtkInteractorStyle * SVTK_ViewWindow::GetInteractorStyle | ( | ) | const |
Redirect the request to SVTK_RenderWindowInteractor::GetInteractorStyle
References GetInteractor(), and SVTK_RenderWindowInteractor::GetInteractorStyle().
vtkRenderer * SVTK_ViewWindow::getRenderer | ( | ) | const |
References GetInteractor(), and SVTK_RenderWindowInteractor::getRenderer().
SVTK_Renderer * SVTK_ViewWindow::GetRenderer | ( | ) | const |
Redirect the request to SVTK_RenderWindowInteractor::GetRenderer
References GetInteractor(), and SVTK_RenderWindowInteractor::GetRenderer().
vtkRenderWindow * SVTK_ViewWindow::getRenderWindow | ( | ) |
References GetInteractor(), and QVTK_RenderWindowInteractor::getRenderWindow().
|
virtual |
Redirect the request to SVTK_Renderer::GetScale
References GetRenderer(), and SVTK_Renderer::GetScale().
SVTK_Selector * SVTK_ViewWindow::GetSelector | ( | ) | const |
References GetInteractor(), and SVTK_RenderWindowInteractor::GetSelector().
VTKViewer_Trihedron * SVTK_ViewWindow::GetTrihedron | ( | ) |
Redirect the request to SVTK_Renderer::GetTrihedron
References GetRenderer(), and SVTK_Renderer::GetTrihedron().
double SVTK_ViewWindow::GetTrihedronSize | ( | ) | const |
References GetRenderer(), and SVTK_Renderer::GetTrihedronSize().
|
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 |
|
signal |
|
virtualslot |
Custom hide event handler
References Hide().
|
virtual |
Hilights/unhilights object in viewer
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.
|
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.
|
protectedvirtual |
To initialize SVTK_ViewWindow instance
References SUIT_ViewWindow::contextMenuRequested(), SUIT_ViewWindow::emitViewModified(), onKeyPressed(), onKeyReleased(), onMouseDoubleClicked(), onMouseMoving(), onMousePressed(), onMouseReleased(), onSelectionChanged(), selectionChanged(), and transformed().
void SVTK_ViewWindow::InvokeEvent | ( | unsigned long | theEvent, |
void * | theCallData | ||
) |
To invoke a VTK event on SVTK_RenderWindowInteractor instance
References GetInteractor(), and QVTK_RenderWindowInteractor::InvokeEvent().
bool SVTK_ViewWindow::isCubeAxesDisplayed | ( | ) |
Redirect the request to SVTK_Renderer::IsCubeAxesDisplayed
References GetRenderer(), and SVTK_Renderer::IsCubeAxesDisplayed().
bool SVTK_ViewWindow::isInViewer | ( | const Handle(SALOME_InteractiveObject)& | theIO | ) |
theIO | - object to be checked |
References SVTK_View::isInViewer(), and myView.
|
protected |
bool SVTK_ViewWindow::IsStaticTrihedronVisible | ( | ) | const |
Get visibility status of the static trihedron
References myAxesWidget.
bool SVTK_ViewWindow::isTrihedronDisplayed | ( | ) |
Redirect the request to SVTK_Renderer::IsTrihedronDisplayed
References GetRenderer(), and SVTK_Renderer::IsTrihedronDisplayed().
bool SVTK_ViewWindow::isVisible | ( | const Handle(SALOME_InteractiveObject)& | theIO | ) |
theIO | - object to be checked |
References SVTK_View::isVisible(), and myView.
|
virtualslot |
Redirect the request to SVTK_Renderer::OnAdjustCubeAxes
References GetRenderer(), and SVTK_Renderer::OnAdjustCubeAxes().
|
virtualslot |
Redirect the request to SVTK_Renderer::OnAdjustTrihedron
References GetRenderer(), and SVTK_Renderer::OnAdjustTrihedron().
|
virtualslot |
Rotate view 90 degrees conterclockwise.
References GetRenderer(), SVTK_Renderer::onAntiClockWiseView(), Repaint(), and transformed().
|
virtualslot |
Processes transformation "back view"
References GetRenderer(), SVTK_Renderer::OnBackView(), Repaint(), and transformed().
|
virtualslot |
Processes transformation "bottom view"
References GetRenderer(), SVTK_Renderer::OnBottomView(), Repaint(), and transformed().
|
slot |
Change rotation point
References activateSetRotationGravity(), SVTK_SetRotationPointDlg::addObserver(), SVTK_SetRotationPointDlg::IsFirstShown(), and mySetRotationPointDlg.
|
virtualslot |
Rotate view 90 degrees clockwise.
References GetRenderer(), SVTK_Renderer::onClockWiseView(), Repaint(), and transformed().
|
slot |
Enables/disables selection.
theOn | if true - selection will be enabled |
References SVTK_Viewer::enableSelection(), and myModel.
|
virtualslot |
Processes transformation "fit all"
References GetRenderer(), SVTK_Renderer::OnFitAll(), Repaint(), and transformed().
|
virtualslot |
Processes transformation "fit selection"
References GetRenderer(), SVTK_Renderer::onFitSelection(), Repaint(), and transformed().
|
virtualslot |
Processes transformation "front view"
References GetRenderer(), SVTK_Renderer::OnFrontView(), Repaint(), and transformed().
|
slot |
References myCubeAxesDlg, and SVTK_CubeAxesDlg::Update().
|
protectedslot |
Emits key pressed
References SUIT_ViewWindow::keyPressed().
|
protectedslot |
Emits key released
References SUIT_ViewWindow::keyReleased().
|
virtualslot |
Processes transformation "left view"
References GetRenderer(), SVTK_Renderer::OnLeftView(), Repaint(), and transformed().
|
protectedslot |
Emits mouse double clicked
References SUIT_ViewWindow::mouseDoubleClicked().
|
protectedslot |
Emits mouse moving
References SUIT_ViewWindow::mouseMoving().
|
protectedslot |
Emits mouse pressed
References SUIT_ViewWindow::mousePressed().
|
protectedslot |
Emits mouse released
References SUIT_ViewWindow::mouseReleased().
|
slot |
References myNonIsometricDlg, and SVTK_NonIsometricDlg::Update().
|
slot |
References myPauseAction, myPlayAction, myRecorder, myStartAction, myStopAction, and SVTK_Recorder::Pause().
|
slot |
References myPauseAction, myPlayAction, myRecorder, myStartAction, myStopAction, and SVTK_Recorder::Pause().
|
slot |
Set the given projection mode: Orthographic or Perspective.
References action(), QVTK_RenderWindowInteractor::GetDevice(), GetInteractor(), getRenderer(), getRenderWindow(), myModel, Parallel, Projection, ProjectionModeId, Repaint(), SVTK_Viewer::setProjectionMode(), and SUIT_ViewWindow::toolMgr().
|
slot |
Set the view projection mode: orthogonal or perspective
References action(), Parallel, ParallelModeId, Projection, ProjectionModeId, SetProjectionMode(), Stereo, StereoModeId, SUIT_ViewWindow::toolMgr(), and transformed().
|
virtualslot |
Processes transformation "reset view": sets default orientation of viewport camera
References GetRenderer(), SVTK_Renderer::OnResetView(), Repaint(), and transformed().
|
virtualslot |
Processes transformation "right view"
References GetRenderer(), SVTK_Renderer::OnRightView(), Repaint(), and transformed().
|
virtualslot |
SLOT: called if selection is changed
References myView, and SVTK_SignalHandler::onSelectionChanged().
|
slot |
|
slot |
Sets Stereo projection mode.
References QtxActionMgr::action(), action(), getRenderer(), getRenderWindow(), QtxResourceMgr::integerValue(), isOpenGlStereoSupport(), myModel, onProjectionMode(), Parallel, ParallelModeId, Projection, SVTK_Viewer::projectionMode(), ProjectionModeId, Repaint(), SUIT_Session::resourceMgr(), SUIT_Session::session(), SetStereoType(), StereoModeId, SUIT_ViewWindow::toolMgr(), and SUIT_MessageBox::warning().
|
slot |
|
slot |
Switches "keyboard free" interaction style on/off
References SVTK_InteractorStyle::ControllerIncrement(), SVTK_InteractorStyle::ControllerOnKeyDown(), getAction(), GetInteractorStyle(), myKeyFreeInteractorStyle, PopInteractorStyle(), PushInteractorStyle(), and SwitchInteractionStyleId.
|
slot |
Switch preselection mode.
theMode | the preselection mode |
References Dynamic_Preselection, getAction(), GetSelector(), Preselection_Disabled, SVTK_Selector::SetDynamicPreSelection(), SVTK_Selector::SetPreSelectionEnabled(), and StandardPreselectionId.
|
slot |
Toogles advanced zooming style (relatively to the cursor position) on/off
References getAction(), myDefaultInteractorStyle, myKeyFreeInteractorStyle, and SwitchZoomingStyleId.
|
virtualslot |
Processes transformation "top view"
References GetRenderer(), SVTK_Renderer::OnTopView(), Repaint(), and transformed().
|
slot |
References myUpdateRateDlg, and SVTK_UpdateRateDlg::Update().
|
virtualslot |
Redirect the request to SVTK_Renderer::OnViewCubeAxes
References GetRenderer(), SVTK_Renderer::OnViewCubeAxes(), and Repaint().
|
slot |
Modify view parameters
References SVTK_ViewParameterDlg::addObserver(), and myViewParameterDlg.
|
virtualslot |
Redirect the request to SVTK_Renderer::OnViewTrihedron
References GetRenderer(), Repaint(), and SVTK_Renderer::SetTrihedronVisibility().
void SVTK_ViewWindow::PopInteractorStyle | ( | ) |
Redirect the request to SVTK_RenderWindowInteractor::PopInteractorStyle
References GetInteractor(), and SVTK_RenderWindowInteractor::PopInteractorStyle().
|
staticprotected |
Processes events
References emitTransformed().
void SVTK_ViewWindow::PushInteractorStyle | ( | vtkInteractorStyle * | theStyle | ) |
Redirect the request to SVTK_RenderWindowInteractor::PushInteractorStyle
References GetInteractor(), and SVTK_RenderWindowInteractor::PushInteractorStyle().
|
virtual |
QImage, containing all scene rendering in window
References dumpViewContent(), and myDumpImage.
|
virtual |
Redirect the request to SVTK_Renderer::RemoveActor
References actorRemoved(), GetRenderer(), myDefaultInteractorStyle, myKeyFreeInteractorStyle, SVTK_Renderer::RemoveActor(), and Repaint().
|
virtual |
Updates current viewer
References getInteractor(), GetInteractor(), GetRenderer(), SVTK_Renderer::OnAdjustTrihedron(), and SVTK_InteractorStyle::OnTimer().
|
signal |
Selection_Mode SVTK_ViewWindow::SelectionMode | ( | ) | const |
References GetSelector(), and SVTK_Selector::SelectionMode().
|
virtual |
Sets anaglyph filter
theFilter | - anaglyph filter |
References getRenderWindow(), GreenMagenta, RedCyan, and YellowBlue.
|
virtual |
Sets background data
bgData | - new background data |
References aTexture, VTKViewer_Texture::Centered, Qtx::CenterTexture, Qtx::BackgroundData::color(), Qtx::ColorBackground, Qtx::CustomGradientBackground, getRenderer(), Qtx::BackgroundData::gradient(), Qtx::BackgroundData::isTextureShown(), Qtx::BackgroundData::isValid(), Qtx::BackgroundData::mode(), myBackground, VTKViewer_Texture::New(), VTKViewer_OpenGLRenderer::SetGradientType(), VTKViewer_Texture::SetPosition(), Qtx::SimpleGradientBackground, VTKViewer_Texture::Stretched, Qtx::StretchTexture, Qtx::BackgroundData::texture(), VTKViewer_Texture::Tiled, and Qtx::TileTexture.
|
virtual |
Sets background color [obsolete]
color | - new background color |
References background(), setBackground(), and Qtx::BackgroundData::setColor().
|
protected |
References myEventDispatcher.
Sets incremental speed
theValue | - new incremental speed |
theMode | - modification mode |
References GetInteractorStyle().
|
virtual |
Sets actual interaction style
theStyle | - type of interaction style ( 0 - standard, 1 - keyboard free ) |
References onSwitchInteractionStyle().
|
virtual |
Set preselection mode.
theMode | the mode to set (standard, dynamic or disabled) |
References onSwitchPreSelectionMode().
|
virtual |
Redirect the request to SVTK_Renderer::SetSelectionProp
References myView, and SVTK_View::SetPreselectionProp().
|
virtual |
Sets projection mode
theMode | - projection mode ( 0 - orthogonal, 1 - perspective, 2 - stereo ) |
References QtxActionMgr::action(), action(), getRenderWindow(), isOpenGlStereoSupport(), myModel, onProjectionMode(), onStereoMode(), Parallel, ParallelModeId, Projection, SVTK_Viewer::projectionMode(), ProjectionModeId, Stereo, StereoModeId, SwitchZoomingStyleId, SUIT_ViewWindow::toolMgr(), and SUIT_MessageBox::warning().
|
virtual |
Set support quad-buffered stereo
theEnable | - enable/disable support quad-buffered stereo |
References getRenderWindow().
|
virtual |
Redirect the request to SVTK_Renderer::SetScale
References GetRenderer(), Repaint(), SVTK_Renderer::SetScale(), and transformed().
|
virtual |
Enables/disables selection.
theEnable | if true - selection will be enabled |
References EnableSelectionId, getAction(), getRenderer(), GetSelector(), PreselectionId, QtxActionGroup::setEnabled(), and SVTK_Selector::SetSelectionEnabled().
|
virtual |
Change selection mode
theMode | - new selection mode |
References GetSelector(), and SVTK_Selector::SetSelectionMode().
|
virtual |
Redirect the request to SVTK_Renderer::SetSelectionProp
References myView, and SVTK_View::SetSelectionProp().
|
virtual |
Redirect the request to SVTK_Renderer::SetSelectionTolerance
References myView, and SVTK_View::SetSelectionTolerance().
|
virtual |
Sets spacemouse buttons for the functions
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.
|
virtual |
Set visibility status of the static trihedron
References myAxesWidget, and salomevtk::vtkPVAxesWidget::SetEnabled().
|
virtual |
Sets stereo type
theType | - stereo type |
References Anaglyph, Checkerboard, CrystalEyes, Dresden, getRenderWindow(), Interlaced, Left, RedBlue, Right, and SplitViewPortHorizontal.
|
virtual |
Sets trihedron size
theSize | - new trihedron size |
theRelative | - trihedron relativeness |
References GetRenderer(), Repaint(), and SVTK_Renderer::SetTrihedronSize().
|
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.
|
virtual |
Sets actual zooming style
theStyle | - type of zooming style ( 0 - standard, 1 - advanced (at cursor) ) |
References onSwitchZoomingStyle().
|
signal |
|
virtualslot |
Custom show event handler
References Show().
|
virtualslot |
References doSetVisualParameters(), and getVisualParameters().
|
protectedslot |
Synchronize views. This implementation synchronizes camera propreties.
References SUIT_ViewWindow::cameraProperties(), cameraProperties(), SUIT_CameraProperties::getAxialScale(), SUIT_CameraProperties::getFocalPoint(), SUIT_CameraProperties::getMappingScale(), SUIT_CameraProperties::getPosition(), SUIT_CameraProperties::getProjection(), getRenderer(), GetRenderer(), SUIT_CameraProperties::getViewAngle(), SUIT_CameraProperties::getViewUp(), SUIT_CameraProperties::PrjPerspective, Repaint(), SVTK_Renderer::SetScale(), and SUIT_ViewWindow::updateSyncViews().
|
signal |
|
virtual |
Unhilights all objects in viewer
References myView, and SVTK_View::unHighlightAll().
|
protected |
|
protected |
|
protected |
|
protected |
|
private |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |