15 #ifndef ANIMPRELOADTABLE_H
16 #define ANIMPRELOADTABLE_H
18 #include "pandabase.h"
19 #include "typedWritableReferenceCount.h"
20 #include "ordered_vector.h"
21 #include "copyOnWriteObject.h"
44 INLINE
bool operator < (
const AnimRecord &other)
const;
47 PN_stdfloat _base_frame_rate;
56 virtual ~AnimPreloadTable();
58 int get_num_anims() const;
59 int find_anim(const
string &basename) const;
61 INLINE
string get_basename(
int n) const;
62 INLINE PN_stdfloat get_base_frame_rate(
int n) const;
63 INLINE
int get_num_frames(
int n) const;
66 void remove_anim(
int n);
67 void add_anim(const
string &basename, PN_stdfloat base_frame_rate,
int num_frames);
68 void add_anims_from(const AnimPreloadTable *other);
70 virtual
void output(ostream &out) const;
71 virtual
void write(ostream &out,
int indent_level) const;
74 INLINE
void consider_sort() const;
77 static
void register_with_read_factory();
91 return get_class_type();
93 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
98 static void init_type() {
99 CopyOnWriteObject::init_type();
100 register_type(_type_handle,
"AnimPreloadTable",
101 CopyOnWriteObject::get_class_type());
113 #include "animPreloadTable.I"
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.
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
A specialization of ordered_vector that emulates a standard STL set: one copy of each element is allo...
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 ...
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 ...