VTK
Public Member Functions
vtkRect< T > Class Template Reference

templated base type for storage of 2D rectangles. More...

#include <vtkRect.h>

Inheritance diagram for vtkRect< T >:
Inheritance graph
[legend]
Collaboration diagram for vtkRect< T >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 vtkRect ()
 vtkRect (const T &x, const T &y, const T &width, const T &height)
 vtkRect (const T *init)
void SetX (const T &x)
const T & GetX () const
void SetY (const T &y)
const T & GetY () const
void SetWidth (const T &width)
const T & GetWidth () const
void SetHeight (const T &height)
const T & GetHeight () const
const T & X () const
const T & Y () const
const T & Width () const
void Set (const T &x, const T &y, const T &width, const T &height)
const T & Height () const

Detailed Description

template<typename T>
class vtkRect< T >

templated base type for storage of 2D rectangles.

This class is a templated data type for storing and manipulating rectangles. The memory layout is a contiguous array of the specified type, such that a float[4] can be cast to a vtkRectf and manipulated. Also a float[12] could be cast and used as a vtkRectf[3].

Definition at line 32 of file vtkRect.h.


Constructor & Destructor Documentation

template<typename T>
vtkRect< T >::vtkRect ( ) [inline]

Definition at line 35 of file vtkRect.h.

template<typename T>
vtkRect< T >::vtkRect ( const T &  x,
const T &  y,
const T &  width,
const T &  height 
) [inline]

Definition at line 39 of file vtkRect.h.

template<typename T>
vtkRect< T >::vtkRect ( const T *  init) [inline, explicit]

Definition at line 47 of file vtkRect.h.


Member Function Documentation

template<typename T>
void vtkRect< T >::Set ( const T &  x,
const T &  y,
const T &  width,
const T &  height 
) [inline]

Set the x, y components of the rectangle, and the width/height.

Definition at line 51 of file vtkRect.h.

template<typename T>
void vtkRect< T >::SetX ( const T &  x) [inline]

Set the x component of the rectangle bottom corner, i.e. element 0.

Definition at line 61 of file vtkRect.h.

template<typename T>
const T& vtkRect< T >::GetX ( ) const [inline]

Get the x component of the rectangle bottom corner, i.e. element 0.

Definition at line 64 of file vtkRect.h.

template<typename T>
void vtkRect< T >::SetY ( const T &  y) [inline]

Set the y component of the rectangle bottom corner, i.e. element 1.

Definition at line 67 of file vtkRect.h.

template<typename T>
const T& vtkRect< T >::GetY ( ) const [inline]

Get the y component of the rectangle bottom corner, i.e. element 1.

Definition at line 70 of file vtkRect.h.

template<typename T>
void vtkRect< T >::SetWidth ( const T &  width) [inline]

Set the width of the rectanle, i.e. element 2.

Definition at line 73 of file vtkRect.h.

template<typename T>
const T& vtkRect< T >::GetWidth ( ) const [inline]

Get the width of the rectangle, i.e. element 2.

Definition at line 76 of file vtkRect.h.

template<typename T>
void vtkRect< T >::SetHeight ( const T &  height) [inline]

Set the height of the rectangle, i.e. element 3.

Definition at line 79 of file vtkRect.h.

template<typename T>
const T& vtkRect< T >::GetHeight ( ) const [inline]

Get the height of the rectangle, i.e. element 3.

Definition at line 82 of file vtkRect.h.

template<typename T >
const T & vtkRect< T >::X ( ) const

Legacy method for getting the x position.

Definition at line 128 of file vtkRect.h.

template<typename T >
const T & vtkRect< T >::Y ( ) const

Legacy method for getting the y position.

Definition at line 135 of file vtkRect.h.

template<typename T >
const T & vtkRect< T >::Width ( ) const

Legacy method for getting the width.

Definition at line 142 of file vtkRect.h.

template<typename T >
const T & vtkRect< T >::Height ( ) const

Legacy method for getting the height.

Definition at line 149 of file vtkRect.h.


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