Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit

Controls azimuthal camera rotation driven by a Stepper. More...

#include <mitkCameraRotationController.h>

Inheritance diagram for mitk::CameraRotationController:
Collaboration diagram for mitk::CameraRotationController:

Public Member Functions

 mitkClassMacro (CameraRotationController, BaseController)
 
Pointer Clone () const
 
void RotateCamera ()
 Rotate the camera by the azimuth delta since the last stepper position. More...
 
void AcquireCamera ()
 Acquire the active VTK camera from the render window. More...
 
void SetRenderWindow (vtkRenderWindow *renWin)
 Set the VTK render window whose camera will be rotated. More...
 
- Public Member Functions inherited from mitk::BaseController
 mitkClassMacroItkParent (BaseController, OperationActor)
 
Stepper * GetStepper ()
 Get the stepper for stepping through the controlled dimension. More...
 
const Stepper * GetStepper () const
 Get the stepper for stepping through the controlled dimension (const). More...
 
- Public Member Functions inherited from mitk::OperationActor
 itkTypeMacroNoParent (OperationActor) virtual ~OperationActor()
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from mitk::BaseController
static Pointer New ()
 

Protected Member Functions

 CameraRotationController ()
 Constructor. Initializes the stepper with 360 steps and auto-repeat. More...
 
 ~CameraRotationController () override
 Destructor. More...
 
- Protected Member Functions inherited from mitk::BaseController
 BaseController ()
 Default constructor. More...
 
 ~BaseController () override
 Destructor. More...
 
void ExecuteOperation (Operation *) override
 Execute an undo/redo operation. More...
 

Additional Inherited Members

- Protected Attributes inherited from mitk::BaseController
Stepper::Pointer m_Stepper
 Stepper through the controlled dimension. More...
 
unsigned long m_LastUpdateTime
 Timestamp of the last update. More...
 

Detailed Description

Controls azimuthal camera rotation driven by a Stepper.

Uses an internal Stepper (inherited from BaseController) with 360 steps and auto-repeat to rotate the VTK camera around its focal point. Each time the stepper position changes, the camera is rotated by the corresponding azimuth delta and the render window is updated.

See also
BaseController CameraController

Definition at line 35 of file mitkCameraRotationController.h.

Constructor & Destructor Documentation

◆ CameraRotationController()

mitk::CameraRotationController::CameraRotationController ( )
protected

Constructor. Initializes the stepper with 360 steps and auto-repeat.

◆ ~CameraRotationController()

mitk::CameraRotationController::~CameraRotationController ( )
overrideprotected

Destructor.

Member Function Documentation

◆ AcquireCamera()

void mitk::CameraRotationController::AcquireCamera ( )

Acquire the active VTK camera from the render window.

Retrieves the vtkCamera from the VtkPropRenderer associated with the current render window and stores it internally.

◆ Clone()

Pointer mitk::CameraRotationController::Clone ( ) const

◆ mitkClassMacro()

mitk::CameraRotationController::mitkClassMacro ( CameraRotationController  ,
BaseController   
)

◆ New()

static Pointer mitk::CameraRotationController::New ( )
static

◆ RotateCamera()

void mitk::CameraRotationController::RotateCamera ( )

Rotate the camera by the azimuth delta since the last stepper position.

Called automatically when the internal stepper changes. Acquires the camera on first invocation if it has not been acquired yet.

◆ SetRenderWindow()

void mitk::CameraRotationController::SetRenderWindow ( vtkRenderWindow *  renWin)
inline

Set the VTK render window whose camera will be rotated.

Definition at line 62 of file mitkCameraRotationController.h.


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