|
Panda3D
|
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"
Public Member Functions | |
| AccumulatedAttribs (const AccumulatedAttribs ©) | |
| 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. | |
| ConstPointerTo< RenderState > | collect (const RenderState *state, int attrib_types) |
| Collects the state and transform from the indicated node and adds it to the accumulator, removing it from the state (and returning a new state). | |
| 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 | operator= (const AccumulatedAttribs ©) |
| void | write (std::ostream &out, int attrib_types, int indent_level) const |
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 30 of file accumulatedAttribs.h.
| AccumulatedAttribs::AccumulatedAttribs | ( | ) |
Definition at line 29 of file accumulatedAttribs.cxx.
| AccumulatedAttribs::AccumulatedAttribs | ( | const AccumulatedAttribs & | copy | ) |
Definition at line 44 of file accumulatedAttribs.cxx.
| 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 285 of file accumulatedAttribs.cxx.
References PandaNode::reset_prev_transform(), PandaNode::set_attrib(), PandaNode::set_state, and PandaNode::set_transform.
| ConstPointerTo< RenderState > AccumulatedAttribs::collect | ( | const RenderState * | state, |
| int | attrib_types ) |
Collects the state and transform from the indicated node and adds it to the accumulator, removing it from the state (and returning a new state).
Definition at line 154 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 136 of file accumulatedAttribs.cxx.
References collect(), PandaNode::set_prev_transform(), PandaNode::set_state, and PandaNode::set_transform.
Referenced by GeomNode::apply_attribs_to_vertices(), and collect().
| void AccumulatedAttribs::operator= | ( | const AccumulatedAttribs & | copy | ) |
Definition at line 66 of file accumulatedAttribs.cxx.
| void AccumulatedAttribs::write | ( | std::ostream & | out, |
| int | attrib_types, | ||
| int | indent_level ) const |
Definition at line 87 of file accumulatedAttribs.cxx.
| ConstPointerTo< RenderAttrib > AccumulatedAttribs::_clip_plane |
Definition at line 51 of file accumulatedAttribs.h.
| int AccumulatedAttribs::_clip_plane_override |
Definition at line 52 of file accumulatedAttribs.h.
| ConstPointerTo< RenderAttrib > AccumulatedAttribs::_color |
Definition at line 43 of file accumulatedAttribs.h.
| int AccumulatedAttribs::_color_override |
Definition at line 44 of file accumulatedAttribs.h.
| ConstPointerTo< RenderAttrib > AccumulatedAttribs::_color_scale |
Definition at line 45 of file accumulatedAttribs.h.
| int AccumulatedAttribs::_color_scale_override |
Definition at line 46 of file accumulatedAttribs.h.
| ConstPointerTo< RenderAttrib > AccumulatedAttribs::_cull_face |
Definition at line 53 of file accumulatedAttribs.h.
| int AccumulatedAttribs::_cull_face_override |
Definition at line 54 of file accumulatedAttribs.h.
| ConstPointerTo< RenderState > AccumulatedAttribs::_other |
Definition at line 55 of file accumulatedAttribs.h.
| ConstPointerTo< RenderAttrib > AccumulatedAttribs::_tex_matrix |
Definition at line 47 of file accumulatedAttribs.h.
| int AccumulatedAttribs::_tex_matrix_override |
Definition at line 48 of file accumulatedAttribs.h.
| ConstPointerTo< RenderAttrib > AccumulatedAttribs::_texture |
Definition at line 49 of file accumulatedAttribs.h.
| int AccumulatedAttribs::_texture_override |
Definition at line 50 of file accumulatedAttribs.h.
| ConstPointerTo< TransformState > AccumulatedAttribs::_transform |
Definition at line 42 of file accumulatedAttribs.h.