Developer Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
ModBaseT.hh File Reference
#include <OpenMesh/Core/Utils/Noncopyable.hh>
#include <OpenMesh/Tools/Decimater/CollapseInfoT.hh>
#include <string>

Go to the source code of this file.


singleton  OpenMesh::Decimater::BaseDecimaterT< MeshT >
class  OpenMesh::Decimater::ModHandleT< Module >
class  OpenMesh::Decimater::ModBaseT< MeshT >




#define DECIMATER_MODNAME(_mod_name)
#define DECIMATING_MODULE(Classname, MeshT, Name)

Detailed Description

Base class for all decimation modules.

Definition in file ModBaseT.hh.

Macro Definition Documentation

#define DECIMATER_MODNAME (   _mod_name)
virtual const std::string& name() const { \
static std::string _s_modname_(#_mod_name); return _s_modname_; \

Macro that sets up the name() function

Definition at line 135 of file ModBaseT.hh.

#define DECIMATING_MODULE (   Classname,
typedef Classname < MeshT > Self; \
typedef typename Base::Mesh Mesh; \
typedef typename Base::CollapseInfo CollapseInfo; \
#define DECIMATER_MODNAME(_mod_name)
Definition: ModBaseT.hh:135

Convenience macro, to be used in derived modules The macro defines the types

  • Handle, type of the module's handle.
  • Base, type of ModBaseT<>.
  • Mesh, type of the associated mesh passed by the decimater type.
  • CollapseInfo, to your convenience and uses DECIMATER_MODNAME() to define the name of the module.
ClassnameThe name of the derived class.
MeshTPass here the mesh type, which is the template parameter passed to ModBaseT.
NameGive the module a name.

Definition at line 154 of file ModBaseT.hh.