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

PandaNode::CData Class Reference

Inheritance diagram for PandaNode::CData:

CycleData List of all members.

Public Member Functions

 CData ()
 CData (const CData &copy)
virtual CycleDatamake_copy () const
virtual void write_datagram (BamWriter *manager, Datagram &dg) const
 Writes the contents of this object to the datagram for shipping out to a Bam file.

virtual int complete_pointers (TypedWritable **plist, BamReader *manager)
 Receives an array of pointers, one for each time manager->read_pointer() was called in fillin().

virtual void fillin (DatagramIterator &scan, BamReader *manager)
 This internal function is called by make_from_bam to read in all of the relevant data from the BamFile for the new PandaNode.

void write_up_list (const Up &up_list, BamWriter *manager, Datagram &dg) const
 Writes the indicated list of parent node pointers to the datagram.

void write_down_list (const Down &down_list, BamWriter *manager, Datagram &dg) const
 Writes the indicated list of child node pointers to the datagram.

int complete_up_list (Up &up_list, TypedWritable **p_list, BamReader *manager)
 Calls complete_pointers() on the list of parent node pointers.

int complete_down_list (Down &down_list, TypedWritable **p_list, BamReader *manager)
 Calls complete_pointers() on the list of child node pointers.

void fillin_up_list (Up &up_list, DatagramIterator &scan, BamReader *manager)
 Reads the indicated list parent node pointers from the datagram (or at least calls read_pointer() for each one).

void fillin_down_list (Down &down_list, DatagramIterator &scan, BamReader *manager)
 Reads the indicated list child node pointers from the datagram (or at least calls read_pointer() for each one).


Public Attributes

Down _down
Down _stashed
Up _up
Paths _paths
ConstPointerTo< RenderState_state
ConstPointerTo< RenderEffects_effects
ConstPointerTo< TransformState_transform
DrawMask _draw_mask
CollideMask _net_collide_mask
bool _fixed_internal_bound

Constructor & Destructor Documentation

PandaNode::CData::CData  )  [inline]
 

Definition at line 152 of file pandaNode.I.

PandaNode::CData::CData const CData &  copy  )  [inline]
 

Definition at line 169 of file pandaNode.I.

References INLINE.


Member Function Documentation

int PandaNode::CData::complete_down_list PandaNode::Down down_list,
TypedWritable **  p_list,
BamReader manager
 

Calls complete_pointers() on the list of child node pointers.

Definition at line 331 of file pandaNode.cxx.

int PandaNode::CData::complete_pointers TypedWritable **  plist,
BamReader manager
[virtual]
 

Receives an array of pointers, one for each time manager->read_pointer() was called in fillin().

Returns the number of pointers processed.

Reimplemented from CycleData.

Definition at line 161 of file pandaNode.cxx.

References _effects, _state, and _transform.

int PandaNode::CData::complete_up_list PandaNode::Up up_list,
TypedWritable **  p_list,
BamReader manager
 

Calls complete_pointers() on the list of parent node pointers.

Definition at line 295 of file pandaNode.cxx.

References DCAST, and PT.

void PandaNode::CData::fillin DatagramIterator scan,
BamReader manager
[virtual]
 

This internal function is called by make_from_bam to read in all of the relevant data from the BamFile for the new PandaNode.

Reimplemented from CycleData.

Definition at line 202 of file pandaNode.cxx.

References Datagram::add_uint16(), BamWriter::has_object(), nassertv, and PN_uint16.

void PandaNode::CData::fillin_down_list PandaNode::Down down_list,
DatagramIterator scan,
BamReader manager
 

Reads the indicated list child node pointers from the datagram (or at least calls read_pointer() for each one).

Definition at line 386 of file pandaNode.cxx.

References nassertv.

void PandaNode::CData::fillin_up_list PandaNode::Up up_list,
DatagramIterator scan,
BamReader manager
 

Reads the indicated list parent node pointers from the datagram (or at least calls read_pointer() for each one).

Definition at line 362 of file pandaNode.cxx.

CycleData * PandaNode::CData::make_copy void   )  const [virtual]
 

Implements CycleData.

Definition at line 121 of file pandaNode.cxx.

References _down, _draw_mask, _effects, _state, _transform, _up, Datagram::add_uint32(), BitMask< PN_uint32, 32 >::get_word(), write_down_list(), BamWriter::write_pointer(), and write_up_list().

void PandaNode::CData::write_datagram BamWriter manager,
Datagram dg
const [virtual]
 

Writes the contents of this object to the datagram for shipping out to a Bam file.

Reimplemented from CycleData.

Definition at line 136 of file pandaNode.cxx.

void PandaNode::CData::write_down_list const Down down_list,
BamWriter manager,
Datagram dg
const
 

Writes the indicated list of child node pointers to the datagram.

Definition at line 267 of file pandaNode.cxx.

Referenced by make_copy().

void PandaNode::CData::write_up_list const Up up_list,
BamWriter manager,
Datagram dg
const
 

Writes the indicated list of parent node pointers to the datagram.

Definition at line 227 of file pandaNode.cxx.

References BamWriter::write_pointer().

Referenced by make_copy().


Member Data Documentation

Down PandaNode::CData::_down
 

Definition at line 298 of file pandaNode.h.

Referenced by make_copy().

DrawMask PandaNode::CData::_draw_mask
 

Definition at line 308 of file pandaNode.h.

Referenced by make_copy().

ConstPointerTo< RenderEffects > PandaNode::CData::_effects
 

Definition at line 304 of file pandaNode.h.

Referenced by complete_pointers(), and make_copy().

bool PandaNode::CData::_fixed_internal_bound
 

Definition at line 318 of file pandaNode.h.

CollideMask PandaNode::CData::_net_collide_mask
 

Definition at line 316 of file pandaNode.h.

Paths PandaNode::CData::_paths
 

Definition at line 301 of file pandaNode.h.

Referenced by PandaNode::parents_changed().

Down PandaNode::CData::_stashed
 

Definition at line 299 of file pandaNode.h.

ConstPointerTo< RenderState > PandaNode::CData::_state
 

Definition at line 303 of file pandaNode.h.

Referenced by complete_pointers(), and make_copy().

ConstPointerTo< TransformState > PandaNode::CData::_transform
 

Definition at line 305 of file pandaNode.h.

Referenced by complete_pointers(), and make_copy().

Up PandaNode::CData::_up
 

Definition at line 300 of file pandaNode.h.

Referenced by make_copy().


The documentation for this class was generated from the following files:
Generated on Fri May 2 00:53:03 2003 for Panda by doxygen1.3