Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
controls the camera used by the associated BaseRenderer More...
#include <mitkCameraController.h>
Public Types | |
enum | StandardView { ANTERIOR, POSTERIOR, SINISTER, DEXTER, CRANIAL, CAUDAL } |
typedef CameraController | Self |
typedef BaseController | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer< const Self > | ConstPointer |
Public Types inherited from mitk::BaseController | |
typedef BaseController | Self |
typedef mitk::OperationActor | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer< const Self > | ConstPointer |
Public Member Functions | |
virtual std::vector< std::string > | GetClassHierarchy () const override |
virtual const char * | GetClassName () const |
void | SetRenderer (const BaseRenderer *renderer) |
virtual const BaseRenderer * | GetRenderer () 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::Stepper * | GetSlice () |
Get the Stepper through the slices. More... | |
mitk::Stepper * | GetTime () |
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 BaseRenderer * | m_Renderer |
Protected Attributes inherited from mitk::BaseController | |
Stepper::Pointer | m_Time |
Stepper::Pointer | m_Slice |
unsigned long | m_LastUpdateTime |
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.
typedef itk::SmartPointer<const Self> mitk::CameraController::ConstPointer |
Definition at line 46 of file mitkCameraController.h.
Definition at line 46 of file mitkCameraController.h.
Definition at line 46 of file mitkCameraController.h.
Definition at line 46 of file mitkCameraController.h.
|
protected |
Default Constructor.
Definition at line 28 of file mitkCameraController.cpp.
|
protectedvirtual |
Default Destructor.
Definition at line 32 of file mitkCameraController.cpp.
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.
|
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.
|
inlineoverridevirtual |
Reimplemented from mitk::BaseController.
Definition at line 46 of file mitkCameraController.h.
|
virtual |
Reimplemented from mitk::BaseController.
|
virtual |
|
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.
planePoint |
Definition at line 205 of file mitkCameraController.cpp.
Referenced by QmitkStdMultiWidget::EnsureDisplayContainsPoint().
|
static |
Referenced by mitk::BaseRenderer::BaseRenderer().
|
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.
|
virtual |
Definition at line 142 of file mitkCameraController.cpp.
References mitk::DataStorage::ComputeBoundingBox(), mitk::BaseRenderer::GetVtkRenderer(), mitk::RenderingManager::RequestUpdateAll(), and mitk::BaseRenderer::Standard3D.
|
virtual |
Definition at line 112 of file mitkCameraController.cpp.
|
virtual |
Definition at line 137 of file mitkCameraController.cpp.
|
virtual |
Definition at line 132 of file mitkCameraController.cpp.
|
virtual |
Definition at line 127 of file mitkCameraController.cpp.
|
virtual |
Definition at line 117 of file mitkCameraController.cpp.
|
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.
|
protected |
Definition at line 99 of file mitkCameraController.h.