Version: 9.15.0
SVTK_KeyFreeInteractorStyle Class Reference

Introduce new style of interaction (keyboard free) More...

#include <SVTK_KeyFreeInteractorStyle.h>

Inheritance diagram for SVTK_KeyFreeInteractorStyle:
Inheritance graph

Public Member Functions

vtkTypeMacro(SVTK_KeyFreeInteractorStyle, SVTK_InteractorStyle) protected ~SVTK_KeyFreeInteractorStyle ()
 
 SVTK_KeyFreeInteractorStyle (const SVTK_KeyFreeInteractorStyle &)
 
void operator= (const SVTK_KeyFreeInteractorStyle &)
 
virtual void OnMouseMove (int ctrl, int shift, int x, int y)
 Redefine SVTK_InteractorStyle::OnMouseMove. More...
 
virtual void OnLeftButtonDown (int ctrl, int shift, int x, int y)
 Redefine SVTK_InteractorStyle::OnLeftButtonDown. More...
 
virtual void OnMiddleButtonDown (int ctrl, int shift, int x, int y)
 Redefine SVTK_InteractorStyle::OnMiddleButtonDown. More...
 
virtual void OnRightButtonDown (int ctrl, int shift, int x, int y)
 Redefine SVTK_InteractorStyle::OnRightButtonDown. More...
 
virtual void OnLeftButtonUp (int ctrl, int shift, int x, int y)
 Redefine SVTK_InteractorStyle::OnLeftButtonUp. More...
 
virtual void OnMiddleButtonUp (int ctrl, int shift, int x, int y)
 Redefine SVTK_InteractorStyle::OnMiddleButtonUp. More...
 
virtual void OnRightButtonUp (int ctrl, int shift, int x, int y)
 Redefine SVTK_InteractorStyle::OnRightButtonUp. More...
 
virtual void OnChar ()
 Redefine SVTK_InteractorStyle::OnChar. More...
 
- Public Member Functions inherited from SVTK_InteractorStyle
vtkTypeMacro(SVTK_InteractorStyle, vtkInteractorStyle) typedef boost void SetTDxStyle (vtkTDxInteractorStyle *)
 
virtual SVTK_SelectionEventGetSelectionEvent ()
 Generate special SVTK_SelectionEvent. More...
 
virtual SVTK_SelectionEventGetSelectionEventFlipY ()
 Generate special SVTK_SelectionEvent with flipped Y coordinate. More...
 
virtual void SetInteractor (vtkRenderWindowInteractor *)
 Redefined in order to add an observer (callback) for custom event (space mouse event) More...
 
virtual void Render ()
 To invoke #vtkRenderWindowInteractor::CreateTimer. More...
 
virtual void OnTimer ()
 To implement cached rendering. More...
 
virtual void OnConfigure ()
 To reset reset view. More...
 
virtual void OnMouseMove ()
 To handle mouse move event. More...
 
virtual void OnLeftButtonDown ()
 To handle left mouse button down event (reimplemented from vtkInteractorStyle) More...
 
virtual void OnLeftButtonUp ()
 To handle left mouse button up event (reimplemented from vtkInteractorStyle) More...
 
virtual void OnMiddleButtonDown ()
 To handle middle mouse button down event (reimplemented from vtkInteractorStyle) More...
 
virtual void OnMiddleButtonUp ()
 To handle middle mouse button up event (reimplemented from vtkInteractorStyle) More...
 
virtual void OnRightButtonDown ()
 To handle right mouse button down event (reimplemented from vtkInteractorStyle) More...
 
virtual void OnRightButtonUp ()
 To handle right mouse button up event (reimplemented from vtkInteractorStyle) More...
 
virtual void OnMouseWheelForward ()
 To handle mouse wheel forward event (reimplemented from vtkInteractorStyle) More...
 
virtual void OnMouseWheelBackward ()
 To handle mouse wheel backward event (reimplemented from vtkInteractorStyle) More...
 
virtual void OnMouseButtonDoubleClick ()
 To handle mouse button double click event. More...
 
void SetControllerIncrement (SVTK_ControllerIncrement *)
 To set current increment controller. More...
 
void SetIncrementSpeed (const int, const int=0)
 To modify current increment controller. More...
 
SVTK_ControllerIncrementControllerIncrement ()
 To get current increment controller. More...
 
virtual void OnKeyDown ()
 Redefine vtkInteractorStyle::OnKeyDown. More...
 
void ActionPicking ()
 Provide instructions for Picking. More...
 
void SetControllerOnKeyDown (SVTK_ControllerOnKeyDown *)
 To set current OnKeyDown controller. More...
 
SVTK_ControllerOnKeyDownControllerOnKeyDown ()
 To get current OnKeyDown controller. More...
 
SVTK_SelectorGetSelector ()
 
int CurrentState () const
 
PolygonState GetPolygonState () const
 
void SetPolygonState (const PolygonState &thePolygonState)
 
void SetAdvancedZoomingEnabled (const bool theState)
 
bool IsAdvancedZoomingEnabled () const
 
void FreeActors ()
 releaze myLastHighlitedActor and myLastPreHighlitedActor More...
 

Static Public Member Functions

static SVTK_KeyFreeInteractorStyleNew ()
 
- Static Public Member Functions inherited from SVTK_InteractorStyle
static SVTK_InteractorStyleNew ()
 

Public Attributes

bool myIsLeftButtonDown
 
bool myIsRightButtonDown
 

Additional Inherited Members

- Protected Member Functions inherited from SVTK_InteractorStyle
 SVTK_InteractorStyle ()
 
 ~SVTK_InteractorStyle ()
 
QWidgetGetRenderWidget ()
 
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 InteractiveSelection ()
 
void startZoom ()
 
void startPan ()
 
void startGlobalPan ()
 
void startRotate ()
 
void startFitArea ()
 
void startSpin ()
 
void startPointSelection ()
 
void startFocalPointSelection ()
 
void startInteractiveSelection ()
 
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. More...
 
void drawPolygon ()
 
void endDrawPolygon ()
 Delete rubber band on the end on the dragging operation. More...
 
- Static Protected Member Functions inherited from SVTK_InteractorStyle
static void ProcessEvents (vtkObject *object, unsigned long event, void *clientData, void *callData)
 
- Protected Attributes inherited from SVTK_InteractorStyle
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_ActormyLastHighlitedActor
 
vtkSmartPointer< SALOME_ActormyLastPreHighlitedActor
 
vtkSmartPointer< SVTK_ControllerIncrementmyControllerIncrement
 "Increment" controller for pan/rotate/zoom operations More...
 
vtkSmartPointer< SVTK_ControllerOnKeyDownmyControllerOnKeyDown
 controls the behaviour of KeyDown event in SALOME way More...
 
int mySMDecreaseSpeedBtn
 
int mySMIncreaseSpeedBtn
 
int mySMDominantCombinedSwitchBtn
 
vtkSmartPointer< SVTK_GenericRenderWindowInteractormyInteractor
 
PSelectionEvent mySelectionEvent
 
unsigned long myCurrRotationPointType
 
unsigned long myPrevRotationPointType
 
unsigned long myCurrFocalPointType
 
unsigned long myPrevFocalPointType
 
double myRotationPointX
 
double myRotationPointY
 
double myRotationPointZ
 
vtkSmartPointer< SVTK_ActormyHighlightSelectionPointActor
 
vtkSmartPointer< vtkPointPicker > myPointPicker
 
double myBBCenter [3]
 
double myInteractivePoint [3]
 
bool myBBFirstCheck
 
QtxRectRubberBandmyRectBand
 selection rectangle rubber band More...
 
QtxPolyRubberBandmyPolygonBand
 polygonal selection More...
 
QVector< QPoint > myPolygonPoints
 
PolygonState myPoligonState
 
bool myIsAdvancedZoomingEnabled
 

Detailed Description

Introduce new style of interaction (keyboard free)

Constructor & Destructor Documentation

◆ ~SVTK_KeyFreeInteractorStyle()

SVTK_KeyFreeInteractorStyle::~SVTK_KeyFreeInteractorStyle ( )

◆ SVTK_KeyFreeInteractorStyle()

SVTK_KeyFreeInteractorStyle::SVTK_KeyFreeInteractorStyle ( const SVTK_KeyFreeInteractorStyle )

Member Function Documentation

◆ New()

static SVTK_KeyFreeInteractorStyle* SVTK_KeyFreeInteractorStyle::New ( )
static

◆ OnChar()

void SVTK_KeyFreeInteractorStyle::OnChar ( )
virtual

◆ OnLeftButtonDown()

◆ OnLeftButtonUp()

void SVTK_KeyFreeInteractorStyle::OnLeftButtonUp ( int  ctrl,
int  shift,
int  x,
int  y 
)
virtual

◆ OnMiddleButtonDown()

◆ OnMiddleButtonUp()

void SVTK_KeyFreeInteractorStyle::OnMiddleButtonUp ( int  ctrl,
int  shift,
int  x,
int  y 
)
virtual

◆ OnMouseMove()

void SVTK_KeyFreeInteractorStyle::OnMouseMove ( int  ctrl,
int  shift,
int  x,
int  y 
)
virtual

◆ OnRightButtonDown()

◆ OnRightButtonUp()

void SVTK_KeyFreeInteractorStyle::OnRightButtonUp ( int  ctrl,
int  shift,
int  x,
int  y 
)
virtual

◆ operator=()

void SVTK_KeyFreeInteractorStyle::operator= ( const SVTK_KeyFreeInteractorStyle )

Member Data Documentation

◆ myIsLeftButtonDown

bool SVTK_KeyFreeInteractorStyle::myIsLeftButtonDown

◆ myIsRightButtonDown

bool SVTK_KeyFreeInteractorStyle::myIsRightButtonDown

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