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

TriMesh_OSGArrayKernelT.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 //   $Revision: 1.1.1.1 $
00027 //   $Date: 2004/09/06 12:36:59 $
00028 //                                                                            
00029 //=============================================================================
00030 
00031 
00032 //=============================================================================
00033 //
00034 //  CLASS TriMesh_OSGArrayKernelT
00035 //
00036 //=============================================================================
00037 
00038 
00039 #ifndef OPENMESH_KERNEL_OSG_TRIMESH_OSGARRAYKERNEL_HH
00040 #define OPENMESH_KERNEL_OSG_TRIMESH_OSGARRAYKERNEL_HH
00041 
00042 
00043 //== INCLUDES =================================================================
00044 
00045 
00046 #include <OpenMesh/Core/System/config.hh>
00047 // --------------------
00048 #include <OpenMesh/Core/Mesh/TriMeshT.hh>
00049 #include <OpenMesh/Core/Mesh/Traits.hh>
00050 #include <OpenMesh/Core/Mesh/Kernels/ArrayKernel/ArrayKernelT.hh>
00051 #include <OpenMesh/Core/Mesh/Kernels/ArrayKernel/ArrayItems.hh>
00052 #include <OpenMesh/Core/Mesh/Kernels/Common/Handles.hh>
00053 #include <OpenMesh/Core/Mesh/Kernels/Common/FinalMeshItemsT.hh>
00054 // --------------------
00055 #include <OpenMesh/Tools/Kernel_OSG/VectorAdapter.hh>
00056 #include <OpenMesh/Tools/Kernel_OSG/Traits.hh>
00057 #include <OpenMesh/Tools/Kernel_OSG/ArrayKernelT.hh>
00058 // --------------------
00059 #include <OpenSG/OSGGeometry.h>
00060 
00061 
00062 //== NAMESPACES ===============================================================
00063 
00064 
00065 namespace OpenMesh   {
00066 namespace Kernel_OSG {
00067 
00068 //== CLASS DEFINITION =========================================================
00069 
00070 
00072 template <class Traits>
00073 struct TriMesh_OSGArrayKernel_GeneratorT
00074 {
00075   typedef FinalMeshItemsT<ArrayItems, Traits, true>  MeshItems;
00076   typedef AttribKernelT<MeshItems>                   AttribKernel;
00077   typedef ArrayKernelT<AttribKernel, MeshItems>      MeshKernel;
00078   typedef TriMeshT<MeshKernel>                       Mesh;
00079 };
00080 
00081 
00082 
00088 template <class Traits = Kernel_OSG::Traits>  
00089 class TriMesh_OSGArrayKernelT 
00090   : public TriMesh_OSGArrayKernel_GeneratorT<Traits>::Mesh 
00091 {};
00092 
00093 
00094 //=============================================================================
00095 } // namespace Kernel_OSG
00096 } // namespace OpenMesh
00097 //=============================================================================
00098 #endif // OPENMESH_KERNEL_OSG_TRIMESH_OSGARRAYKERNEL_HH
00099 //=============================================================================

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