23 #ifndef VTKVIEWER_RENDERWINDOWINTERACTOR_H
24 #define VTKVIEWER_RENDERWINDOWINTERACTOR_H
34 class QContextMenuEvent;
37 #include <TColStd_MapOfInteger.hxx>
38 #include <TColStd_MapIteratorOfMapOfInteger.hxx>
39 #include <TColStd_IndexedMapOfInteger.hxx>
44 class vtkActorCollection;
54 #include <vtkVersion.h>
55 #include <vtkRenderWindowInteractor.h>
66 void PrintSelf(ostream& os, vtkIndent indent);
68 virtual
void Initialize();
74 return myInteractorStyle;
79 virtual void Enable();
82 virtual void UpdateSize(
int x,
int y);
86 virtual int CreateTimer(
int ) ;
87 virtual int DestroyTimer() ;
110 bool update =
true );
114 bool update =
true );
118 bool update =
true );
120 void unHighlightSubSelection();
121 bool unHighlightAll();
124 void SetSelectionProp(
const double& theRed = 1,
const double& theGreen = 1,
125 const double& theBlue = 0,
const int& theWidth = 5);
126 void SetSelectionTolerance(
const double& theTolNodes = 0.025,
const double& theTolCell = 0.001);
131 int GetDisplayMode();
132 void SetDisplayMode(
int);
137 void ChangeRepresentationToWireframe();
138 void ChangeRepresentationToSurface();
139 void ChangeRepresentationToSurfaceWithEdges();
144 void ChangeRepresentationToWireframe(vtkActorCollection* ListofActors);
145 void ChangeRepresentationToSurface(vtkActorCollection* ListofActors);
146 void ChangeRepresentationToSurfaceWithEdges(vtkActorCollection* ListofActors);
153 void RemoveAll(
const bool immediatly );
162 vtkRenderer* GetRenderer();
189 TUpdateActor theFun,
bool hilight,
bool update);
193 TUpdateActor theFun);
206 void MoveInternalActors();
213 int PositionBeforeStereo[2];
216 void MouseMove(QMouseEvent *event) ;
217 void LeftButtonPressed(
const QMouseEvent *event) ;
218 void LeftButtonReleased(
const QMouseEvent *event) ;
219 void MiddleButtonPressed(
const QMouseEvent *event) ;
220 void MiddleButtonReleased(
const QMouseEvent *event) ;
221 void RightButtonPressed(
const QMouseEvent *event) ;
222 void RightButtonReleased(
const QMouseEvent *event) ;
223 void ButtonPressed(
const QMouseEvent *event) ;
224 void ButtonReleased(
const QMouseEvent *event) ;
225 void KeyPressed(QKeyEvent *event) ;
@ Disable
Definition: SVTK_InteractorStyle.h:150
@ Start
Definition: SVTK_InteractorStyle.h:150
#define VTKVIEWER_EXPORT
Definition: VTKViewer.h:33
NCollection_IndexedMap< vtkIdType, vtkIdHasher > TIndexedMapOfVtkId
Definition: VTKViewer_Actor.h:415
For more information see QT documentation.
Definition: SUIT_Application.h:42
Definition: VTKViewer_Actor.h:79
Definition: VTKViewer_InteractorStyle.h:72
Definition: VTKViewer_RenderWindowInteractor.h:58
VTKViewer_Actor * myEdgeActor
Definition: VTKViewer_RenderWindowInteractor.h:204
vtkCellPicker * myCellPicker
Definition: VTKViewer_RenderWindowInteractor.h:209
bool highlightCell(const TIndexedMapOfVtkId &MapIndex, VTKViewer_Actor *theMapActor, bool hilight, bool update=true)
void RenderWindowModified()
vtkPointPicker * myPointPicker
Definition: VTKViewer_RenderWindowInteractor.h:210
VTKViewer_Actor * myCellActor
Definition: VTKViewer_RenderWindowInteractor.h:205
void setCellData(const int &, VTKViewer_Actor *, VTKViewer_Actor *)
Definition: VTKViewer_RenderWindowInteractor.h:166
QTimer * mTimer
Definition: VTKViewer_RenderWindowInteractor.h:198
vtkTypeMacro(VTKViewer_RenderWindowInteractor, vtkRenderWindowInteractor) void PrintSelf(ostream &os
vtkPicker * myBasicPicker
Definition: VTKViewer_RenderWindowInteractor.h:208
int myDisplayMode
Definition: VTKViewer_RenderWindowInteractor.h:200
double myTolNodes
Selection node tolerance.
Definition: VTKViewer_RenderWindowInteractor.h:239
double myTolItems
Selection cell tolerance.
Definition: VTKViewer_RenderWindowInteractor.h:241
VTKViewer_Actor * myPointActor
Definition: VTKViewer_RenderWindowInteractor.h:203
bool highlightEdge(const TIndexedMapOfVtkId &MapIndex, VTKViewer_Actor *theMapActor, bool hilight, bool update=true)
bool highlightPoint(const TIndexedMapOfVtkId &MapIndex, VTKViewer_Actor *theMapActor, bool hilight, bool update=true)
VTKViewer_ViewWindow * myViewWnd
Definition: VTKViewer_RenderWindowInteractor.h:237
virtual void TerminateApp(void)
Definition: VTKViewer_RenderWindowInteractor.h:95
void setEdgeData(const int &, VTKViewer_Actor *, const int &, VTKViewer_Actor *)
Definition: VTKViewer_RenderWindowInteractor.h:169
VTKViewer_InteractorStyle * myInteractorStyle
Definition: VTKViewer_RenderWindowInteractor.h:185
void setPointData(const int &, VTKViewer_Actor *, VTKViewer_Actor *)
Definition: VTKViewer_RenderWindowInteractor.h:173
void contextMenuRequested(QContextMenuEvent *e)
Definition: VTKViewer_RenderWindow.h:33
Definition: VTKViewer_ViewWindow.h:47