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

#include <sweep_context.h>

Classes

struct  Basin
 
struct  EdgeEvent
 

Public Member Functions

void AddHole (const std::vector< Point * > &polyline)
 
void AddPoint (Point *point)
 
void AddToMap (Triangle *triangle)
 
void CreateAdvancingFront (std::vector< Node * > nodes)
 
AdvancingFrontfront ()
 
std::list< Triangle * > GetMap ()
 
PointGetPoint (const int &index)
 
PointGetPoints ()
 
std::vector< Triangle * > GetTriangles ()
 
Pointhead ()
 
NodeLocateNode (Point &point)
 
void MapTriangleToNodes (Triangle &t)
 Try to map a node to all sides of this triangle that don't have a neighbor. More...
 
void MeshClean (Triangle &triangle)
 
int point_count ()
 
void RemoveFromMap (Triangle *triangle)
 
void RemoveNode (Node *node)
 
void set_head (Point *p1)
 
void set_tail (Point *p1)
 
 SweepContext (const std::vector< Point * > &polyline)
 Constructor. More...
 
Pointtail ()
 
 ~SweepContext ()
 Destructor. More...
 

Public Attributes

Basin basin
 
EdgeEvent edge_event
 
std::vector< Edge * > edge_list
 

Friends

class Sweep
 

Constructor & Destructor Documentation

◆ SweepContext()

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

Constructor.

◆ ~SweepContext()

p2t::SweepContext::~SweepContext ( )

Destructor.

Member Function Documentation

◆ AddHole()

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

◆ AddPoint()

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

◆ AddToMap()

void p2t::SweepContext::AddToMap ( Triangle triangle)

◆ CreateAdvancingFront()

void p2t::SweepContext::CreateAdvancingFront ( std::vector< Node * >  nodes)

◆ front()

AdvancingFront * p2t::SweepContext::front ( )
inline

◆ GetMap()

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

◆ GetPoint()

Point* p2t::SweepContext::GetPoint ( const int &  index)

◆ GetPoints()

Point* p2t::SweepContext::GetPoints ( )

◆ GetTriangles()

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

◆ head()

Point * p2t::SweepContext::head ( )
inline

◆ LocateNode()

Node& p2t::SweepContext::LocateNode ( Point point)

◆ MapTriangleToNodes()

void p2t::SweepContext::MapTriangleToNodes ( Triangle t)

Try to map a node to all sides of this triangle that don't have a neighbor.

◆ MeshClean()

void p2t::SweepContext::MeshClean ( Triangle triangle)

◆ point_count()

int p2t::SweepContext::point_count ( )
inline

◆ RemoveFromMap()

void p2t::SweepContext::RemoveFromMap ( Triangle triangle)

◆ RemoveNode()

void p2t::SweepContext::RemoveNode ( Node node)

◆ set_head()

void p2t::SweepContext::set_head ( Point p1)
inline

◆ set_tail()

void p2t::SweepContext::set_tail ( Point p1)
inline

◆ tail()

Point * p2t::SweepContext::tail ( )
inline

Friends And Related Function Documentation

◆ Sweep

friend class Sweep
friend

Member Data Documentation

◆ basin

Basin p2t::SweepContext::basin

◆ edge_event

EdgeEvent p2t::SweepContext::edge_event

◆ edge_list

std::vector<Edge*> p2t::SweepContext::edge_list

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