Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
vtkMitkRectangleProp Class Reference

The vtkMitkRectangleProp2 class Renders a rectangle into a renderwindow as a frame. More...

#include <vtkMitkRectangleProp.h>

Inheritance diagram for vtkMitkRectangleProp:
Collaboration diagram for vtkMitkRectangleProp:

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 vtkMitkRectanglePropNew ()
 

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

vtkMitkRectangleProp::vtkMitkRectangleProp ( )
protected

Definition at line 32 of file vtkMitkRectangleProp.cpp.

References CreateRectangle(), m_PolyData, and mitk::New().

vtkMitkRectangleProp::~vtkMitkRectangleProp ( )
protectedvirtual

Definition at line 55 of file vtkMitkRectangleProp.cpp.

Member Function Documentation

void vtkMitkRectangleProp::CreateRectangle ( )
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 vtkMitkRectangleProp* vtkMitkRectangleProp::New ( )
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.

Parameters
col1red
col2green
col3blue

Definition at line 144 of file vtkMitkRectangleProp.cpp.

void vtkMitkRectangleProp::SetLineWidth ( unsigned int  lineWidth)

Definition at line 149 of file vtkMitkRectangleProp.cpp.

void vtkMitkRectangleProp::UpdateRectangle ( )
protected
vtkMitkRectangleProp::vtkTypeMacro ( vtkMitkRectangleProp  ,
vtkProp   
)

Member Data Documentation

vtkIdType vtkMitkRectangleProp::m_BottomLeftR
protected

Definition at line 60 of file vtkMitkRectangleProp.h.

Referenced by CreateRectangle(), and UpdateRectangle().

vtkIdType vtkMitkRectangleProp::m_BottomLeftU
protected

Definition at line 60 of file vtkMitkRectangleProp.h.

Referenced by CreateRectangle(), and UpdateRectangle().

vtkIdType vtkMitkRectangleProp::m_BottomRightL
protected

Definition at line 60 of file vtkMitkRectangleProp.h.

Referenced by CreateRectangle(), and UpdateRectangle().

vtkIdType vtkMitkRectangleProp::m_BottomRightU
protected

Definition at line 60 of file vtkMitkRectangleProp.h.

Referenced by CreateRectangle(), and UpdateRectangle().

int vtkMitkRectangleProp::m_Height
protected

Definition at line 56 of file vtkMitkRectangleProp.h.

Referenced by RenderOverlay(), and UpdateRectangle().

int vtkMitkRectangleProp::m_OriginX
protected

Definition at line 58 of file vtkMitkRectangleProp.h.

Referenced by RenderOverlay(), and UpdateRectangle().

int vtkMitkRectangleProp::m_OriginY
protected

Definition at line 59 of file vtkMitkRectangleProp.h.

Referenced by RenderOverlay(), and UpdateRectangle().

vtkSmartPointer<vtkPolyData> vtkMitkRectangleProp::m_PolyData
protected

m_PolyData holds the rectangle.

Definition at line 73 of file vtkMitkRectangleProp.h.

Referenced by CreateRectangle(), UpdateRectangle(), and vtkMitkRectangleProp().

vtkIdType vtkMitkRectangleProp::m_TopLeftD
protected

Definition at line 60 of file vtkMitkRectangleProp.h.

Referenced by CreateRectangle(), and UpdateRectangle().

vtkIdType vtkMitkRectangleProp::m_TopLeftR
protected

Definition at line 60 of file vtkMitkRectangleProp.h.

Referenced by CreateRectangle(), and UpdateRectangle().

vtkIdType vtkMitkRectangleProp::m_TopRightD
protected

Definition at line 60 of file vtkMitkRectangleProp.h.

Referenced by CreateRectangle(), and UpdateRectangle().

vtkIdType vtkMitkRectangleProp::m_TopRightL
protected

Definition at line 60 of file vtkMitkRectangleProp.h.

Referenced by CreateRectangle(), and UpdateRectangle().

int vtkMitkRectangleProp::m_Width
protected

Definition at line 57 of file vtkMitkRectangleProp.h.

Referenced by RenderOverlay(), and UpdateRectangle().


The documentation for this class was generated from the following files: