OpenMesh::Subdivider::Uniform::SubdividerT< MeshType, RealType > Class Template Reference

#include <SubdividerT.hh>

Inheritance diagram for OpenMesh::Subdivider::Uniform::SubdividerT< MeshType, RealType >:
Inheritance graph
[legend]

List of all members.

Public Types

typedef MeshType mesh_t
typedef RealType real_t

Public Member Functions

virtual const char * name (void) const =0
 Return name of subdivision algorithm.
virtual ~SubdividerT ()
 Descructor (calls detach()).
Interface 2

bool attach (MeshType &_m)
void detach (void)
bool operator() (size_t _n)
Interface 1

bool operator() (MeshType &_m, size_t _n)
Constructors

 SubdividerT (MeshType &_m)
 SubdividerT (void)

Protected Member Functions

Overload theses methods

virtual bool cleanup (MeshType &_m)=0
 Cleanup mesh after usage, e.g. remove added properties.
virtual bool prepare (MeshType &_m)=0
 Prepare mesh, e.g. add properties.
virtual bool subdivide (MeshType &_m, size_t _n)=0
 Subdivide mesh _m _n times.

Private Attributes

MeshType * attached_

Detailed Description

template<typename MeshType, typename RealType = float>
class OpenMesh::Subdivider::Uniform::SubdividerT< MeshType, RealType >

Abstract base class for uniform subdivision algorithms.

A derived class must overload the following functions:

  1. name()
  2. prepare()
  3. subdivide()
  4. cleanup()

Definition at line 87 of file SubdividerT.hh.


Member Typedef Documentation

template<typename MeshType , typename RealType = float>
typedef MeshType OpenMesh::Subdivider::Uniform::SubdividerT< MeshType, RealType >::mesh_t
template<typename MeshType , typename RealType = float>
typedef RealType OpenMesh::Subdivider::Uniform::SubdividerT< MeshType, RealType >::real_t

Constructor & Destructor Documentation

template<typename MeshType , typename RealType = float>
OpenMesh::Subdivider::Uniform::SubdividerT< MeshType, RealType >::SubdividerT ( void   )  [inline]

Constructor to be used with interface 2

See also:
attach(), operator()(size_t), detach()

Definition at line 100 of file SubdividerT.hh.

template<typename MeshType , typename RealType = float>
OpenMesh::Subdivider::Uniform::SubdividerT< MeshType, RealType >::SubdividerT ( MeshType &  _m  )  [inline]

Constructor to be used with interface 1 (calls attach())

See also:
operator()( MeshType&, size_t )

Definition at line 104 of file SubdividerT.hh.

template<typename MeshType , typename RealType = float>
virtual OpenMesh::Subdivider::Uniform::SubdividerT< MeshType, RealType >::~SubdividerT (  )  [inline, virtual]

Descructor (calls detach()).

Definition at line 109 of file SubdividerT.hh.


Member Function Documentation

template<typename MeshType , typename RealType = float>
bool OpenMesh::Subdivider::Uniform::SubdividerT< MeshType, RealType >::attach ( MeshType &  _m  )  [inline]

Attach mesh _m to self

See also:
SubdividerT(), operator()(size_t), detach()

Definition at line 131 of file SubdividerT.hh.

template<typename MeshType , typename RealType = float>
virtual bool OpenMesh::Subdivider::Uniform::SubdividerT< MeshType, RealType >::cleanup ( MeshType &  _m  )  [protected, pure virtual]
template<typename MeshType , typename RealType = float>
void OpenMesh::Subdivider::Uniform::SubdividerT< MeshType, RealType >::detach ( void   )  [inline]

Detach an eventually attached mesh.

See also:
SubdividerT(), attach(), operator()(size_t)

Definition at line 154 of file SubdividerT.hh.

template<typename MeshType , typename RealType = float>
virtual const char* OpenMesh::Subdivider::Uniform::SubdividerT< MeshType, RealType >::name ( void   )  const [pure virtual]
template<typename MeshType , typename RealType = float>
bool OpenMesh::Subdivider::Uniform::SubdividerT< MeshType, RealType >::operator() ( size_t  _n  )  [inline]

Subdivide the attached _n times.

See also:
SubdividerT(), attach(), detach()

Definition at line 147 of file SubdividerT.hh.

template<typename MeshType , typename RealType = float>
bool OpenMesh::Subdivider::Uniform::SubdividerT< MeshType, RealType >::operator() ( MeshType &  _m,
size_t  _n 
) [inline]

Subdivide the mesh _m _n times.

See also:
SubdividerT(MeshType&)

Definition at line 121 of file SubdividerT.hh.

template<typename MeshType , typename RealType = float>
virtual bool OpenMesh::Subdivider::Uniform::SubdividerT< MeshType, RealType >::prepare ( MeshType &  _m  )  [protected, pure virtual]
template<typename MeshType , typename RealType = float>
virtual bool OpenMesh::Subdivider::Uniform::SubdividerT< MeshType, RealType >::subdivide ( MeshType &  _m,
size_t  _n 
) [protected, pure virtual]

Member Data Documentation

template<typename MeshType , typename RealType = float>
MeshType* OpenMesh::Subdivider::Uniform::SubdividerT< MeshType, RealType >::attached_ [private]

Definition at line 180 of file SubdividerT.hh.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


openmesh
Author(s): Benjamin Pitzer
autogenerated on Fri Jan 11 12:11:21 2013