20 #include <vtkRenderWindow.h>
21 #include <vtkRenderer.h>
32 if (m_RenderWindow !=
nullptr)
33 if (this->IsEnabled())
44 m_RenderWindow = renderWindow;
53 return m_RenderWindow;
72 this->SetLowerColor(r1, g1, b1);
73 this->SetUpperColor(r2, g2, b2);
78 this->SetGradientColors(upper[0], upper[1], upper[2], lower[0], lower[1], lower[2]);
83 m_Renderer->SetBackground(r, g, b);
88 m_Renderer->SetBackground2(r, g, b);
93 this->SetUpperColor(upper[0], upper[1], upper[2]);
98 this->SetLowerColor(lower[0], lower[1], lower[2]);
107 m_Renderer->GradientBackgroundOn();
117 if (this->IsEnabled())
119 m_Renderer->GradientBackgroundOff();
130 if (m_RenderWindow ==
nullptr)
virtual void SetLowerColor(double r, double g, double b)
virtual void SetRenderWindow(vtkSmartPointer< vtkRenderWindow > renderWindow)
vtkSmartPointer< vtkRenderer > m_Renderer
virtual void SetGradientColors(double r1, double g1, double b1, double r2, double g2, double b2)
static VtkLayerController * GetInstance(vtkSmartPointer< vtkRenderWindow > renWin)
vtkSmartPointer< vtkRenderWindow > m_RenderWindow
itk::RGBPixel< float > Color
Color Standard RGB color typedef (float)
void RemoveRenderer(vtkSmartPointer< vtkRenderer > renderer)
virtual vtkSmartPointer< vtkRenderWindow > GetRenderWindow()
virtual vtkSmartPointer< vtkRenderer > GetVtkRenderer()
void InsertBackgroundRenderer(vtkSmartPointer< vtkRenderer > renderer, bool forceAbsoluteBackground)
virtual void SetUpperColor(double r, double g, double b)
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.