Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SVTK_KeyFreeInteractorStyle Class Reference

Introduce new style of interaction (keyboard free)

#include <SVTK_KeyFreeInteractorStyle.h>

Inheritance diagram for SVTK_KeyFreeInteractorStyle:
Inheritance graph

Public Member Functions

 vtkTypeMacro (SVTK_KeyFreeInteractorStyle, SVTK_InteractorStyle)
 
- Public Member Functions inherited from SVTK_InteractorStyle
 vtkTypeMacro (SVTK_InteractorStyle, vtkInteractorStyle)
 
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_KeyFreeInteractorStyle
New ()
 
- Static Public Member Functions inherited from SVTK_InteractorStyle
static SVTK_InteractorStyleNew ()
 

Protected Member Functions

 SVTK_KeyFreeInteractorStyle ()
 
 ~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...
 
- 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 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. More...
 
void drawPolygon ()
 
void endDrawPolygon ()
 Delete rubber band on the end on the dragging operation. More...
 

Protected Attributes

bool myIsLeftButtonDown
 
bool myIsRightButtonDown
 
- 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_ControllerIncrement
myControllerIncrement
 "Increment" controller for pan/rotate/zoom operations More...
 
vtkSmartPointer
< SVTK_ControllerOnKeyDown
myControllerOnKeyDown
 controls the behaviour of KeyDown event in SALOME way More...
 
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_ActormyHighlightSelectionPointActor
 
vtkSmartPointer< vtkPointPicker > myPointPicker
 
double myBBCenter [3]
 
bool myBBFirstCheck
 
QtxRectRubberBandmyRectBand
 selection rectangle rubber band More...
 
QtxPolyRubberBandmyPolygonBand
 polygonal selection More...
 
QVector< QPoint > myPolygonPoints
 
PolygonState myPoligonState
 
bool myIsAdvancedZoomingEnabled
 

Additional Inherited Members

- Public Types inherited from SVTK_InteractorStyle
typedef boost::shared_ptr
< SVTK_SelectionEvent
PSelectionEvent
 
- Static Protected Member Functions inherited from SVTK_InteractorStyle
static void ProcessEvents (vtkObject *object, unsigned long event, void *clientData, void *callData)
 

Constructor & Destructor Documentation

SVTK_KeyFreeInteractorStyle::SVTK_KeyFreeInteractorStyle ( )
protected
SVTK_KeyFreeInteractorStyle::~SVTK_KeyFreeInteractorStyle ( )
protected
SVTK_KeyFreeInteractorStyle::SVTK_KeyFreeInteractorStyle ( const SVTK_KeyFreeInteractorStyle )
protected

Member Function Documentation

static SVTK_KeyFreeInteractorStyle* SVTK_KeyFreeInteractorStyle::New ( )
static
void SVTK_KeyFreeInteractorStyle::OnChar ( )
protectedvirtual
void SVTK_KeyFreeInteractorStyle::OnLeftButtonUp ( int  ctrl,
int  shift,
int  x,
int  y 
)
protectedvirtual
void SVTK_KeyFreeInteractorStyle::OnMiddleButtonUp ( int  ctrl,
int  shift,
int  x,
int  y 
)
protectedvirtual
void SVTK_KeyFreeInteractorStyle::OnMouseMove ( int  ctrl,
int  shift,
int  x,
int  y 
)
protectedvirtual
void SVTK_KeyFreeInteractorStyle::OnRightButtonUp ( int  ctrl,
int  shift,
int  x,
int  y 
)
protectedvirtual
void SVTK_KeyFreeInteractorStyle::operator= ( const SVTK_KeyFreeInteractorStyle )
protected
SVTK_KeyFreeInteractorStyle::vtkTypeMacro ( SVTK_KeyFreeInteractorStyle  ,
SVTK_InteractorStyle   
)

Member Data Documentation

bool SVTK_KeyFreeInteractorStyle::myIsLeftButtonDown
protected
bool SVTK_KeyFreeInteractorStyle::myIsRightButtonDown
protected

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