22 #include "vtkRenderWindowInteractor.h"
23 #include "vtkRenderer.h"
29 : m_vtkRenderWindow(renWin), m_vtkRenderWindowInteractor(NULL), m_vtkMitkEventProvider(NULL)
71 m_vtkRenderWindow->Delete();
72 m_vtkRenderWindowInteractor->Delete();
73 m_vtkMitkEventProvider->Delete();
78 return m_vtkRenderWindow;
83 return m_vtkRenderWindowInteractor;
88 this->GetVtkRenderWindow()->SetSize(width, height);
93 m_vtkMitkEventProvider->SetEnabled(0);
94 m_vtkMitkEventProvider->SetInteractor(this->GetVtkRenderWindowInteractor());
95 m_vtkMitkEventProvider->SetMitkRenderWindow(
this);
96 m_vtkMitkEventProvider->SetEnabled(1);
virtual vtkRenderWindow * GetVtkRenderWindow() override
virtual void SetInteractor(vtkRenderWindowInteractor *iren) override
RenderWindow(vtkRenderWindow *existingRenderWindow=NULL, const char *name="unnamed renderer", mitk::RenderingManager *rm=NULL, mitk::BaseRenderer::RenderingMode::Type rmtype=mitk::BaseRenderer::RenderingMode::Standard)
virtual void SetEnabled(int) override
static vtkEventProvider * New()
Manager for coordinating the rendering process.
virtual void SetMitkRenderWindow(mitk::RenderWindow *renWin)
virtual vtkRenderWindowInteractor * GetVtkRenderWindowInteractor() override
vtkRenderWindowInteractor * m_vtkRenderWindowInteractor
void Initialize(mitk::RenderingManager *renderingManager=NULL, const char *name="unnamed renderer", mitk::BaseRenderer::RenderingMode::Type renderingMode=mitk::BaseRenderer::RenderingMode::Standard)
vtkEventProvider * m_vtkMitkEventProvider
vtkRenderWindow * m_vtkRenderWindow
void ReinitEventProvider()
Initializes the mitkVtkEventProvider to listen to the currently used vtkInteractorStyle.
void SetSize(int width, int height)
Convenience method to set the size of an mitkRenderWindow.
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.