gramods
Loading...
Searching...
No Matches
PathViewpoint.hh
1
2#ifndef GRAMODS_GRAPHICS_PATHVIEWPOINT
3#define GRAMODS_GRAPHICS_PATHVIEWPOINT
4
5#include <gmGraphics/Viewpoint.hh>
6#include <gmCore/Updateable.hh>
7
8#include <gmCore/io_eigen.hh>
9
10BEGIN_NAMESPACE_GMGRAPHICS;
11
17 : public gmGraphics::Viewpoint,
18 public gmCore::Updateable {
19
20public:
21
23
31 void setPath(std::vector<Pose> path);
32
40 void addNode(const Pose &node);
41
47 void setLoop(bool on);
48
55 void setExit(bool on);
56
62 void setVelocity(float v);
63
67 void update(clock::time_point time, size_t frame) override;
68
69 GM_OFI_DECLARE;
70
71private:
72 struct Impl;
73 std::unique_ptr<Impl> _impl;
74
75};
76
77END_NAMESPACE_GMGRAPHICS;
78
79#endif
The Updateable class defines an interface for objects that may be updated, for example each execution...
Definition Updateable.hh:18
The PathViewpoint animates the viewpoint position and orientation based on a specified path.
Definition PathViewpoint.hh:18
The viewpoint represents a point in space from which the view is to be rendered, and an orientation.
Definition Viewpoint.hh:28
Type for reading both position and orientation.
Definition io_eigen.hh:18
Definition PathViewpoint.cpp:17