CTK  0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
Public Types | Public Member Functions | Protected Slots | Protected Attributes | List of all members
ctkVTKThumbnailView Class Reference

#include <Libs/Visualization/VTK/Widgets/ctkVTKThumbnailView.h>

Inheritance diagram for ctkVTKThumbnailView:
Inheritance graph
[legend]
Collaboration diagram for ctkVTKThumbnailView:
Collaboration graph
[legend]

Public Types

typedef ctkVTKRenderView Superclass
 Superclass typedef. More...
 
- Public Types inherited from ctkVTKRenderView
enum  RotateDirection {
  PitchUp , PitchDown , RollLeft , RollRight ,
  YawLeft , YawRight
}
 
typedef ctkVTKAbstractView Superclass
 
- Public Types inherited from ctkVTKAbstractView
typedef QWidget Superclass
 

Public Member Functions

 ctkVTKThumbnailView (QWidget *parent=0)
 Constructors. More...
 
void setRendererToListen (vtkRenderer *renderer)
 
virtual ~ctkVTKThumbnailView ()
 
- Public Member Functions inherited from ctkVTKRenderView
vtkCamera * activeCamera ()
 Get active camera. More...
 
int animationIntervalMs () const
 
 ctkVTKRenderView (QWidget *parent=0)
 
bool orientationWidgetVisible ()
 Get Orientation widget visibility. More...
 
RotateDirection pitchDirection () const
 
double pitchRollYawIncrement () const
 Return pitch, roll or yaw increment (in degree) More...
 
vtkRenderer * renderer () const
 Get a reference to the associated vtkRenderer. More...
 
void resetCamera ()
 Reset camera. More...
 
bool rockEnabled () const
 Return if animated rock is enabled. More...
 
int rockIncrement () const
 
int rockLength () const
 Return length of the rock animation. More...
 
RotateDirection rollDirection () const
 
virtual void setInteractor (vtkRenderWindowInteractor *interactor)
 
void setPitchDirection (RotateDirection newPitchDirection)
 
void setRollDirection (RotateDirection newRollDirection)
 
void setSpinDirection (RotateDirection newSpinDirection)
 
void setYawDirection (RotateDirection newYawDirection)
 
RotateDirection spinDirection () const
 
bool spinEnabled () const
 Return if animated spin is enabled. More...
 
double spinIncrement () const
 
RotateDirection yawDirection () const
 
double zoomFactor () const
 Return zoom factor. More...
 
virtual ~ctkVTKRenderView ()
 
- Public Member Functions inherited from ctkVTKAbstractView
virtual QColor backgroundColor () const
 Get background color. More...
 
virtual QColor backgroundColor2 () const
 Get the second background color. More...
 
Q_INVOKABLE vtkCornerAnnotation * cornerAnnotation () const
 
QString cornerAnnotationText () const
 Get corner annotation text. More...
 
 ctkVTKAbstractView (QWidget *parent=0)
 
double fps () const
 Return the current FPS. More...
 
virtual bool gradientBackground () const
 Is the background a gradient. More...
 
virtual bool hasHeightForWidth () const
 
virtual int heightForWidth (int width) const
 
Q_INVOKABLE vtkRenderWindowInteractor * interactor () const
 Set/Get window interactor. More...
 
Q_INVOKABLE vtkInteractorObserver * interactorStyle () const
 Get current interactor style. More...
 
bool isFPSVisible () const
 Return true if the FPS annotation is visible, false otherwise. More...
 
double maximumUpdateRate () const
 
virtual QSize minimumSizeHint () const
 
bool renderEnabled () const
 Return if rendering is enabled. More...
 
Q_INVOKABLE vtkRenderWindow * renderWindow () const
 Get underlying RenderWindow. More...
 
virtual QSize sizeHint () const
 
bool useDepthPeeling () const
 
Q_INVOKABLE ctkVTKOpenGLNativeWidgetVTKWidget () const
 Get the underlying QVTKWidget. More...
 
virtual ~ctkVTKAbstractView ()
 

Protected Slots

void checkAbort ()
 
void updateBounds ()
 
void updateCamera ()
 
- Protected Slots inherited from ctkVTKAbstractView
void onRender ()
 
virtual void requestRender ()
 
void updateFPS ()
 

Protected Attributes

QScopedPointer< ctkVTKThumbnailViewPrivate > d_ptr
 
- Protected Attributes inherited from ctkVTKAbstractView
QScopedPointer< ctkVTKAbstractViewPrivate > d_ptr
 

Additional Inherited Members

- Public Slots inherited from ctkVTKRenderView
void lookFromAxis (const ctkAxesWidget::Axis &axis, double fov=10.)
 Change camera to look from a given axis to the focal point Translate/Rotate the camera to look from a given axis The Field of View (fov) controls how far from the focal point the camera must be (final_pos = focal_point + 3*fov). More...
 
void pitch ()
 
void resetFocalPoint ()
 Reset focal point The visible scene bbox is computed, then the camera is recentered around its centroid. More...
 
void roll ()
 
void setAnimationIntervalMs (int ms)
 
void setFocalPoint (double x, double y, double z)
 Set the focal point. More...
 
void setOrientationWidgetVisible (bool visible)
 Show/Hide Orientation widget. More...
 
void setPitchRollYawIncrement (double newPitchRollYawIncrement)
 
void setRockEnabled (bool enabled)
 Enable or Disbled the animated rock of the view. More...
 
void setRockIncrement (int newRockIncrement)
 
void setRockLength (int newRockLength)
 Set length of a complete rock period (in number of animation steps) More...
 
void setSpinEnabled (bool enabled)
 Enable or Disbled the animated spin of the view. More...
 
void setSpinIncrement (double newSpinIncrement)
 
void setZoomFactor (double newZoomFactor)
 Set zoom factor zoomFactor is a value between 0.0 and 1.0. More...
 
void yaw ()
 
void zoomIn ()
 
void zoomOut ()
 
- Public Slots inherited from ctkVTKAbstractView
virtual void forceRender ()
 
virtual bool isRenderPaused () const
 
virtual int pauseRender ()
 
virtual int resumeRender ()
 
virtual void scheduleRender ()
 
virtual void setBackgroundColor (const QColor &newBackgroundColor)
 Set the background color of the rendering screen. More...
 
virtual void setBackgroundColor2 (const QColor &newBackgroundColor)
 
virtual void setCornerAnnotationText (const QString &text)
 Set corner annotation text. More...
 
void setFPSVisible (bool show)
 Show/Hide the FPS annotation. More...
 
virtual void setGradientBackground (bool enable)
 
void setMaximumUpdateRate (double fps)
 
void setRenderEnabled (bool value)
 Enable/Disable rendering. More...
 
virtual int setRenderPaused (bool pause)
 
void setUseDepthPeeling (bool use)
 
- Static Public Member Functions inherited from ctkVTKAbstractView
static int multiSamples ()
 
static void setMultiSamples (int)
 
- Protected Member Functions inherited from ctkVTKAbstractView
 ctkVTKAbstractView (ctkVTKAbstractViewPrivate *pimpl, QWidget *parent)
 
- Properties inherited from ctkVTKRenderView
int animationIntervalMs
 
bool orientationWidgetVisible
 
RotateDirection pitchDirection
 
double pitchRollYawIncrement
 
bool rockEnabled
 
int rockLength
 
RotateDirection rollDirection
 
RotateDirection spinDirection
 
bool spinEnabled
 
double spinIncrement
 
RotateDirection yawDirection
 
double zoomFactor
 
- Properties inherited from ctkVTKAbstractView
QColor backgroundColor
 
QColor backgroundColor2
 
QVTK_OBJECTQString cornerAnnotationText
 
bool fpsVisible
 
bool gradientBackground
 
double maximumUpdateRate
 Set a maximum rate (in frames per second) for rendering. More...
 
bool renderEnabled
 
bool useDepthPeeling
 

Detailed Description

Definition at line 32 of file ctkVTKThumbnailView.h.

Member Typedef Documentation

◆ Superclass

Superclass typedef.

Definition at line 39 of file ctkVTKThumbnailView.h.

Constructor & Destructor Documentation

◆ ctkVTKThumbnailView()

ctkVTKThumbnailView::ctkVTKThumbnailView ( QWidget *  parent = 0)
explicit

Constructors.

◆ ~ctkVTKThumbnailView()

virtual ctkVTKThumbnailView::~ctkVTKThumbnailView ( )
virtual

Member Function Documentation

◆ checkAbort

void ctkVTKThumbnailView::checkAbort ( )
protectedslot

◆ setRendererToListen()

void ctkVTKThumbnailView::setRendererToListen ( vtkRenderer *  renderer)

◆ updateBounds

void ctkVTKThumbnailView::updateBounds ( )
protectedslot

◆ updateCamera

void ctkVTKThumbnailView::updateCamera ( )
protectedslot

Member Data Documentation

◆ d_ptr

QScopedPointer<ctkVTKThumbnailViewPrivate> ctkVTKThumbnailView::d_ptr
protected

Definition at line 53 of file ctkVTKThumbnailView.h.


The documentation for this class was generated from the following file: