35 vtkRect(
const T& x = 0,
const T& y = 0,
const T& width = 0,
40 this->
Data[2] = width;
41 this->
Data[3] = height;
48 void Set(
const T& x,
const T& y,
const T& width,
const T& height)
52 this->
Data[2] = width;
53 this->
Data[3] = height;
62 const T&
GetX()
const {
return this->
Data[0]; }
63 const T&
X()
const {
return this->
Data[0]; }
71 const T&
GetY()
const {
return this->
Data[1]; }
72 const T&
Y()
const {
return this->
Data[1]; }
98 vtkRecti(
int x = 0,
int y = 0,
int width = 0,
int height = 0)
99 :
vtkRect<int>(x, y, width, height) {}
106 vtkRectf(
float x = 0.0,
float y = 0.0,
float width = 0.0,
float height = 0.0)
107 :
vtkRect<float>(x, y, width, height) {}
114 vtkRectd(
double x = 0.0,
double y = 0.0,
double width = 0.0,
116 :
vtkRect<double>(x, y, width, height) {}
120 #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
vtkRect(const T &x=0, const T &y=0, const T &width=0, const T &height=0)
vtkRecti(int x=0, int y=0, int width=0, int height=0)
void Set(const T &x, const T &y, const T &width, const T &height)
vtkRectd(double x=0.0, double y=0.0, double width=0.0, double height=0.0)
vtkRecti(const int *init)
void SetHeight(const T &height)
const T & GetHeight() const
vtkRectf(float x=0.0, float y=0.0, float width=0.0, float height=0.0)
vtkRectf(const float *init)