19 #include <itkCommand.h>
20 #include <vtkCamera.h>
21 #include <vtkRenderWindow.h>
22 #include <vtkRenderer.h>
28 :
BaseController(), m_LastStepperValue(180), m_Camera(NULL), m_RenderWindow(NULL)
38 m_Slice->AddObserver(itk::ModifiedEvent(), sliceStepperChangedCommand);
49 this->AcquireCamera();
54 int newStepperValue = m_Slice->GetPos();
55 m_Camera->Azimuth(m_LastStepperValue - newStepperValue);
56 m_LastStepperValue = newStepperValue;
75 vtkCamera *vtkcam = vtkrenderer->GetActiveCamera();
82 m_Camera->Register(NULL);
86 m_Camera->UnRegister(NULL);
88 m_Camera->Register(NULL);
itk::SmartPointer< Self > Pointer
static BaseRenderer * GetInstance(vtkRenderWindow *renWin)
Baseclass for renderer slice-/camera-control.
Organizes the rendering process.
static RenderingManager * GetInstance()
CameraRotationController()
void RequestUpdate(vtkRenderWindow *renderWindow)
virtual ~CameraRotationController()
vtkRenderer * GetVtkRenderer() const
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.