20 #include "vtkRenderer.h"
44 if (renderingManager == NULL)
49 if (m_Renderer.IsNull())
54 m_Renderer->InitRenderer(this->GetVtkRenderWindow());
61 m_RenderProp->SetPropRenderer(m_Renderer);
62 m_Renderer->GetVtkRenderer()->AddViewProp(m_RenderProp);
64 if ((this->GetVtkRenderWindow()->GetSize()[0] > 10) && (this->GetVtkRenderWindow()->GetSize()[1] > 10))
65 m_Renderer->InitSize(this->GetVtkRenderWindow()->GetSize()[0], this->GetVtkRenderWindow()->GetSize()[1]);
72 return m_Renderer->GetDispatcher()->ProcessEvent(interactionEvent);
77 m_Renderer->GetRenderingManager()->RemoveRenderWindow(GetVtkRenderWindow());
79 m_Renderer->GetVtkRenderer()->RemoveViewProp(m_RenderProp);
80 m_RenderProp->Delete();
103 return GetSliceNavigationController();
106 return GetCameraRotationController();
109 return GetSliceNavigationController();
virtual mitk::CameraRotationController * GetCameraRotationController()
virtual bool HandleEvent(InteractionEvent *interactionEvent)
static BaseRenderer * GetInstance(vtkRenderWindow *renWin)
Baseclass for renderer slice-/camera-control.
Organizes the rendering process.
Controls the selection of the slice the associated BaseRenderer will display.
Manager for coordinating the rendering process.
static RenderingManager * GetInstance()
virtual MapperSlotId GetMapperID()
Get the MapperSlotId to use.
virtual CameraRotationController * GetCameraRotationController()
virtual mitk::VtkPropRenderer * GetRenderer()
virtual ~RenderWindowBase()
void AddRenderWindow(vtkRenderWindow *renderWindow)
static vtkMitkRenderProp * New()
static Pointer New(const char *_arga, vtkRenderWindow *_argb, mitk::RenderingManager *_argc)
void Initialize(mitk::RenderingManager *renderingManager=NULL, const char *name="unnamed renderer", mitk::BaseRenderer::RenderingMode::Type renderingMode=mitk::BaseRenderer::RenderingMode::Standard)
virtual SliceNavigationController * GetSliceNavigationController()
virtual mitk::SliceNavigationController * GetSliceNavigationController()
static void RemoveInstance(vtkRenderWindow *renWin)
static void AddInstance(vtkRenderWindow *renWin, BaseRenderer *baseRenderer)
virtual mitk::BaseController * GetController()