X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2F3d%2Fvehicletype.h;h=b779fa4292445c184f8e432cc05ff759be51635a;hb=e621dd4120cb253417167b4295e436cee095ccb0;hp=f38f02d92ea43dab2651d8019884dccf1438e851;hpb=30df355287abd0bfe1189e616056335505287e9a;p=r2c2.git diff --git a/source/3d/vehicletype.h b/source/3d/vehicletype.h index f38f02d..b779fa4 100644 --- a/source/3d/vehicletype.h +++ b/source/3d/vehicletype.h @@ -1,39 +1,34 @@ -/* $Id$ - -This file is part of the MSP Märklin suite -Copyright © 2010 Mikkosoft Productions, Mikko Rasa -Distributed under the GPL -*/ - -#ifndef LIBMARKLIN3D_VEHICLETYPE_H_ -#define LIBMARKLIN3D_VEHICLETYPE_H_ +#ifndef LIBR2C23D_VEHICLETYPE_H_ +#define LIBR2C23D_VEHICLETYPE_H_ #include #include -#include "libmarklin/vehicletype.h" +#include "libr2c2/vehicletype.h" -namespace Marklin { +namespace R2C2 { class Catalogue3D; class VehicleType3D { private: - const Catalogue3D &catalogue; + Catalogue3D &catalogue; const VehicleType &type; std::map objects; Msp::GL::Object *body_object; std::vector bogie_objects; std::vector > axle_objects; + std::vector rod_objects; public: - VehicleType3D(const Catalogue3D &, const VehicleType &); + VehicleType3D(Catalogue3D &, const VehicleType &); ~VehicleType3D(); const Msp::GL::Object *get_body_object() const { return body_object; } - const Msp::GL::Object *get_axle_object(unsigned) const; + const Msp::GL::Object *get_fixed_axle_object(unsigned) const; const Msp::GL::Object *get_bogie_object(unsigned) const; const Msp::GL::Object *get_bogie_axle_object(unsigned, unsigned) const; + const Msp::GL::Object *get_rod_object(unsigned) const; private: Msp::GL::Object *get_object(const std::string &); Msp::GL::Technique *create_technique(const std::map &); @@ -42,6 +37,6 @@ private: Msp::GL::Mesh *create_flat_wagon(const std::map &); }; -} // namespace Marklin +} // namespace R2C2 #endif