26 #ifndef RENDERERWIDGET_H 27 #define RENDERERWIDGET_H 33 #include <QVTKWidget.h> 34 #include <vtkSmartPointer.h> 35 #include <vtkInteractorStyle.h> 39 class vtkInteractorStyle;
44 class vtkScalarBarActor;
45 class vtkEventQtSlotConnect;
46 class vtkCallbackCommand;
49 class vtkAnnotatedCubeActor;
50 class vtkScalarBarWidget;
51 class vtkUnsignedCharArray;
56 class GeometricObject;
66 void PrintSelf(ostream& os, vtkIndent indent);
139 enum CameraOrientation {
228 void setAreaPicking(
bool areaPicking);
239 void setPicker(vtkSmartPointer<vtkAbstractPropPicker> woodyWood);
245 void pickActor(
int x,
int y);
248 void keyPressEvent(QKeyEvent* e);
261 void screenshot(QString filename);
270 void setBackfaceCulling(
bool);
273 bool getBackfaceCulling()
const;
282 void setLightFollowCamera(
bool);
285 bool getLightFollowCamera()
const;
288 void setPointSize(
double size);
291 double getPointSize()
const;
294 void rotateCamera(
double angle,
int axe);
303 void resetCamera(
double *bounds);
306 void getCameraSettings(
double *position,
double *focalPoint,
double *viewUp);
309 void setActiveCamera( vtkCamera * cam );
312 vtkCamera * getActiveCamera();
315 void getMouse3DCoordinates(
double & x,
double & y,
double & z);
318 void setBackgroundColor(
double,
double,
double);
321 void getBackgroundColor(
double&,
double&,
double&);
324 bool getGradientBackground();
327 void setGradientBackground(
bool);
330 void toogle3DRedBlue();
333 void toggleCopyright(
bool);
336 void toggleAxes(
bool);
342 void toggleOrientationDecorations(
bool);
345 void setOrientationDecorationsLetters(QString letters[4]);
349 void setColorScale(
bool);
352 bool getColorScale()
const;
358 void setColorScaleMinMax(
double m,
double M);
363 void setColorScaleTitle(QString t);
366 void computeVisiblePropBounds(
double *bounds);
381 void addProp(vtkSmartPointer<vtkProp> p,
bool refresh=
false);
384 bool containsProp(vtkSmartPointer<vtkProp>);
390 void removeProp(vtkSmartPointer<vtkProp> p,
bool refresh=
false);
393 void actorTransform(vtkSmartPointer<vtkActor>,
double *,
int ,
double **,
double *,
double *);
423 void actorPicked(vtkSmartPointer<vtkPicker>);
426 void rightButtonPressed();
433 virtual void mousePressEvent(QMouseEvent* event);
436 virtual void mouseReleaseEvent(QMouseEvent* event);
439 virtual void mouseMoveEvent(QMouseEvent* event);
462 void resetCameraSettings();
489 static void divertionCallback(vtkObject * caller,
unsigned long eid,
void *clientdata,
void *calldata) {};
505 static void buildScreenshotMap();
532 vtkSmartPointer<vtkAxesActor>
axes;
537 vtkSmartPointer<vtkActor2D> orientationDecorationActors[4];
538 vtkSmartPointer<vtkTextMapper> orientationDecorationsTextMapper[4];
546 #endif //RENDERERWIDGET_H
void PrintSelf(ostream &os, vtkIndent indent)
Definition: RendererWidget.cpp:357
vtkUnsignedCharArray * PixelArray
Definition: RendererWidget.h:90
void SetAreaPicking(bool b)
Definition: RendererWidget.cpp:115
virtual void OnLeftButtonDown()
Definition: RendererWidget.cpp:120
vtkTypeMacro(vtkInteractorStylePick, vtkInteractorStyle)
Definition: Action.cpp:40
virtual void OnMouseMove()
Definition: RendererWidget.cpp:156
#define CAMITK_API
Definition: CamiTKAPI.h:49
static vtkInteractorStylePick * New()
void RedrawRubberBand()
Definition: RendererWidget.cpp:206
bool AreaPicking
Definition: RendererWidget.h:92
int Moving
Definition: RendererWidget.h:88
int StartPosition[2]
Definition: RendererWidget.h:85
Interactor used when we are in picking mode.
Definition: RendererWidget.h:59
virtual void OnLeftButtonUp()
Definition: RendererWidget.cpp:190
vtkInteractorStylePick()
Definition: RendererWidget.cpp:101
int EndPosition[2]
Definition: RendererWidget.h:86
~vtkInteractorStylePick()
Definition: RendererWidget.cpp:110
virtual void Pick()
Definition: RendererWidget.cpp:277