Main Page | Class Hierarchy | Data Structures | File List | Data Fields | Globals

FTBBox Class Reference

#include <FTBBox.h>


Detailed Description

FTBBox is a convenience class for handling bounding boxes.

Definition at line 16 of file FTBBox.h.

Public Member Functions

 FTBBox ()
 Default constructor.

 FTBBox (float lx, float ly, float lz, float ux, float uy, float uz)
 Constructor.

 FTBBox (FT_GlyphSlot glyph)
 Constructor.

 ~FTBBox ()
 Destructor.

FTBBoxMove (FTPoint distance)
 Move the Bounding Box by a vector.

FTBBoxoperator+= (const FTBBox &bbox)
void SetDepth (float depth)

Data Fields

float lowerX
 The bounds of the box.

float lowerY
 The bounds of the box.

float lowerZ
 The bounds of the box.

float upperX
 The bounds of the box.

float upperY
 The bounds of the box.

float upperZ
 The bounds of the box.


Constructor & Destructor Documentation

FTBBox::FTBBox  )  [inline]
 

Default constructor.

Bounding box is set to zero.

Definition at line 22 of file FTBBox.h.

FTBBox::FTBBox float  lx,
float  ly,
float  lz,
float  ux,
float  uy,
float  uz
[inline]
 

Constructor.

Definition at line 34 of file FTBBox.h.

FTBBox::FTBBox FT_GlyphSlot  glyph  )  [inline]
 

Constructor.

Extracts a bounding box from a freetype glyph. Uses the control box for the glyph. FT_Glyph_Get_CBox()

Parameters:
glyph A freetype glyph

Definition at line 49 of file FTBBox.h.

FTBBox::~FTBBox  )  [inline]
 

Destructor.

Definition at line 72 of file FTBBox.h.


Member Function Documentation

FTBBox& FTBBox::Move FTPoint  distance  )  [inline]
 

Move the Bounding Box by a vector.

Parameters:
distance The distance to move the bbox in 3D space.

Definition at line 81 of file FTBBox.h.

References FTPoint::X(), FTPoint::Y(), and FTPoint::Z().

Referenced by FTFont::BBox().

FTBBox& FTBBox::operator+= const FTBBox bbox  )  [inline]
 

Definition at line 92 of file FTBBox.h.

References lowerX, lowerY, lowerZ, upperX, upperY, and upperZ.

void FTBBox::SetDepth float  depth  )  [inline]
 

Definition at line 104 of file FTBBox.h.

Referenced by FTExtrdGlyph::FTExtrdGlyph().


Field Documentation

float FTBBox::lowerX
 

The bounds of the box.

Definition at line 114 of file FTBBox.h.

Referenced by FTFont::BBox(), and operator+=().

float FTBBox::lowerY
 

The bounds of the box.

Definition at line 114 of file FTBBox.h.

Referenced by FTFont::BBox(), and operator+=().

float FTBBox::lowerZ
 

The bounds of the box.

Definition at line 114 of file FTBBox.h.

Referenced by FTFont::BBox(), and operator+=().

float FTBBox::upperX
 

The bounds of the box.

Definition at line 114 of file FTBBox.h.

Referenced by FTFont::BBox(), and operator+=().

float FTBBox::upperY
 

The bounds of the box.

Definition at line 114 of file FTBBox.h.

Referenced by FTFont::BBox(), and operator+=().

float FTBBox::upperZ
 

The bounds of the box.

Definition at line 114 of file FTBBox.h.

Referenced by FTFont::BBox(), and operator+=().


The documentation for this class was generated from the following file:
Generated on Sun Dec 5 22:24:06 2004 for FTGL by doxygen 1.3.6