MEPP2 Project
|
Abstract class used to predict position. More...
#include <Predictor.h>
Public Types | |
using | vertex_descriptor = typename boost::graph_traits< HalfedgeGraph >::vertex_descriptor |
using | halfedge_descriptor = typename boost::graph_traits< HalfedgeGraph >::halfedge_descriptor |
using | face_descriptor = typename boost::graph_traits< HalfedgeGraph >::face_descriptor |
using | Vector = typename FEVV::Geometry_traits< HalfedgeGraph >::Vector |
using | Point = typename FEVV::Geometry_traits< HalfedgeGraph >::Point |
using | Geometry = typename FEVV::Geometry_traits< HalfedgeGraph > |
Public Member Functions | |
Predictor (HalfedgeGraph &g, Kept_position< HalfedgeGraph, PointMap > *kp, PointMap &pm) | |
virtual | ~Predictor () |
virtual std::vector< Vector > | compute_residuals (Collapse_info< HalfedgeGraph, PointMap > &mem)=0 |
virtual std::pair< Point, Point > | place_points (const std::vector< Vector > &residuals, vertex_descriptor vkept, halfedge_descriptor h1, halfedge_descriptor h2)=0 |
Decompression side: predicts a position from encoded residuals. More... | |
virtual FEVV::Filters::PREDICTION_TYPE | get_type () const |
virtual void | set_rev (bool)=0 |
virtual const Point & | get_kept_position () const |
virtual FEVV::Filters::VKEPT_POSITION | get_type_KP () const |
virtual std::string | get_as_string () const =0 |
int | get_nb_residuals () const |
Protected Attributes | |
Kept_position< HalfedgeGraph, PointMap > * | _kp |
HalfedgeGraph & | _g |
const Geometry | _gt |
PointMap & | _pm |
int | _nbResiduals |
Point | _kept_position |
FEVV::Filters::PREDICTION_TYPE | _type |
Abstract class used to predict position.
Definition at line 34 of file Predictor.h.
using FEVV::Filters::Predictor< HalfedgeGraph, PointMap >::face_descriptor = typename boost::graph_traits< HalfedgeGraph >::face_descriptor |
Definition at line 41 of file Predictor.h.
using FEVV::Filters::Predictor< HalfedgeGraph, PointMap >::Geometry = typename FEVV::Geometry_traits< HalfedgeGraph > |
Definition at line 45 of file Predictor.h.
using FEVV::Filters::Predictor< HalfedgeGraph, PointMap >::halfedge_descriptor = typename boost::graph_traits< HalfedgeGraph >::halfedge_descriptor |
Definition at line 39 of file Predictor.h.
using FEVV::Filters::Predictor< HalfedgeGraph, PointMap >::Point = typename FEVV::Geometry_traits< HalfedgeGraph >::Point |
Definition at line 44 of file Predictor.h.
using FEVV::Filters::Predictor< HalfedgeGraph, PointMap >::Vector = typename FEVV::Geometry_traits< HalfedgeGraph >::Vector |
Definition at line 43 of file Predictor.h.
using FEVV::Filters::Predictor< HalfedgeGraph, PointMap >::vertex_descriptor = typename boost::graph_traits< HalfedgeGraph >::vertex_descriptor |
Definition at line 37 of file Predictor.h.
|
inline |
Definition at line 46 of file Predictor.h.
|
inlinevirtual |
Definition at line 56 of file Predictor.h.
|
pure virtual |
Compression side: Computes geometric residuals from a set of info about the collapse.
Implemented in FEVV::Filters::Raw_positions< HalfedgeGraph, PointMap >, FEVV::Filters::Delta_predictor< HalfedgeGraph, PointMap >, and FEVV::Filters::Butterfly< HalfedgeGraph, PointMap >.
|
pure virtual |
|
inlinevirtual |
Definition at line 75 of file Predictor.h.
|
inline |
Definition at line 82 of file Predictor.h.
|
inlinevirtual |
|
inlinevirtual |
|
pure virtual |
Decompression side: predicts a position from encoded residuals.
h1 | should be target (h1) and target(h2) |
h2 | first halfedge to expand into a face second halfedge to expand into a face |
Implemented in FEVV::Filters::Raw_positions< HalfedgeGraph, PointMap >, FEVV::Filters::Delta_predictor< HalfedgeGraph, PointMap >, and FEVV::Filters::Butterfly< HalfedgeGraph, PointMap >.
|
pure virtual |
|
protected |
Definition at line 86 of file Predictor.h.
|
protected |
Definition at line 87 of file Predictor.h.
|
protected |
Definition at line 90 of file Predictor.h.
|
protected |
Definition at line 85 of file Predictor.h.
|
protected |
Definition at line 89 of file Predictor.h.
|
protected |
Definition at line 88 of file Predictor.h.
|
protected |
Definition at line 91 of file Predictor.h.