Commit a2762b05 authored by Jan Möbius's avatar Jan Möbius

Moved to OpenMesh namespace

parent 2cb04f99
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
* * * *
\*===========================================================================*/ \*===========================================================================*/
#define ACG_SMARTTAGGERT_C #define OPENMESH_SMARTTAGGERT_C
//== INCLUDES ================================================================= //== INCLUDES =================================================================
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
//== NAMESPACES =============================================================== //== NAMESPACES ===============================================================
namespace ACG { namespace OpenMesh {
//== IMPLEMENTATION ========================================================== //== IMPLEMENTATION ==========================================================
...@@ -208,5 +208,5 @@ all_tags_to_zero() ...@@ -208,5 +208,5 @@ all_tags_to_zero()
} }
//============================================================================= //=============================================================================
} // namespace ACG } // namespace OpenMesh
//============================================================================= //=============================================================================
...@@ -47,8 +47,7 @@ ...@@ -47,8 +47,7 @@
\*===========================================================================*/ \*===========================================================================*/
#ifndef ACG_SMARTTAGGERT_HH #pragma once
#define ACG_SMARTTAGGERT_HH
//== INCLUDES ================================================================= //== INCLUDES =================================================================
...@@ -64,7 +63,7 @@ ...@@ -64,7 +63,7 @@
//== NAMESPACES =============================================================== //== NAMESPACES ===============================================================
namespace ACG { namespace OpenMesh {
//== FORWARD DECLARATIONS ===================================================== //== FORWARD DECLARATIONS =====================================================
...@@ -177,52 +176,49 @@ protected: ...@@ -177,52 +176,49 @@ protected:
//== SPECIALIZATION =========================================================== //== SPECIALIZATION ===========================================================
// define standard Tagger // define standard Tagger
template< class Mesh> template< class Mesh>
class SmartTaggerVT class SmartTaggerVT
: public SmartTaggerT< Mesh, typename Mesh::VertexHandle, OpenMesh::VPropHandleT<unsigned int> > : public SmartTaggerT< Mesh, typename Mesh::VertexHandle, OpenMesh::VPropHandleT<unsigned int> >
{ {
public: public:
typedef SmartTaggerT< Mesh, typename Mesh::VertexHandle, OpenMesh::VPropHandleT<unsigned int> > BaseType; typedef SmartTaggerT< Mesh, typename Mesh::VertexHandle, OpenMesh::VPropHandleT<unsigned int> > BaseType;
SmartTaggerVT(Mesh& _mesh, unsigned int _tag_range = 1) : BaseType(_mesh, _tag_range) {} SmartTaggerVT(Mesh& _mesh, unsigned int _tag_range = 1) : BaseType(_mesh, _tag_range) {}
}; };
template< class Mesh> template< class Mesh>
class SmartTaggerET class SmartTaggerET
: public SmartTaggerT< Mesh, typename Mesh::EdgeHandle, OpenMesh::EPropHandleT<unsigned int> > : public SmartTaggerT< Mesh, typename Mesh::EdgeHandle, OpenMesh::EPropHandleT<unsigned int> >
{ {
public: public:
typedef SmartTaggerT< Mesh, typename Mesh::EdgeHandle, OpenMesh::EPropHandleT<unsigned int> > BaseType; typedef SmartTaggerT< Mesh, typename Mesh::EdgeHandle, OpenMesh::EPropHandleT<unsigned int> > BaseType;
SmartTaggerET(Mesh& _mesh, unsigned int _tag_range = 1) : BaseType(_mesh, _tag_range) {} SmartTaggerET(Mesh& _mesh, unsigned int _tag_range = 1) : BaseType(_mesh, _tag_range) {}
}; };
template< class Mesh> template< class Mesh>
class SmartTaggerFT class SmartTaggerFT
: public SmartTaggerT< Mesh, typename Mesh::FaceHandle, OpenMesh::FPropHandleT<unsigned int> > : public SmartTaggerT< Mesh, typename Mesh::FaceHandle, OpenMesh::FPropHandleT<unsigned int> >
{ {
public: public:
typedef SmartTaggerT< Mesh, typename Mesh::FaceHandle, OpenMesh::FPropHandleT<unsigned int> > BaseType; typedef SmartTaggerT< Mesh, typename Mesh::FaceHandle, OpenMesh::FPropHandleT<unsigned int> > BaseType;
SmartTaggerFT(Mesh& _mesh, unsigned int _tag_range = 1): BaseType(_mesh, _tag_range) {} SmartTaggerFT(Mesh& _mesh, unsigned int _tag_range = 1): BaseType(_mesh, _tag_range) {}
}; };
template< class Mesh> template< class Mesh>
class SmartTaggerHT class SmartTaggerHT
: public SmartTaggerT< Mesh, typename Mesh::HalfedgeHandle, OpenMesh::HPropHandleT<unsigned int> > : public SmartTaggerT< Mesh, typename Mesh::HalfedgeHandle, OpenMesh::HPropHandleT<unsigned int> >
{ {
public: public:
typedef SmartTaggerT< Mesh, typename Mesh::HalfedgeHandle, OpenMesh::HPropHandleT<unsigned int> > BaseType; typedef SmartTaggerT< Mesh, typename Mesh::HalfedgeHandle, OpenMesh::HPropHandleT<unsigned int> > BaseType;
SmartTaggerHT(Mesh& _mesh, unsigned int _tag_range = 1): BaseType(_mesh, _tag_range){} SmartTaggerHT(Mesh& _mesh, unsigned int _tag_range = 1): BaseType(_mesh, _tag_range){}
}; };
//============================================================================= //=============================================================================
} // namespace ACG } // namespace OpenMesh
//============================================================================= //=============================================================================
#if defined(INCLUDE_TEMPLATES) && !defined(ACG_SMARTTAGGERT_C) #if defined(OM_INCLUDE_TEMPLATES) && !defined(OPENMESH_SMARTTAGGERT_C)
#define ACG_SMARTTAGGERT_TEMPLATES #define OPENMESH_SMARTTAGGERT_TEMPLATES
#include "SmartTaggerT.cc" #include "SmartTaggerT.cc"
#endif #endif
//=============================================================================
#endif // ACG_SMARTTAGGERT_HH defined
//=============================================================================
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment