Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

MeshTraits.hh

00001 /*===========================================================================*\
00002  *                                                                           *
00003  *                               OpenMesh                                    *
00004  *      Copyright (C) 2001-2005 by Computer Graphics Group, RWTH Aachen      *
00005  *                           www.openmesh.org                                *
00006  *                                                                           *
00007  *---------------------------------------------------------------------------* 
00008  *                                                                           *
00009  *                                License                                    *
00010  *                                                                           *
00011  *  This library is free software; you can redistribute it and/or modify it  *
00012  *  under the terms of the GNU Library General Public License as published   *
00013  *  by the Free Software Foundation, version 2.                              *
00014  *                                                                           *
00015  *  This library is distributed in the hope that it will be useful, but      *
00016  *  WITHOUT ANY WARRANTY; without even the implied warranty of               *
00017  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU        *
00018  *  Library General Public License for more details.                         *
00019  *                                                                           *
00020  *  You should have received a copy of the GNU Library General Public        *
00021  *  License along with this library; if not, write to the Free Software      *
00022  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.                *
00023  *                                                                           *
00024 \*===========================================================================*/
00025 
00026 //=============================================================================
00027 //
00028 //  CLASS VDPMTraits
00029 //
00030 //=============================================================================
00031 
00032 
00033 #ifndef OPENMESH_VDPM_TRAITS_HH
00034 #define OPENMESH_VDPM_TRAITS_HH
00035 
00036 
00037 //== INCLUDES =================================================================
00038 
00039 
00040 #include <OpenMesh/Core/System/config.hh>
00041 #include <OpenMesh/Core/Mesh/Traits.hh>
00042 #include <OpenMesh/Tools/VDPM/VHierarchy.hh>
00043 
00044 //== FORWARDDECLARATIONS ======================================================
00045 
00046 
00047 //== NAMESPACES ===============================================================
00048 
00049 namespace OpenMesh {
00050 namespace VDPM {
00051 
00052 //== CLASS DEFINITION =========================================================
00053 
00054               
00060 struct MeshTraits : public DefaultTraits
00061 {
00062   VertexTraits
00063   {
00064   public:
00065 
00066     VHierarchyNodeHandle vhierarchy_node_handle()
00067     {
00068       return node_handle_; 
00069     }
00070 
00071     void set_vhierarchy_node_handle(VHierarchyNodeHandle _node_handle)
00072     {
00073       node_handle_ = _node_handle; 
00074     }
00075     
00076     bool is_ancestor(const VHierarchyNodeIndex &_other)
00077     {
00078       return false; 
00079     }
00080 
00081   private:
00082 
00083     VHierarchyNodeHandle  node_handle_;
00084    
00085   };
00086   
00087   VertexAttributes(OpenMesh::Attributes::Status |
00088                    OpenMesh::Attributes::Normal);
00089   HalfedgeAttributes(OpenMesh::Attributes::PrevHalfedge);
00090   EdgeAttributes(OpenMesh::Attributes::Status);
00091   FaceAttributes(OpenMesh::Attributes::Status |
00092                  OpenMesh::Attributes::Normal);
00093 };
00094 
00095 
00096 //=============================================================================
00097 } // namespace VDPM
00098 } // namespace OpenMesh
00099 //=============================================================================
00100 #endif // OPENMESH_VDPM_TRAITS_HH defined
00101 //=============================================================================
00102 

acg pic Project OpenMesh, ©  Computer Graphics Group, RWTH Aachen. Documentation generated using doxygen .