Medical Imaging Interaction Toolkit  2016.11.0
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...
 
virtual ~CameraController ()
 Default Destructor. More...
 
ScalarType ComputeMaxParallelScale ()
 
- Protected Member Functions inherited from mitk::BaseController
 BaseController ()
 Default Constructor. More...
 
virtual ~BaseController ()
 Default Destructor. More...
 
virtual 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 33 of file mitkCameraController.h.

Member Typedef Documentation

Constructor & Destructor Documentation

mitk::CameraController::CameraController ( )
protected

Default Constructor.

Definition at line 28 of file mitkCameraController.cpp.

mitk::CameraController::~CameraController ( )
protectedvirtual

Default Destructor.

Definition at line 32 of file mitkCameraController.cpp.

Member Function Documentation

void mitk::CameraController::AdjustCameraToPlane ( )

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

Definition at line 253 of file mitkCameraController.cpp.

References mitk::BaseRenderer::Standard2D.

mitk::ScalarType mitk::CameraController::ComputeMaxParallelScale ( )
protected

Definition at line 36 of file mitkCameraController.cpp.

void mitk::CameraController::Fit ( )

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

Definition at line 323 of file mitkCameraController.cpp.

References mitk::BaseRenderer::Standard2D.

Referenced by QmlMitkRenderWindowItem::geometryChanged(), QmitkSliceWidget::InitWidget(), and QmitkSliceWidget::UpdateGL().

mitk::Point2D mitk::CameraController::GetCameraPositionOnPlane ( )

Definition at line 244 of file mitkCameraController.cpp.

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

Reimplemented from mitk::BaseController.

Definition at line 46 of file mitkCameraController.h.

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

Reimplemented from mitk::BaseController.

virtual const BaseRenderer* mitk::CameraController::GetRenderer ( ) const
virtual
static const char* mitk::CameraController::GetStaticNameOfClass ( )
inlinestatic

Definition at line 46 of file mitkCameraController.h.

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

Definition at line 213 of file mitkCameraController.cpp.

Referenced by mitk::DisplayInteractor::Move().

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 205 of file mitkCameraController.cpp.

Referenced by QmitkStdMultiWidget::EnsureDisplayContainsPoint().

static Pointer mitk::CameraController::New ( )
static
void mitk::CameraController::SetRenderer ( const BaseRenderer renderer)
inline

Definition at line 50 of file mitkCameraController.h.

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

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

Definition at line 340 of file mitkCameraController.cpp.

References mitk::BaseRenderer::Standard2D.

void mitk::CameraController::SetViewToAnterior ( )
virtual

Definition at line 112 of file mitkCameraController.cpp.

void mitk::CameraController::SetViewToCaudal ( )
virtual

Definition at line 137 of file mitkCameraController.cpp.

void mitk::CameraController::SetViewToCranial ( )
virtual

Definition at line 132 of file mitkCameraController.cpp.

void mitk::CameraController::SetViewToDexter ( )
virtual

Definition at line 127 of file mitkCameraController.cpp.

void mitk::CameraController::SetViewToPosterior ( )
virtual

Definition at line 117 of file mitkCameraController.cpp.

void mitk::CameraController::SetViewToSinister ( )
virtual

Definition at line 122 of file mitkCameraController.cpp.

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

Definition at line 218 of file mitkCameraController.cpp.

References mitk::eps, and mitk::BaseRenderer::Standard2D.

Member Data Documentation

const BaseRenderer* mitk::CameraController::m_Renderer
protected

Definition at line 99 of file mitkCameraController.h.


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