14 #ifndef SEQUENCENODE_H 15 #define SEQUENCENODE_H 35 virtual int get_num_frames()
const;
36 INLINE
void set_frame_rate(
double frame_rate);
48 virtual void output(std::ostream &out)
const;
62 static void init_type() {
63 SelectiveChildNode::init_type();
64 AnimInterface::init_type();
66 SelectiveChildNode::get_class_type(),
67 AnimInterface::get_class_type());
70 return get_class_type();
72 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
virtual int get_visible_child() const
Returns the index number of the currently visible child of this node.
A basic node of the scene graph or data graph.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual void write_datagram(BamWriter *manager, Datagram &dg)
Writes the contents of this object to the datagram for shipping out to a Bam file.
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.
virtual bool safe_to_combine_children() const
Returns true if it is generally safe to combine the children of this PandaNode with each other.
This collects together the pieces of data that are accumulated for each node while walking the scene ...
A node that automatically cycles through rendering each one of its children according to its frame ra...
A base class for nodes like LODNode and SequenceNode that select only one visible child at a time.
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
This is the fundamental interface for things that have a play/loop/stop type interface for frame-base...
static void register_with_read_factory()
Tells the BamReader how to create objects of type PandaNode.
virtual bool safe_to_combine() const
Returns true if it is generally safe to combine this particular kind of PandaNode with other kinds of...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual int get_first_visible_child() const
Returns the index number of the first visible child of this node, or a number >= get_num_children() i...
An instance of this class is passed to the Factory when requesting it to do its business and construc...
virtual PandaNode * make_copy() const
Returns a newly-allocated PandaNode that is a shallow copy of this one.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual bool has_single_child_visibility() const
Should be overridden by derived classes to return true if this kind of node has the special property ...
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 ...
This object performs a depth-first traversal of the scene graph, with optional view-frustum culling,...