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

Additional Inherited Members

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

Detailed Description

Definition at line 321 of file vtkRect.h.

Constructor & Destructor Documentation

◆ vtkRecti() [1/3]

vtkRecti::vtkRecti ( )
default

◆ vtkRecti() [2/3]

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

Definition at line 325 of file vtkRect.h.

◆ vtkRecti() [3/3]

vtkRecti::vtkRecti ( const int *  init)
inlineexplicit

Definition at line 329 of file vtkRect.h.


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