3 This file is part of the MSP Märklin suite
4 Copyright © 2010 Mikkosoft Productions, Mikko Rasa
5 Distributed under the GPL
8 #ifndef LIBMARKLIN3D_VEHICLETYPE_H_
9 #define LIBMARKLIN3D_VEHICLETYPE_H_
11 #include <msp/gl/mesh.h>
12 #include <msp/gl/object.h>
13 #include "libmarklin/vehicletype.h"
22 std::map<std::string, Msp::GL::Object *> objects;
23 Msp::GL::Object *body_object;
24 std::vector<Msp::GL::Object *> bogie_objects;
27 VehicleType3D(Catalogue3D &, const VehicleType &);
30 const Msp::GL::Object *get_body_object() const { return body_object; }
31 const Msp::GL::Object *get_axle_object(unsigned) const;
32 const Msp::GL::Object *get_bogie_object(unsigned) const;
33 const Msp::GL::Object *get_bogie_axle_object(unsigned, unsigned) const;
35 Msp::GL::Object *get_object(const std::string &);
38 } // namespace Marklin