|
FTGL 2.4.0
|
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 |
|
inline |
Default constructor.
Bounding box is set to zero.
Definition at line 48 of file FTBBox.h.
Referenced by operator+=(), and operator|=().
|
inline |
|
inline |
|
inline |
Mark the bounds invalid by setting all lower dimensions greater than the upper dimensions.
Definition at line 100 of file FTBBox.h.
References FTPoint::FTPoint().
|
inline |
|
inline |
Definition at line 165 of file FTBBox.h.
Referenced by FTFont::BBox(), and 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 FTBBox(), FTPoint::X(), FTPoint::Y(), and FTPoint::Z().
|
inline |
Definition at line 159 of file FTBBox.h.
Referenced by FTFont::BBox(), and FTFont::BBox().