MEPP2 Project
Public Types | Public Member Functions | List of all members
FEVV::Filters::Midpoint< HalfedgeGraph, PointMap, Geometry > Class Template Reference

Concrete class to represent the midpoint position type of the resulting vertex of an edge collapse. More...

#include <Midpoint.h>

Inheritance diagram for FEVV::Filters::Midpoint< HalfedgeGraph, PointMap, Geometry >:
Inheritance graph
Collaboration diagram for FEVV::Filters::Midpoint< HalfedgeGraph, PointMap, Geometry >:
Collaboration graph

Public Types

using Vector = typename Geometry::Vector
 
using Point = typename Geometry::Point
 
typedef Kept_position< HalfedgeGraph, PointMap, Geometry > Super_class
 
- Public Types inherited from FEVV::Filters::Kept_position< HalfedgeGraph, PointMap, typename FEVV::Geometry_traits< HalfedgeGraph > >
using Vector = typename Geometry::Vector
 
using Point = typename Geometry::Point
 

Public Member Functions

 Midpoint (HalfedgeGraph &g, PointMap &pm)
 
 Midpoint (HalfedgeGraph &g, PointMap &pm, Geometry &gt)
 
std::string get_as_string () const override
 
Point compute_position (typename boost::graph_traits< HalfedgeGraph >::edge_descriptor edge) override
 Compute the midpoint of an edge. More...
 
 ~Midpoint ()
 
- Public Member Functions inherited from FEVV::Filters::Kept_position< HalfedgeGraph, PointMap, typename FEVV::Geometry_traits< HalfedgeGraph > >
 Kept_position (HalfedgeGraph &g, PointMap &pm)
 
 Kept_position (HalfedgeGraph &g, PointMap &pm, typename FEVV::Geometry_traits< HalfedgeGraph > &gt)
 
virtual ~Kept_position ()
 
VKEPT_POSITION get_type () const
 
bool get_reverse () const
 
virtual std::string get_as_string () const=0
 

Additional Inherited Members

- Protected Attributes inherited from FEVV::Filters::Kept_position< HalfedgeGraph, PointMap, typename FEVV::Geometry_traits< HalfedgeGraph > >
HalfedgeGraph & _g
 
const typename FEVV::Geometry_traits< HalfedgeGraph > _gt
 
PointMap & _pm
 
FEVV::Filters::VKEPT_POSITION _type
 
bool _reverse
 

Detailed Description

template<typename HalfedgeGraph, typename PointMap, typename Geometry = typename FEVV::Geometry_traits< HalfedgeGraph >>
class FEVV::Filters::Midpoint< HalfedgeGraph, PointMap, Geometry >

Concrete class to represent the midpoint position type of the resulting vertex of an edge collapse.

Definition at line 25 of file Midpoint.h.

Member Typedef Documentation

◆ Point

template<typename HalfedgeGraph , typename PointMap , typename Geometry = typename FEVV::Geometry_traits< HalfedgeGraph >>
using FEVV::Filters::Midpoint< HalfedgeGraph, PointMap, Geometry >::Point = typename Geometry::Point

Definition at line 31 of file Midpoint.h.

◆ Super_class

template<typename HalfedgeGraph , typename PointMap , typename Geometry = typename FEVV::Geometry_traits< HalfedgeGraph >>
typedef Kept_position< HalfedgeGraph, PointMap, Geometry > FEVV::Filters::Midpoint< HalfedgeGraph, PointMap, Geometry >::Super_class

Definition at line 35 of file Midpoint.h.

◆ Vector

template<typename HalfedgeGraph , typename PointMap , typename Geometry = typename FEVV::Geometry_traits< HalfedgeGraph >>
using FEVV::Filters::Midpoint< HalfedgeGraph, PointMap, Geometry >::Vector = typename Geometry::Vector

Definition at line 30 of file Midpoint.h.

Constructor & Destructor Documentation

◆ Midpoint() [1/2]

template<typename HalfedgeGraph , typename PointMap , typename Geometry = typename FEVV::Geometry_traits< HalfedgeGraph >>
FEVV::Filters::Midpoint< HalfedgeGraph, PointMap, Geometry >::Midpoint ( HalfedgeGraph &  g,
PointMap &  pm 
)
inline

Definition at line 37 of file Midpoint.h.

◆ Midpoint() [2/2]

template<typename HalfedgeGraph , typename PointMap , typename Geometry = typename FEVV::Geometry_traits< HalfedgeGraph >>
FEVV::Filters::Midpoint< HalfedgeGraph, PointMap, Geometry >::Midpoint ( HalfedgeGraph &  g,
PointMap &  pm,
Geometry &  gt 
)
inline

Definition at line 44 of file Midpoint.h.

◆ ~Midpoint()

template<typename HalfedgeGraph , typename PointMap , typename Geometry = typename FEVV::Geometry_traits< HalfedgeGraph >>
FEVV::Filters::Midpoint< HalfedgeGraph, PointMap, Geometry >::~Midpoint ( )
inline

Definition at line 81 of file Midpoint.h.

Member Function Documentation

◆ compute_position()

template<typename HalfedgeGraph , typename PointMap , typename Geometry = typename FEVV::Geometry_traits< HalfedgeGraph >>
Point FEVV::Filters::Midpoint< HalfedgeGraph, PointMap, Geometry >::compute_position ( typename boost::graph_traits< HalfedgeGraph >::edge_descriptor  edge)
inlineoverridevirtual

Compute the midpoint of an edge.

Implements FEVV::Filters::Kept_position< HalfedgeGraph, PointMap, typename FEVV::Geometry_traits< HalfedgeGraph > >.

Definition at line 56 of file Midpoint.h.

Here is the call graph for this function:

◆ get_as_string()

template<typename HalfedgeGraph , typename PointMap , typename Geometry = typename FEVV::Geometry_traits< HalfedgeGraph >>
std::string FEVV::Filters::Midpoint< HalfedgeGraph, PointMap, Geometry >::get_as_string ( ) const
inlineoverride

Definition at line 53 of file Midpoint.h.


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