FTPoint Class Reference

#include <FTPoint.h>

List of all members.

Public Member Functions

 FTPoint ()
 FTPoint (const FTGL_DOUBLE x, const FTGL_DOUBLE y, const FTGL_DOUBLE z)
 FTPoint (const FT_Vector &ft_vector)
FTPointoperator+= (const FTPoint &point)
FTPoint operator+ (const FTPoint &point)
FTPoint operator * (double multiplier)
 operator const FTGL_DOUBLE * () const
void X (FTGL_DOUBLE x)
void Y (FTGL_DOUBLE y)
void Z (FTGL_DOUBLE z)
FTGL_DOUBLE X () const
FTGL_DOUBLE Y () const
FTGL_DOUBLE Z () const
 FTPoint ()
 FTPoint (const FTGL_DOUBLE x, const FTGL_DOUBLE y, const FTGL_DOUBLE z)
 FTPoint (const FT_Vector &ft_vector)
FTPointoperator+= (const FTPoint &point)
FTPoint operator+ (const FTPoint &point)
FTPoint operator * (double multiplier)
 operator const FTGL_DOUBLE * () const
void X (FTGL_DOUBLE x)
void Y (FTGL_DOUBLE y)
void Z (FTGL_DOUBLE z)
FTGL_DOUBLE X () const
FTGL_DOUBLE Y () const
FTGL_DOUBLE Z () const

Private Attributes

FTGL_DOUBLE values [3]

Friends

FTPoint operator * (double multiplier, FTPoint &point)
bool operator== (const FTPoint &a, const FTPoint &b)
bool operator!= (const FTPoint &a, const FTPoint &b)
FTPoint operator * (double multiplier, FTPoint &point)
bool operator== (const FTPoint &a, const FTPoint &b)
bool operator!= (const FTPoint &a, const FTPoint &b)


Detailed Description

FTPoint class is a basic 3 dimensional point or vector.

Definition at line 13 of file FTPoint.h.


Constructor & Destructor Documentation

FTPoint::FTPoint (  )  [inline]

Default constructor. Point is set to zero.

Definition at line 19 of file FTPoint.h.

FTPoint::FTPoint ( const FTGL_DOUBLE  x,
const FTGL_DOUBLE  y,
const FTGL_DOUBLE  z 
) [inline]

Constructor.

Parameters:
x First component
y Second component
z Third component

Definition at line 33 of file FTPoint.h.

FTPoint::FTPoint ( const FT_Vector ft_vector  )  [inline]

Constructor. This converts an FT_Vector to an FT_Point

Parameters:
ft_vector A freetype vector

Definition at line 45 of file FTPoint.h.

References FT_Vector_::x, and FT_Vector_::y.

FTPoint::FTPoint (  )  [inline]

Default constructor. Point is set to zero.

Definition at line 19 of file FTPoint.h.

FTPoint::FTPoint ( const FTGL_DOUBLE  x,
const FTGL_DOUBLE  y,
const FTGL_DOUBLE  z 
) [inline]

Constructor.

Parameters:
x First component
y Second component
z Third component

Definition at line 33 of file FTPoint.h.

FTPoint::FTPoint ( const FT_Vector ft_vector  )  [inline]

Constructor. This converts an FT_Vector to an FT_Point

Parameters:
ft_vector A freetype vector

Definition at line 45 of file FTPoint.h.

References FT_Vector_::x, and FT_Vector_::y.


Member Function Documentation

FTPoint& FTPoint::operator+= ( const FTPoint point  )  [inline]

Operator += In Place Addition.

Parameters:
point 
Returns:
this plus point.

Definition at line 58 of file FTPoint.h.

FTPoint FTPoint::operator+ ( const FTPoint point  )  [inline]

Operator +

Parameters:
point 
Returns:
this plus point.

Definition at line 73 of file FTPoint.h.

References values.

FTPoint FTPoint::operator * ( double  multiplier  )  [inline]

Operator *

Parameters:
multiplier 
Returns:
this multiplied by multiplier.

Definition at line 90 of file FTPoint.h.

References values.

FTPoint::operator const FTGL_DOUBLE * (  )  const [inline]

Cast to FTGL_DOUBLE*

Definition at line 133 of file FTPoint.h.

void FTPoint::X ( FTGL_DOUBLE  x  )  [inline]

Setters

Definition at line 142 of file FTPoint.h.

Referenced by FTGlyphContainer::Advance(), FTContour::FTContour(), FTPixmapGlyph::FTPixmapGlyph(), FTTextureGlyph::FTTextureGlyph(), FTFont::Render(), FTPolyGlyph::Render(), FTExtrdGlyph::Render(), FTTextureGlyph::Render(), FTOutlineGlyph::Render(), FTBitmapGlyph::Render(), and FTPixmapGlyph::Render().

void FTPoint::Y ( FTGL_DOUBLE  y  )  [inline]

Definition at line 143 of file FTPoint.h.

Referenced by FTContour::FTContour(), FTPixmapGlyph::FTPixmapGlyph(), FTTextureGlyph::FTTextureGlyph(), FTFont::Render(), FTPolyGlyph::Render(), FTExtrdGlyph::Render(), FTTextureGlyph::Render(), FTOutlineGlyph::Render(), FTBitmapGlyph::Render(), and FTPixmapGlyph::Render().

void FTPoint::Z ( FTGL_DOUBLE  z  )  [inline]

Definition at line 144 of file FTPoint.h.

FTGL_DOUBLE FTPoint::X (  )  const [inline]

Getters

Definition at line 150 of file FTPoint.h.

FTGL_DOUBLE FTPoint::Y (  )  const [inline]

Definition at line 151 of file FTPoint.h.

FTGL_DOUBLE FTPoint::Z (  )  const [inline]

Definition at line 152 of file FTPoint.h.

FTPoint& FTPoint::operator+= ( const FTPoint point  )  [inline]

Operator += In Place Addition.

Parameters:
point 
Returns:
this plus point.

Definition at line 58 of file FTPoint.h.

FTPoint FTPoint::operator+ ( const FTPoint point  )  [inline]

Operator +

Parameters:
point 
Returns:
this plus point.

Definition at line 73 of file FTPoint.h.

References values.

FTPoint FTPoint::operator * ( double  multiplier  )  [inline]

Operator *

Parameters:
multiplier 
Returns:
this multiplied by multiplier.

Definition at line 90 of file FTPoint.h.

References values.

FTPoint::operator const FTGL_DOUBLE * (  )  const [inline]

Cast to FTGL_DOUBLE*

Definition at line 133 of file FTPoint.h.

void FTPoint::X ( FTGL_DOUBLE  x  )  [inline]

Setters

Definition at line 142 of file FTPoint.h.

void FTPoint::Y ( FTGL_DOUBLE  y  )  [inline]

Definition at line 143 of file FTPoint.h.

void FTPoint::Z ( FTGL_DOUBLE  z  )  [inline]

Definition at line 144 of file FTPoint.h.

FTGL_DOUBLE FTPoint::X (  )  const [inline]

Getters

Definition at line 150 of file FTPoint.h.

FTGL_DOUBLE FTPoint::Y (  )  const [inline]

Definition at line 151 of file FTPoint.h.

FTGL_DOUBLE FTPoint::Z (  )  const [inline]

Definition at line 152 of file FTPoint.h.


Friends And Related Function Documentation

FTPoint operator * ( double  multiplier,
FTPoint point 
) [friend]

Operator *

Parameters:
point 
multiplier 
Returns:
multiplier multiplied by point.

Definition at line 15 of file FTPoint.cxx.

bool operator== ( const FTPoint a,
const FTPoint b 
) [friend]

Operator == Tests for eqaulity

Parameters:
a 
b 
Returns:
true if a & b are equal

Definition at line 4 of file FTPoint.cxx.

bool operator!= ( const FTPoint a,
const FTPoint b 
) [friend]

Operator != Tests for non equality

Parameters:
a 
b 
Returns:
true if a & b are not equal

Definition at line 9 of file FTPoint.cxx.

FTPoint operator * ( double  multiplier,
FTPoint point 
) [friend]

Operator *

Parameters:
point 
multiplier 
Returns:
multiplier multiplied by point.

Definition at line 15 of file FTPoint.cxx.

bool operator== ( const FTPoint a,
const FTPoint b 
) [friend]

Operator == Tests for eqaulity

Parameters:
a 
b 
Returns:
true if a & b are equal

Definition at line 4 of file FTPoint.cxx.

bool operator!= ( const FTPoint a,
const FTPoint b 
) [friend]

Operator != Tests for non equality

Parameters:
a 
b 
Returns:
true if a & b are not equal

Definition at line 9 of file FTPoint.cxx.


Member Data Documentation

FTGL_DOUBLE FTPoint::values [private]

The point data

Definition at line 152 of file FTPoint.h.

Referenced by operator *(), and operator+().


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