29 #ifndef EQ_PLY_CAMERAANIMATION_H
30 #define EQ_PLY_CAMERAANIMATION_H
48 bool loadAnimation(
const std::string& fileName );
50 bool isValid()
const {
return !_steps.empty(); }
54 uint32_t getCurrentFrame() {
return _curFrame; }
56 const eq::Vector3f& getModelRotation()
const {
return _modelRotation;}
62 , position( eq::Vector3f( .0f, .0f, -1.0f ))
63 , rotation( eq::Vector3f( .0f, .0f, .0f )){}
65 Step(
int frame_,
const eq::Vector3f& position_,
66 const eq::Vector3f& rotation_ )
68 , position( position_ ),
69 rotation( rotation_ ){}
72 eq::Vector3f position;
73 eq::Vector3f rotation;
77 eq::Vector3f _modelRotation;
78 std::vector< Step > _steps;
85 #endif // EQ_PLY_CAMERAANIMATION_H
Loads sequence of camera positions and interpolates them on a per-frame basis.