#include <VTKViewer_ViewWindow.h>

Public Slots | |
| void | onFrontView () |
| void | onBackView () |
| void | onTopView () |
| void | onBottomView () |
| void | onLeftView () |
| void | onRightView () |
| void | onClockWiseView () |
| Rotate view 90 degrees clockwise. More... | |
| void | onAntiClockWiseView () |
| Rotate view 90 degrees conterclockwise. More... | |
| void | onResetView () |
| void | onFitAll () |
| void | onFitSelection () |
| void | activateZoom () |
| void | activateWindowFit () |
| void | activateRotation () |
| void | activatePanning () |
| void | activateGlobalPanning () |
| void | onTrihedronShow () |
Public Slots inherited from SUIT_ViewWindow | |
| virtual void | onDumpView () |
Protected Slots | |
| void | onKeyPressed (QKeyEvent *event) |
| void | onKeyReleased (QKeyEvent *event) |
| void | onMousePressed (QMouseEvent *event) |
| void | onMouseDoubleClicked (QMouseEvent *event) |
| void | onMouseReleased (QMouseEvent *event) |
| void | onMouseMoving (QMouseEvent *event) |
Protected Slots inherited from SUIT_ViewWindow | |
| void | updateSyncViews () |
| void | onSynchronizeView (bool) |
| virtual void | synchronize (SUIT_ViewWindow *) |
| void | emitViewModified () |
Protected Member Functions | |
| QImage | dumpView () |
Protected Member Functions inherited from SUIT_ViewWindow | |
| void | closeEvent (QCloseEvent *) |
| virtual void | contextMenuEvent (QContextMenuEvent *) |
| virtual QString | filter () const |
| virtual bool | action (const int) |
| virtual bool | dumpViewToFormat (const QImage &, const QString &fileName, const QString &format) |
| virtual QAction * | synchronizeAction () |
Private Types | |
| enum | { DumpId, FitAllId, FitRectId, FitSelectionId, ZoomId, PanId, GlobalPanId, RotationId, FrontId, BackId, TopId, BottomId, LeftId, RightId, ClockWiseId, AntiClockWiseId, ResetId, TrihedronShowId } |
| typedef QMap< int, QtxAction * > | ActionsMap |
Private Member Functions | |
| void | InsertActor (VTKViewer_Actor *theActor, bool theMoveInternalActors=false) |
| void | MoveActor (VTKViewer_Actor *theActor) |
| void | createActions () |
| void | createToolBar () |
Private Attributes | |
| VTKViewer_Viewer * | myModel |
| vtkRenderer * | myRenderer |
| VTKViewer_RenderWindow * | myRenderWindow |
| VTKViewer_RenderWindowInteractor * | myRWInteractor |
| VTKViewer_Trihedron * | myTrihedron |
| VTKViewer_Transform * | myTransform |
| QToolBar * | myToolBar |
| ActionsMap | myActionsMap |
| double | myCurScale |
| Qtx::BackgroundData | myBackground |
Friends | |
| class | VTKViewer_RenderWindowInteractor |
Additional Inherited Members | |
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 *) |
Static Protected Member Functions inherited from SUIT_ViewWindow | |
| static void | synchronizeView (SUIT_ViewWindow *viewWindow, int id) |
Protected Attributes inherited from SUIT_ViewWindow | |
| SUIT_Desktop * | myDesktop |
| SUIT_ViewManager * | myManager |
|
private |
|
private |
| VTKViewer_ViewWindow::VTKViewer_ViewWindow | ( | SUIT_Desktop * | theDesktop, |
| VTKViewer_Viewer * | theModel, | ||
| VTKViewer_InteractorStyle * | iStyle = 0, |
||
| VTKViewer_RenderWindowInteractor * | rw = 0 |
||
| ) |
Construction
References VTKViewer_Trihedron::AddToRender(), SUIT_ViewWindow::contextMenuRequested(), createActions(), createToolBar(), VTKViewer_RenderWindow::getRenderWindow(), VTKViewer_RenderWindowInteractor::Initialize(), myModel, myRenderer, myRenderWindow, myRWInteractor, myToolBar, myTransform, myTrihedron, VTKViewer_Transform::New(), VTKViewer_OpenGLRenderer::New(), VTKViewer_RenderWindowInteractor::New(), VTKViewer_InteractorStyle::New(), VTKViewer_Trihedron::New(), onKeyPressed(), onKeyReleased(), onMouseDoubleClicked(), onMouseMoving(), onMousePressed(), onMouseReleased(), onResetView(), setBackground(), VTKViewer_InteractorStyle::setGUIWindow(), VTKViewer_RenderWindowInteractor::SetInteractorStyle(), and VTKViewer_InteractorStyle::setTriedron().
|
virtual |
Destructor.
References myRenderer, myRWInteractor, myTransform, and myTrihedron.
|
slot |
Activate global panning.
References VTKViewer_RenderWindowInteractor::GetInteractorStyle(), myRWInteractor, and VTKViewer_InteractorStyle::startGlobalPan().
|
slot |
Activates 'panning' transformation
References VTKViewer_RenderWindowInteractor::GetInteractorStyle(), myRWInteractor, and VTKViewer_InteractorStyle::startPan().
|
slot |
Activates 'rotation' transformation
References VTKViewer_RenderWindowInteractor::GetInteractorStyle(), myRWInteractor, and VTKViewer_InteractorStyle::startRotate().
|
slot |
Activates 'fit area' transformation
References VTKViewer_RenderWindowInteractor::GetInteractorStyle(), myRWInteractor, and VTKViewer_InteractorStyle::startFitArea().
|
slot |
Activates 'zooming' transformation
References VTKViewer_RenderWindowInteractor::GetInteractorStyle(), myRWInteractor, and VTKViewer_InteractorStyle::startZoom().
| void VTKViewer_ViewWindow::AddActor | ( | VTKViewer_Actor * | theActor, |
| bool | theUpdate = false |
||
| ) |
Add actor.Repaint window if theUpdate is true.
References InsertActor(), and Repaint().
| Qtx::BackgroundData VTKViewer_ViewWindow::background | ( | ) | const |
Returns background of the viewport
References myBackground.
| QColor VTKViewer_ViewWindow::backgroundColor | ( | ) | const |
Returns background color of the viewport [obsolete]
References background(), and Qtx::BackgroundData::color().
|
private |
Create actions:
References activateGlobalPanning(), activatePanning(), activateRotation(), activateWindowFit(), activateZoom(), AntiClockWiseId, BackId, BottomId, ClockWiseId, DumpId, FitAllId, FitRectId, FitSelectionId, FrontId, GlobalPanId, LeftId, QtxResourceMgr::loadPixmap(), myActionsMap, onAntiClockWiseView(), onBackView(), onBottomView(), onClockWiseView(), SUIT_ViewWindow::onDumpView(), onFitAll(), onFitSelection(), onFrontView(), onLeftView(), onResetView(), onRightView(), onTopView(), onTrihedronShow(), PanId, ResetId, SUIT_Session::resourceMgr(), RightId, RotationId, SUIT_Session::session(), TopId, TrihedronShowId, and ZoomId.
|
private |
Create tool bar.
References AntiClockWiseId, BackId, BottomId, ClockWiseId, DumpId, FitAllId, FitRectId, FitSelectionId, FrontId, GlobalPanId, QtxActionSet::insertAction(), LeftId, myActionsMap, myToolBar, PanId, ResetId, RightId, RotationId, TopId, TrihedronShowId, and ZoomId.
|
protectedvirtual |
|
inline |
Gets renderer.
|
inline |
Gets render window.
|
inline |
Gets render window interactor.
| void VTKViewer_ViewWindow::GetScale | ( | double | theScale[3] | ) |
Get scale of transformation filter.
References myTransform.
|
inline |
Gets tool bar.
|
virtual |
The method returns the visual parameters of this view as a formated string
Reimplemented from SUIT_ViewWindow.
References GetScale(), and myRenderer.
|
private |
Insert actor to renderer and transformation filter. *Move Internal actors, if theMoveInternalActors is true.
References VTKViewer_Actor::AddToRender(), VTKViewer_RenderWindowInteractor::MoveInternalActors(), myRenderer, myRWInteractor, myTransform, and VTKViewer_Actor::SetTransform().
| bool VTKViewer_ViewWindow::isTrihedronDisplayed | ( | ) |
Checks: is trihedron displayed.
References VTKViewer_Trihedron::eOn, VTKViewer_Trihedron::GetVisibility(), and myTrihedron.
|
private |
References InsertActor(), and RemoveActor().
| void VTKViewer_ViewWindow::onAdjustTrihedron | ( | ) |
Calculation trihedron size.
References ComputeVisiblePropBounds(), VTKViewer_Trihedron::GetSize(), VTKViewer_Trihedron::GetVisibleActorCount(), isTrihedronDisplayed(), myRenderer, myTrihedron, ResetCameraClippingRange(), VTKViewer_Trihedron::SetSize(), VTKViewer_Trihedron::VisibilityOff(), and VTKViewer_Trihedron::VisibilityOn().
|
slot |
References myRenderer, and Repaint().
|
slot |
On back view slot.
References myRenderer, and onFitAll().
|
slot |
On bottom view slot.
References myRenderer, and onFitAll().
|
slot |
References myRenderer, and Repaint().
|
slot |
On fit all slot.
References VTKViewer_RenderWindowInteractor::GetInteractorStyle(), myRWInteractor, Repaint(), and VTKViewer_InteractorStyle::ViewFitAll().
|
slot |
On fit selection slot.
References VTKViewer_RenderWindowInteractor::GetInteractorStyle(), myRWInteractor, Repaint(), and VTKViewer_InteractorStyle::ViewFitSelection().
|
slot |
On front view event.
References myRenderer, and onFitAll().
|
protectedslot |
Emit key pressed.
References SUIT_ViewWindow::keyPressed().
|
protectedslot |
Emit key released.
References SUIT_ViewWindow::keyReleased().
|
slot |
On left view slot.
References myRenderer, and onFitAll().
|
protectedslot |
Emit mouse double clicked.
References SUIT_ViewWindow::mouseDoubleClicked().
|
protectedslot |
Emit mouse moving.
References SUIT_ViewWindow::mouseMoving().
|
protectedslot |
Emit key pressed.
References SUIT_ViewWindow::mousePressed().
|
protectedslot |
Emit mouse released.
References SUIT_ViewWindow::mouseReleased().
|
slot |
On reset view slot.
References VTKViewer_Trihedron::eOnlyLineOn, isTrihedronDisplayed(), myRenderer, myTrihedron, Repaint(), ResetCamera(), VTKViewer_Trihedron::SetVisibility(), VTKViewer_Trihedron::VisibilityOff(), and VTKViewer_Trihedron::VisibilityOn().
|
slot |
On right view slot.
References myRenderer, and onFitAll().
|
slot |
On back view slot.
References myRenderer, and onFitAll().
|
slot |
On trihedron show slot.
References isTrihedronDisplayed(), myRenderWindow, myTrihedron, VTKViewer_Trihedron::VisibilityOff(), and VTKViewer_Trihedron::VisibilityOn().
| void VTKViewer_ViewWindow::RemoveActor | ( | VTKViewer_Actor * | theActor, |
| bool | theUpdate = false |
||
| ) |
Remove theActor from renderer and pepaint, if theUpdate is true.
References myRenderer, VTKViewer_Actor::RemoveFromRender(), and Repaint().
| void VTKViewer_ViewWindow::Repaint | ( | bool | theUpdateTrihedron = true | ) |
Repaint window. If theUpdateTrihedron is true - recalculate trihedron.
References myRenderWindow, and onAdjustTrihedron().
| void VTKViewer_ViewWindow::setBackground | ( | const Qtx::BackgroundData & | bgData | ) |
Set background of the viewport
References aTexture, 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(), Qtx::SimpleGradientBackground, Qtx::StretchTexture, Qtx::BackgroundData::texture(), and Qtx::TileTexture.
| void VTKViewer_ViewWindow::setBackgroundColor | ( | const QColor & | c | ) |
Set background color of the viewport [obsolete]
References background(), setBackground(), and Qtx::BackgroundData::setColor().
| void VTKViewer_ViewWindow::SetScale | ( | double | theScale[3] | ) |
Set scale of transformation filter and repaint window.
References myRWInteractor, myTransform, Repaint(), and VTKViewer_Transform::SetMatrixScale().
|
virtual |
The method restors visual parameters of this view from a formated string
Reimplemented from SUIT_ViewWindow.
References myRenderer, myRWInteractor, myTransform, and VTKViewer_Transform::SetMatrixScale().
|
friend |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |