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)
234 QScopedPointer<ctkVTKAbstractViewPrivate>
d_ptr;
virtual int setRenderPaused(bool pause)
ctkVTKAbstractView(QWidget *parent=0)
Q_INVOKABLE vtkInteractorObserver * interactorStyle() const
Get current interactor style.
virtual QColor backgroundColor2() const
Get the second background color.
virtual bool hasHeightForWidth() const
virtual QSize minimumSizeHint() const
QString cornerAnnotationText() const
Get corner annotation text.
double maximumUpdateRate() const
virtual void setGradientBackground(bool enable)
void setMaximumUpdateRate(double fps)
Q_INVOKABLE ctkVTKOpenGLNativeWidget * VTKWidget() const
Get the underlying QVTKWidget.
virtual void setCornerAnnotationText(const QString &text)
Set corner annotation text.
double fps() const
Return the current FPS.
void setRenderEnabled(bool value)
Enable/Disable rendering.
bool renderEnabled() const
Return if rendering is enabled.
virtual void requestRender()
virtual bool gradientBackground() const
Is the background a gradient.
void setUseDepthPeeling(bool use)
bool useDepthPeeling() const
Q_INVOKABLE vtkRenderWindowInteractor * interactor() const
Set/Get window interactor.
static int multiSamples()
Q_INVOKABLE vtkRenderWindow * renderWindow() const
Get underlying RenderWindow.
virtual int heightForWidth(int width) const
virtual void scheduleRender()
virtual QColor backgroundColor() const
Get background color.
virtual void setBackgroundColor2(const QColor &newBackgroundColor)
virtual int pauseRender()
void setFPSVisible(bool show)
Show/Hide the FPS annotation.
bool isFPSVisible() const
Return true if the FPS annotation is visible, false otherwise.
virtual bool isRenderPaused() const
virtual QSize sizeHint() const
static void setMultiSamples(int)
virtual void setInteractor(vtkRenderWindowInteractor *interactor)
virtual void setBackgroundColor(const QColor &newBackgroundColor)
Set the background color of the rendering screen.
virtual int resumeRender()
virtual void forceRender()
Q_INVOKABLE vtkCornerAnnotation * cornerAnnotation() const
virtual ~ctkVTKAbstractView()
QScopedPointer< ctkVTKAbstractViewPrivate > d_ptr
ctkVTKAbstractView(ctkVTKAbstractViewPrivate *pimpl, QWidget *parent)
#define QVTK_OBJECT
Define VTK/Qt event/slot connection utility methods. It is a convenient macro that declares and defin...