21#ifndef __ctkVTKAbstractView_h
22#define __ctkVTKAbstractView_h
30#include "ctkVisualizationVTKWidgetsExport.h"
31class ctkVTKAbstractViewPrivate;
33class vtkCornerAnnotation;
34class vtkInteractorObserver;
35class vtkRenderWindowInteractor;
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)
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
Q_INVOKABLE vtkRenderWindowInteractor * interactor() const
Set/Get window interactor.
virtual void setGradientBackground(bool enable)
void setMaximumUpdateRate(double fps)
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.
Q_INVOKABLE vtkInteractorObserver * interactorStyle() const
Get current interactor style.
virtual void requestRender()
Q_INVOKABLE ctkVTKOpenGLNativeWidget * VTKWidget() const
Get the underlying QVTKWidget.
virtual bool gradientBackground() const
Is the background a gradient.
void setUseDepthPeeling(bool use)
bool useDepthPeeling() const
static int multiSamples()
virtual int heightForWidth(int width) const
Q_INVOKABLE vtkCornerAnnotation * cornerAnnotation() 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
Q_INVOKABLE vtkRenderWindow * renderWindow() const
Get underlying RenderWindow.
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()
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...