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

AccumulatedAttribs Class Reference

This class is used by the SceneGraphReducer to maintain and accumulate the set of attributes we have encountered on each node that might eventually be applied to the vertices at the leaves. More...

#include <accumulatedAttribs.h>

List of all members.

Public Member Functions

 AccumulatedAttribs ()
 AccumulatedAttribs (const AccumulatedAttribs &copy)
void operator= (const AccumulatedAttribs &copy)
void write (ostream &out, int attrib_types, int indent_level) const
void collect (PandaNode *node, int attrib_types)
 Collects the state and transform from the indicated node and adds it to the accumulator, removing it from the node.

void apply_to_node (PandaNode *node, int attrib_types)
 Stores the indicated attributes in the node's transform and state information; does not attempt to apply the properties to the vertices.


Public Attributes

ConstPointerTo< TransformState_transform
ConstPointerTo< RenderAttrib_color
ConstPointerTo< RenderAttrib_color_scale
ConstPointerTo< RenderAttrib_tex_matrix
ConstPointerTo< RenderState_other


Detailed Description

This class is used by the SceneGraphReducer to maintain and accumulate the set of attributes we have encountered on each node that might eventually be applied to the vertices at the leaves.

Definition at line 46 of file accumulatedAttribs.h.


Constructor & Destructor Documentation

AccumulatedAttribs::AccumulatedAttribs  )  [inline]
 

Definition at line 31 of file accumulatedAttribs.I.

References INLINE.

AccumulatedAttribs::AccumulatedAttribs const AccumulatedAttribs &  copy  )  [inline]
 

Definition at line 44 of file accumulatedAttribs.I.


Member Function Documentation

void AccumulatedAttribs::apply_to_node PandaNode node,
int  attrib_types
 

Stores the indicated attributes in the node's transform and state information; does not attempt to apply the properties to the vertices.

Clears the attributes from the accumulator for future traversals.

Definition at line 158 of file accumulatedAttribs.cxx.

void AccumulatedAttribs::collect PandaNode node,
int  attrib_types
 

Collects the state and transform from the indicated node and adds it to the accumulator, removing it from the node.

Definition at line 83 of file accumulatedAttribs.cxx.

References _color, and NULL.

void AccumulatedAttribs::operator= const AccumulatedAttribs &  copy  )  [inline]
 

Definition at line 61 of file accumulatedAttribs.I.

void AccumulatedAttribs::write ostream &  out,
int  attrib_types,
int  indent_level
const
 

Definition at line 40 of file accumulatedAttribs.cxx.

References indent(), and NULL.


Member Data Documentation

ConstPointerTo< RenderAttrib > AccumulatedAttribs::_color
 

Definition at line 58 of file accumulatedAttribs.h.

Referenced by collect(), and GeomNode::~GeomNode().

ConstPointerTo< RenderAttrib > AccumulatedAttribs::_color_scale
 

Definition at line 59 of file accumulatedAttribs.h.

ConstPointerTo< RenderState > AccumulatedAttribs::_other
 

Definition at line 61 of file accumulatedAttribs.h.

ConstPointerTo< RenderAttrib > AccumulatedAttribs::_tex_matrix
 

Definition at line 60 of file accumulatedAttribs.h.

ConstPointerTo< TransformState > AccumulatedAttribs::_transform
 

Definition at line 57 of file accumulatedAttribs.h.

Referenced by PandaNode::safe_to_transform(), and GeomNode::~GeomNode().


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