26 #ifndef RENDERERWIDGET_H
27 #define RENDERERWIDGET_H
33 #include <QVTKWidget.h>
34 #include <vtkSmartPointer.h>
38 class vtkInteractorStyle;
43 class vtkScalarBarActor;
44 class vtkEventQtSlotConnect;
45 class vtkCallbackCommand;
48 class vtkAnnotatedCubeActor;
49 class vtkScalarBarWidget;
54 class GeometricObject;
93 enum CameraOrientation {
166 ControlMode getControlMode()
const;
169 void setControlMode(ControlMode mode);
174 void setPicker(vtkSmartPointer<vtkPicker> woodyWood);
180 void pickActor(
int x,
int y);
183 void keyPressEvent(QKeyEvent* e);
187 static const ScreenshotFormatInfo * getScreenshotFormatInfo(
unsigned int);
191 static const ScreenshotFormatInfo * getScreenshotFormatInfo(ScreenshotFormat);
196 void screenshot(QString filename);
205 void setBackfaceCulling(
bool);
208 bool getBackfaceCulling()
const;
217 void setLightFollowCamera(
bool);
220 bool getLightFollowCamera()
const;
223 void setPointSize(
double size);
226 double getPointSize()
const;
229 void rotateCamera(
double angle,
int axe);
238 void resetCamera(
double *bounds);
241 void getCameraSettings(
double *position,
double *focalPoint,
double *viewUp);
244 void setActiveCamera( vtkCamera * cam );
247 vtkCamera * getActiveCamera();
250 void getMouse3DCoordinates(
double & x,
double & y,
double & z);
253 void setBackgroundColor(
double,
double,
double);
256 void getBackgroundColor(
double&,
double&,
double&);
259 bool getGradientBackground();
262 void setGradientBackground(
bool);
265 void toogle3DRedBlue();
268 void toggleCopyright(
bool);
271 void toggleAxes(
bool);
277 void setColorScale(
bool);
280 bool getColorScale()
const;
286 void setColorScaleMinMax(
double m,
double M);
291 void setColorScaleTitle(QString t);
294 void computeVisiblePropBounds(
double *bounds);
309 void addProp(vtkSmartPointer<vtkProp> p,
bool refresh=
false);
312 bool containsProp(vtkSmartPointer<vtkProp>);
318 void removeProp(vtkSmartPointer<vtkProp> p,
bool refresh=
false);
321 void actorTransform(vtkSmartPointer<vtkActor>,
double *,
int ,
double **,
double *,
double *);
342 void actorPicked(vtkSmartPointer<vtkPicker>);
345 void rightButtonPressed();
352 virtual void mouseReleaseEvent(QMouseEvent* event);
355 virtual void mouseMoveEvent(QMouseEvent* event);
375 void resetCameraSettings();
402 static void divertionCallback(vtkObject * caller,
unsigned long eid,
void *clientdata,
void *calldata) {};
405 vtkSmartPointer<vtkCallbackCommand> pickingButtonDiverter;
415 static void buildScreenshotMap();
442 vtkSmartPointer<vtkAxesActor>
axes;
452 #endif //RENDERERWIDGET_H
ControlMode
list of possible user interaction control mode
Definition: RendererWidget.h:100
VRML 2.0.
Definition: RendererWidget.h:127
CameraOrientation
describes the initial position and orientation of the default camera.
Definition: RendererWidget.h:93
no buttons are currently pressed
Definition: RendererWidget.h:109
the mouse left button is currently pressed
Definition: RendererWidget.h:110
the mouse is used a joystick
Definition: RendererWidget.h:101
PostScript.
Definition: RendererWidget.h:120
World axes are seen so that x points to the left, y points upward.
Definition: RendererWidget.h:95
ScreenshotFormat
list of supported screenshot export formats
Definition: RendererWidget.h:116
#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:103
Portable Document Format.
Definition: RendererWidget.h:122
the mouse middle button is currently pressed (or 3rd button emulation)
Definition: RendererWidget.h:111
the mouse is used as a trackball (default)
Definition: RendererWidget.h:102
LaTeX (only the text is exported)
Definition: RendererWidget.h:123
Encapsulated PostScript.
Definition: RendererWidget.h:121
RenderMan/BMRT .RIB.
Definition: RendererWidget.h:126
World axes are seen so that x points to the right, y points downward.
Definition: RendererWidget.h:94
JPEG.
Definition: RendererWidget.h:118
MouseButtonState
state of the pressed button (for 3 buttons mouse)
Definition: RendererWidget.h:108
Alias Wavefront .OBJ.
Definition: RendererWidget.h:125
Scalable Vector Graphics.
Definition: RendererWidget.h:124
Bitmap.
Definition: RendererWidget.h:119