gramods
VelocityViewpoint.hh
1 
2 #ifndef GRAMODS_GRAPHICS_VELOCITYVIEWPOINT
3 #define GRAMODS_GRAPHICS_VELOCITYVIEWPOINT
4 
5 #include <gmGraphics/Viewpoint.hh>
6 #include <gmCore/Updateable.hh>
7 
8 BEGIN_NAMESPACE_GMGRAPHICS;
9 
16  : public gmGraphics::Viewpoint,
17  public gmCore::Updateable {
18 
19 public:
20 
22 
31  void setVelocity(Eigen::Vector3f vel);
32 
41  void setRotation(Eigen::Quaternionf q);
42 
46  void update(clock::time_point time, size_t frame) override;
47 
48  GM_OFI_DECLARE;
49 
50 private:
51 
52  struct Impl;
53  std::unique_ptr<Impl> _impl;
54 
55 };
56 
57 END_NAMESPACE_GMGRAPHICS;
58 
59 #endif
The Updateable class defines an interface for objects that may be updated, for example each execution...
Definition: Updateable.hh:18
The VelocityViewpoint animates the viewpoint position and orientation based on specified linear and a...
Definition: VelocityViewpoint.hh:17
The viewpoint represents a point in space from which the view is to be rendered, and an orientation.
Definition: Viewpoint.hh:28
Definition: VelocityViewpoint.cpp:12