CL_EarClipTriangulator Class Reference
[clanCore Math]

Ear-clipping triangulator. More...

#include <ear_clip_triangulator.h>

List of all members.

Public Member Functions

Construction
 CL_EarClipTriangulator ()
 Constructs a triangulator.
virtual ~CL_EarClipTriangulator ()
Attributes
std::vector< CL_Pointfget_vertices ()
 Returns a list of the vertices added to the triangulator.
int get_vertice_count ()
 Returns the number of vertices in the triangulator.
CL_PolygonOrientation calculate_polygon_orientation ()
 Determine the orientation of the vertices in the triangulator.
Operations
void add_vertex (float x, float y)
 Add the next vertex of the polygon to the triangulator.
void add_vertex (const CL_Pointf &p)
 Add vertex.
void clear ()
 Remove all vertices from triangulator.
void set_orientation (CL_PolygonOrientation orientation)
 Set polygon orientation.
CL_EarClipResult triangulate ()
 Perform triangulation.
void begin_hole ()
 Mark beginning of a polygon hole.
void end_hole ()
 Mark ending of a polygon hole.


Detailed Description

Ear-clipping triangulator.


Constructor & Destructor Documentation

CL_EarClipTriangulator::CL_EarClipTriangulator  ) 
 

Constructs a triangulator.

virtual CL_EarClipTriangulator::~CL_EarClipTriangulator  )  [virtual]
 


Member Function Documentation

void CL_EarClipTriangulator::add_vertex const CL_Pointf p  ) 
 

Add vertex.

Parameters:
p = Pointf

void CL_EarClipTriangulator::add_vertex float  x,
float  y
 

Add the next vertex of the polygon to the triangulator.

void CL_EarClipTriangulator::begin_hole  ) 
 

Mark beginning of a polygon hole.

CL_PolygonOrientation CL_EarClipTriangulator::calculate_polygon_orientation  ) 
 

Determine the orientation of the vertices in the triangulator.

void CL_EarClipTriangulator::clear  ) 
 

Remove all vertices from triangulator.

void CL_EarClipTriangulator::end_hole  ) 
 

Mark ending of a polygon hole.

int CL_EarClipTriangulator::get_vertice_count  ) 
 

Returns the number of vertices in the triangulator.

std::vector<CL_Pointf> CL_EarClipTriangulator::get_vertices  ) 
 

Returns a list of the vertices added to the triangulator.

void CL_EarClipTriangulator::set_orientation CL_PolygonOrientation  orientation  ) 
 

Set polygon orientation.

CL_EarClipResult CL_EarClipTriangulator::triangulate  ) 
 

Perform triangulation.


The documentation for this class was generated from the following file:
Generated on Thu Dec 3 02:39:36 2009 for ClanLib by  doxygen 1.4.6