From 51534c9ce9b9854233eda9ecb0d1edc037c6c978 Mon Sep 17 00:00:00 2001 From: cignoni Date: Thu, 18 Mar 2010 11:26:44 +0000 Subject: [PATCH] converted to the new UsedTypes syntax --- wrap/io_trimesh/import_dae.h | 50 ++++++++++++++++++++---------------- 1 file changed, 28 insertions(+), 22 deletions(-) diff --git a/wrap/io_trimesh/import_dae.h b/wrap/io_trimesh/import_dae.h index b4c0ab2a..c25b3a1e 100644 --- a/wrap/io_trimesh/import_dae.h +++ b/wrap/io_trimesh/import_dae.h @@ -35,34 +35,40 @@ namespace vcg { namespace tri { namespace io { - template class ImporterDAE : public UtilDAE { + public: + class ColladaEdge; + class ColladaFace; + class ColladaVertex; + + class ColladaTypes: public vcg::UsedTypes < vcg::Use::template AsVertexType, + vcg::Use::template AsEdgeType, + vcg::Use::template AsFaceType >{}; + + class ColladaVertex : public vcg::Vertex< ColladaTypes, + vcg::vertex::Coord3f, /* 12b */ + vcg::vertex::BitFlags, /* 4b */ + vcg::vertex::Normal3f, /* 12b */ + vcg::vertex::Color4b /* 4b */ + > {}; + + + class ColladaFace : public vcg::Face< ColladaTypes, + vcg::face::VertexRef, /*12b */ + vcg::face::BitFlags, /* 4b */ + vcg::face::Normal3f, /*12b */ + vcg::face::Color4b, /* 0b */ + vcg::face::WedgeTexCoord2f /* 0b */ + > {}; + + class ColladaMesh : public vcg::tri::TriMesh< std::vector, std::vector > {}; + + private: - -class ColladaEdge; -class ColladaFace; -class ColladaVertex; -class ColladaVertex : public vcg::VertexSimp2< ColladaVertex, ColladaEdge, ColladaFace, - vcg::vertex::Coord3f, /* 12b */ - vcg::vertex::BitFlags, /* 4b */ - vcg::vertex::Normal3f, /* 12b */ - vcg::vertex::Color4b /* 4b */ - > {}; - - -class ColladaFace : public vcg::FaceSimp2< ColladaVertex, ColladaEdge, ColladaFace, - vcg::face::VertexRef, /*12b */ - vcg::face::BitFlags, /* 4b */ - vcg::face::Normal3f, /*12b */ - vcg::face::Color4b, /* 0b */ - vcg::face::WedgeTexCoord2f /* 0b */ - > {}; - -class ColladaMesh : public vcg::tri::TriMesh< std::vector, std::vector > {};