 |
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 __ctkVTKRenderView_h
22 #define __ctkVTKRenderView_h
27 class ctkVTKRenderViewPrivate;
36 Q_PROPERTY(
bool orientationWidgetVisible READ orientationWidgetVisible
37 WRITE setOrientationWidgetVisible)
38 Q_PROPERTY(
double zoomFactor READ zoomFactor WRITE setZoomFactor)
39 Q_PROPERTY(
double pitchRollYawIncrement READ pitchRollYawIncrement WRITE setPitchRollYawIncrement)
41 Q_PROPERTY(
RotateDirection pitchDirection READ pitchDirection WRITE setPitchDirection)
42 Q_PROPERTY(
RotateDirection rollDirection READ rollDirection WRITE setRollDirection)
43 Q_PROPERTY(
RotateDirection yawDirection READ yawDirection WRITE setYawDirection)
44 Q_PROPERTY(
RotateDirection spinDirection READ spinDirection WRITE setSpinDirection)
45 Q_PROPERTY(
bool spinEnabled READ spinEnabled WRITE setSpinEnabled)
46 Q_PROPERTY(
double spinIncrement READ spinIncrement WRITE setSpinIncrement)
47 Q_PROPERTY(
int animationIntervalMs READ animationIntervalMs WRITE setAnimationIntervalMs)
48 Q_PROPERTY(
bool rockEnabled READ rockEnabled WRITE setRockEnabled)
49 Q_PROPERTY(
int rockLength READ rockLength WRITE setRockLength)
53 enum RotateDirection { PitchUp, PitchDown, RollLeft, RollRight, YawLeft, YawRight };
void setPitchRollYawIncrement(double newPitchRollYawIncrement)
int animationIntervalMs() const
virtual void setInteractor(vtkRenderWindowInteractor *interactor)
vtkCamera * activeCamera()
Get active camera.
bool orientationWidgetVisible()
Get Orientation widget visibility.
virtual ~ctkVTKRenderView()
void resetFocalPoint()
Reset focal point The visible scene bbox is computed, then the camera is recentered around its centro...
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...
void resetCamera()
Reset camera.
void setSpinDirection(RotateDirection newSpinDirection)
void setPitchDirection(RotateDirection newPitchDirection)
void setYawDirection(RotateDirection newYawDirection)
bool spinEnabled() const
Return if animated spin is enabled.
bool rockEnabled() const
Return if animated rock is enabled.
ctkVTKRenderView(QWidget *parent=0)
int rockIncrement() const
vtkRenderer * renderer() const
Get a reference to the associated vtkRenderer.
void setRockLength(int newRockLength)
Set length of a complete rock period (in number of animation steps)
double zoomFactor() const
Return zoom factor.
void setRockEnabled(bool enabled)
Enable or Disbled the animated rock of the view.
void setRollDirection(RotateDirection newRollDirection)
ctkVTKAbstractView Superclass
void setRockIncrement(int newRockIncrement)
void setOrientationWidgetVisible(bool visible)
Show/Hide Orientation widget.
RotateDirection yawDirection() const
RotateDirection spinDirection() const
void setAnimationIntervalMs(int ms)
double pitchRollYawIncrement() const
Return pitch, roll or yaw increment (in degree)
void setFocalPoint(double x, double y, double z)
Set the focal point.
RotateDirection pitchDirection() const
int rockLength() const
Return length of the rock animation.
void setSpinEnabled(bool enabled)
Enable or Disbled the animated spin of the view.
RotateDirection rollDirection() const
void setZoomFactor(double newZoomFactor)
Set zoom factor zoomFactor is a value between 0.0 and 1.0.
void setSpinIncrement(double newSpinIncrement)
double spinIncrement() const