Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

SwitchNode Class Reference

#include <switchNode.h>

Inheritance diagram for SwitchNode:

SelectiveChildNode PandaNode TypedWritable Namable BoundedObject ReferenceCount TypedObject List of all members.

Public Member Functions

 SwitchNode (const SwitchNode &copy)
virtual PandaNodemake_copy () const
virtual bool safe_to_combine () const
virtual bool has_cull_callback () const
virtual bool cull_callback (CullTraverser *trav, CullTraverserData &data)
virtual bool has_single_child_visibility () const
virtual int get_visible_child () const
virtual void write_datagram (BamWriter *manager, Datagram &dg)
virtual TypeHandle get_type () const
virtual TypeHandle force_init_type ()

Static Public Member Functions

void register_with_read_factory ()
TypeHandle get_class_type ()
void init_type ()

Public Attributes

PUBLISHED __pad1__: INLINE void set_visible_child(int index)

Protected Member Functions

void fillin (DatagramIterator &scan, BamReader *manager)

Static Protected Member Functions

TypedWritablemake_from_bam (const FactoryParams &params)

Private Types

typedef CycleDataReader< CDataCDReader
typedef CycleDataWriter< CDataCDWriter

Private Attributes

PUBLISHED __pad0__: INLINE SwitchNode(const string &name)
PipelineCycler< CData_cycler

Static Private Attributes

TypeHandle _type_handle

Member Typedef Documentation

typedef CycleDataReader<CData> SwitchNode::CDReader [private]
 

Reimplemented from PandaNode.

Definition at line 62 of file switchNode.h.

typedef CycleDataWriter<CData> SwitchNode::CDWriter [private]
 

Reimplemented from PandaNode.

Definition at line 63 of file switchNode.h.


Constructor & Destructor Documentation

SwitchNode::SwitchNode const SwitchNode &  copy  ) 
 

Definition at line 79 of file switchNode.cxx.

References _cycler.

Referenced by make_copy(), and make_from_bam().


Member Function Documentation

bool SwitchNode::cull_callback CullTraverser trav,
CullTraverserData data
[virtual]
 

Reimplemented from PandaNode.

Definition at line 132 of file switchNode.cxx.

References get_visible_child(), and SelectiveChildNode::select_child().

void SwitchNode::fillin DatagramIterator scan,
BamReader manager
[protected]
 

Reimplemented from PandaNode.

Definition at line 220 of file switchNode.cxx.

References _cycler, PandaNode::fillin(), and BamReader::read_cdata().

Referenced by make_from_bam().

virtual TypeHandle SwitchNode::force_init_type void   )  [inline, virtual]
 

Reimplemented from SelectiveChildNode.

Definition at line 85 of file switchNode.h.

TypeHandle SwitchNode::get_class_type void   )  [inline, static]
 

Reimplemented from SelectiveChildNode.

Definition at line 74 of file switchNode.h.

Referenced by ProjectionScreen::recompute_node(), and register_with_read_factory().

virtual TypeHandle SwitchNode::get_type void   )  const [inline, virtual]
 

Reimplemented from SelectiveChildNode.

Definition at line 82 of file switchNode.h.

int SwitchNode::get_visible_child  )  const [virtual]
 

Reimplemented from PandaNode.

Definition at line 164 of file switchNode.cxx.

References _cycler.

Referenced by cull_callback().

bool SwitchNode::has_cull_callback  )  const [virtual]
 

Reimplemented from PandaNode.

Definition at line 108 of file switchNode.cxx.

bool SwitchNode::has_single_child_visibility  )  const [virtual]
 

Reimplemented from PandaNode.

Definition at line 154 of file switchNode.cxx.

void SwitchNode::init_type void   )  [inline, static]
 

Reimplemented from SelectiveChildNode.

Definition at line 77 of file switchNode.h.

References SelectiveChildNode::get_class_type(), SelectiveChildNode::init_type(), and register_type().

Referenced by init_libpgraph().

PandaNode * SwitchNode::make_copy  )  const [virtual]
 

Reimplemented from PandaNode.

Definition at line 94 of file switchNode.cxx.

References SwitchNode().

TypedWritable * SwitchNode::make_from_bam const FactoryParams params  )  [static, protected]
 

Reimplemented from PandaNode.

Definition at line 201 of file switchNode.cxx.

References fillin(), params, parse_params(), and SwitchNode().

Referenced by register_with_read_factory().

void SwitchNode::register_with_read_factory  )  [static]
 

Reimplemented from PandaNode.

Definition at line 176 of file switchNode.cxx.

References get_class_type(), BamReader::get_factory(), make_from_bam(), and Factory< TypedWritable >::register_factory().

Referenced by init_libpgraph().

bool SwitchNode::safe_to_combine  )  const [virtual]
 

Reimplemented from PandaNode.

Definition at line 46 of file switchNode.cxx.

void SwitchNode::write_datagram BamWriter manager,
Datagram dg
[virtual]
 

Reimplemented from PandaNode.

Definition at line 187 of file switchNode.cxx.

References _cycler, BamWriter::write_cdata(), and PandaNode::write_datagram().


Member Data Documentation

PUBLISHED SwitchNode::__pad0__ [private]
 

Reimplemented from SelectiveChildNode.

Definition at line 33 of file switchNode.h.

PUBLISHED SwitchNode::__pad1__
 

Reimplemented from PandaNode.

Definition at line 46 of file switchNode.h.

PipelineCycler<CData> SwitchNode::_cycler [private]
 

Reimplemented from PandaNode.

Definition at line 61 of file switchNode.h.

Referenced by fillin(), get_visible_child(), SwitchNode(), and write_datagram().

TypeHandle SwitchNode::_type_handle [static, private]
 

Reimplemented from SelectiveChildNode.

Definition at line 23 of file switchNode.cxx.


The documentation for this class was generated from the following files:
Generated on Fri Apr 18 00:13:38 2003 for Panda by doxygen1.3