VTK
Public Member Functions | List of all members
vtkRecti Class Reference

#include <vtkRect.h>

Inheritance diagram for vtkRecti:
[legend]
Collaboration diagram for vtkRecti:
[legend]

Public Member Functions

 vtkRecti ()
 
 vtkRecti (int x, int y, int width, int height)
 
 vtkRecti (const int *init)
 
- Public Member Functions inherited from vtkRect< int >
 vtkRect ()
 
 vtkRect (const int &x, const int &y, const int &width, const int &height)
 
 vtkRect (const int *init)
 
void Set (const int &x, const int &y, const int &width, const int &height)
 Set the x, y components of the rectangle, and the width/height. More...
 
void SetX (const int &x)
 Set the x component of the rectangle bottom corner, i.e. More...
 
const int & GetX () const
 Get the x component of the rectangle bottom corner, i.e. More...
 
void SetY (const int &y)
 Set the y component of the rectangle bottom corner, i.e. More...
 
const int & GetY () const
 Get the y component of the rectangle bottom corner, i.e. More...
 
void SetWidth (const int &width)
 Set the width of the rectanle, i.e. More...
 
const int & GetWidth () const
 Get the width of the rectangle, i.e. More...
 
void SetHeight (const int &height)
 Set the height of the rectangle, i.e. More...
 
const int & GetHeight () const
 Get the height of the rectangle, i.e. More...
 
const int & GetLeft () const
 Get the left boundary of the rectangle along the X direction. More...
 
int GetRight () const
 Get the right boundary of the rectangle along the X direction. More...
 
int GetTop () const
 Get the top boundary of the rectangle along the Y direction. More...
 
const int & GetBottom () const
 Get the bottom boundary of the rectangle along the Y direction. More...
 
vtkVector2< int > GetBottomLeft () const
 Get the bottom left corner of the rect as a vtkVector. More...
 
vtkVector< int, 2 > GetTopLeft () const
 Get the top left corner of the rect as a vtkVector. More...
 
vtkVector< int, 2 > GetBottomRight () const
 Get the bottom right corner of the rect as a vtkVector. More...
 
vtkVector< int, 2 > GetTopRight () const
 Get the bottom left corner of the rect as a vtkVector. More...
 
void AddPoint (const int point[2])
 Expand this rect to contain the point passed in. More...
 
void AddPoint (int x, int y)
 Expand this rect to contain the point passed in. More...
 
void AddRect (const vtkRect< int > &rect)
 Expand this rect to contain the rect passed in. More...
 
bool IntersectsWith (const vtkRect< int > &rect) const
 Returns true if the rect argument overlaps this rect. More...
 
void MoveTo (int x, int y)
 Move the rectangle, moving the bottom-left corner to the given position. More...
 
bool Intersect (const vtkRect< int > &other)
 Intersect with other rectangle. More...
 
- Public Member Functions inherited from vtkVector< int, 4 >
 vtkVector ()
 
 vtkVector (const int &scalar)
 Initialize all of the vector's elements with the supplied scalar. More...
 
 vtkVector (const int *init)
 Initialize the vector's elements with the elements of the supplied array. More...
 
int SquaredNorm () const
 Get the squared norm of the vector. More...
 
double Norm () const
 Get the norm of the vector, i.e. More...
 
double Normalize ()
 Normalize the vector in place. More...
 
vtkVector< int, Size > Normalized () const
 Return the normalized form of this vector. More...
 
int Dot (const vtkVector< int, Size > &other) const
 The dot product of this and the supplied vector. More...
 
vtkVector< TR, Size > Cast () const
 Cast the vector to the specified type, returning the result. More...
 
- Public Member Functions inherited from vtkTuple< int, Size >
 vtkTuple ()
 The default constructor does not initialize values. More...
 
 vtkTuple (const int &scalar)
 Initialize all of the tuple's elements with the supplied scalar. More...
 
 vtkTuple (const int *init)
 Initialize the tuple's elements with the elements of the supplied array. More...
 
int GetSize () const
 Get the size of the tuple. More...
 
int * GetData ()
 Get a pointer to the underlying data of the tuple. More...
 
const int * GetData () const
 
int & operator[] (int i)
 Get a reference to the underlying data element of the tuple. More...
 
const int & operator[] (int i) const
 
int operator() (int i) const
 Get the value of the tuple at the index specified. More...
 
bool Compare (const vtkTuple< int, Size > &other, const int &tol) const
 Equality operator with a tolerance to allow fuzzy comparisons. More...
 
vtkTuple< TR, Size > Cast () const
 Cast the tuple to the specified type, returning the result. More...
 

Additional Inherited Members

- Protected Attributes inherited from vtkTuple< int, Size >
int Data [Size]
 The only thing stored in memory! More...
 

Detailed Description

Definition at line 312 of file vtkRect.h.

Constructor & Destructor Documentation

◆ vtkRecti() [1/3]

vtkRecti::vtkRecti ( )
inline

Definition at line 315 of file vtkRect.h.

◆ vtkRecti() [2/3]

vtkRecti::vtkRecti ( int  x,
int  y,
int  width,
int  height 
)
inline

Definition at line 316 of file vtkRect.h.

◆ vtkRecti() [3/3]

vtkRecti::vtkRecti ( const int *  init)
inlineexplicit

Definition at line 320 of file vtkRect.h.


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