Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit

controls the camera used by the associated BaseRenderer More...

#include <mitkCameraController.h>

Inheritance diagram for mitk::CameraController:
Collaboration diagram for mitk::CameraController:

Public Types

enum  StandardView {
  ANTERIOR, POSTERIOR, SINISTER, DEXTER,
  CRANIAL, CAUDAL
}
 
typedef CameraController Self
 
typedef BaseController Superclass
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::SmartPointer< const SelfConstPointer
 
- Public Types inherited from mitk::BaseController
typedef BaseController Self
 
typedef OperationActor Superclass
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::SmartPointer< const SelfConstPointer
 

Public Member Functions

virtual std::vector< std::string > GetClassHierarchy () const override
 
virtual const char * GetClassName () const
 
void SetRenderer (const BaseRenderer *renderer)
 
virtual const BaseRendererGetRenderer () const
 
virtual void SetViewToAnterior ()
 
virtual void SetViewToPosterior ()
 
virtual void SetViewToSinister ()
 
virtual void SetViewToDexter ()
 
virtual void SetViewToCranial ()
 
virtual void SetViewToCaudal ()
 
virtual void SetStandardView (StandardView view)
 
void Fit ()
 Fit Adjust the camera, so that the world bounding box is fully visible. More...
 
void SetScaleFactorInMMPerDisplayUnit (ScalarType scale)
 Set the desired zoom-level to the absolute value given. More...
 
void MoveCameraToPoint (const Point2D &planePoint)
 MoveCameraToPoint Move camera so that the point on the plane is in the view center. More...
 
void MoveBy (const Vector2D &moveVectorInMM)
 
void Zoom (ScalarType factor, const Point2D &zoomPointInMM)
 
Point2D GetCameraPositionOnPlane ()
 
void AdjustCameraToPlane ()
 AdjustCameraToPlane Moves the camera of a 2D Renderwindow without panning or zooming, eg. only rotate the camera. More...
 
- Public Member Functions inherited from mitk::BaseController
StepperGetStepper ()
 Get the stepper through the corresponding dimension. More...
 
const StepperGetStepper () const
 
- Public Member Functions inherited from mitk::OperationActor
 itkTypeMacroNoParent (OperationActor) virtual ~OperationActor()
 

Static Public Member Functions

static const char * GetStaticNameOfClass ()
 
static Pointer New ()
 
- Static Public Member Functions inherited from mitk::BaseController
static const char * GetStaticNameOfClass ()
 
static Pointer New ()
 

Protected Member Functions

 CameraController ()
 Default Constructor. More...
 
 ~CameraController () override
 Default Destructor. More...
 
ScalarType ComputeMaxParallelScale ()
 
- Protected Member Functions inherited from mitk::BaseController
 BaseController ()
 Default Constructor. More...
 
 ~BaseController () override
 Default Destructor. More...
 
void ExecuteOperation (Operation *) override
 

Protected Attributes

const BaseRendererm_Renderer
 
- Protected Attributes inherited from mitk::BaseController
Stepper::Pointer m_Stepper
 
unsigned long m_LastUpdateTime
 

Detailed Description

controls the camera used by the associated BaseRenderer

Subclass of BaseController. Controls the camera used by the associated BaseRenderer.

Definition at line 29 of file mitkCameraController.h.

Member Typedef Documentation

◆ ConstPointer

◆ Pointer

◆ Self

◆ Superclass

Member Enumeration Documentation

◆ StandardView

Enumerator
ANTERIOR 
POSTERIOR 
SINISTER 
DEXTER 
CRANIAL 
CAUDAL 

Definition at line 32 of file mitkCameraController.h.

Constructor & Destructor Documentation

◆ CameraController()

mitk::CameraController::CameraController ( )
protected

Default Constructor.

◆ ~CameraController()

mitk::CameraController::~CameraController ( )
overrideprotected

Default Destructor.

Member Function Documentation

◆ AdjustCameraToPlane()

void mitk::CameraController::AdjustCameraToPlane ( )

AdjustCameraToPlane Moves the camera of a 2D Renderwindow without panning or zooming, eg. only rotate the camera.

◆ ComputeMaxParallelScale()

ScalarType mitk::CameraController::ComputeMaxParallelScale ( )
protected

◆ Fit()

void mitk::CameraController::Fit ( )

Fit Adjust the camera, so that the world bounding box is fully visible.

◆ GetCameraPositionOnPlane()

Point2D mitk::CameraController::GetCameraPositionOnPlane ( )

◆ GetClassHierarchy()

virtual std::vector<std::string> mitk::CameraController::GetClassHierarchy ( ) const
inlineoverridevirtual

Reimplemented from mitk::BaseController.

Definition at line 42 of file mitkCameraController.h.

◆ GetClassName()

virtual const char* mitk::CameraController::GetClassName ( ) const
virtual

Reimplemented from mitk::BaseController.

◆ GetRenderer()

virtual const BaseRenderer* mitk::CameraController::GetRenderer ( ) const
virtual

◆ GetStaticNameOfClass()

static const char* mitk::CameraController::GetStaticNameOfClass ( )
inlinestatic

Definition at line 42 of file mitkCameraController.h.

◆ MoveBy()

void mitk::CameraController::MoveBy ( const Vector2D moveVectorInMM)

◆ MoveCameraToPoint()

void mitk::CameraController::MoveCameraToPoint ( const Point2D planePoint)

MoveCameraToPoint Move camera so that the point on the plane is in the view center.

Parameters
planePoint

◆ New()

static Pointer mitk::CameraController::New ( )
static

◆ SetRenderer()

void mitk::CameraController::SetRenderer ( const BaseRenderer renderer)
inline

Definition at line 46 of file mitkCameraController.h.

◆ SetScaleFactorInMMPerDisplayUnit()

void mitk::CameraController::SetScaleFactorInMMPerDisplayUnit ( ScalarType  scale)

Set the desired zoom-level to the absolute value given.

◆ SetStandardView()

virtual void mitk::CameraController::SetStandardView ( StandardView  view)
virtual

◆ SetViewToAnterior()

virtual void mitk::CameraController::SetViewToAnterior ( )
virtual

◆ SetViewToCaudal()

virtual void mitk::CameraController::SetViewToCaudal ( )
virtual

◆ SetViewToCranial()

virtual void mitk::CameraController::SetViewToCranial ( )
virtual

◆ SetViewToDexter()

virtual void mitk::CameraController::SetViewToDexter ( )
virtual

◆ SetViewToPosterior()

virtual void mitk::CameraController::SetViewToPosterior ( )
virtual

◆ SetViewToSinister()

virtual void mitk::CameraController::SetViewToSinister ( )
virtual

◆ Zoom()

void mitk::CameraController::Zoom ( ScalarType  factor,
const Point2D zoomPointInMM 
)

Member Data Documentation

◆ m_Renderer

const BaseRenderer* mitk::CameraController::m_Renderer
protected

Definition at line 95 of file mitkCameraController.h.


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