14 #ifndef ANIMPRELOADTABLE_H 15 #define ANIMPRELOADTABLE_H 40 INLINE
bool operator < (
const AnimRecord &other)
const;
42 std::string _basename;
43 PN_stdfloat _base_frame_rate;
54 int get_num_anims()
const;
55 int find_anim(
const std::string &basename)
const;
57 INLINE std::string get_basename(
int n)
const;
58 INLINE PN_stdfloat get_base_frame_rate(
int n)
const;
59 INLINE
int get_num_frames(
int n)
const;
62 void remove_anim(
int n);
63 void add_anim(
const std::string &basename, PN_stdfloat base_frame_rate,
int num_frames);
66 virtual void output(std::ostream &out)
const;
67 virtual void write(std::ostream &out,
int indent_level)
const;
70 INLINE
void consider_sort()
const;
73 static void register_with_read_factory();
87 return get_class_type();
89 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
94 static void init_type() {
95 CopyOnWriteObject::init_type();
97 CopyOnWriteObject::get_class_type());
104 inline std::ostream &operator << (std::ostream &out,
const AnimPreloadTable &anim) {
This table records data about a list of animations for a particular model, such as number of frames a...
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
Base class for objects that can be written to and read from Bam files.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
virtual void fillin(DatagramIterator &scan, BamReader *manager)
This internal function is intended to be called by each class's make_from_bam() method to read in all...
virtual void write_datagram(BamWriter *manager, Datagram &dg)
Writes the contents of this object to the datagram for shipping out to a Bam file.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
An instance of this class is passed to the Factory when requesting it to do its business and construc...
This base class provides basic reference counting, but also can be used with a CopyOnWritePointer to ...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A class to retrieve the individual data elements previously stored in a Datagram.
TypeHandle is the identifier used to differentiate C++ class types.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.