Geogram  Version 1.9.1-rc
A programming library of geometric algorithms
GEO::RVDCallback Class Reference

Baseclass for user functions called for each element (polygon or polyhedron) of a restricted Voronoi diagram traversal. More...

#include <geogram/voronoi/RVD_callback.h>

Inheritance diagram for GEO::RVDCallback:
GEO::RVDPolygonCallback GEO::RVDPolyhedronCallback GEO::BuildRVDMesh

Public Member Functions

 RVDCallback ()
 RVDCallback constructor.
 
virtual ~RVDCallback ()
 RVDCallback destructor.
 
virtual void begin ()
 Called at the beginning of the RVD traversal.
 
virtual void end ()
 Called at the end of the RVD traversal.
 
index_t seed () const
 Gets the index of the seed that corresponds to the current polygon/polyhedron. More...
 
index_t simplex () const
 Gets the index of the simplex that corresponds to the current polygon/polyhedron. More...
 
void set_spinlocks (Process::SpinLockArray *spinlocks)
 Sets the spinlocks array. More...
 

Protected Attributes

index_t seed_
 
index_t simplex_
 
Process::SpinLockArrayspinlocks_
 

Detailed Description

Baseclass for user functions called for each element (polygon or polyhedron) of a restricted Voronoi diagram traversal.

Definition at line 76 of file RVD_callback.h.

Member Function Documentation

◆ seed()

index_t GEO::RVDCallback::seed ( ) const
inline

Gets the index of the seed that corresponds to the current polygon/polyhedron.

Returns
The index of the seed that corresponds to the current polygon/polyhedron.

The current polygon/polyhedron is the intersection between a Voronoi cell (associted with a seed) and a simplex.

Definition at line 107 of file RVD_callback.h.

◆ set_spinlocks()

void GEO::RVDCallback::set_spinlocks ( Process::SpinLockArray spinlocks)
inline

Sets the spinlocks array.

In multithreading mode, a spinlocks array can be used to manage concurrent accesses.

Parameters
[in]spinlocksa pointer to the Process::SpinLockArray or nullptr if no spinlocks are used.

Definition at line 131 of file RVD_callback.h.

◆ simplex()

index_t GEO::RVDCallback::simplex ( ) const
inline

Gets the index of the simplex that corresponds to the current polygon/polyhedron.

Returns
The index of the simplex that corresponds to the current polygon/polyhedron. Points to a simplex in the mesh that the Voronoi diagram is restricted to.

The current polygon/polyhedron is the intersection between a Voronoi cell and a simplex.

Definition at line 120 of file RVD_callback.h.


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