29class EXPCL_PANDA_CHAN AnimBundle :
public AnimGroup {
31 AnimBundle(AnimGroup *parent,
const AnimBundle ©);
34 INLINE
explicit AnimBundle(
const std::string &name, PN_stdfloat fps,
int num_frames);
36 PT(AnimBundle) copy_bundle()
const;
44 virtual void output(std::ostream &out)
const;
49 virtual AnimGroup *make_copy(AnimGroup *parent)
const;
67 return get_class_type();
69 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
70 static TypeHandle get_class_type() {
73 static void init_type() {
74 AnimGroup::init_type();
76 AnimGroup::get_class_type());
80 static TypeHandle _type_handle;
83inline std::ostream &operator <<(std::ostream &out,
const AnimBundle &bundle) {
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is the root of an AnimChannel hierarchy.
static TypedWritable * make_AnimBundle(const FactoryParams ¶ms)
Factory method to generate a AnimBundle object.
get_base_frame_rate
Returns the ideal number of frames per second of the animation, when it is running at normal speed.
virtual void output(std::ostream &out) const
Writes a one-line description of the group.
virtual void write_datagram(BamWriter *manager, Datagram &me)
Writes the contents of this object to the datagram for shipping out to a Bam file.
get_num_frames
Returns the number of frames of animation, or 0 if the animation has no fixed number of frames.
static void register_with_read_factory()
Factory method to generate a AnimGroup object.
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
A class to retrieve the individual data elements previously stored in a Datagram.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
An instance of this class is passed to the Factory when requesting it to do its business and construc...
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...