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 );
137 enum CameraOrientation {
226 void setAreaPicking(
bool areaPicking);
229 ControlMode getControlMode()
const;
232 void setControlMode(ControlMode mode);
237 void setPicker(vtkSmartPointer<vtkAbstractPropPicker> woodyWood);
243 void pickActor(
int x,
int y);
246 void keyPressEvent(QKeyEvent* e);
250 static const ScreenshotFormatInfo * getScreenshotFormatInfo(
unsigned int);
254 static const ScreenshotFormatInfo * getScreenshotFormatInfo(ScreenshotFormat);
268 void setBackfaceCulling(
bool);
271 bool getBackfaceCulling()
const;
280 void setLightFollowCamera(
bool);
283 bool getLightFollowCamera()
const;
286 void setPointSize(
double size);
289 double getPointSize()
const;
292 void rotateCamera(
double angle,
int axe);
301 void resetCamera(
double *bounds);
304 void getCameraSettings(
double *position,
double *focalPoint,
double *viewUp);
307 void setActiveCamera( vtkCamera * cam );
310 vtkCamera * getActiveCamera();
313 void getMouse3DCoordinates(
double & x,
double & y,
double & z);
316 void setBackgroundColor(
double,
double,
double);
319 void getBackgroundColor(
double&,
double&,
double&);
322 bool getGradientBackground();
325 void setGradientBackground(
bool);
328 void toogle3DRedBlue();
331 void toggleCopyright(
bool);
334 void toggleAxes(
bool);
340 void toggleOrientationDecorations(
bool);
343 void setOrientationDecorationsLetters(QString letters[4]);
347 void setColorScale(
bool);
350 bool getColorScale()
const;
356 void setColorScaleMinMax(
double m,
double M);
361 void setColorScaleTitle(QString t);
364 void computeVisiblePropBounds(
double *bounds);
379 void addProp(vtkSmartPointer<vtkProp> p,
bool refresh=
false);
382 bool containsProp(vtkSmartPointer<vtkProp>);
388 void removeProp(vtkSmartPointer<vtkProp> p,
bool refresh=
false);
391 void actorTransform(vtkSmartPointer<vtkActor>,
double *,
int ,
double **,
double *,
double *);
421 void actorPicked(vtkSmartPointer<vtkPicker>);
424 void rightButtonPressed();
431 virtual void mousePressEvent(QMouseEvent* event);
434 virtual void mouseReleaseEvent(QMouseEvent* event);
437 virtual void mouseMoveEvent(QMouseEvent* event);
460 void resetCameraSettings();
487 static void divertionCallback(vtkObject * caller,
unsigned long eid,
void *clientdata,
void *calldata) {};
490 vtkSmartPointer<vtkCallbackCommand> pickingButtonDiverter;
503 static void buildScreenshotMap();
530 vtkSmartPointer<vtkAxesActor>
axes;
535 vtkSmartPointer<vtkActor2D> orientationDecorationActors[4];
536 vtkSmartPointer<vtkTextMapper> orientationDecorationsTextMapper[4];
544 #endif //RENDERERWIDGET_H
World axes are seen so that x points to the right, y points upward.
Definition: RendererWidget.h:140
void PrintSelf(ostream &os, vtkIndent indent)
Definition: RendererWidget.cpp:356
vtkUnsignedCharArray * PixelArray
Definition: RendererWidget.h:90
ControlMode
list of possible user interaction control mode
Definition: RendererWidget.h:147
VRML 2.0.
Definition: RendererWidget.h:181
void SetAreaPicking(bool b)
Definition: RendererWidget.cpp:115
CameraOrientation
describes the initial position and orientation of the default camera.
Definition: RendererWidget.h:137
no buttons are currently pressed
Definition: RendererWidget.h:163
the mouse left button is currently pressed
Definition: RendererWidget.h:164
the mouse is used a joystick
Definition: RendererWidget.h:148
virtual void OnLeftButtonDown()
Definition: RendererWidget.cpp:120
Definition: Action.cpp:40
PostScript.
Definition: RendererWidget.h:174
World axes are seen so that x points to the left, y points upward.
Definition: RendererWidget.h:139
ScreenshotFormat
list of supported screenshot export formats
Definition: RendererWidget.h:170
virtual void OnMouseMove()
Definition: RendererWidget.cpp:156
#define CAMITK_API
Definition: CamiTKAPI.h:49
same as TRACKBALL but does not allow rotation using left button (but zoom and displacement parallel t...
Definition: RendererWidget.h:150
static vtkInteractorStylePick * New()
void RedrawRubberBand()
Definition: RendererWidget.cpp:206
Portable Document Format.
Definition: RendererWidget.h:176
bool AreaPicking
Definition: RendererWidget.h:92
int Moving
Definition: RendererWidget.h:88
int StartPosition[2]
Definition: RendererWidget.h:85
the mouse middle button is currently pressed (or 3rd button emulation)
Definition: RendererWidget.h:165
the mouse is used as a trackball (default)
Definition: RendererWidget.h:149
LaTeX (only the text is exported)
Definition: RendererWidget.h:177
Interactor used when we are in picking mode.
Definition: RendererWidget.h:59
Encapsulated PostScript.
Definition: RendererWidget.h:175
< World axes are seen so that x points to the left, y points backward. For Medical Images Coronal Vie...
Definition: RendererWidget.h:142
RenderMan/BMRT .RIB.
Definition: RendererWidget.h:180
World axes are seen so that x points to the right, y points downward.
Definition: RendererWidget.h:138
JPEG.
Definition: RendererWidget.h:172
vtkTypeRevisionMacro(vtkInteractorStylePick, vtkInteractorStyle)
Definition: RendererWidget.h:141
virtual void OnLeftButtonUp()
Definition: RendererWidget.cpp:190
MouseButtonState
state of the pressed button (for 3 buttons mouse)
Definition: RendererWidget.h:162
vtkInteractorStylePick()
Definition: RendererWidget.cpp:101
string filename
Definition: pml2csv.cpp:109
Alias Wavefront .OBJ.
Definition: RendererWidget.h:179
int EndPosition[2]
Definition: RendererWidget.h:86
~vtkInteractorStylePick()
Definition: RendererWidget.cpp:110
Scalable Vector Graphics.
Definition: RendererWidget.h:178
virtual void Pick()
Definition: RendererWidget.cpp:277
Bitmap.
Definition: RendererWidget.h:173