Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
The vtkMitkRectangleProp2 class Renders a rectangle into a renderwindow as a frame. More...
#include <vtkMitkRectangleProp.h>
Public Member Functions | |
vtkTypeMacro (vtkMitkRectangleProp, vtkProp) | |
void | SetColor (float col1, float col2, float col3) |
SetColor Set the color of the rectangle. More... | |
void | SetLineWidth (unsigned int lineWidth) |
int | RenderOverlay (vtkViewport *viewport) |
Static Public Member Functions | |
static vtkMitkRectangleProp * | New () |
Protected Member Functions | |
vtkMitkRectangleProp () | |
virtual | ~vtkMitkRectangleProp () |
void | CreateRectangle () |
CreateRectangle internal helper to fill a vtkPolydata with a rectangle. More... | |
void | UpdateRectangle () |
Protected Attributes | |
int | m_Height |
int | m_Width |
int | m_OriginX |
int | m_OriginY |
vtkIdType | m_BottomLeftR |
vtkIdType | m_BottomRightL |
vtkIdType | m_BottomLeftU |
vtkIdType | m_TopLeftD |
vtkIdType | m_TopLeftR |
vtkIdType | m_TopRightL |
vtkIdType | m_TopRightD |
vtkIdType | m_BottomRightU |
vtkSmartPointer< vtkPolyData > | m_PolyData |
m_PolyData holds the rectangle. More... | |
The vtkMitkRectangleProp2 class Renders a rectangle into a renderwindow as a frame.
This class is a replacement for the deprecated vtkMitkRectangleProp, which used to render the same effect with pure OpenGL.
Definition at line 34 of file vtkMitkRectangleProp.h.
|
protected |
Definition at line 32 of file vtkMitkRectangleProp.cpp.
References CreateRectangle(), m_PolyData, and mitk::New().
|
protectedvirtual |
Definition at line 55 of file vtkMitkRectangleProp.cpp.
|
protected |
CreateRectangle internal helper to fill a vtkPolydata with a rectangle.
Definition at line 104 of file vtkMitkRectangleProp.cpp.
References m_BottomLeftR, m_BottomLeftU, m_BottomRightL, m_BottomRightU, m_PolyData, m_TopLeftD, m_TopLeftR, m_TopRightD, m_TopRightL, and mitk::New().
Referenced by vtkMitkRectangleProp().
|
static |
int vtkMitkRectangleProp::RenderOverlay | ( | vtkViewport * | viewport | ) |
Definition at line 59 of file vtkMitkRectangleProp.cpp.
References m_Height, m_OriginX, m_OriginY, m_Width, and UpdateRectangle().
void vtkMitkRectangleProp::SetColor | ( | float | col1, |
float | col2, | ||
float | col3 | ||
) |
SetColor Set the color of the rectangle.
col1 | red |
col2 | green |
col3 | blue |
Definition at line 144 of file vtkMitkRectangleProp.cpp.
void vtkMitkRectangleProp::SetLineWidth | ( | unsigned int | lineWidth | ) |
Definition at line 149 of file vtkMitkRectangleProp.cpp.
|
protected |
Definition at line 82 of file vtkMitkRectangleProp.cpp.
References m_BottomLeftR, m_BottomLeftU, m_BottomRightL, m_BottomRightU, m_Height, m_OriginX, m_OriginY, m_PolyData, m_TopLeftD, m_TopLeftR, m_TopRightD, m_TopRightL, m_Width, and offset.
Referenced by RenderOverlay().
vtkMitkRectangleProp::vtkTypeMacro | ( | vtkMitkRectangleProp | , |
vtkProp | |||
) |
|
protected |
Definition at line 60 of file vtkMitkRectangleProp.h.
Referenced by CreateRectangle(), and UpdateRectangle().
|
protected |
Definition at line 60 of file vtkMitkRectangleProp.h.
Referenced by CreateRectangle(), and UpdateRectangle().
|
protected |
Definition at line 60 of file vtkMitkRectangleProp.h.
Referenced by CreateRectangle(), and UpdateRectangle().
|
protected |
Definition at line 60 of file vtkMitkRectangleProp.h.
Referenced by CreateRectangle(), and UpdateRectangle().
|
protected |
Definition at line 56 of file vtkMitkRectangleProp.h.
Referenced by RenderOverlay(), and UpdateRectangle().
|
protected |
Definition at line 58 of file vtkMitkRectangleProp.h.
Referenced by RenderOverlay(), and UpdateRectangle().
|
protected |
Definition at line 59 of file vtkMitkRectangleProp.h.
Referenced by RenderOverlay(), and UpdateRectangle().
|
protected |
m_PolyData holds the rectangle.
Definition at line 73 of file vtkMitkRectangleProp.h.
Referenced by CreateRectangle(), UpdateRectangle(), and vtkMitkRectangleProp().
|
protected |
Definition at line 60 of file vtkMitkRectangleProp.h.
Referenced by CreateRectangle(), and UpdateRectangle().
|
protected |
Definition at line 60 of file vtkMitkRectangleProp.h.
Referenced by CreateRectangle(), and UpdateRectangle().
|
protected |
Definition at line 60 of file vtkMitkRectangleProp.h.
Referenced by CreateRectangle(), and UpdateRectangle().
|
protected |
Definition at line 60 of file vtkMitkRectangleProp.h.
Referenced by CreateRectangle(), and UpdateRectangle().
|
protected |
Definition at line 57 of file vtkMitkRectangleProp.h.
Referenced by RenderOverlay(), and UpdateRectangle().