Renders a colored rectangle border into a vtkRenderWindow.
More...
#include <vtkMitkRectangleProp.h>
Renders a colored rectangle border into a vtkRenderWindow.
This class draws a rectangular frame (border) into the render window overlay. The rectangle automatically adjusts its size to match the viewport dimensions.
Definition at line 30 of file vtkMitkRectangleProp.h.
◆ vtkMitkRectangleProp()
| vtkMitkRectangleProp::vtkMitkRectangleProp |
( |
| ) |
|
|
protected |
Constructor. Creates the rectangle poly data and mapper.
◆ ~vtkMitkRectangleProp()
| vtkMitkRectangleProp::~vtkMitkRectangleProp |
( |
| ) |
|
|
overrideprotected |
◆ New()
◆ RenderOverlay()
| int vtkMitkRectangleProp::RenderOverlay |
( |
vtkViewport * |
viewport | ) |
|
|
override |
Render the rectangle as an overlay.
Updates the rectangle geometry if the viewport size has changed, then renders the rectangle.
- Parameters
-
| [in] | viewport | The viewport to render into. |
- Returns
- 1 on success, 0 if the mapper is not set or the prop is not visible.
◆ SetColor()
| void vtkMitkRectangleProp::SetColor |
( |
float |
red, |
|
|
float |
green, |
|
|
float |
blue |
|
) |
| |
Set the color of the rectangle border.
- Parameters
-
| [in] | red | Red component (0.0 to 1.0). |
| [in] | green | Green component (0.0 to 1.0). |
| [in] | blue | Blue component (0.0 to 1.0). |
◆ SetLineWidth()
| void vtkMitkRectangleProp::SetLineWidth |
( |
unsigned int |
lineWidth | ) |
|
Set the line width of the rectangle border.
- Parameters
-
| [in] | lineWidth | The line width in pixels. |
◆ vtkTypeMacro()
The documentation for this class was generated from the following file: