1 #ifndef LIBR2C23D_VEHICLE_H_
2 #define LIBR2C23D_VEHICLE_H_
4 #include <msp/gl/renderable.h>
5 #include "libr2c2/vehicle.h"
15 class Vehicle3D: public Object3D, public Msp::GL::ObjectInstance
19 const VehicleType3D &type;
20 std::vector<Axle3D *> axles;
21 std::vector<Bogie3D *> bogies;
22 std::vector<Rod3D *> rods;
25 Vehicle3D(Layout3D &, Vehicle &);
28 Vehicle &get_vehicle() const { return vehicle; }
29 const VehicleType3D &get_type() const { return type; }
31 virtual Vector get_node() const;
32 virtual bool is_visible() const;
34 virtual void render(Msp::GL::Renderer &, const Msp::GL::Tag &) const;
35 virtual void setup_render(Msp::GL::Renderer &, const Msp::GL::Tag &) const;