GlobeEngine
AnimationPath.h
Go to the documentation of this file.
1 
8 #ifndef GlobeEngine_AnimationPath_h
9 #define GlobeEngine_AnimationPath_h
10 
11 #include <vmmlib/vmmlib.hpp>
12 
13 namespace geData {
15  {
16  public:
17  AnimationPath();
19  void clear();
20  void create(std::vector<vmml::Vector3d> _path, float _totalTime);
21  vmml::Vector3d getPositionAtTimestep(double _time);
22  double getTimestepSize();
23 
24  private:
25  std::vector<vmml::Vector3d> controlPoints;
26  std::vector<double> distances;
27  double totalDistance;
28  float totalTime;
29  };
30 }
31 #endif
Definition: AvalancheTrainingSimulationEngine.h:39
void create(std::vector< vmml::Vector3d > _path, float _totalTime)
Definition: AnimationPath.cpp:20
double getTimestepSize()
Definition: AnimationPath.cpp:36
~AnimationPath()
Definition: AnimationPath.cpp:10
AnimationPath()
Definition: AnimationPath.cpp:5
vmml::Vector3d getPositionAtTimestep(double _time)
Definition: AnimationPath.cpp:40
void clear()
Definition: AnimationPath.cpp:15
Definition: AnimationPath.h:14