28 #ifndef __VTKViewer_InteractorStyle_h
29 #define __VTKViewer_InteractorStyle_h
31 #include <vtkInteractorStyle.h>
35 class vtkTDxInteractorStyle;
53 #define VTK_INTERACTOR_STYLE_CAMERA_NONE 0
54 #define VTK_INTERACTOR_STYLE_CAMERA_ROTATE 1
55 #define VTK_INTERACTOR_STYLE_CAMERA_PAN 2
56 #define VTK_INTERACTOR_STYLE_CAMERA_ZOOM 3
57 #define VTK_INTERACTOR_STYLE_CAMERA_SPIN 4
58 #define VTK_INTERACTOR_STYLE_CAMERA_FIT 5
59 #define VTK_INTERACTOR_STYLE_CAMERA_SELECT 6
60 #define VTK_INTERACTOR_STYLE_CAMERA_GLOBAL_PAN 7
63 #pragma warning ( disable:4251 )
79 void setGUIWindow(
QWidget* theWindow);
82 void setPreselectionProp(
const double& theRed = 0,
const double& theGreen = 1,
83 const double& theBlue = 1,
const int& theWidth = 5);
86 void OnMouseMove (
int ctrl,
int shift,
int x,
int y);
87 void OnLeftButtonDown(
int ctrl,
int shift,
int x,
int y);
88 void OnLeftButtonUp (
int ctrl,
int shift,
int x,
int y);
89 void OnMiddleButtonDown(
int ctrl,
int shift,
int x,
int y);
90 void OnMiddleButtonUp (
int ctrl,
int shift,
int x,
int y);
91 void OnRightButtonDown(
int ctrl,
int shift,
int x,
int y);
92 void OnRightButtonUp (
int ctrl,
int shift,
int x,
int y);
94 void OnSelectionModeChanged();
97 void ViewFitSelection();
101 bool IsFilterPresent(
const int );
102 void RemoveFilter(
const int );
104 const vtkIdType theId,
105 const bool theIsNode =
false );
107 void IncrementalPan (
const int incrX,
const int incrY );
108 void IncrementalZoom (
const int incr );
109 void IncrementalRotate(
const int incrX,
const int incrY );
119 void RotateXY(
int dx,
int dy);
120 void PanXY(
int x,
int y,
int oldX,
int oldY);
121 void DollyXY(
int dx,
int dy);
122 void SpinXY(
int dx,
int dy,
int oldX,
int oldY);
123 void fitRect(
const int left,
const int top,
const int right,
const int bottom);
124 void Place(
const int theX,
const int theY);
125 void TranslateView(
int toX,
int toY,
int fromX,
int fromY);
126 bool IsInRect(vtkActor* theActor,
127 const int left,
const int top,
128 const int right,
const int bottom);
129 bool IsInRect(vtkCell* theCell,
130 const int left,
const int top,
131 const int right,
const int bottom);
132 bool IsInRect(
double* thePoint,
133 const int left,
const int top,
134 const int right,
const int bottom);
151 void startGlobalPan();
156 bool needsRedrawing();
160 void startOperation(
int operation);
161 virtual void onStartOperation();
162 virtual void onFinishOperation();
163 virtual void onOperation(QPoint mousePos);
164 virtual void onCursorMove(QPoint );
165 virtual void setCursor(
const int operation);
202 #pragma warning ( default:4251 )
Handle(TDocStd_Application) CAF_Application
Get OCAF application.
Definition: CAF_Application.cxx:97
#define VTKVIEWER_EXPORT
Definition: VTKViewer.h:33
For more information see QT documentation.
Definition: SUIT_Application.h:42
Definition: VTKViewer_Actor.h:79
Definition: VTKViewer_Filter.cxx:29
Definition: VTKViewer_InteractorStyle.h:72
vtkIdType myNodeId
Definition: VTKViewer_InteractorStyle.h:145
static VTKViewer_InteractorStyle * New()
VTKViewer_Trihedron * m_Trihedron
Definition: VTKViewer_InteractorStyle.h:186
QPoint myPoint
Definition: VTKViewer_InteractorStyle.h:178
std::map< int, Handle(VTKViewer_Filter) > myFilters
Definition: VTKViewer_InteractorStyle.h:189
QCursor myHandCursor
Definition: VTKViewer_InteractorStyle.h:176
Handle(VTKViewer_Filter) GetFilter(const int)
VTKViewer_RenderWindowInteractor * m_Interactor
Definition: VTKViewer_InteractorStyle.h:184
bool myShiftState
Definition: VTKViewer_InteractorStyle.h:181
vtkIdType myElemId
Definition: VTKViewer_InteractorStyle.h:143
double DeltaElevation
Definition: VTKViewer_InteractorStyle.h:195
VTKViewer_InteractorStyle()
double myScale
Definition: VTKViewer_InteractorStyle.h:139
QCursor mySpinCursor
Definition: VTKViewer_InteractorStyle.h:175
void SetTDxStyle(vtkTDxInteractorStyle *)
Definition: VTKViewer_InteractorStyle.h:155
QCursor myRotateCursor
Definition: VTKViewer_InteractorStyle.h:174
double DeltaAzimuth
Definition: VTKViewer_InteractorStyle.h:196
int ForcedState
Definition: VTKViewer_InteractorStyle.h:182
bool myCursorState
Definition: VTKViewer_InteractorStyle.h:180
double RadianToDegree
Definition: VTKViewer_InteractorStyle.h:138
int myEdgeId
Definition: VTKViewer_InteractorStyle.h:144
VTKViewer_Actor * myPreSelectionActor
Definition: VTKViewer_InteractorStyle.h:141
QWidget * myGUIWindow
Definition: VTKViewer_InteractorStyle.h:187
double MotionFactor
Definition: VTKViewer_InteractorStyle.h:137
QCursor myZoomCursor
Definition: VTKViewer_InteractorStyle.h:173
QCursor myGlobalPanCursor
Definition: VTKViewer_InteractorStyle.h:177
void operator=(const VTKViewer_InteractorStyle &)
Definition: VTKViewer_InteractorStyle.h:117
QRubberBand * myRectBand
selection rectangle rubber band
Definition: VTKViewer_InteractorStyle.h:191
vtkTypeMacro(VTKViewer_InteractorStyle, vtkInteractorStyle) virtual void SetInteractor(vtkRenderWindowInteractor *theInteractor)
QPoint myOtherPoint
Definition: VTKViewer_InteractorStyle.h:179
QCursor myDefCursor
Definition: VTKViewer_InteractorStyle.h:171
int State
Definition: VTKViewer_InteractorStyle.h:136
QCursor myPanCursor
Definition: VTKViewer_InteractorStyle.h:172
VTKViewer_ViewWindow * m_ViewWnd
Definition: VTKViewer_InteractorStyle.h:185
VTKViewer_InteractorStyle(const VTKViewer_InteractorStyle &)
Definition: VTKViewer_InteractorStyle.h:116
int CurrentState() const
Definition: VTKViewer_InteractorStyle.h:111
Definition: VTKViewer_RenderWindowInteractor.h:58
Definition: VTKViewer_Trihedron.h:145
Definition: VTKViewer_ViewWindow.h:47