FTBBox Class Reference

#include <FTBBox.h>

List of all members.

Public Member Functions

 FTBBox ()
 FTBBox (float lx, float ly, float lz, float ux, float uy, float uz)
 FTBBox (FT_GlyphSlot glyph)
 ~FTBBox ()
FTBBoxMove (FTPoint distance)
FTBBoxoperator+= (const FTBBox &bbox)
void SetDepth (float depth)
 FTBBox ()
 FTBBox (float lx, float ly, float lz, float ux, float uy, float uz)
 FTBBox (FT_GlyphSlot glyph)
 ~FTBBox ()
FTBBoxMove (FTPoint distance)
FTBBoxoperator+= (const FTBBox &bbox)
void SetDepth (float depth)

Public Attributes

float lowerX
float lowerY
float lowerZ
float upperX
float upperY
float upperZ


Detailed Description

FTBBox is a convenience class for handling bounding boxes.

Definition at line 16 of file FTBBox.h.


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.

References FT_Outline_Get_CBox(), FT_GlyphSlotRec_::outline, FT_BBox_::xMax, FT_BBox_::xMin, FT_BBox_::yMax, and FT_BBox_::yMin.

FTBBox::~FTBBox (  )  [inline]

Destructor

Definition at line 72 of file FTBBox.h.

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.

References FT_Outline_Get_CBox(), FT_GlyphSlotRec_::outline, FT_BBox_::xMax, FT_BBox_::xMin, FT_BBox_::yMax, and FT_BBox_::yMin.

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 RootCsg::distance().

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().

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 RootCsg::distance().

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.


Member Data Documentation

float FTBBox::lowerX

The bounds of the box

Definition at line 114 of file FTBBox.h.

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

float FTBBox::lowerY

Definition at line 114 of file FTBBox.h.

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

float FTBBox::lowerZ

Definition at line 114 of file FTBBox.h.

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

float FTBBox::upperX

Definition at line 114 of file FTBBox.h.

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

float FTBBox::upperY

Definition at line 114 of file FTBBox.h.

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

float FTBBox::upperZ

Definition at line 114 of file FTBBox.h.

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


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:25:25 2011 for ROOT_528-00b_version by  doxygen 1.5.1