Drake Designer
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
ddQVTKWidgetView.h
Go to the documentation of this file.
1 #ifndef __ddQVTKWidgetView_h
2 #define __ddQVTKWidgetView_h
3 
4 #include "ddViewBase.h"
5 #include "ddAppConfigure.h"
6 
7 
8 class vtkCamera;
9 class vtkOrientationMarkerWidget;
10 class vtkRenderer;
11 class vtkRenderWindow;
12 class vtkLightKit;
13 class QVTKWidget;
14 
16 {
17  Q_OBJECT
18 
19 public:
20 
21  ddQVTKWidgetView(QWidget* parent=0);
22  virtual ~ddQVTKWidgetView();
23 
24  vtkRenderWindow* renderWindow() const;
25  vtkRenderer* renderer() const;
26  vtkRenderer* backgroundRenderer() const;
27  vtkCamera* camera() const;
28  vtkLightKit* lightKit() const;
29 
30  QList<double> lastTDxMotion() const;
31 
32  QVTKWidget* vtkWidget() const;
33  vtkOrientationMarkerWidget* orientationMarkerWidget() const;
34 
35  void installImageInteractor();
36 
37  void addCustomBounds(const QList<double>& bounds);
38 
39  void setLightKitEnabled(bool enabled);
40 
41  double getAverageFramesPerSecond();
42 
43 signals:
44 
45  void computeBoundsRequest(ddQVTKWidgetView* view);
46 
47 public slots:
48 
49  void render();
50  void forceRender();
51  void resetCamera();
52 
53  void setActorManipulationStyle();
54  void setCameraManipulationStyle();
55 
56 protected slots:
57 
58  void onStartRender();
59  void onEndRender();
60  void onRenderTimer();
61 
62 protected:
63 
64  void setupOrientationMarker();
65 
66  void addCone();
67 
68  class ddInternal;
69  ddInternal* Internal;
70 
72 };
73 
74 #endif
ddInternal * Internal
Q_DISABLE_COPY(ddViewBase)
#define DD_APP_EXPORT