Delaunator
2D Delaunay Triangulation in C++ with Python wrapper.
 All Classes Namespaces Functions
Public Member Functions | List of all members
VirtualVertex Class Reference

#include <virtualVertex.h>

Public Member Functions

 VirtualVertex (Vertex *=NULL)
 ~VirtualVertex ()
bool confoundedWithAnotherObject () const
Vertexvertex () const
unsigned int id () const
Coordinates coordinates () const
void setVertex (Vertex *)
std::list< VirtualVertex * > confundedNeighbors () const
std::list< VirtualVertex * > directNeighbors () const
std::list< VirtualVertex * > neighborsAt (const float, const float=0) const
std::list< VirtualVertex * > nearerNeighbors (const unsigned int, bool=false) const

Detailed Description

VIRTUAL VERTEX CLASS

Constructor & Destructor Documentation

VirtualVertex::VirtualVertex ( Vertex vtx = NULL)
Returns
a new and well initialized VirtualVertex
VirtualVertex::~VirtualVertex ( )

Frees.

Member Function Documentation

bool VirtualVertex::confoundedWithAnotherObject ( ) const
Returns
true iff another VirtualVertex is attach to this vertex
std::list< VirtualVertex * > VirtualVertex::confundedNeighbors ( ) const
Returns
list of VirtualVertex that share the same Vertex.
Coordinates VirtualVertex::coordinates ( ) const
Returns
Coordinates where this is
std::list< VirtualVertex * > VirtualVertex::directNeighbors ( ) const
Returns
list of VirtualVertex that are directly connected to this instance.
std::list< VirtualVertex * > VirtualVertex::nearerNeighbors ( const unsigned int  nb_nei,
bool  confounded = false 
) const
Parameters
nb_neithe number of neighbors
confoundedfalse by default. If true, confounded neighbors count for only one.
Returns
list of VirtualVertex that are the closer of this. List size is equal to nb_nei at the most.
Note
VirtualVertex are returned in distance increasing order. (nearer first)
confounded VirtualVertex are not sorted in any particular order
std::list< VirtualVertex * > VirtualVertex::neighborsAt ( const float  distance_max,
const float  distance_min = 0 
) const
Parameters
distance_maxthe maximum distance
distance_minthe minimum distance. Optionnal. Default, Zero or less mean no minimum.
Returns
list of VirtualVertex that are at dist_max and dist_min included distances to this instance.
Note
VirtualVertex are returned in distance increasing order. (nearer first)
confounded VirtualVertex are not sorted in any particular order
void VirtualVertex::setVertex ( Vertex vtx)

Change place of this by change Vertex reference

Parameters
vtxthe Vertex that will references this VirtualVertex
Vertex * VirtualVertex::vertex ( ) const
Returns
Vertex referenced by this

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