00001 #ifndef MESHMYMESHDATA_H
00002 #define MESHMYMESHDATA_H
00003
00004 #include <X3DTK/MESH/scenegraph.h>
00005
00006 namespace X3DTK {
00007 namespace MESH {
00008
00009
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
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