X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2F3d%2Ftracktype.h;h=3923ab1ac35f28d2835c04b8ed7189d597023875;hb=862d8bea6d31e6fe9a60747e0b9559f77e72bf44;hp=952e8986b17365ee52112fd25a03b9b02e4f0c86;hpb=0db89b665527609582df98854c9e3255d1017811;p=r2c2.git diff --git a/source/3d/tracktype.h b/source/3d/tracktype.h index 952e898..3923ab1 100644 --- a/source/3d/tracktype.h +++ b/source/3d/tracktype.h @@ -1,34 +1,34 @@ #ifndef R2C2_3D_TRACKTYPE_H_ #define R2C2_3D_TRACKTYPE_H_ +#include #include #include #include #include "libr2c2/profile.h" #include "libr2c2/tracktype.h" +#include "objecttype.h" namespace R2C2 { -class Catalogue3D; - -class TrackType3D +class TrackType3D: public ObjectType3D { private: - Catalogue3D &catalogue; Msp::GL::Mesh *mesh; Msp::GL::Object *object; bool own_data; - std::vector path_meshes; + std::map path_meshes; public: TrackType3D(Catalogue3D &, const TrackType &); ~TrackType3D(); const Msp::GL::Object &get_object() const { return *object; } - const Msp::GL::Mesh &get_path_mesh(unsigned) const; + const Msp::GL::Mesh &get_path_mesh(int, int) const; private: void build_part(const TrackPart &, const Profile &, const Vector &, bool, Msp::GL::MeshBuilder &, unsigned &); + void build_ties(const TrackPart &, const Profile &, float, float, const Vector &, Msp::GL::MeshBuilder &, unsigned &); }; } // namespace R2C2