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

MESH_MyMeshData.h

Go to the documentation of this file.
00001 #ifndef MESHMYMESHDATA_H
00002 #define MESHMYMESHDATA_H
00003 
00004 #include <X3DTK/MESH/scenegraph.h>
00005 
00006 namespace X3DTK {
00007 namespace MESH {
00008 
00009 // My vertex data structure containing the weight information.
00010 
00011 class VertexWeightData
00012 {
00013 public:
00014   void setWeight(const SFFloat &weight) {_weight = weight;};
00015   inline const SFFloat &getWeight() const {return _weight;};
00016   
00017 private:
00018   SFFloat _weight;  
00019 };
00020 
00021 // My Mesh data aggregates.
00022 #ifdef TEMPLATE_SPECIALIZATION_SUPPORTED
00023 
00024 typedef clist<tlist<VertexPointData, tlist<VertexNormalData, tlist<VertexWeightData> > > > MyVertexData;
00025 typedef clist<tlist<FaceNormalData> > MyFaceData;
00026 typedef clist<tlist<MeshNormalData> > MyMeshData;
00027 
00028 #else
00029 
00030 class MyVertexData : public VertexData, public VertexWeightData {};
00031 class MyFaceData : public FaceData {};
00032 class MyMeshData : public MeshData {};
00033 
00034 #endif
00035 
00036 }
00037 }
00038 
00039 #endif

Generated on Thu Jun 3 10:12:08 2004 for X3DToolKit by doxygen 1.3.6