21 #include <vtkRenderWindow.h>
22 #include <vtkRenderer.h>
34 if (m_RenderWindow !=
nullptr)
35 if (this->IsEnabled())
46 m_RenderWindow = renderWindow;
55 return m_RenderWindow;
65 return m_RectangleRenderer;
74 if (this->IsEnabled())
76 m_RectangleRenderer->EraseOn();
89 rect->SetColor(col1, col2, col3);
91 m_RectangleRenderer->AddActor(rect);
94 m_RectangleRenderer->EraseOff();
95 m_RectangleRenderer->SetInteractive(0);
vtkSmartPointer< vtkRenderWindow > m_RenderWindow
virtual vtkSmartPointer< vtkRenderWindow > GetRenderWindow()
void InsertForegroundRenderer(vtkSmartPointer< vtkRenderer > renderer, bool forceAbsoluteForeground)
virtual vtkSmartPointer< vtkRenderer > GetVtkRenderer()
static VtkLayerController * GetInstance(vtkSmartPointer< vtkRenderWindow > renWin)
vtkSmartPointer< vtkRenderer > m_RectangleRenderer
void RemoveRenderer(vtkSmartPointer< vtkRenderer > renderer)
virtual void SetRenderWindow(vtkSmartPointer< vtkRenderWindow > renderWindow)
virtual void Enable(float col1, float col2, float col3)
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.