47 public:
unsigned int id;
78 public:
virtual ~
Actor();
82 public:
void Load(sdf::ElementPtr _sdf);
85 public:
virtual void Init();
88 public:
virtual void Play();
91 public:
virtual void Stop();
94 public:
virtual bool IsActive();
97 public:
void Update();
100 public:
virtual void Fini();
104 public:
virtual void UpdateParameters(sdf::ElementPtr _sdf);
108 public:
virtual const sdf::ElementPtr GetSDF();
115 private:
void AddSphereInertia(sdf::ElementPtr _linkSdf,
117 double _mass,
double _radius);
124 private:
void AddSphereCollision(sdf::ElementPtr _linkSdf,
125 const std::string &_name,
136 private:
void AddSphereVisual(sdf::ElementPtr _linkSdf,
137 const std::string &_name,
140 const std::string &_material,
150 private:
void AddBoxVisual(sdf::ElementPtr _linkSdf,
151 const std::string &_name,
154 const std::string &_material,
161 private:
void AddActorVisual(sdf::ElementPtr _linkSdf,
162 const std::string &_name,
167 private:
void LoadAnimation(sdf::ElementPtr _sdf);
171 private:
void LoadScript(sdf::ElementPtr _sdf);
177 private:
void SetPose(std::map<std::string, math::Matrix4> _frame,
178 std::map<std::string, std::string> _skelMap,
double _time);
220 protected: std::map<unsigned int, common::PoseAnimation*>
trajectories;
226 protected: std::map<std::string, common::SkeletonAnimation*>
230 protected: std::map<std::string, std::map<std::string, std::string> >