15 #include <vsg/core/Inherit.h>
16 #include <vsg/maths/quat.h>
17 #include <vsg/ui/KeyEvent.h>
40 dvec3 scale = {1.0, 1.0, 1.0};
44 std::map<double, Location> locations;
46 void add(
double time,
const dvec3& position,
const dquat& orientation = {},
const dvec3& scale = {1.0, 1.0, 1.0})
48 locations[time] = Location{position, orientation, scale};
51 double period()
const;
53 Location computeLocation(
double time)
const;
54 dmat4 computeMatrix(
double time)
const;
56 void read(Input& input)
override;
57 void write(Output& output)
const override;
71 KeySymbol resetKey = KEY_Space;
73 clock::time_point startPoint;
76 bool printFrameStatsToConsole =
false;
77 clock::time_point statsStartPoint;
78 double frameCount = 0.0;
80 void apply(
Camera& camera)
override;
101 KeySymbol toggleRecordingKey = KEY_r;
102 KeySymbol togglePlaybackKey = KEY_p;
104 bool recording =
false;
105 bool playing =
false;
106 clock::time_point startPoint;
109 bool printFrameStatsToConsole =
false;
110 clock::time_point statsStartPoint;
111 double frameCount = 0.0;
113 void apply(
Camera& camera)
override;
Definition: AnimationPath.h:64
Definition: AnimationPath.h:27
Definition: ApplicationEvent.h:37
KeyPressEvent represents a key press event.
Definition: KeyEvent.h:309
RecordAnimationPathHandler event handler records the camera.
Definition: AnimationPath.h:92
Definition: AnimationPath.h:37