MMSFTContour Class Reference

container of vertices that describe a vector font outline More...

#include <mmsftcontour.h>

List of all members.


Public Member Functions

 MMSFTContour (FT_Vector *outlineVertexList, char *outlineVertexTags, unsigned int outlineNumVertices)
 ~MMSFTContour ()
const MMSFTVertexVertex (unsigned int index) const
const MMSFTVertexOutset (unsigned int index) const
const MMSFTVertexFrontVertex (unsigned int index) const
const MMSFTVertexBackVertex (unsigned int index) const
unsigned int getVertexCount () const
void setParity (int parity)
void buildFrontOutset (double outset)
void buildBackOutset (double outset)

Private Member Functions

void AddVertex (MMSFTVertex vertex)
void AddOutsetVertex (MMSFTVertex vertex)
void AddFrontVertex (MMSFTVertex vertex)
void AddBackVertex (MMSFTVertex vertex)
void evaluateQuadraticCurve (MMSFTVertex, MMSFTVertex, MMSFTVertex)
void evaluateCubicCurve (MMSFTVertex, MMSFTVertex, MMSFTVertex, MMSFTVertex)
double NormVector (const MMSFTVertex &v)
void RotationMatrix (const MMSFTVertex &a, const MMSFTVertex &b, double *matRot, double *invRot)
void MultMatrixVect (double *mat, MMSFTVertex &v)
void ComputeBisec (MMSFTVertex &v)
MMSFTVertex ComputeOutsetVertex (MMSFTVertex a, MMSFTVertex b, MMSFTVertex c)

Private Attributes

MMSFTVertexVector vertexList
MMSFTVertexVector outsetVertexList
MMSFTVertexVector frontVertexList
MMSFTVertexVector backVertexList
bool clockwise

Detailed Description

container of vertices that describe a vector font outline

Definition at line 39 of file mmsftcontour.h.


Constructor & Destructor Documentation

MMSFTContour::MMSFTContour ( FT_Vector *  outlineVertexList,
char *  outlineVertexTags,
unsigned int  outlineNumVertices 
)

Definition at line 38 of file mmsftcontour.cpp.

MMSFTContour::~MMSFTContour (  ) 

Definition at line 97 of file mmsftcontour.cpp.


Member Function Documentation

void MMSFTContour::AddVertex ( MMSFTVertex  vertex  )  [inline, private]

Definition at line 105 of file mmsftcontour.cpp.

void MMSFTContour::AddOutsetVertex ( MMSFTVertex  vertex  )  [inline, private]

Definition at line 112 of file mmsftcontour.cpp.

void MMSFTContour::AddFrontVertex ( MMSFTVertex  vertex  )  [inline, private]

Definition at line 117 of file mmsftcontour.cpp.

void MMSFTContour::AddBackVertex ( MMSFTVertex  vertex  )  [inline, private]

Definition at line 122 of file mmsftcontour.cpp.

void MMSFTContour::evaluateQuadraticCurve ( MMSFTVertex  A,
MMSFTVertex  B,
MMSFTVertex  C 
) [inline, private]

Definition at line 127 of file mmsftcontour.cpp.

void MMSFTContour::evaluateCubicCurve ( MMSFTVertex  A,
MMSFTVertex  B,
MMSFTVertex  C,
MMSFTVertex  D 
) [inline, private]

Definition at line 140 of file mmsftcontour.cpp.

double MMSFTContour::NormVector ( const MMSFTVertex v  )  [inline, private]

void MMSFTContour::RotationMatrix ( const MMSFTVertex a,
const MMSFTVertex b,
double *  matRot,
double *  invRot 
) [inline, private]

void MMSFTContour::MultMatrixVect ( double *  mat,
MMSFTVertex v 
) [inline, private]

void MMSFTContour::ComputeBisec ( MMSFTVertex v  )  [inline, private]

MMSFTVertex MMSFTContour::ComputeOutsetVertex ( MMSFTVertex  a,
MMSFTVertex  b,
MMSFTVertex  c 
) [inline, private]

Definition at line 171 of file mmsftcontour.cpp.

const MMSFTVertex& MMSFTContour::Vertex ( unsigned int  index  )  const [inline]

Definition at line 65 of file mmsftcontour.h.

const MMSFTVertex& MMSFTContour::Outset ( unsigned int  index  )  const [inline]

Definition at line 67 of file mmsftcontour.h.

const MMSFTVertex& MMSFTContour::FrontVertex ( unsigned int  index  )  const [inline]

Definition at line 69 of file mmsftcontour.h.

const MMSFTVertex& MMSFTContour::BackVertex ( unsigned int  index  )  const [inline]

Definition at line 75 of file mmsftcontour.h.

unsigned int MMSFTContour::getVertexCount (  )  const [inline]

Definition at line 81 of file mmsftcontour.h.

void MMSFTContour::setParity ( int  parity  ) 

Definition at line 192 of file mmsftcontour.cpp.

void MMSFTContour::buildFrontOutset ( double  outset  ) 

Definition at line 221 of file mmsftcontour.cpp.

void MMSFTContour::buildBackOutset ( double  outset  ) 

Definition at line 228 of file mmsftcontour.cpp.


Member Data Documentation

Definition at line 41 of file mmsftcontour.h.

Definition at line 42 of file mmsftcontour.h.

Definition at line 43 of file mmsftcontour.h.

Definition at line 44 of file mmsftcontour.h.

bool MMSFTContour::clockwise [private]

Definition at line 47 of file mmsftcontour.h.


The documentation for this class was generated from the following files: