Geogram  Version 1.9.1-rc
A programming library of geometric algorithms
GEOGen::RestrictedVoronoiDiagram< DIM >::PrimalTetrahedronAction< ACTION > Class Template Reference

Adapter class used internally to implement for_each_primal_tetrahedron() More...

#include <geogram/voronoi/generic_RVD.h>

Public Member Functions

 PrimalTetrahedronAction (const ACTION &do_it)
 Constructs a new PrimalTetrahedronAction. More...
 
void operator() (index_t v, index_t t, const Polyhedron &C) const
 Callback called for each polyhedron. More...
 

Protected Attributes

const ACTION & do_it_
 

Detailed Description

template<index_t DIM>
template<class ACTION>
class GEOGen::RestrictedVoronoiDiagram< DIM >::PrimalTetrahedronAction< ACTION >

Adapter class used internally to implement for_each_primal_tetrahedron()

Overrides constness checks, to allow using temporaries as argument of for_each_xxx()

Template Parameters
ACTIONthe user action class

Definition at line 1021 of file generic_RVD.h.

Constructor & Destructor Documentation

◆ PrimalTetrahedronAction()

template<index_t DIM>
template<class ACTION >
GEOGen::RestrictedVoronoiDiagram< DIM >::PrimalTetrahedronAction< ACTION >::PrimalTetrahedronAction ( const ACTION &  do_it)
inline

Constructs a new PrimalTetrahedronAction.

Parameters
[in]do_itthe user ACTION instance.

Definition at line 1027 of file generic_RVD.h.

Member Function Documentation

◆ operator()()

template<index_t DIM>
template<class ACTION >
void GEOGen::RestrictedVoronoiDiagram< DIM >::PrimalTetrahedronAction< ACTION >::operator() ( index_t  v,
index_t  t,
const Polyhedron C 
) const
inline

Callback called for each polyhedron.

Routes the callback to the wrapped user action class.

Parameters
[in]vindex of current Delaunay seed
[in]tindex of current mesh tetrahedron
[in]Cintersection between current mesh tetrahedron and the Voronoi cell of v

Definition at line 1039 of file generic_RVD.h.


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