15#include <vsg/animation/Animation.h>
23 std::vector<unsigned int> values;
24 std::vector<double> weights;
26 bool operator<(
const MorphKey& rhs)
const {
return time < rhs.time; }
30 class VSG_DECLSPEC MorphKeyframes :
public Inherit<Object, MorphKeyframes>
41 void read(
Input& input)
override;
42 void write(
Output& output)
const override;
47 class VSG_DECLSPEC MorphSampler :
public Inherit<AnimationSampler, MorphSampler>
51 MorphSampler(
const MorphSampler& rhs,
const CopyOp& copyop = {});
56 void update(
double time)
override;
57 double maxTime()
const override;
63 void read(
Input& input)
override;
64 void write(
Output& output)
const override;
Definition MorphSampler.h:31
std::vector< MorphKey > keyframes
key frames
Definition MorphSampler.h:39
std::string name
name of animation
Definition MorphSampler.h:36
Animation sampler for morphing geometry, implementation not yet completed.
Definition MorphSampler.h:48
ref_ptr< Object > clone(const CopyOp ©op={}) const override
Definition MorphSampler.h:60
int compare(const Object &rhs) const override
compare two objects, return -1 if this object is less than rhs, return 0 if it's equal,...
Definition MorphSampler.h:21