Controls the camera used by the associated BaseRenderer.
More...
#include <mitkCameraController.h>
|
| static Pointer | New () |
| |
| static Pointer | New () |
| |
Controls the camera used by the associated BaseRenderer.
Subclass of BaseController. Provides methods for setting standard anatomical views, fitting the view to the world bounding box, zooming, panning, and adjusting the camera to the current plane geometry.
- See also
- BaseController BaseRenderer
Definition at line 33 of file mitkCameraController.h.
◆ StandardView
Enumeration of standard anatomical viewing directions.
| Enumerator |
|---|
| ANTERIOR | View from the front (ventral).
|
| POSTERIOR | View from the back (dorsal).
|
| SINISTER | View from the left.
|
| DEXTER | View from the right.
|
| CRANIAL | View from above (superior).
|
| CAUDAL | View from below (inferior).
|
Definition at line 37 of file mitkCameraController.h.
◆ CameraController()
| mitk::CameraController::CameraController |
( |
| ) |
|
|
protected |
◆ ~CameraController()
| mitk::CameraController::~CameraController |
( |
| ) |
|
|
overrideprotected |
◆ AdjustCameraToPlane()
| void mitk::CameraController::AdjustCameraToPlane |
( |
| ) |
|
Adjust the camera orientation to match the current plane without panning or zooming.
This rotates the camera so it is aligned with the current world plane geometry.
◆ ComputeMaxParallelScale()
| ScalarType mitk::CameraController::ComputeMaxParallelScale |
( |
| ) |
|
|
protected |
Compute the maximum parallel scale that fits the entire plane into the viewport.
- Returns
- The maximum parallel scale value in mm.
◆ Fit()
| void mitk::CameraController::Fit |
( |
| ) |
|
Adjust the camera so that the world bounding box is fully visible.
◆ GetCameraPositionOnPlane()
| Point2D mitk::CameraController::GetCameraPositionOnPlane |
( |
| ) |
|
Get the current camera position projected onto the plane.
- Returns
- The camera position in plane coordinates (mm).
◆ GetRenderer()
| virtual const BaseRenderer* mitk::CameraController::GetRenderer |
( |
| ) |
const |
|
virtual |
◆ mitkClassMacro()
◆ MoveBy()
| void mitk::CameraController::MoveBy |
( |
const Vector2D & |
moveVectorInMM | ) |
|
Move the camera by the given vector (in mm).
- Parameters
-
| moveVectorInMM | The translation vector in millimeters. |
◆ MoveCameraToPoint()
| void mitk::CameraController::MoveCameraToPoint |
( |
const Point2D & |
planePoint | ) |
|
Move the camera so that the given point on the plane is in the view center.
- Parameters
-
| planePoint | The target point in plane coordinates (mm). |
◆ New()
| static Pointer mitk::CameraController::New |
( |
| ) |
|
|
static |
◆ SetRenderer()
| void mitk::CameraController::SetRenderer |
( |
const BaseRenderer * |
renderer | ) |
|
|
inline |
◆ SetScaleFactorInMMPerDisplayUnit()
| void mitk::CameraController::SetScaleFactorInMMPerDisplayUnit |
( |
ScalarType |
scale | ) |
|
Set the desired zoom level to an absolute value.
- Parameters
-
| scale | The scale factor in millimeters per display unit. |
◆ SetStandardView()
| virtual void mitk::CameraController::SetStandardView |
( |
StandardView |
view | ) |
|
|
virtual |
Set the camera to one of the standard anatomical views.
- Parameters
-
| view | The StandardView direction to apply. |
◆ SetViewToAnterior()
| virtual void mitk::CameraController::SetViewToAnterior |
( |
| ) |
|
|
virtual |
Set the camera to an anterior (front) view.
◆ SetViewToCaudal()
| virtual void mitk::CameraController::SetViewToCaudal |
( |
| ) |
|
|
virtual |
Set the camera to a caudal (bottom) view.
◆ SetViewToCranial()
| virtual void mitk::CameraController::SetViewToCranial |
( |
| ) |
|
|
virtual |
Set the camera to a cranial (top) view.
◆ SetViewToDexter()
| virtual void mitk::CameraController::SetViewToDexter |
( |
| ) |
|
|
virtual |
Set the camera to a dexter (right) view.
◆ SetViewToPosterior()
| virtual void mitk::CameraController::SetViewToPosterior |
( |
| ) |
|
|
virtual |
Set the camera to a posterior (back) view.
◆ SetViewToSinister()
| virtual void mitk::CameraController::SetViewToSinister |
( |
| ) |
|
|
virtual |
Set the camera to a sinister (left) view.
◆ Zoom()
| void mitk::CameraController::Zoom |
( |
ScalarType |
factor, |
|
|
const Point2D & |
zoomPointInMM |
|
) |
| |
Zoom the camera by the given factor around the specified point.
- Parameters
-
| factor | The zoom factor (>1 zooms in, <1 zooms out, <=0 is ignored). |
| zoomPointInMM | The point around which to zoom, in plane coordinates (mm). |
◆ m_Renderer
The documentation for this class was generated from the following file: