15#include <vsg/animation/CameraSampler.h>
16#include <vsg/core/Inherit.h>
17#include <vsg/maths/quat.h>
18#include <vsg/ui/KeyEvent.h>
24 class VSG_DECLSPEC CameraAnimationHandler :
public Inherit<Visitor, CameraAnimationHandler>
27 CameraAnimationHandler();
44 KeySymbol toggleRecordingKey = KEY_r;
45 KeySymbol togglePlaybackKey = KEY_p;
47 bool recording =
false;
49 double simulationTime = 0.0;
50 double startTime = 0.0;
57 void apply(
Camera& camera)
override;
event handler for controlling the playing and recording of camera animation paths
Definition CameraAnimationHandler.h:25
Path filename
file to read/write to
Definition CameraAnimationHandler.h:35
ref_ptr< Object > object
object to track/modify
Definition CameraAnimationHandler.h:32
Definition ApplicationEvent.h:37
KeyPressEvent represents a key press event.
Definition KeyEvent.h:309