00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef SELECTIVECHILDNODE_H
00016 #define SELECTIVECHILDNODE_H
00017
00018 #include "pandabase.h"
00019
00020 #include "pandaNode.h"
00021
00022
00023
00024
00025
00026
00027 class EXPCL_PANDA_PGRAPHNODES SelectiveChildNode : public PandaNode {
00028 PUBLISHED:
00029 INLINE SelectiveChildNode(const string &name);
00030
00031 protected:
00032 INLINE SelectiveChildNode(const SelectiveChildNode ©);
00033
00034 public:
00035 virtual bool has_selective_visibility() const;
00036 virtual int get_first_visible_child() const;
00037 virtual int get_next_visible_child(int n) const;
00038
00039 protected:
00040 INLINE void select_child(int n);
00041
00042 private:
00043
00044
00045
00046
00047 int _selected_child;
00048
00049 public:
00050 static TypeHandle get_class_type() {
00051 return _type_handle;
00052 }
00053 static void init_type() {
00054 PandaNode::init_type();
00055 register_type(_type_handle, "SelectiveChildNode",
00056 PandaNode::get_class_type());
00057 }
00058 virtual TypeHandle get_type() const {
00059 return get_class_type();
00060 }
00061 virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
00062
00063 private:
00064 static TypeHandle _type_handle;
00065 };
00066
00067 #include "selectiveChildNode.I"
00068
00069 #endif