13 #ifndef vtkMitkRectangleProp_h
14 #define vtkMitkRectangleProp_h
18 #include <vtkActor2D.h>
19 #include <vtkSmartPointer.h>
44 void SetColor(
float red,
float green,
float blue);
73 void CreateRectangle();
76 void UpdateRectangle();
83 vtkIdType m_BottomLeft;
84 vtkIdType m_BottomRight;
Renders a colored rectangle border into a vtkRenderWindow.
vtkTypeMacro(vtkMitkRectangleProp, vtkProp)
vtkMitkRectangleProp()
Constructor. Creates the rectangle poly data and mapper.
void SetColor(float red, float green, float blue)
Set the color of the rectangle border.
static vtkMitkRectangleProp * New()
Create a new instance of vtkMitkRectangleProp.
void SetLineWidth(unsigned int lineWidth)
Set the line width of the rectangle border.
int RenderOverlay(vtkViewport *viewport) override
Render the rectangle as an overlay.
~vtkMitkRectangleProp() override
Destructor.