Introduce SALOME way of user interaction. More...
#include <SVTK_InteractorStyle.h>

Public Types | |
| typedef boost::shared_ptr < SVTK_SelectionEvent > | PSelectionEvent |
Public Member Functions | |
| vtkTypeMacro (SVTK_InteractorStyle, vtkInteractorStyle) | |
| void | SetTDxStyle (vtkTDxInteractorStyle *) |
| virtual SVTK_SelectionEvent * | GetSelectionEvent () |
| Generate special SVTK_SelectionEvent. | |
| virtual SVTK_SelectionEvent * | GetSelectionEventFlipY () |
| Generate special SVTK_SelectionEvent with flipped Y coordinate. | |
| virtual void | SetInteractor (vtkRenderWindowInteractor *) |
| Redefined in order to add an observer (callback) for custom event (space mouse event) | |
| virtual void | Render () |
| To invoke #vtkRenderWindowInteractor::CreateTimer. | |
| virtual void | OnTimer () |
| To implement cached rendering. | |
| virtual void | OnConfigure () |
| To reset reset view. | |
| virtual void | OnMouseMove () |
| To handle mouse move event. | |
| virtual void | OnLeftButtonDown () |
| To handle left mouse button down event (reimplemented from vtkInteractorStyle) | |
| virtual void | OnLeftButtonUp () |
| To handle left mouse button up event (reimplemented from vtkInteractorStyle) | |
| virtual void | OnMiddleButtonDown () |
| To handle middle mouse button down event (reimplemented from vtkInteractorStyle) | |
| virtual void | OnMiddleButtonUp () |
| To handle middle mouse button up event (reimplemented from vtkInteractorStyle) | |
| virtual void | OnRightButtonDown () |
| To handle right mouse button down event (reimplemented from vtkInteractorStyle) | |
| virtual void | OnRightButtonUp () |
| To handle right mouse button up event (reimplemented from vtkInteractorStyle) | |
| virtual void | OnMouseWheelForward () |
| To handle mouse wheel forward event (reimplemented from vtkInteractorStyle) | |
| virtual void | OnMouseWheelBackward () |
| To handle mouse wheel backward event (reimplemented from vtkInteractorStyle) | |
| virtual void | OnChar () |
| To handle keyboard event (reimplemented from vtkInteractorStyle) | |
| void | SetControllerIncrement (SVTK_ControllerIncrement *) |
| To set current increment controller. | |
| void | SetIncrementSpeed (const int, const int=0) |
| To modify current increment controller. | |
| SVTK_ControllerIncrement * | ControllerIncrement () |
| To get current increment controller. | |
| virtual void | OnKeyDown () |
| Redefine vtkInteractorStyle.OnKeyDown. | |
| void | ActionPicking () |
| Provide instructions for Picking. | |
| void | SetControllerOnKeyDown (SVTK_ControllerOnKeyDown *) |
| To set current OnKeyDown controller. | |
| SVTK_ControllerOnKeyDown * | ControllerOnKeyDown () |
| To get current OnKeyDown controller. | |
| SVTK_Selector * | GetSelector () |
| int | CurrentState () const |
| void | SetAdvancedZoomingEnabled (const bool theState) |
| bool | IsAdvancedZoomingEnabled () const |
Static Public Member Functions | |
| static SVTK_InteractorStyle * | New () |
Protected Member Functions | |
| SVTK_InteractorStyle () | |
| ~SVTK_InteractorStyle () | |
| QWidget * | GetRenderWidget () |
| virtual void | OnMouseMove (int ctrl, int shift, int x, int y) |
| virtual void | OnLeftButtonDown (int ctrl, int shift, int x, int y) |
| virtual void | OnLeftButtonUp (int ctrl, int shift, int x, int y) |
| virtual void | OnMiddleButtonDown (int ctrl, int shift, int x, int y) |
| virtual void | OnMiddleButtonUp (int ctrl, int shift, int x, int y) |
| virtual void | OnRightButtonDown (int ctrl, int shift, int x, int y) |
| virtual void | OnRightButtonUp (int ctrl, int shift, int x, int y) |
| void | RotateXY (int dx, int dy) |
| void | PanXY (int x, int y, int oldX, int oldY) |
| void | DollyXY (int dx, int dy) |
| void | SpinXY (int dx, int dy, int oldX, int oldY) |
| void | fitRect (const int left, const int top, const int right, const int bottom) |
| void | Place (const int theX, const int theY) |
| void | TranslateView (int toX, int toY, int fromX, int fromY) |
| void | IncrementalPan (const int incrX, const int incrY) |
| void | IncrementalZoom (const int incr) |
| void | IncrementalRotate (const int incrX, const int incrY) |
| void | startZoom () |
| void | startPan () |
| void | startGlobalPan () |
| void | startRotate () |
| void | startFitArea () |
| void | startSpin () |
| void | startPointSelection () |
| void | startFocalPointSelection () |
| void | loadCursors () |
| void | startOperation (int operation) |
| void | onStartOperation () |
| virtual void | onFinishOperation () |
| void | onOperation (QPoint mousePos) |
| void | onCursorMove (QPoint mousePos) |
| void | setCursor (const int operation) |
| void | onSpaceMouseMove (double *data) |
| virtual void | onSpaceMouseButton (int button) |
| void | DominantCombinedSwitch () |
| void | drawRect () |
| void | endDrawRect () |
| Delete rubber band on the end on the dragging operation. | |
Static Protected Member Functions | |
| static void | ProcessEvents (vtkObject *object, unsigned long event, void *clientData, void *callData) |
Protected Attributes | |
| float | MotionFactor |
| float | RadianToDegree |
| double | myScale |
| QCursor | myDefCursor |
| QCursor | myPanCursor |
| QCursor | myZoomCursor |
| QCursor | myRotateCursor |
| QCursor | mySpinCursor |
| QCursor | myHandCursor |
| QCursor | myGlobalPanCursor |
| QPoint | myPoint |
| QPoint | myOtherPoint |
| bool | myCursorState |
| bool | myShiftState |
| int | ForcedState |
| vtkSmartPointer< SALOME_Actor > | myLastHighlitedActor |
| vtkSmartPointer< SALOME_Actor > | myLastPreHighlitedActor |
| vtkSmartPointer < SVTK_ControllerIncrement > | myControllerIncrement |
| "Increment" controller for pan/rotate/zoom operations | |
| vtkSmartPointer < SVTK_ControllerOnKeyDown > | myControllerOnKeyDown |
| controls the behaviour of KeyDown event in SALOME way | |
| int | mySMDecreaseSpeedBtn |
| int | mySMIncreaseSpeedBtn |
| int | mySMDominantCombinedSwitchBtn |
| vtkSmartPointer < SVTK_GenericRenderWindowInteractor > | myInteractor |
| PSelectionEvent | mySelectionEvent |
| unsigned long | myCurrRotationPointType |
| unsigned long | myPrevRotationPointType |
| unsigned long | myCurrFocalPointType |
| unsigned long | myPrevFocalPointType |
| double | myRotationPointX |
| double | myRotationPointY |
| double | myRotationPointZ |
| vtkSmartPointer< SVTK_Actor > | myHighlightSelectionPointActor |
| vtkSmartPointer< vtkPointPicker > | myPointPicker |
| vtkFloatingPointType | myBBCenter [3] |
| bool | myBBFirstCheck |
| QRubberBand * | myRectBand |
| selection rectangle rubber band | |
| bool | myIsAdvancedZoomingEnabled |
This class defines SALOME way of user interaction for VTK viewer, as well, as introduce a new selection mechanism
| typedef boost::shared_ptr<SVTK_SelectionEvent> SVTK_InteractorStyle.PSelectionEvent |
| SVTK_InteractorStyle::SVTK_InteractorStyle | ( | ) | [protected] |
Constructor
References ForcedState, loadCursors(), MotionFactor, myBBFirstCheck, myControllerIncrement, myControllerOnKeyDown, myCurrFocalPointType, myCurrRotationPointType, myHighlightSelectionPointActor, myPointPicker, myPrevFocalPointType, myPrevRotationPointType, mySMDecreaseSpeedBtn, mySMDominantCombinedSwitchBtn, mySMIncreaseSpeedBtn, ProcessEvents(), RadianToDegree, SALOME_LINE_WIDTH, SALOME_POINT_SIZE, SVTK.SetFocalPointSelected, SVTK.SetRotateGravity, and VTK_INTERACTOR_STYLE_CAMERA_NONE.
| SVTK_InteractorStyle::~SVTK_InteractorStyle | ( | ) | [protected] |
Destructor
References endDrawRect().
| static SVTK_InteractorStyle* SVTK_InteractorStyle.New | ( | ) | [static] |
Reimplemented in SVTK_KeyFreeInteractorStyle.
| SVTK_InteractorStyle.vtkTypeMacro | ( | SVTK_InteractorStyle | , |
| vtkInteractorStyle | |||
| ) |
| void SVTK_InteractorStyle.SetTDxStyle | ( | vtkTDxInteractorStyle * | ) |
| SVTK_SelectionEvent * SVTK_InteractorStyle::GetSelectionEvent | ( | ) | [virtual] |
Generate special SVTK_SelectionEvent
References GetSelector(), mySelectionEvent, and SVTK_Selector.SelectionMode().
| SVTK_SelectionEvent * SVTK_InteractorStyle::GetSelectionEventFlipY | ( | ) | [virtual] |
Generate special SVTK_SelectionEvent with flipped Y coordinate
References GetSelector(), mySelectionEvent, and SVTK_Selector.SelectionMode().
| void SVTK_InteractorStyle::SetInteractor | ( | vtkRenderWindowInteractor * | theInteractor | ) | [virtual] |
Redefined in order to add an observer (callback) for custorm event (space mouse event)
References SVTK.ChangeRotationPoint, SVTK.MinusSpeedIncrementEvent, myInteractor, SVTK.PanDownEvent, SVTK.PanLeftEvent, SVTK.PanRightEvent, SVTK.PanUpEvent, SVTK.PlusSpeedIncrementEvent, SVTK.RotateDownEvent, SVTK.RotateLeftEvent, SVTK.RotateRightEvent, SVTK.RotateUpEvent, SVTK.SetFocalPointGravity, SVTK.SetFocalPointSelected, SVTK.SetRotateGravity, SVTK.SetSMDecreaseSpeedEvent, SVTK.SetSMDominantCombinedSwitchEvent, SVTK.SetSMIncreaseSpeedEvent, SVTK.SetSpeedIncrementEvent, SVTK.SpaceMouseButtonEvent, SVTK.SpaceMouseMoveEvent, SVTK.StartFitArea, SVTK.StartFocalPointSelection, SVTK.StartGlobalPan, SVTK.StartPan, SVTK.StartPointSelection, SVTK.StartRotate, SVTK.StartZoom, SVTK.ZoomInEvent, and SVTK.ZoomOutEvent.
| void SVTK_InteractorStyle::Render | ( | ) | [virtual] |
To invoke #vtkRenderWindowInteractor::CreateTimer
| void SVTK_InteractorStyle::OnTimer | ( | ) | [virtual] |
To implement cached rendering
References SVTK.BBCenterChanged, ComputeBBCenter(), myBBCenter, and myBBFirstCheck.
| void SVTK_InteractorStyle::OnConfigure | ( | ) | [virtual] |
To reset reset view
| void SVTK_InteractorStyle::OnMouseMove | ( | ) | [virtual] |
To handle mouse move event
| void SVTK_InteractorStyle::OnLeftButtonDown | ( | ) | [virtual] |
To handle left mouse button down event (reimplemented from vtkInteractorStyle)
| void SVTK_InteractorStyle::OnLeftButtonUp | ( | ) | [virtual] |
To handle left mouse button up event (reimplemented from vtkInteractorStyle)
| void SVTK_InteractorStyle::OnMiddleButtonDown | ( | ) | [virtual] |
To handle middle mouse button down event (reimplemented from vtkInteractorStyle)
| void SVTK_InteractorStyle::OnMiddleButtonUp | ( | ) | [virtual] |
To handle middle mouse button up event (reimplemented from vtkInteractorStyle)
| void SVTK_InteractorStyle::OnRightButtonDown | ( | ) | [virtual] |
To handle right mouse button down event (reimplemented from vtkInteractorStyle)
| void SVTK_InteractorStyle::OnRightButtonUp | ( | ) | [virtual] |
To handle right mouse button up event (reimplemented from vtkInteractorStyle)
| void SVTK_InteractorStyle::OnMouseWheelForward | ( | ) | [virtual] |
References myOtherPoint.
| void SVTK_InteractorStyle::OnMouseWheelBackward | ( | ) | [virtual] |
References myOtherPoint.
| void SVTK_InteractorStyle::OnChar | ( | ) | [virtual] |
Reimplemented in SVTK_KeyFreeInteractorStyle.
References ControllerIncrement(), SVTK_ControllerIncrement.Decrease(), and SVTK_ControllerIncrement.Increase().
| void SVTK_InteractorStyle::SetControllerIncrement | ( | SVTK_ControllerIncrement * | theController | ) |
To set current increment controller
References myControllerIncrement.
| void SVTK_InteractorStyle::SetIncrementSpeed | ( | const int | theValue, |
| const int | theMode = 0 |
||
| ) |
To modify current increment controller
References test_table.c, New(), SetControllerIncrement(), and SVTK_ControllerIncrement.SetStartValue().
| SVTK_ControllerIncrement * SVTK_InteractorStyle::ControllerIncrement | ( | ) |
To get current increment controller
References myControllerIncrement.
| void SVTK_InteractorStyle::OnKeyDown | ( | ) | [virtual] |
Redefined vtkInteractorStyle.OnKeyDown
References myControllerOnKeyDown.
| void SVTK_InteractorStyle::ActionPicking | ( | ) |
Provide instructions for Picking
References myOtherPoint, myPoint, onFinishOperation(), startOperation(), VTK_INTERACTOR_STYLE_CAMERA_NONE, and VTK_INTERACTOR_STYLE_CAMERA_SELECT.
| void SVTK_InteractorStyle::SetControllerOnKeyDown | ( | SVTK_ControllerOnKeyDown * | theController | ) |
To set current increment controller
References myControllerOnKeyDown.
| SVTK_ControllerOnKeyDown * SVTK_InteractorStyle::ControllerOnKeyDown | ( | ) |
To get current OnKeyDown controller
References myControllerOnKeyDown.
| SVTK_Selector * SVTK_InteractorStyle::GetSelector | ( | ) |
References myInteractor.
| int SVTK_InteractorStyle.CurrentState | ( | ) | const |
| void SVTK_InteractorStyle.SetAdvancedZoomingEnabled | ( | const bool | theState | ) |
| bool SVTK_InteractorStyle.IsAdvancedZoomingEnabled | ( | ) | const |
| QWidget * SVTK_InteractorStyle::GetRenderWidget | ( | ) | [protected] |
References myInteractor.
| virtual void SVTK_InteractorStyle.OnMouseMove | ( | int | ctrl, |
| int | shift, | ||
| int | x, | ||
| int | y | ||
| ) | [protected, virtual] |
| void SVTK_InteractorStyle::OnLeftButtonDown | ( | int | ctrl, |
| int | shift, | ||
| int | x, | ||
| int | y | ||
| ) | [protected, virtual] |
To handle left mouse button down event (reimplemented from vtkInteractorStyle)
Reimplemented in SVTK_KeyFreeInteractorStyle.
References SVTK.FocalPointChanged, ForcedState, GetRenderWidget(), GetSelectionEventFlipY(), GetSelector(), myCurrFocalPointType, myCurrRotationPointType, myDefCursor, myHighlightSelectionPointActor, myOtherPoint, myPoint, myPointPicker, myPrevFocalPointType, myPrevRotationPointType, myShiftState, SVTK_SelectionEvent.myX, SVTK_SelectionEvent.myY, onFinishOperation(), SVTK_Selector.Pick(), SVTK.RotationPointChanged, SVTK.SetFocalPointSelected, SVTK.SetRotateSelected, SVTK.StartFocalPointSelection, startOperation(), SVTK.StartPointSelection, VTK_INTERACTOR_STYLE_CAMERA_NONE, VTK_INTERACTOR_STYLE_CAMERA_SELECT, and VTK_INTERACTOR_STYLE_CAMERA_ZOOM.
| virtual void SVTK_InteractorStyle.OnLeftButtonUp | ( | int | ctrl, |
| int | shift, | ||
| int | x, | ||
| int | y | ||
| ) | [protected, virtual] |
Reimplemented in SVTK_KeyFreeInteractorStyle.
| void SVTK_InteractorStyle::OnMiddleButtonDown | ( | int | ctrl, |
| int | shift, | ||
| int | x, | ||
| int | y | ||
| ) | [protected, virtual] |
To handle middle mouse button down event (reimplemented from vtkInteractorStyle)
Reimplemented in SVTK_KeyFreeInteractorStyle.
References ForcedState, myOtherPoint, myPoint, myShiftState, onFinishOperation(), startOperation(), VTK_INTERACTOR_STYLE_CAMERA_NONE, and VTK_INTERACTOR_STYLE_CAMERA_PAN.
| virtual void SVTK_InteractorStyle.OnMiddleButtonUp | ( | int | ctrl, |
| int | shift, | ||
| int | x, | ||
| int | y | ||
| ) | [protected, virtual] |
Reimplemented in SVTK_KeyFreeInteractorStyle.
| void SVTK_InteractorStyle::OnRightButtonDown | ( | int | ctrl, |
| int | shift, | ||
| int | x, | ||
| int | y | ||
| ) | [protected, virtual] |
To handle right mouse button down event (reimplemented from vtkInteractorStyle)
References ForcedState, myOtherPoint, myPoint, myShiftState, onFinishOperation(), startOperation(), VTK_INTERACTOR_STYLE_CAMERA_NONE, and VTK_INTERACTOR_STYLE_CAMERA_ROTATE.
| virtual void SVTK_InteractorStyle.OnRightButtonUp | ( | int | ctrl, |
| int | shift, | ||
| int | x, | ||
| int | y | ||
| ) | [protected, virtual] |
| void SVTK_InteractorStyle::RotateXY | ( | int | dx, |
| int | dy | ||
| ) | [protected] |
| void SVTK_InteractorStyle::PanXY | ( | int | x, |
| int | y, | ||
| int | oldX, | ||
| int | oldY | ||
| ) | [protected] |
References Render(), and TranslateView().
| void SVTK_InteractorStyle::DollyXY | ( | int | dx, |
| int | dy | ||
| ) | [protected] |
References IsAdvancedZoomingEnabled(), MotionFactor, myOtherPoint, Render(), and TranslateView().
| void SVTK_InteractorStyle::SpinXY | ( | int | dx, |
| int | dy, | ||
| int | oldX, | ||
| int | oldY | ||
| ) | [protected] |
References RadianToDegree, and Render().
| void SVTK_InteractorStyle::fitRect | ( | const int | left, |
| const int | top, | ||
| const int | right, | ||
| const int | bottom | ||
| ) | [protected] |
Fits viewer contents to rect
References Render(), and TranslateView().
| void SVTK_InteractorStyle::Place | ( | const int | theX, |
| const int | theY | ||
| ) | [protected] |
Called on finsh GlobalPan operation
References myScale, Render(), and TranslateView().
| void SVTK_InteractorStyle::TranslateView | ( | int | toX, |
| int | toY, | ||
| int | fromX, | ||
| int | fromY | ||
| ) | [protected] |
Translates view from Point to Point
| void SVTK_InteractorStyle::IncrementalPan | ( | const int | incrX, |
| const int | incrY | ||
| ) | [protected] |
References PanXY().
| void SVTK_InteractorStyle::IncrementalZoom | ( | const int | incr | ) | [protected] |
References DollyXY().
| void SVTK_InteractorStyle::IncrementalRotate | ( | const int | incrX, |
| const int | incrY | ||
| ) | [protected] |
References RotateXY().
| void SVTK_InteractorStyle::ProcessEvents | ( | vtkObject * | object, |
| unsigned long | event, | ||
| void * | clientData, | ||
| void * | callData | ||
| ) | [static, protected] |
Main process event method (reimplemented from vtkInteractorStyle)
References SVTK.BBCenterChanged, SVTK.ChangeRotationPoint, ComputeBBCenter(), ControllerIncrement(), SVTK_ControllerIncrement.Current(), SVTK.FocalPointChanged, SVTK.MinusSpeedIncrementEvent, SVTK.PanDownEvent, SVTK.PanLeftEvent, SVTK.PanRightEvent, SVTK.PanUpEvent, SVTK.PlusSpeedIncrementEvent, SVTK.RotateDownEvent, SVTK.RotateLeftEvent, SVTK.RotateRightEvent, SVTK.RotateUpEvent, SVTK.SetFocalPointGravity, SVTK.SetFocalPointSelected, SVTK.SetRotateGravity, SVTK.SetRotateSelected, SVTK.SetSMDecreaseSpeedEvent, SVTK.SetSMDominantCombinedSwitchEvent, SVTK.SetSMIncreaseSpeedEvent, SVTK.SetSpeedIncrementEvent, SVTK.SpaceMouseButtonEvent, SVTK.SpaceMouseMoveEvent, SVTK.StartFitArea, SVTK.StartFocalPointSelection, SVTK.StartGlobalPan, SVTK.StartPan, SVTK.StartPointSelection, SVTK.StartRotate, SVTK.StartZoom, SVTK.ZoomInEvent, and SVTK.ZoomOutEvent.
| void SVTK_InteractorStyle::startZoom | ( | ) | [protected] |
Starts Zoom operation (e.g. through menu command)
References ForcedState, onFinishOperation(), setCursor(), startOperation(), VTK_INTERACTOR_STYLE_CAMERA_NONE, and VTK_INTERACTOR_STYLE_CAMERA_ZOOM.
| void SVTK_InteractorStyle::startPan | ( | ) | [protected] |
Starts Pan operation (e.g. through menu command)
References ForcedState, onFinishOperation(), setCursor(), startOperation(), VTK_INTERACTOR_STYLE_CAMERA_NONE, and VTK_INTERACTOR_STYLE_CAMERA_PAN.
| void SVTK_InteractorStyle::startGlobalPan | ( | ) | [protected] |
Starts Global Panning operation (e.g. through menu command)
References ForcedState, myScale, onFinishOperation(), Render(), setCursor(), startOperation(), VTK_INTERACTOR_STYLE_CAMERA_GLOBAL_PAN, and VTK_INTERACTOR_STYLE_CAMERA_NONE.
| void SVTK_InteractorStyle::startRotate | ( | ) | [protected] |
Starts Rotate operation (e.g. through menu command)
References ForcedState, onFinishOperation(), setCursor(), startOperation(), VTK_INTERACTOR_STYLE_CAMERA_NONE, and VTK_INTERACTOR_STYLE_CAMERA_ROTATE.
| void SVTK_InteractorStyle::startFitArea | ( | ) | [protected] |
Starts Fit Area operation (e.g. through menu command)
References ForcedState, onFinishOperation(), setCursor(), startOperation(), VTK_INTERACTOR_STYLE_CAMERA_FIT, and VTK_INTERACTOR_STYLE_CAMERA_NONE.
| void SVTK_InteractorStyle::startSpin | ( | ) | [protected] |
Starts Spin operation (e.g. through menu command)
References ForcedState, onFinishOperation(), setCursor(), startOperation(), VTK_INTERACTOR_STYLE_CAMERA_NONE, and VTK_INTERACTOR_STYLE_CAMERA_SPIN.
| void SVTK_InteractorStyle::startPointSelection | ( | ) | [protected] |
Set rotation point selected by user
References myCurrRotationPointType, myHighlightSelectionPointActor, setCursor(), SVTK.StartPointSelection, and VTK_INTERACTOR_STYLE_CAMERA_NONE.
| void SVTK_InteractorStyle::startFocalPointSelection | ( | ) | [protected] |
Set focal point selected by user
References myCurrFocalPointType, myHighlightSelectionPointActor, setCursor(), SVTK.StartFocalPointSelection, and VTK_INTERACTOR_STYLE_CAMERA_NONE.
| void SVTK_InteractorStyle::loadCursors | ( | ) | [protected] |
loads cursors for viewer operations - zoom, pan, etc...
References imageRotateCursor, imageZoomCursor, myCursorState, myDefCursor, myGlobalPanCursor, myHandCursor, myPanCursor, myRotateCursor, mySpinCursor, and myZoomCursor.
| void SVTK_InteractorStyle::startOperation | ( | int | operation | ) | [protected] |
Starts viewer operation (!internal usage!)
References ForcedState, onStartOperation(), setCursor(), VTK_INTERACTOR_STYLE_CAMERA_FIT, VTK_INTERACTOR_STYLE_CAMERA_GLOBAL_PAN, VTK_INTERACTOR_STYLE_CAMERA_NONE, VTK_INTERACTOR_STYLE_CAMERA_PAN, VTK_INTERACTOR_STYLE_CAMERA_ROTATE, VTK_INTERACTOR_STYLE_CAMERA_SELECT, VTK_INTERACTOR_STYLE_CAMERA_SPIN, and VTK_INTERACTOR_STYLE_CAMERA_ZOOM.
| void SVTK_InteractorStyle::onStartOperation | ( | ) | [protected] |
Called when viewer operation started (!put necessary initialization here!)
References drawRect(), GetRenderWidget(), VTK_INTERACTOR_STYLE_CAMERA_FIT, VTK_INTERACTOR_STYLE_CAMERA_GLOBAL_PAN, VTK_INTERACTOR_STYLE_CAMERA_PAN, VTK_INTERACTOR_STYLE_CAMERA_ROTATE, VTK_INTERACTOR_STYLE_CAMERA_SELECT, VTK_INTERACTOR_STYLE_CAMERA_SPIN, and VTK_INTERACTOR_STYLE_CAMERA_ZOOM.
| void SVTK_InteractorStyle::onFinishOperation | ( | ) | [protected, virtual] |
Called when viewer operation finished (!put necessary post-processing here!)
References SVTK_Selector.ClearIObjects(), endDrawRect(), SVTK_Selector.EndPickCallback(), fitRect(), VTK.ActorCollectionCopy.GetActors(), GetRenderWidget(), GetSelectionEventFlipY(), GetSelector(), SVTK_SelectionEvent.myIsRectangle, myLastHighlitedActor, myOtherPoint, myPoint, myShiftState, SVTK_SelectionEvent.myX, SVTK_SelectionEvent.myY, SVTK_Selector.Pick(), Place(), Render(), SVTK_Selector.StartPickCallback(), VTK_INTERACTOR_STYLE_CAMERA_FIT, VTK_INTERACTOR_STYLE_CAMERA_GLOBAL_PAN, VTK_INTERACTOR_STYLE_CAMERA_PAN, VTK_INTERACTOR_STYLE_CAMERA_ROTATE, VTK_INTERACTOR_STYLE_CAMERA_SELECT, VTK_INTERACTOR_STYLE_CAMERA_SPIN, and VTK_INTERACTOR_STYLE_CAMERA_ZOOM.
| void SVTK_InteractorStyle::onOperation | ( | QPoint | mousePos | ) | [protected] |
Called during viewer operation when user moves mouse (!put necessary processing here!)
References DollyXY(), drawRect(), GetRenderWidget(), myCursorState, myOtherPoint, myPoint, PanXY(), RotateXY(), setCursor(), SpinXY(), VTK_INTERACTOR_STYLE_CAMERA_FIT, VTK_INTERACTOR_STYLE_CAMERA_GLOBAL_PAN, VTK_INTERACTOR_STYLE_CAMERA_PAN, VTK_INTERACTOR_STYLE_CAMERA_ROTATE, VTK_INTERACTOR_STYLE_CAMERA_SELECT, VTK_INTERACTOR_STYLE_CAMERA_SPIN, and VTK_INTERACTOR_STYLE_CAMERA_ZOOM.
| void SVTK_InteractorStyle::onCursorMove | ( | QPoint | mousePos | ) | [protected] |
Called when user moves mouse inside viewer window and there is no active viewer operation (!put necessary processing here!)
References GetSelectionEventFlipY(), GetSelector(), myCurrFocalPointType, myCurrRotationPointType, myHighlightSelectionPointActor, myLastPreHighlitedActor, myPointPicker, SVTK_SelectionEvent.myX, SVTK_SelectionEvent.myY, SVTK_Selector.Pick(), Render(), SVTK.StartFocalPointSelection, and SVTK.StartPointSelection.
| void SVTK_InteractorStyle::setCursor | ( | const int | operation | ) | [protected] |
Sets proper cursor for window when viewer operation is activated
References GetRenderWidget(), myCurrFocalPointType, myCurrRotationPointType, myCursorState, myDefCursor, myGlobalPanCursor, myHandCursor, myPanCursor, myRotateCursor, mySpinCursor, myZoomCursor, SVTK.StartFocalPointSelection, SVTK.StartPointSelection, VTK_INTERACTOR_STYLE_CAMERA_FIT, VTK_INTERACTOR_STYLE_CAMERA_GLOBAL_PAN, VTK_INTERACTOR_STYLE_CAMERA_NONE, VTK_INTERACTOR_STYLE_CAMERA_PAN, VTK_INTERACTOR_STYLE_CAMERA_ROTATE, VTK_INTERACTOR_STYLE_CAMERA_SELECT, VTK_INTERACTOR_STYLE_CAMERA_SPIN, and VTK_INTERACTOR_STYLE_CAMERA_ZOOM.
| void SVTK_InteractorStyle::onSpaceMouseMove | ( | double * | data | ) | [protected] |
References IncrementalPan(), IncrementalRotate(), and IncrementalZoom().
| void SVTK_InteractorStyle::onSpaceMouseButton | ( | int | button | ) | [protected, virtual] |
| void SVTK_InteractorStyle::DominantCombinedSwitch | ( | ) | [protected] |
| void SVTK_InteractorStyle::drawRect | ( | ) | [protected] |
Draws rectangle by starting and current points
References GetRenderWidget(), SUIT_Tools.makeRect(), myOtherPoint, myPoint, myRectBand, and Plot2d.Rectangle.
| void SVTK_InteractorStyle::endDrawRect | ( | ) | [protected] |
References myRectBand.
float SVTK_InteractorStyle.MotionFactor [protected] |
float SVTK_InteractorStyle.RadianToDegree [protected] |
double SVTK_InteractorStyle.myScale [protected] |
QCursor SVTK_InteractorStyle.myDefCursor [protected] |
QCursor SVTK_InteractorStyle.myPanCursor [protected] |
QCursor SVTK_InteractorStyle.myZoomCursor [protected] |
QCursor SVTK_InteractorStyle.myRotateCursor [protected] |
QCursor SVTK_InteractorStyle.mySpinCursor [protected] |
QCursor SVTK_InteractorStyle.myHandCursor [protected] |
QCursor SVTK_InteractorStyle.myGlobalPanCursor [protected] |
QPoint SVTK_InteractorStyle.myPoint [protected] |
QPoint SVTK_InteractorStyle.myOtherPoint [protected] |
bool SVTK_InteractorStyle.myCursorState [protected] |
bool SVTK_InteractorStyle.myShiftState [protected] |
int SVTK_InteractorStyle.ForcedState [protected] |
vtkSmartPointer<SALOME_Actor> SVTK_InteractorStyle.myLastHighlitedActor [protected] |
vtkSmartPointer<SALOME_Actor> SVTK_InteractorStyle.myLastPreHighlitedActor [protected] |
vtkSmartPointer<SVTK_ControllerIncrement> SVTK_InteractorStyle.myControllerIncrement [protected] |
vtkSmartPointer<SVTK_ControllerOnKeyDown> SVTK_InteractorStyle.myControllerOnKeyDown [protected] |
int SVTK_InteractorStyle.mySMDecreaseSpeedBtn [protected] |
int SVTK_InteractorStyle.mySMIncreaseSpeedBtn [protected] |
int SVTK_InteractorStyle.mySMDominantCombinedSwitchBtn [protected] |
vtkSmartPointer<SVTK_GenericRenderWindowInteractor> SVTK_InteractorStyle.myInteractor [protected] |
PSelectionEvent SVTK_InteractorStyle.mySelectionEvent [protected] |
unsigned long SVTK_InteractorStyle.myCurrRotationPointType [protected] |
unsigned long SVTK_InteractorStyle.myPrevRotationPointType [protected] |
unsigned long SVTK_InteractorStyle.myCurrFocalPointType [protected] |
unsigned long SVTK_InteractorStyle.myPrevFocalPointType [protected] |
double SVTK_InteractorStyle.myRotationPointX [protected] |
double SVTK_InteractorStyle.myRotationPointY [protected] |
double SVTK_InteractorStyle.myRotationPointZ [protected] |
vtkSmartPointer<SVTK_Actor> SVTK_InteractorStyle.myHighlightSelectionPointActor [protected] |
vtkSmartPointer<vtkPointPicker> SVTK_InteractorStyle.myPointPicker [protected] |
vtkFloatingPointType SVTK_InteractorStyle.myBBCenter[3] [protected] |
bool SVTK_InteractorStyle.myBBFirstCheck [protected] |
QRubberBand* SVTK_InteractorStyle.myRectBand [protected] |
bool SVTK_InteractorStyle.myIsAdvancedZoomingEnabled [protected] |