49 return myX == p2.
myX && myY == p2.
myY;
55 return myX != p2.
myX || myY != p2.
myY;
88 DtPen(
float x = 0.0f,
float y = 0.0f );
125 bool contains(
float x,
float y)
const;
138 void expandTo(
float width,
float height );
141 void getCenter(
Dt2dPoint& point )
const;
147 inline float width()
const {
return myUpperPoint.myX - myLowerPoint.myX;}
150 inline float height()
const {
return myUpperPoint.myY - myLowerPoint.myY;}
172 void toPoints(
float points[8] )
const;
bool operator!=(const Dt2dPoint &p2) const
Do these two points have different values?
Definition: DtBoundingBox.h:53
Dt2dPoint myLocation
Definition: DtBoundingBox.h:92
float height() const
Get the bounding box height.
Definition: DtBoundingBox.h:150
A 2D point.
Definition: DtBoundingBox.h:19
Dt2dPoint myLowerPoint
Definition: DtBoundingBox.h:176
Dt2dPoint & operator-=(const Dt2dPoint &p2)
Decrement this point by another.
Definition: DtBoundingBox.h:39
Dt2dPoint & lowerPoint()
Get the lower point.
Definition: DtBoundingBox.h:164
Dt2dPoint operator+(const Dt2dPoint &p2) const
Create a new point which is these two points added together.
Definition: DtBoundingBox.h:59
#define DT_DLL_VRVGRAPHICS
Contains DLL export macros.
Definition: vrvGraphics.h:19
bool operator==(const Dt2dPoint &p2) const
Do these two points have the same values?
Definition: DtBoundingBox.h:47
float myY
Definition: DtBoundingBox.h:73
Dt2dPoint(float x=0.0f, float y=0.0f)
Constructor takes the x & y values,.
Definition: DtBoundingBox.h:24
Dt2dPoint myUpperPoint
Definition: DtBoundingBox.h:177
Dt2dPoint operator-(const Dt2dPoint &p2) const
Create a new point which is this point subtracted by another.
Definition: DtBoundingBox.h:65
Dt2dPoint & operator+=(const Dt2dPoint &p2)
Increment this point by another.
Definition: DtBoundingBox.h:31
const Dt2dPoint & upperPoint() const
Get the upper point (const).
Definition: DtBoundingBox.h:161
A pen object with parameters on how to draw text.
Definition: DtBoundingBox.h:80
float width() const
Get the bounding box width.
Definition: DtBoundingBox.h:147
const Dt2dPoint & lowerPoint() const
Get the lower point (const).
Definition: DtBoundingBox.h:167
float myX
Definition: DtBoundingBox.h:72
Dt2dPoint & upperPoint()
Get the upper point.
Definition: DtBoundingBox.h:158
A simple bounding box.
Definition: DtBoundingBox.h:101
Dt2dPoint mySpacing
Definition: DtBoundingBox.h:93