#include <ModBaseT.hh>

Public Types | |
| enum | { ILLEGAL_COLLAPSE = -1, LEGAL_COLLAPSE = 0 } |
| typedef CollapseInfoT< Mesh > | CollapseInfo |
| typedef DecimaterType::Mesh | Mesh |
Public Member Functions | |
| virtual float | collapse_priority (const CollapseInfoT< Mesh > &) |
| DECIMATER_MODNAME (ModBase) | |
| Set module's name (using DECIMATER_MODNAME macro). | |
| virtual void | initialize () |
| Initialize module-internal stuff. | |
| bool | is_binary (void) const |
| Returns true if criteria returns a binary value. | |
| virtual void | postprocess_collapse (const CollapseInfoT< Mesh > &) |
| void | set_binary (bool _b) |
| Set whether module is binary or not. | |
| virtual | ~ModBaseT () |
| Virtual desctructor. | |
Protected Member Functions | |
| Mesh & | mesh () |
| Access the mesh associated with the decimater. | |
| ModBaseT (DecimaterType &_dec, bool _is_binary) | |
Private Member Functions | |
| ModBaseT (const ModBaseT &_cpy) | |
| ModBaseT & | operator= (const ModBaseT &) |
Private Attributes | |
| DecimaterType & | dec_ |
| bool | is_binary_ |
Base class for all decimation modules.
Each module has to implement this interface. To build your own module you have to
A module has two major working modes:
In the binary mode collapse_priority() checks a constraint and returns LEGAL_COLLAPSE or ILLEGAL_COLLAPSE.
In the non-binary mode the module computes a float error value in the range [0, inf) and returns it. In the case a constraint has been set, e.g. the error must be lower than a upper bound, and the constraint is violated, collapse_priority() must return ILLEGAL_COLLAPSE.
Definition at line 188 of file ModBaseT.hh.
| typedef CollapseInfoT<Mesh> OpenMesh::Decimater::ModBaseT< DecimaterType >::CollapseInfo |
Definition at line 193 of file ModBaseT.hh.
| typedef DecimaterType::Mesh OpenMesh::Decimater::ModBaseT< DecimaterType >::Mesh |
Definition at line 192 of file ModBaseT.hh.
| anonymous enum |
| ILLEGAL_COLLAPSE |
indicates an illegal collapse |
| LEGAL_COLLAPSE |
indicates a legal collapse |
Definition at line 195 of file ModBaseT.hh.
| OpenMesh::Decimater::ModBaseT< DecimaterType >::ModBaseT | ( | DecimaterType & | _dec, | |
| bool | _is_binary | |||
| ) | [inline, protected] |
| virtual OpenMesh::Decimater::ModBaseT< DecimaterType >::~ModBaseT | ( | ) | [inline, virtual] |
Virtual desctructor.
Definition at line 210 of file ModBaseT.hh.
| OpenMesh::Decimater::ModBaseT< DecimaterType >::ModBaseT | ( | const ModBaseT< DecimaterType > & | _cpy | ) | [private] |
| virtual float OpenMesh::Decimater::ModBaseT< DecimaterType >::collapse_priority | ( | const CollapseInfoT< Mesh > & | ) | [inline, virtual] |
Return collapse priority.
In the binary mode collapse_priority() checks a constraint and returns LEGAL_COLLAPSE or ILLEGAL_COLLAPSE.
In the non-binary mode the module computes a float error value in the range [0, inf) and returns it. In the case a constraint has been set, e.g. the error must be lower than a upper bound, and the constraint is violated, collapse_priority() must return ILLEGAL_COLLAPSE.
LEGAL_COLLAPSE or ILLEGAL_COLLAPSE. Definition at line 242 of file ModBaseT.hh.
| OpenMesh::Decimater::ModBaseT< DecimaterType >::DECIMATER_MODNAME | ( | ModBase | ) |
Set module's name (using DECIMATER_MODNAME macro).
| virtual void OpenMesh::Decimater::ModBaseT< DecimaterType >::initialize | ( | void | ) | [inline, virtual] |
Initialize module-internal stuff.
Reimplemented in OpenMesh::Decimater::ModQuadricT< DecimaterType >.
Definition at line 226 of file ModBaseT.hh.
| bool OpenMesh::Decimater::ModBaseT< DecimaterType >::is_binary | ( | void | ) | const [inline] |
Returns true if criteria returns a binary value.
Reimplemented in OpenMesh::Decimater::ModProgMeshT< DecimaterType >.
Definition at line 217 of file ModBaseT.hh.
| Mesh& OpenMesh::Decimater::ModBaseT< DecimaterType >::mesh | ( | ) | [inline, protected] |
Access the mesh associated with the decimater.
Definition at line 256 of file ModBaseT.hh.
| ModBaseT& OpenMesh::Decimater::ModBaseT< DecimaterType >::operator= | ( | const ModBaseT< DecimaterType > & | ) | [private] |
| virtual void OpenMesh::Decimater::ModBaseT< DecimaterType >::postprocess_collapse | ( | const CollapseInfoT< Mesh > & | ) | [inline, virtual] |
After _from_vh has been collapsed into _to_vh, this method will be called.
Definition at line 248 of file ModBaseT.hh.
| void OpenMesh::Decimater::ModBaseT< DecimaterType >::set_binary | ( | bool | _b | ) | [inline] |
Set whether module is binary or not.
Reimplemented in OpenMesh::Decimater::ModIndependentSetsT< DecimaterType >, OpenMesh::Decimater::ModNormalFlippingT< DecimaterT >, and OpenMesh::Decimater::ModProgMeshT< DecimaterType >.
Definition at line 220 of file ModBaseT.hh.
DecimaterType& OpenMesh::Decimater::ModBaseT< DecimaterType >::dec_ [private] |
Definition at line 265 of file ModBaseT.hh.
bool OpenMesh::Decimater::ModBaseT< DecimaterType >::is_binary_ [private] |
Definition at line 267 of file ModBaseT.hh.