]> git.tdb.fi Git - r2c2.git/blob - source/engineer/placementghost.h
Reflect the current state of functions in a newly opened train dialog
[r2c2.git] / source / engineer / placementghost.h
1 #ifndef PLACEMENTGHOST_H_
2 #define PLACEMENTGHOST_H_
3
4 #include <msp/gl/mesh.h>
5 #include <msp/gl/object.h>
6 #include <msp/gl/renderable.h>
7 #include "libr2c2/vehicleplacement.h"
8 #include "3d/layout.h"
9
10 class PlacementGhost: public Msp::GL::Renderable
11 {
12 private:
13         R2C2::Layout3D &layout;
14         const R2C2::VehicleType &type;
15         R2C2::VehiclePlacement placement;
16         Msp::GL::Mesh *mesh;
17         Msp::GL::Object *object;
18
19 public:
20         PlacementGhost(R2C2::Layout3D &, const R2C2::VehicleType &);
21         virtual ~PlacementGhost();
22
23         void place(const R2C2::TrackOffsetIter &);
24         void place_before(const PlacementGhost &);
25
26         virtual void render(Msp::GL::Renderer &, const Msp::GL::Tag &) const;
27 };
28
29 #endif