14#ifndef SELECTIVECHILDNODE_H
15#define SELECTIVECHILDNODE_H
25class EXPCL_PANDA_PGRAPHNODES SelectiveChildNode :
public PandaNode {
27 INLINE
explicit SelectiveChildNode(
const std::string &name);
30 INLINE SelectiveChildNode(
const SelectiveChildNode ©);
38 INLINE
void select_child(
int n);
51 static void init_type() {
52 PandaNode::init_type();
54 PandaNode::get_class_type());
57 return get_class_type();
59 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
virtual int get_next_visible_child(int n) const
Returns the index number of the next visible child of this node following the indicated child,...
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...
virtual bool has_selective_visibility() const
Should be overridden by derived classes to return true if this kind of node has some restrictions on ...
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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.