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