![]() |
CTK
0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
|
#include <Libs/Visualization/VTK/Widgets/ctkVTKRenderView.h>
Public Types | |
enum | RotateDirection { PitchUp , PitchDown , RollLeft , RollRight , YawLeft , YawRight } |
typedef ctkVTKAbstractView | Superclass |
![]() | |
typedef QWidget | Superclass |
Public Slots | |
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 () |
![]() | |
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) |
Public Member Functions | |
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 () |
![]() | |
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 ctkVTKOpenGLNativeWidget * | VTKWidget () const |
Get the underlying QVTKWidget. More... | |
virtual | ~ctkVTKAbstractView () |
Properties | |
int | animationIntervalMs |
bool | orientationWidgetVisible |
RotateDirection | pitchDirection |
double | pitchRollYawIncrement |
bool | rockEnabled |
int | rockLength |
RotateDirection | rollDirection |
RotateDirection | spinDirection |
bool | spinEnabled |
double | spinIncrement |
RotateDirection | yawDirection |
double | zoomFactor |
![]() | |
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 |
Additional Inherited Members | |
![]() | |
static int | multiSamples () |
static void | setMultiSamples (int) |
![]() | |
void | onRender () |
virtual void | requestRender () |
void | updateFPS () |
![]() | |
ctkVTKAbstractView (ctkVTKAbstractViewPrivate *pimpl, QWidget *parent) | |
![]() | |
QScopedPointer< ctkVTKAbstractViewPrivate > | d_ptr |
Definition at line 33 of file ctkVTKRenderView.h.
Definition at line 55 of file ctkVTKRenderView.h.
Enumerator | |
---|---|
PitchUp | |
PitchDown | |
RollLeft | |
RollRight | |
YawLeft | |
YawRight |
Definition at line 53 of file ctkVTKRenderView.h.
|
explicit |
|
virtual |
vtkCamera* ctkVTKRenderView::activeCamera | ( | ) |
Get active camera.
int ctkVTKRenderView::animationIntervalMs | ( | ) | const |
Amount of waiting time between spin or rock increment
|
slot |
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).
bool ctkVTKRenderView::orientationWidgetVisible | ( | ) |
Get Orientation widget visibility.
|
slot |
Pitch view of X degrees. X been set using setPitchRollYawIncrement
RotateDirection ctkVTKRenderView::pitchDirection | ( | ) | const |
double ctkVTKRenderView::pitchRollYawIncrement | ( | ) | const |
Return pitch, roll or yaw increment (in degree)
vtkRenderer* ctkVTKRenderView::renderer | ( | ) | const |
Get a reference to the associated vtkRenderer.
void ctkVTKRenderView::resetCamera | ( | ) |
Reset camera.
|
slot |
Reset focal point The visible scene bbox is computed, then the camera is recentered around its centroid.
bool ctkVTKRenderView::rockEnabled | ( | ) | const |
Return if animated rock is enabled.
int ctkVTKRenderView::rockIncrement | ( | ) | const |
Return current increment value of animated rock. Rocking will be centered around the position where increment is set to 0.
int ctkVTKRenderView::rockLength | ( | ) | const |
Return length of the rock animation.
|
slot |
Rool view of X degrees. X been set using setPitchRollYawIncrement
RotateDirection ctkVTKRenderView::rollDirection | ( | ) | const |
|
slot |
Amount of wait time between spin or rock increments
|
slot |
Set the focal point.
|
virtual |
Set window interactor Reimplemented to propagate interaction to Orientation widget
Reimplemented from ctkVTKAbstractView.
|
slot |
Show/Hide Orientation widget.
void ctkVTKRenderView::setPitchDirection | ( | RotateDirection | newPitchDirection | ) |
|
slot |
Set absolute amount degrees the view should be either pitched, rolled or yawed with.
|
slot |
Enable or Disbled the animated rock of the view.
|
slot |
Set current rocking position Rocking will be centered around the position where increment is set to 0.
|
slot |
Set length of a complete rock period (in number of animation steps)
void ctkVTKRenderView::setRollDirection | ( | RotateDirection | newRollDirection | ) |
void ctkVTKRenderView::setSpinDirection | ( | RotateDirection | newSpinDirection | ) |
|
slot |
Enable or Disbled the animated spin of the view.
|
slot |
Set number of degrees in spin increment
void ctkVTKRenderView::setYawDirection | ( | RotateDirection | newYawDirection | ) |
|
slot |
Set zoom factor zoomFactor is a value between 0.0 and 1.0.
RotateDirection ctkVTKRenderView::spinDirection | ( | ) | const |
bool ctkVTKRenderView::spinEnabled | ( | ) | const |
Return if animated spin is enabled.
double ctkVTKRenderView::spinIncrement | ( | ) | const |
Return spin increment (in degrees)
|
slot |
Yaw view of X degrees. X been set using setPitchRollYawIncrement
RotateDirection ctkVTKRenderView::yawDirection | ( | ) | const |
double ctkVTKRenderView::zoomFactor | ( | ) | const |
Return zoom factor.
|
slot |
Zoom in using the zoomfactor
|
slot |
Zoom out using the zoomfactor
|
readwrite |
Definition at line 1 of file ctkVTKRenderView.h.
|
readwrite |
Definition at line 1 of file ctkVTKRenderView.h.
|
readwrite |
Definition at line 1 of file ctkVTKRenderView.h.
|
readwrite |
Definition at line 1 of file ctkVTKRenderView.h.
|
readwrite |
Definition at line 1 of file ctkVTKRenderView.h.
|
readwrite |
Definition at line 1 of file ctkVTKRenderView.h.
|
readwrite |
Definition at line 1 of file ctkVTKRenderView.h.
|
readwrite |
Definition at line 1 of file ctkVTKRenderView.h.
|
readwrite |
Definition at line 1 of file ctkVTKRenderView.h.
|
readwrite |
Definition at line 1 of file ctkVTKRenderView.h.
|
readwrite |
Definition at line 1 of file ctkVTKRenderView.h.
|
readwrite |
Definition at line 1 of file ctkVTKRenderView.h.