FTGL 2.1.3~rc5
|
FTBBox is a convenience class for handling bounding boxes. More...
#include <FTBBox.h>
Public Member Functions | |
FTBBox () | |
Default constructor. | |
FTBBox (float lx, float ly, float lz, float ux, float uy, float uz) | |
Constructor. | |
FTBBox (FTPoint l, FTPoint u) | |
Constructor. | |
FTBBox (FT_GlyphSlot glyph) | |
Constructor. | |
~FTBBox () | |
Destructor. | |
void | Invalidate () |
Mark the bounds invalid by setting all lower dimensions greater than the upper dimensions. | |
bool | IsValid () |
Determines if this bounding box is valid. | |
FTBBox & | operator+= (const FTPoint vector) |
Move the Bounding Box by a vector. | |
FTBBox & | operator|= (const FTBBox &bbox) |
Combine two bounding boxes. | |
void | SetDepth (float depth) |
FTPoint const | Upper () const |
FTPoint const | Lower () const |
FTBBox::FTBBox | ( | ) | [inline] |
FTBBox::FTBBox | ( | float | lx, |
float | ly, | ||
float | lz, | ||
float | ux, | ||
float | uy, | ||
float | uz | ||
) | [inline] |
FTBBox::FTBBox | ( | FT_GlyphSlot | glyph | ) | [inline] |
void FTBBox::Invalidate | ( | ) | [inline] |
bool FTBBox::IsValid | ( | ) | [inline] |
FTPoint const FTBBox::Lower | ( | ) | const [inline] |
Definition at line 165 of file FTBBox.h.
Referenced by FTFont::BBox().
Combine two bounding boxes.
The result is the smallest bounding box containing the two original boxes.
bbox | The bounding box to merge with the second one. |
Definition at line 138 of file FTBBox.h.
References FTPoint::X(), FTPoint::Y(), and FTPoint::Z().
FTPoint const FTBBox::Upper | ( | ) | const [inline] |
Definition at line 159 of file FTBBox.h.
Referenced by FTFont::BBox().