39 vtkRect(
const T& x,
const T& y,
const T& width,
const T& height)
43 this->
Data[2] = width;
44 this->
Data[3] = height;
51 void Set(
const T& x,
const T& y,
const T& width,
const T& height)
55 this->
Data[2] = width;
56 this->
Data[3] = height;
64 const T&
GetX()
const {
return this->
Data[0]; }
70 const T&
GetY()
const {
return this->
Data[1]; }
85 VTK_LEGACY(
const T&
X()
const);
88 VTK_LEGACY(
const T&
Y()
const);
91 VTK_LEGACY(
const T&
Width()
const);
95 VTK_LEGACY(
const T&
Height()
const);
104 :
vtkRect<int>(x, y, width, height) {}
112 vtkRectf(
float x,
float y,
float width,
float height)
113 :
vtkRect<float>(x, y, width, height) {}
121 vtkRectd(
double x,
double y,
double width,
double height)
122 :
vtkRect<double>(x, y, width, height) {}
126 #ifndef VTK_LEGACY_REMOVE
145 return this->GetWidth();
152 return this->GetHeight();
155 #endif // VTK_LEGACY_REMOVE
158 #endif // __vtkRect_h
templated base type for storage of vectors.
vtkRectd(const double *init)
templated base type for storage of 2D rectangles.
void SetWidth(const T &width)
const T & GetWidth() const
void Set(const T &x, const T &y, const T &width, const T &height)
vtkRectf(float x, float y, float width, float height)
vtkRecti(int x, int y, int width, int height)
vtkRecti(const int *init)
void SetHeight(const T &height)
const T & GetHeight() const
vtkRectd(double x, double y, double width, double height)
vtkRect(const T &x, const T &y, const T &width, const T &height)
vtkRectf(const float *init)