libosmscout  0.1
p2t::CDT Class Reference

#include <cdt.h>

Public Member Functions

void AddHole (const std::vector< Point * > &polyline)
 Add a hole. More...
 
void AddPoint (Point *point)
 Add a steiner point. More...
 
 CDT (const 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

◆ CDT()

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

Constructor - add polyline with non repeating points.

Parameters
polyline

◆ ~CDT()

p2t::CDT::~CDT ( )

Destructor - clean up memory.

Member Function Documentation

◆ AddHole()

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

Add a hole.

Parameters
polyline

◆ AddPoint()

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

Add a steiner point.

Parameters
point

◆ GetMap()

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

Get triangle map.

◆ GetTriangles()

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

Get CDT triangles.

Referenced by osmscout::Triangulate::TriangulatePolygon().

◆ Triangulate()

void p2t::CDT::Triangulate ( )

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

Referenced by osmscout::Triangulate::TriangulatePolygon().


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