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