libosmscout  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups
p2t::CDT Class Reference

#include <cdt.h>

Public Member Functions

void AddHole (std::vector< Point * > polyline)
 Add a hole. More...
 
void AddPoint (Point *point)
 Add a steiner point. More...
 
 CDT (std::vector< Point * > polyline)
 Constructor - add polyline with non repeating points. More...
 
std::list< Triangle * > GetMap ()
 Get triangle map. More...
 
std::vector< Triangle * > GetTriangles ()
 Get CDT triangles. More...
 
void Triangulate ()
 Triangulate - do this AFTER you've added the polyline, holes, and Steiner points. More...
 
 ~CDT ()
 Destructor - clean up memory. More...
 

Constructor & Destructor Documentation

p2t::CDT::CDT ( std::vector< Point * >  polyline)

Constructor - add polyline with non repeating points.

Parameters
polyline
p2t::CDT::~CDT ( )

Destructor - clean up memory.

Member Function Documentation

void p2t::CDT::AddHole ( std::vector< Point * >  polyline)

Add a hole.

Parameters
polyline
void p2t::CDT::AddPoint ( Point point)

Add a steiner point.

Parameters
point
std::list<Triangle*> p2t::CDT::GetMap ( )

Get triangle map.

std::vector<Triangle*> p2t::CDT::GetTriangles ( )

Get CDT triangles.

void p2t::CDT::Triangulate ( )

Triangulate - do this AFTER you've added the polyline, holes, and Steiner points.


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