Go to the documentation of this file.
27 INLINE
explicit SwitchNode(
const std::string &name);
41 INLINE
void set_visible_child(
int index);
44 MAKE_PROPERTY(visible_child, get_visible_child, set_visible_child);
47 class EXPCL_PANDA_PGRAPHNODES CData :
public CycleData {
50 INLINE CData(
const CData ©);
55 return SwitchNode::get_class_type();
66 static void register_with_read_factory();
77 static void init_type() {
78 SelectiveChildNode::init_type();
80 SelectiveChildNode::get_class_type());
83 return get_class_type();
85 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
A single page of data maintained by a PipelineCycler.
virtual int get_visible_child() const
Returns the index number of the currently visible child of this node.
A base class for nodes like LODNode and SequenceNode that select only one visible child at a time.
virtual TypeHandle get_parent_type() const
Returns the type of the container that owns the CycleData.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A class to retrieve the individual data elements previously stored in a Datagram.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
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 ...
This object performs a depth-first traversal of the scene graph, with optional view-frustum culling,...
Base class for objects that can be written to and read from Bam files.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
virtual void write_datagram(BamWriter *, Datagram &) const
Writes the contents of this object to the datagram for shipping out to a Bam file.
TypeHandle is the identifier used to differentiate C++ class types.
An instance of this class is passed to the Factory when requesting it to do its business and construc...
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 ...
This template class calls PipelineCycler::write() in the constructor and PipelineCycler::release_writ...
This template class calls PipelineCycler::read_unlocked(), and then provides a transparent read-only ...
This collects together the pieces of data that are accumulated for each node while walking the scene ...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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 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...
A node that renders only one of its children, according to the user's indication.
virtual PandaNode * make_copy() const
Returns a newly-allocated PandaNode that is a shallow copy of this one.
virtual bool safe_to_combine_children() const
Returns true if it is generally safe to combine the children of this PandaNode with each other.
A basic node of the scene graph or data graph.
virtual bool safe_to_combine() const
Returns true if it is generally safe to combine this particular kind of PandaNode with other kinds of...