14 #ifndef ANIMCONTROLCOLLECTION_H
15 #define ANIMCONTROLCOLLECTION_H
38 void store_anim(
AnimControl *control,
const std::string &name);
39 AnimControl *find_anim(
const std::string &name)
const;
40 bool unbind_anim(
const std::string &name);
42 int get_num_anims()
const;
44 std::string get_anim_name(
int n)
const;
45 MAKE_SEQ(get_anims, get_num_anims, get_anim);
46 MAKE_SEQ(get_anim_names, get_num_anims, get_anim_name);
53 INLINE
bool play(
const std::string &anim_name);
54 INLINE
bool play(
const std::string &anim_name,
double from,
double to);
55 INLINE
bool loop(
const std::string &anim_name,
bool restart);
56 INLINE
bool loop(
const std::string &anim_name,
bool restart,
double from,
double to);
57 INLINE
bool stop(
const std::string &anim_name);
58 INLINE
bool pose(
const std::string &anim_name,
double frame);
62 void play_all(
double from,
double to);
63 void loop_all(
bool restart);
64 void loop_all(
bool restart,
double from,
double to);
66 void pose_all(
double frame);
68 INLINE
int get_frame(
const std::string &anim_name)
const;
69 INLINE
int get_frame()
const;
71 INLINE
int get_num_frames(
const std::string &anim_name)
const;
72 INLINE
int get_num_frames()
const;
74 INLINE
bool is_playing(
const std::string &anim_name)
const;
75 INLINE
bool is_playing()
const;
77 std::string which_anim_playing()
const;
79 void output(std::ostream &out)
const;
80 void write(std::ostream &out)
const;
92 ControlsByName _controls_by_name;
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is a named collection of AnimControl pointers.
Controls the timing of a character animation.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.