Version: 6.3.1
Public Slots | Signals | Public Member Functions | Protected Types | Protected Slots | Protected Member Functions | Protected Attributes | Private Attributes

SVTK_ViewWindow Class Reference

Define a container for SALOME VTK view window.

#include <SVTK_ViewWindow.h>

Inheritance diagram for SVTK_ViewWindow:
Inheritance graph

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 ()
void onUpdateRate (bool theIsActivate)
void onNonIsometric (bool theIsActivate)
void onGraduatedAxes (bool theIsActivate)
void activateZoom ()
void activateWindowFit ()
void activateRotation ()
void activatePanning ()
void activateGlobalPanning ()
void onPerspectiveMode ()
void activateProjectionMode (int)
void activateSetFocalPointGravity ()
void activateSetFocalPointSelected ()
void activateStartFocalPointSelection ()
void onViewParameters (bool theIsActivate)
void onSwitchInteractionStyle (bool theOn)
void onSwitchZoomingStyle (bool theOn)
void onStartRecording ()
void onPlayRecording ()
void onPauseRecording ()
void onStopRecording ()
virtual void onFrontView ()
 Redirect the request to #SVTK_Renderer::OnFrontView.
virtual void onBackView ()
 Redirect the request to #SVTK_Renderer::OnBackView.
virtual void onTopView ()
 Redirect the request to #SVTK_Renderer::OnTopView.
virtual void onBottomView ()
 Redirect the request to #SVTK_Renderer::OnBottomView.
virtual void onRightView ()
 Redirect the request to #SVTK_Renderer::OnRightView.
virtual void onLeftView ()
 Redirect the request to #SVTK_Renderer::OnLeftView.
virtual void onClockWiseView ()
 Redirect the request to #SVTK_Renderer::onClockWiseView.
virtual void onAntiClockWiseView ()
 Redirect the request to #SVTK_Renderer::onAntiClockWiseView.
virtual void onResetView ()
 Redirect the request to #SVTK_Renderer::OnResetView.
virtual void onFitAll ()
 Redirect the request to #SVTK_Renderer::OnFitAll.
virtual void onViewTrihedron ()
 Redirect the request to #SVTK_Renderer::OnViewTrihedron.
virtual void onViewCubeAxes ()
 Redirect the request to #SVTK_Renderer::OnViewCubeAxes.
virtual void onAdjustTrihedron ()
 Redirect the request to #SVTK_Renderer::OnAdjustTrihedron.
virtual void onAdjustCubeAxes ()
 Redirect the request to #SVTK_Renderer::OnAdjustCubeAxes.
virtual void onDumpView ()

Signals

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

Public Member Functions

 SVTK_ViewWindow (SUIT_Desktop *theDesktop)
 To construct SVTK_ViewWindow instance.
virtual ~SVTK_ViewWindow ()
virtual QImage dumpView ()
virtual void Initialize (SVTK_ViewModelBase *theModel)
 To initialize SVTK_ViewWindow instance.
SVTK_ViewgetView ()
 Get SVTK_View.
vtkRenderWindow * getRenderWindow ()
 Get #SVTK_MainWindow.
vtkRenderWindowInteractorgetInteractor () const
 Redirect the request to #SVTK_MainWindow::getInteractor.
SVTK_RenderWindowInteractorGetInteractor () const
 Redirect the request to #SVTK_MainWindow::getInteractor.
vtkInteractorStyleGetInteractorStyle () const
void PushInteractorStyle (vtkInteractorStyle *theStyle)
 Redirect the request to #SVTK_RenderWindowInteractor::PushInteractorStyle.
void PopInteractorStyle ()
 Redirect the request to #SVTK_RenderWindowInteractor::PopInteractorStyle.
vtkRenderer * getRenderer () const
 Redirect the request to #SVTK_MainWindow::getRenderer.
SVTK_RendererGetRenderer () const
SVTK_SelectorGetSelector () const
 Redirect the request to #SVTK_MainWindow::GetSelector.
Selection_Mode SelectionMode () const
 Redirect the request to #SVTK_Selector::SelectionMode.
virtual void SetSelectionMode (Selection_Mode theMode)
 Change selection mode.
virtual void setBackgroundColor (const QColor &)
 Redirect the request to #SVTK_MainWindow::SetBackgroundColor.
QColor backgroundColor () const
 Redirect the request to #SVTK_MainWindow::SetBackgroundColor.
bool isTrihedronDisplayed ()
 Redirect the request to #SVTK_Renderer::IsTrihedronDisplayed.
bool isCubeAxesDisplayed ()
 Redirect the request to #SVTK_Renderer::IsCubeAxesDisplayed.
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)
virtual void unHighlightAll ()
 Redirect the request to #SVTK_View::unHighlightAll (to support old code)
bool isInViewer (const Handle(SALOME_InteractiveObject)&theIObject)
 Redirect the request to #SVTK_View::isInViewer (to support old code)
bool isVisible (const Handle(SALOME_InteractiveObject)&theIObject)
 Redirect the request to #SVTK_View::isVisible (to support old code)
 Handle (SALOME_InteractiveObject) FindIObject(const char *theEntry)
 Redirect the request to #SVTK_View::FindIObject (to support old code)
virtual void Display (const Handle(SALOME_InteractiveObject)&theIObject, bool theImmediatly=true)
 Redirect the request to #SVTK_View::Display (to support old code)
virtual void DisplayOnly (const Handle(SALOME_InteractiveObject)&theIObject)
 Redirect the request to #SVTK_View::DisplayOnly (to support old code)
virtual void Erase (const Handle(SALOME_InteractiveObject)&theIObject, bool theImmediatly=true)
 Redirect the request to #SVTK_View::Erase (to support old code)
virtual void DisplayAll ()
 Redirect the request to #SVTK_View::DisplayAll (to support old code)
virtual void EraseAll ()
 Redirect the request to #SVTK_View::EraseAll (to support old code)
virtual void Repaint (bool theUpdateTrihedron=true)
 To repaint the viewer.
virtual void SetScale (double theScale[3])
 Redirect the request to #SVTK_Renderer::SetScale.
virtual void GetScale (double theScale[3])
 Redirect the request to #SVTK_Renderer::GetScale.
virtual void AddActor (VTKViewer_Actor *theActor, bool theIsUpdate=false, bool theIsAdjustActors=true)
 Redirect the request to #SVTK_Renderer::AddActor.
virtual void RemoveActor (VTKViewer_Actor *theActor, bool theIsUpdate=false, bool theIsAdjustActors=true)
 Redirect the request to #SVTK_Renderer::RemoveActor.
virtual void AdjustTrihedrons (const bool theIsForced)
 Redirect the request to #SVTK_Renderer::AdjustActors.
VTKViewer_TrihedronGetTrihedron ()
 Redirect the request to #SVTK_Renderer::GetTrihedron.
SVTK_CubeAxesActor2DGetCubeAxes ()
 Redirect the request to #SVTK_Renderer::GetCubeAxes.
vtkFloatingPointType GetTrihedronSize () const
 Redirect the request to #SVTK_Renderer::GetTrihedronSize.
virtual void SetTrihedronSize (const vtkFloatingPointType, const bool=true)
 Redirect the request to #SVTK_Renderer::SetTrihedronSize.
virtual void SetIncrementalSpeed (const int, const int=0)
 Redirect the request to #SVTK_MainWindow::SetIncrementalSpeed.
virtual void SetProjectionMode (const int)
 Redirect the request to #SVTK_MainWindow::SetProjectionMode.
virtual void SetInteractionStyle (const int)
 Redirect the request to #SVTK_MainWindow::SetInteractionStyle.
virtual void SetZoomingStyle (const int)
 Redirect the request to #SVTK_MainWindow::SetZoomingStyle.
virtual void SetSpacemouseButtons (const int, const int, const int)
 Redirect the request to #SVTK_MainWindow::SetSpacemouseButtons.
virtual void SetSelectionProp (const double &theRed=1, const double &theGreen=1, const double &theBlue=0, const int &theWidth=5)
 Redirect the request to #SVTK_Renderer::SetSelectionProp.
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.
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.
bool IsStaticTrihedronVisible () const
 Get visibility status of the static trihedron.
virtual void SetStaticTrihedronVisible (const bool)
 Set visibility status of the static trihedron.
virtual QString getVisualParameters ()
 Methods to save/restore visual parameters of a view (pan, zoom, etc.)
virtual void setVisualParameters (const QString &parameters)
virtual bool eventFilter (QObject *, QEvent *)
virtual void RefreshDumpImage ()
void InvokeEvent (unsigned long theEvent, void *theCallData)
 To invoke a VTK event on SVTK_RenderWindowInteractor instance.
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)
bool dropDownButtons () const
 Get current buttons mode.

Protected Types

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

Protected Slots

void onKeyPressed (QKeyEvent *event)
void onKeyReleased (QKeyEvent *event)
void onMousePressed (QMouseEvent *event)
void onMouseDoubleClicked (QMouseEvent *event)
void onMouseReleased (QMouseEvent *event)
void onMouseMoving (QMouseEvent *event)

Protected Member Functions

virtual void Initialize (SVTK_View *theView, SVTK_ViewModelBase *theModel)
void doSetVisualParameters (const QString &)
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)
void closeEvent (QCloseEvent *)
virtual void contextMenuEvent (QContextMenuEvent *)

Protected Attributes

SVTK_ViewmyView
SVTK_ViewModelBasemyModel
SVTK_RenderWindowInteractormyInteractor
vtkSmartPointer
< SVTK_InteractorStyle
myDefaultInteractorStyle
vtkSmartPointer
< SVTK_KeyFreeInteractorStyle
myKeyFreeInteractorStyle
QString myVisualParams
vtkSmartPointer< vtkObjectmyEventDispatcher
SVTK_NonIsometricDlgmyNonIsometricDlg
SVTK_UpdateRateDlgmyUpdateRateDlg
SVTK_CubeAxesDlgmyCubeAxesDlg
SVTK_SetRotationPointDlgmySetRotationPointDlg
SVTK_ViewParameterDlgmyViewParameterDlg
QSize myPreRecordingMinSize
QSize myPreRecordingMaxSize
SVTK_RecordermyRecorder
QtxActionmyStartAction
QtxActionmyPlayAction
QtxActionmyPauseAction
QtxActionmyStopAction
int myToolBar
int myRecordingToolBar
vtkPVAxesWidgetmyAxesWidget
SUIT_DesktopmyDesktop
SUIT_ViewManagermyManager

Private Attributes

QImage myDumpImage

Member Enumeration Documentation

anonymous enum [protected]
Enumerator:
DumpId 
FitAllId 
FitRectId 
ZoomId 
PanId 
GlobalPanId 
ChangeRotationPointId 
RotationId 
FrontId 
BackId 
TopId 
BottomId 
LeftId 
RightId 
ClockWiseId 
AntiClockWiseId 
ResetId 
ViewTrihedronId 
NonIsometric 
GraduatedAxes 
UpdateRate 
ParallelModeId 
ProjectionModeId 
ViewParametersId 
SwitchInteractionStyleId 
SwitchZoomingStyleId 
StartRecordingId 
PlayRecordingId 
PauseRecordingId 
StopRecordingId 

Constructor & Destructor Documentation

SVTK_ViewWindow::SVTK_ViewWindow ( SUIT_Desktop theDesktop)

Constructor

References myKeyFreeInteractorStyle, and Window.

SVTK_ViewWindow::~SVTK_ViewWindow ( ) [virtual]

Destructor

References myRecorder.


Member Function Documentation

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

Reimplemented from SUIT_ViewWindow.

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

void SVTK_ViewWindow::Initialize ( SVTK_ViewModelBase theModel) [virtual]

To initialize SVTK_ViewWindow instance

References ChangeRotationPointId, createActions(), createToolBar(), QtxActionToolMgr.createToolBar(), getAction(), SVTK_Renderer.GetDevice(), QVTK_RenderWindowInteractor.GetDevice(), QVTK_RenderWindowInteractor.getRenderWindow(), vtkPVAxesActor.GetXAxisLabelProperty(), vtkPVAxesActor.GetXAxisShaftProperty(), vtkPVAxesActor.GetXAxisTipProperty(), vtkPVAxesActor.GetYAxisLabelProperty(), vtkPVAxesActor.GetYAxisShaftProperty(), vtkPVAxesActor.GetYAxisTipProperty(), vtkPVAxesActor.GetZAxisLabelProperty(), vtkPVAxesActor.GetZAxisShaftProperty(), vtkPVAxesActor.GetZAxisTipProperty(), GraduatedAxes, ViewerTools_CubeAxesDlgBase.initialize(), SVTK_RenderWindowInteractor.Initialize(), SVTK_Renderer.Initialize(), myAxesWidget, myCubeAxesDlg, myDefaultInteractorStyle, myInteractor, myNonIsometricDlg, myRecorder, myRecordingToolBar, mySetRotationPointDlg, myToolBar, myUpdateRateDlg, myView, myViewParameterDlg, vtkPVAxesWidget.New(), SVTK_Recorder.New(), SVTK_InteractorStyle.New(), SVTK_Renderer.New(), SVTK_GenericRenderWindowInteractor.New(), SVTK_Selector.New(), NonIsometric, onResetView(), SVTK_RenderWindowInteractor.PushInteractorStyle(), SUIT_Session.session(), vtkPVAxesWidget.SetEnabled(), SetEventDispatcher(), vtkPVAxesWidget.SetInteractive(), SVTK_Recorder.SetNbFPS(), vtkPVAxesWidget.SetParentRenderer(), SVTK_Recorder.SetProgressiveMode(), SVTK_Recorder.SetQuality(), SVTK_GenericRenderWindowInteractor.SetRenderWidget(), SVTK_Recorder.SetRenderWindow(), SVTK_GenericRenderWindowInteractor.SetSelector(), SVTK_Recorder.SetUseSkippedFrames(), vtkPVAxesWidget.SetViewport(), SUIT_ViewWindow.toolMgr(), UpdateRate, and ViewParametersId.

SVTK_View * SVTK_ViewWindow::getView ( )
Returns:
corresponding view

References myView.

vtkRenderWindow * SVTK_ViewWindow::getRenderWindow ( )

Redirect the request to #SVTK_MainWindow::getRenderWindow

Returns:
corresponding vtk render window

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

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
void SVTK_ViewWindow::PushInteractorStyle ( vtkInteractorStyle theStyle)
void SVTK_ViewWindow::PopInteractorStyle ( )
vtkRenderer * SVTK_ViewWindow::getRenderer ( ) const
Returns:
corresponding vtk renderer

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

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

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

Selection_Mode SVTK_ViewWindow::SelectionMode ( ) const
Returns:
selection mode

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

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::setBackgroundColor ( const QColor &  theColor) [virtual]

Sets background color

Parameters:
color- new background color

References getRenderer().

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

References getRenderer().

bool SVTK_ViewWindow::isTrihedronDisplayed ( )

Redirect the request to #SVTK_Renderer::IsTrihedronDisplayed

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

bool SVTK_ViewWindow::isCubeAxesDisplayed ( )

Redirect the request to #SVTK_Renderer::IsCubeAxesDisplayed

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

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::unHighlightAll ( ) [virtual]

Unhilights all objects in viewer

References myView, and SVTK_View.unHighlightAll().

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

SVTK_ViewWindow.Handle ( SALOME_InteractiveObject  ) const
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::DisplayOnly ( const Handle(SALOME_InteractiveObject)&  theIO) [virtual]

Display only passed object

Parameters:
theIO- object

References SVTK_View.DisplayOnly(), and myView.

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::DisplayAll ( ) [virtual]

Display all objects in view

References SVTK_View.DisplayAll(), and myView.

void SVTK_ViewWindow::EraseAll ( ) [virtual]

Erase all objects in view

References SVTK_View.EraseAll(), and myView.

void SVTK_ViewWindow::Repaint ( bool  theUpdateTrihedron = true) [virtual]
void SVTK_ViewWindow::SetScale ( double  theScale[3]) [virtual]

Redirect the request to #SVTK_Renderer::SetScale

References GetRenderer(), Repaint(), and SVTK_Renderer.SetScale().

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

Redirect the request to #SVTK_Renderer::GetScale

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

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

Redirect the request to #SVTK_Renderer::AddActor

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

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

Redirect the request to #SVTK_Renderer::RemoveActor

References actorRemoved(), GetRenderer(), SVTK_Renderer.RemoveActor(), and Repaint().

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

VTKViewer_Trihedron * SVTK_ViewWindow::GetTrihedron ( )

Redirect the request to #SVTK_Renderer::GetTrihedron

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

SVTK_CubeAxesActor2D * SVTK_ViewWindow::GetCubeAxes ( )

Redirect the request to #SVTK_Renderer::GetCubeAxes

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

vtkFloatingPointType SVTK_ViewWindow::GetTrihedronSize ( ) const
Returns:
trihedron size

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

void SVTK_ViewWindow::SetTrihedronSize ( const vtkFloatingPointType  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::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::SetProjectionMode ( const int  theMode) [virtual]

Sets projection mode

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

References activateProjectionMode().

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::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::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::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::SetPreselectionProp ( const double &  theRed = 0,
const double &  theGreen = 1,
const double &  theBlue = 1,
const int &  theWidth = 5 
) [virtual]

Redirect the request to #SVTK_Renderer::SetSelectionProp

References myView, and SVTK_View.SetPreselectionProp().

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

Redirect the request to #SVTK_Renderer::SetSelectionTolerance

References myView, and SVTK_View.SetSelectionTolerance().

bool SVTK_ViewWindow::IsStaticTrihedronVisible ( ) const

Get visibility status of the static trihedron

References myAxesWidget.

void SVTK_ViewWindow::SetStaticTrihedronVisible ( const bool  theIsVisible) [virtual]

Set visibility status of the static trihedron

References myAxesWidget, and vtkPVAxesWidget.SetEnabled().

QString SVTK_ViewWindow::getVisualParameters ( ) [virtual]

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

Reimplemented from SUIT_ViewWindow.

References GetCubeAxes(), getGradAxisVisualParams(), GetRenderer(), getRenderer(), GetScale(), GetTrihedronSize(), and isTrihedronDisplayed().

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.

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

Delayed setVisualParameters

References doSetVisualParameters(), and myVisualParams.

void SVTK_ViewWindow::RefreshDumpImage ( ) [virtual]

QImage, containing all scene rendering in window

References dumpViewContent(), and myDumpImage.

void SVTK_ViewWindow::InvokeEvent ( unsigned long  theEvent,
void *  theCallData 
)
void SVTK_ViewWindow.Show ( QShowEvent *  ) [signal]
void SVTK_ViewWindow.Hide ( QHideEvent *  ) [signal]
void SVTK_ViewWindow::showEvent ( QShowEvent *  theEvent) [virtual, slot]

Custom show event handler

References Show().

void SVTK_ViewWindow::hideEvent ( QHideEvent *  theEvent) [virtual, slot]

Custom hide event handler

References Hide().

void SVTK_ViewWindow::onSelectionChanged ( ) [virtual, slot]

SLOT: called if selection is changed

References myView, and SVTK_SignalHandler.onSelectionChanged().

void SVTK_ViewWindow::onChangeRotationPoint ( bool  theIsActivate) [slot]
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::activateStartPointSelection ( ) [slot]

Set the point selected by user as a rotation point

References myEventDispatcher, and SVTK.StartPointSelection.

void SVTK_ViewWindow::onUpdateRate ( bool  theIsActivate) [slot]
void SVTK_ViewWindow::onNonIsometric ( bool  theIsActivate) [slot]
void SVTK_ViewWindow::onGraduatedAxes ( bool  theIsActivate) [slot]
void SVTK_ViewWindow::activateZoom ( ) [slot]

Starts zoom transformation

References myEventDispatcher, and SVTK.StartZoom.

void SVTK_ViewWindow::activateWindowFit ( ) [slot]

Starts window fit transformation

References myEventDispatcher, and SVTK.StartFitArea.

void SVTK_ViewWindow::activateRotation ( ) [slot]

Starts rotation transformation

References myEventDispatcher, and SVTK.StartRotate.

void SVTK_ViewWindow::activatePanning ( ) [slot]

Starts panning transformation

References myEventDispatcher, and SVTK.StartPan.

void SVTK_ViewWindow::activateGlobalPanning ( ) [slot]

Starts global panning transformation

References myEventDispatcher, and SVTK.StartGlobalPan.

void SVTK_ViewWindow::onPerspectiveMode ( ) [slot]
void SVTK_ViewWindow::activateProjectionMode ( int  theMode) [slot]
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::activateStartFocalPointSelection ( ) [slot]

Set the point selected by user as a focal point

References myEventDispatcher, and SVTK.StartFocalPointSelection.

void SVTK_ViewWindow::onViewParameters ( bool  theIsActivate) [slot]

Modify view parameters

References SVTK_ViewParameterDlg.addObserver(), and myViewParameterDlg.

void SVTK_ViewWindow::onSwitchInteractionStyle ( bool  theOn) [slot]
void SVTK_ViewWindow::onSwitchZoomingStyle ( bool  theOn) [slot]

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

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

void SVTK_ViewWindow::onStartRecording ( ) [slot]
void SVTK_ViewWindow::onPlayRecording ( ) [slot]
void SVTK_ViewWindow::onPauseRecording ( ) [slot]
void SVTK_ViewWindow::onStopRecording ( ) [slot]
void SVTK_ViewWindow.selectionChanged ( ) [signal]
void SVTK_ViewWindow.actorAdded ( VTKViewer_Actor ) [signal]
void SVTK_ViewWindow.actorRemoved ( VTKViewer_Actor ) [signal]
void SVTK_ViewWindow::onFrontView ( ) [virtual, slot]

Processes transformation "front view"

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

void SVTK_ViewWindow::onBackView ( ) [virtual, slot]

Processes transformation "back view"

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

void SVTK_ViewWindow::onTopView ( ) [virtual, slot]

Processes transformation "top view"

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

void SVTK_ViewWindow::onBottomView ( ) [virtual, slot]

Processes transformation "bottom view"

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

void SVTK_ViewWindow::onRightView ( ) [virtual, slot]

Processes transformation "right view"

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

void SVTK_ViewWindow::onLeftView ( ) [virtual, slot]

Processes transformation "left view"

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

void SVTK_ViewWindow::onClockWiseView ( ) [virtual, slot]

Rotate view 90 degrees clockwise.

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

void SVTK_ViewWindow::onAntiClockWiseView ( ) [virtual, slot]

Rotate view 90 degrees conterclockwise.

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

void SVTK_ViewWindow::onResetView ( ) [virtual, slot]

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

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

void SVTK_ViewWindow::onFitAll ( ) [virtual, slot]

Processes transformation "fit all"

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

void SVTK_ViewWindow::onViewTrihedron ( ) [virtual, slot]

Redirect the request to #SVTK_Renderer::OnViewTrihedron

References GetRenderer(), SVTK_Renderer.OnViewTrihedron(), and Repaint().

void SVTK_ViewWindow::onViewCubeAxes ( ) [virtual, slot]

Redirect the request to #SVTK_Renderer::OnViewCubeAxes

References GetRenderer(), SVTK_Renderer.OnViewCubeAxes(), and Repaint().

void SVTK_ViewWindow::onAdjustTrihedron ( ) [virtual, slot]

Redirect the request to #SVTK_Renderer::OnAdjustTrihedron

References GetRenderer(), and SVTK_Renderer.OnAdjustTrihedron().

void SVTK_ViewWindow::onAdjustCubeAxes ( ) [virtual, slot]

Redirect the request to #SVTK_Renderer::OnAdjustCubeAxes

References GetRenderer(), and SVTK_Renderer.OnAdjustCubeAxes().

void SVTK_ViewWindow::onKeyPressed ( QKeyEvent *  event) [protected, slot]

Emits key pressed

References SUIT_ViewWindow.keyPressed().

void SVTK_ViewWindow::onKeyReleased ( QKeyEvent *  event) [protected, slot]

Emits key released

References SUIT_ViewWindow.keyReleased().

void SVTK_ViewWindow::onMousePressed ( QMouseEvent *  event) [protected, slot]

Emits mouse pressed

References SUIT_ViewWindow.mousePressed().

void SVTK_ViewWindow::onMouseDoubleClicked ( QMouseEvent *  event) [protected, slot]

Emits mouse double clicked

References SUIT_ViewWindow.mouseDoubleClicked().

void SVTK_ViewWindow::onMouseReleased ( QMouseEvent *  event) [protected, slot]

Emits mouse released

References SUIT_ViewWindow.mouseReleased().

void SVTK_ViewWindow::onMouseMoving ( QMouseEvent *  event) [protected, slot]

Emits mouse moving

References SUIT_ViewWindow.mouseMoving().

void SVTK_ViewWindow::Initialize ( SVTK_View theView,
SVTK_ViewModelBase theModel 
) [protected, virtual]
void SVTK_ViewWindow::doSetVisualParameters ( const QString &  parameters) [protected]
void SVTK_ViewWindow::SetEventDispatcher ( vtkObject theDispatcher) [protected]

References myEventDispatcher.

QImage SVTK_ViewWindow::dumpViewContent ( ) [protected]
QString SVTK_ViewWindow::filter ( ) const [protected, virtual]

Reimplemented from SUIT_ViewWindow.

bool SVTK_ViewWindow::dumpViewToFormat ( const QImage &  img,
const QString &  fileName,
const QString &  format 
) [protected, virtual]

Reimplemented from SUIT_ViewWindow.

References Qtx.extension(), and getRenderWindow().

bool SVTK_ViewWindow::action ( const int  accelAction) [protected, virtual]

Performs action

Parameters:
accelAction- action

Reimplemented from SUIT_ViewWindow.

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

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

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

void SVTK_ViewWindow::createToolBar ( ) [protected]
void SVTK_ViewWindow::createActions ( SUIT_ResourceMgr theResourceMgr) [protected]
void SUIT_ViewWindow::setViewManager ( SUIT_ViewManager theManager) [virtual, inherited]

Sets new view manager for window

Parameters:
theManager- new view manager

Reimplemented in OCCViewer_ViewFrame.

References SUIT_ViewWindow.myManager.

SUIT_ViewManager * SUIT_ViewWindow::getViewManager ( ) const [inherited]
Returns:
view manager of window

References SUIT_ViewWindow.myManager.

bool SUIT_ViewWindow::event ( QEvent e) [inherited]
bool SUIT_ViewWindow::dumpViewToFormat ( const QString &  fileName,
const QString &  format 
) [inherited]

Saves scene rendering in window to file

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

References SUIT_ViewWindow.dumpView().

bool SUIT_ViewWindow::onAccelAction ( int  _action) [inherited]

Called by SUIT_Accel.onActivated() when a key accelerator was activated and this window was active

References SUIT_ViewWindow.action().

bool SUIT_ViewWindow::closable ( ) const [inherited]

Returns true if view window can be closed by the user

bool SUIT_ViewWindow::setClosable ( const bool  on) [inherited]

Set / reset "closable" option of the view window

References SUIT_ViewWindow.closable().

void SUIT_ViewWindow::setDestructiveClose ( const bool  on) [inherited]

Set or clear flag Qt.WDestructiveClose

int SUIT_ViewWindow::getId ( ) const [inherited]
Returns:
window unique identifier
QtxActionToolMgr * SUIT_ViewWindow::toolMgr ( ) const [inherited]
Returns:
associated tool bar manager

References SUIT_ViewWindow.myToolMgr.

void SUIT_ViewWindow::setDropDownButtons ( bool  on) [virtual, inherited]
bool SUIT_ViewWindow::dropDownButtons ( ) const [inherited]
Returns:
current buttons mode
See also:
setDropDownButtons()

References SUIT_ViewWindow.myIsDropDown.

void SUIT_ViewWindow::onDumpView ( ) [virtual, slot, inherited]

Post events on dump view.

Reimplemented in OCCViewer_ViewFrame, and Plot2d_ViewWindow.

References DUMP_EVENT.

void SUIT_ViewWindow.tryClosing ( SUIT_ViewWindow ) [signal, inherited]
void SUIT_ViewWindow.closing ( SUIT_ViewWindow ) [signal, inherited]
void SUIT_ViewWindow.mousePressed ( SUIT_ViewWindow ,
QMouseEvent *   
) [signal, inherited]
void SUIT_ViewWindow.mouseReleased ( SUIT_ViewWindow ,
QMouseEvent *   
) [signal, inherited]
void SUIT_ViewWindow.mouseDoubleClicked ( SUIT_ViewWindow ,
QMouseEvent *   
) [signal, inherited]
void SUIT_ViewWindow.mouseMoving ( SUIT_ViewWindow ,
QMouseEvent *   
) [signal, inherited]
void SUIT_ViewWindow.wheeling ( SUIT_ViewWindow ,
QWheelEvent *   
) [signal, inherited]
void SUIT_ViewWindow.keyPressed ( SUIT_ViewWindow ,
QKeyEvent *   
) [signal, inherited]
void SUIT_ViewWindow.keyReleased ( SUIT_ViewWindow ,
QKeyEvent *   
) [signal, inherited]
void SUIT_ViewWindow.contextMenuRequested ( QContextMenuEvent *  e) [signal, inherited]
void SUIT_ViewWindow::closeEvent ( QCloseEvent *  e) [protected, inherited]
void SUIT_ViewWindow::contextMenuEvent ( QContextMenuEvent *  e) [protected, virtual, inherited]

Context menu requested for event e.

References SUIT_ViewWindow.contextMenuRequested().


Field Documentation

QString SVTK_ViewWindow.myVisualParams [protected]
vtkSmartPointer<vtkObject> SVTK_ViewWindow.myEventDispatcher [protected]
int SVTK_ViewWindow.myToolBar [protected]
QImage SVTK_ViewWindow.myDumpImage [private]
SUIT_Desktop* SUIT_ViewWindow.myDesktop [protected, inherited]
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS