Medical Imaging Interaction Toolkit  2018.4.99-3e3f1a6e
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 mitk::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
mitk::StepperGetSlice ()
 Get the Stepper through the slices. More...
 
mitk::StepperGetTime ()
 Get the Stepper through the time. More...
 
- 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_Time
 
Stepper::Pointer m_Slice
 
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.

Definition at line 24 of file mitkCameraController.cpp.

◆ ~CameraController()

mitk::CameraController::~CameraController ( )
overrideprotected

Default Destructor.

Definition at line 28 of file mitkCameraController.cpp.

Member Function Documentation

◆ AdjustCameraToPlane()

◆ ComputeMaxParallelScale()

◆ Fit()

◆ GetCameraPositionOnPlane()

mitk::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

Definition at line 200 of file mitkCameraController.cpp.

References AdjustCameraToPlane().

Referenced by QmitkStdMultiWidget::EnsureDisplayContainsPoint(), Fit(), MoveBy(), and Zoom().

◆ New()

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

◆ SetRenderer()

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

Definition at line 46 of file mitkCameraController.h.

References Fit().

◆ SetScaleFactorInMMPerDisplayUnit()

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

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

Definition at line 335 of file mitkCameraController.cpp.

References GetRenderer(), mitk::BaseRenderer::GetVtkRenderer(), and mitk::BaseRenderer::Standard2D.

◆ SetStandardView()

◆ SetViewToAnterior()

void mitk::CameraController::SetViewToAnterior ( )
virtual

Definition at line 108 of file mitkCameraController.cpp.

References ANTERIOR, and SetStandardView().

Referenced by mitk::RenderingManager::InitializeView().

◆ SetViewToCaudal()

void mitk::CameraController::SetViewToCaudal ( )
virtual

Definition at line 133 of file mitkCameraController.cpp.

References CAUDAL, and SetStandardView().

◆ SetViewToCranial()

void mitk::CameraController::SetViewToCranial ( )
virtual

Definition at line 128 of file mitkCameraController.cpp.

References CRANIAL, and SetStandardView().

◆ SetViewToDexter()

void mitk::CameraController::SetViewToDexter ( )
virtual

Definition at line 123 of file mitkCameraController.cpp.

References DEXTER, and SetStandardView().

◆ SetViewToPosterior()

void mitk::CameraController::SetViewToPosterior ( )
virtual

Definition at line 113 of file mitkCameraController.cpp.

References POSTERIOR, and SetStandardView().

Referenced by QmitkPolhemusTrackerWidget::OnStartTracking().

◆ SetViewToSinister()

void mitk::CameraController::SetViewToSinister ( )
virtual

Definition at line 118 of file mitkCameraController.cpp.

References SetStandardView(), and SINISTER.

◆ Zoom()

Member Data Documentation

◆ m_Renderer

const BaseRenderer* mitk::CameraController::m_Renderer
protected

Definition at line 95 of file mitkCameraController.h.

Referenced by SetStandardView().


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