Go to the documentation of this file.
49 nassertr(root !=
nullptr,
nullptr);
51 if (root->
is_of_type(AnimBundleNode::get_class_type())) {
54 if (anim !=
nullptr) {
61 for (
int i = 0; i < num_children; i++) {
63 if (anim !=
nullptr) {
75 output(std::ostream &out)
const {
76 PandaNode::output(out);
77 if (_bundle !=
nullptr) {
125 node->fillin(scan, manager);
134 void AnimBundleNode::
136 PandaNode::fillin(scan, manager);
static void register_with_read_factory()
Tells the BamReader how to create objects of type AnimBundleNode.
virtual PandaNode * make_copy() const
Returns a newly-allocated PandaNode that is a shallow copy of this one.
This is the root of an AnimChannel hierarchy.
virtual void write_datagram(BamWriter *manager, Datagram &me)
Writes the contents of this object to the datagram for shipping out to a Bam file.
A class to retrieve the individual data elements previously stored in a Datagram.
virtual int complete_pointers(TypedWritable **p_list, BamReader *manager)
Receives an array of pointers, one for each time manager->read_pointer() was called in fillin().
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
void write_pointer(Datagram &packet, const TypedWritable *dest)
The interface for writing a pointer to another object to a Bam file.
PandaNode * get_child(size_t n) const
Returns the nth child of the node.
virtual bool safe_to_flatten() const
Returns true if it is generally safe to flatten out this particular kind of Node by duplicating insta...
static WritableFactory * get_factory()
Returns the global WritableFactory for generating TypedWritable objects.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Base class for objects that can be written to and read from Bam files.
get_children
Returns an object that can be used to walk through the list of children of the node.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
static AnimBundle * find_anim_bundle(PandaNode *root)
Recursively walks the scene graph beginning at the indicated node (which need not be an AnimBundleNod...
TypeHandle is the identifier used to differentiate C++ class types.
virtual void write_datagram(BamWriter *manager, Datagram &dg)
Writes the contents of this object to the datagram for shipping out to a Bam file.
An instance of this class is passed to the Factory when requesting it to do its business and construc...
size_t get_num_children() const
Returns the number of children of the node.
virtual int complete_pointers(TypedWritable **p_list, BamReader *manager)
Receives an array of pointers, one for each time manager->read_pointer() was called in fillin().
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_factory(TypeHandle handle, CreateFunc *func, void *user_data=nullptr)
Registers a new kind of thing the Factory will be able to create.
bool read_pointer(DatagramIterator &scan)
The interface for reading a pointer to another object from a Bam file.
This is a node that contains a pointer to an AnimBundle.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A basic node of the scene graph or data graph.
void parse_params(const FactoryParams ¶ms, DatagramIterator &scan, BamReader *&manager)
Takes in a FactoryParams, passed from a WritableFactory into any TypedWritable's make function,...
bool is_of_type(TypeHandle handle) const
Returns true if the current object is or derives from the indicated type.