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
#define CAMITK_API
Definition: CamiTKAPI.h:49