21 #ifndef __ctkVTKAbstractView_h 22 #define __ctkVTKAbstractView_h 30 #include "ctkVisualizationVTKWidgetsExport.h" 31 class ctkVTKAbstractViewPrivate;
33 class vtkCornerAnnotation;
34 class vtkInteractorObserver;
35 class vtkRenderWindowInteractor;
36 class vtkRenderWindow;
43 Q_PROPERTY(QString cornerAnnotationText READ cornerAnnotationText WRITE setCornerAnnotationText)
44 Q_PROPERTY(QColor backgroundColor READ backgroundColor WRITE setBackgroundColor)
45 Q_PROPERTY(QColor backgroundColor2 READ backgroundColor2 WRITE setBackgroundColor)
46 Q_PROPERTY(
bool gradientBackground READ gradientBackground WRITE setGradientBackground)
47 Q_PROPERTY(
bool renderEnabled READ renderEnabled WRITE setRenderEnabled)
51 Q_PROPERTY(
bool fpsVisible READ isFPSVisible WRITE setFPSVisible)
55 Q_PROPERTY(
bool useDepthPeeling READ useDepthPeeling WRITE setUseDepthPeeling)
57 Q_PROPERTY(
double maximumUpdateRate READ maximumUpdateRate WRITE setMaximumUpdateRate)
71 virtual
void scheduleRender();
77 virtual
void forceRender();
96 virtual
int setRenderPaused(
bool pause);
100 virtual
int pauseRender();
104 virtual
int resumeRender();
108 virtual
bool isRenderPaused()const;
131 void setMaximumUpdateRate(
double fps);
134 virtual
void setBackgroundColor(const QColor& newBackgroundColor);
138 virtual
void setBackgroundColor2(const QColor& newBackgroundColor);
142 virtual
void setGradientBackground(
bool enable);
145 void setRenderEnabled(
bool value);
148 virtual
void setCornerAnnotationText(const QString& text);
151 void setFPSVisible(
bool show);
155 void setUseDepthPeeling(
bool use);
159 Q_INVOKABLE vtkRenderWindow* renderWindow()const;
162 Q_INVOKABLE vtkRenderWindowInteractor* interactor()const;
167 virtual
void setInteractor(vtkRenderWindowInteractor* interactor);
170 Q_INVOKABLE vtkInteractorObserver* interactorStyle()const;
173 QString cornerAnnotationText() const;
174 Q_INVOKABLE vtkCornerAnnotation* cornerAnnotation()const;
180 virtual QColor backgroundColor() const;
183 virtual QColor backgroundColor2() const;
186 virtual
bool gradientBackground() const;
189 bool renderEnabled() const;
192 bool isFPSVisible() const;
199 double maximumUpdateRate()const;
203 bool useDepthPeeling()const;
214 static
void setMultiSamples(
int);
218 static
int multiSamples();
220 virtual QSize minimumSizeHint()const;
221 virtual QSize sizeHint()const;
222 virtual
bool hasHeightForWidth()const;
223 virtual
int heightForWidth(
int width)const;
231 virtual
void requestRender();
234 QScopedPointer<ctkVTKAbstractViewPrivate> d_ptr;
#define QVTK_OBJECT
Define VTK/Qt event/slot connection utility methods. It is a convenient macro that declares and defin...