ClanLib  2.3.7
List of all members
CL_EarClipTriangulator Class Reference

Ear-clipping triangulator. More...

#include <ear_clip_triangulator.h>

Public Member Functions

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

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 ( float  x,
float  y 
)

Add the next vertex of the polygon to the triangulator.

void CL_EarClipTriangulator::add_vertex ( const CL_Pointf p)

Add vertex.

Parameters
p= Pointf
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: