#include <sceneGraphReducer.h>
Protected Member Functions | |
void | r_apply_attribs (PandaNode *node, const AccumulatedAttribs &attribs, int attrib_types, GeomTransformer &transformer) |
int | r_flatten (PandaNode *grandparent_node, PandaNode *parent_node, bool combine_siblings) |
int | flatten_siblings (PandaNode *parent_node) |
bool | consider_child (PandaNode *grandparent_node, PandaNode *parent_node, PandaNode *child_node) |
bool | consider_siblings (PandaNode *parent_node, PandaNode *child1, PandaNode *child2) |
bool | do_flatten_child (PandaNode *grandparent_node, PandaNode *parent_node, PandaNode *child_node) |
PandaNode * | do_flatten_siblings (PandaNode *parent_node, PandaNode *child1, PandaNode *child2) |
PT (PandaNode) collapse_nodes(PandaNode *node1 | |
void | choose_name (PandaNode *preserve, PandaNode *source1, PandaNode *source2) |
Protected Attributes | |
PandaNode * | node2 |
PandaNode bool | siblings |
Private Types | |
enum | AttribTypes { TT_transform = 0x001, TT_color = 0x002, TT_color_scale = 0x004, TT_tex_matrix = 0x008, TT_other = 0x010 } |
Private Member Functions | |
INLINE | ~SceneGraphReducer () |
INLINE void | apply_attribs (PandaNode *node, int attrib_types=~0) |
INLINE void | apply_attribs (PandaNode *node, const AccumulatedAttribs &attribs, int attrib_types, GeomTransformer &transformer) |
int | flatten (PandaNode *root, bool combine_siblings) |
Private Attributes | |
PUBLISHED | __pad0__: INLINE SceneGraphReducer() |
GeomTransformer | _transformer |
|
Definition at line 50 of file sceneGraphReducer.h. |
|
|
|
|
|
Referenced by TextNode::apply_attribs_to_vertices(), NodePath::flatten_light(), NodePath::flatten_medium(), NodePath::flatten_strong(), PT(), and PGItem::xform(). |
|
Definition at line 525 of file sceneGraphReducer.cxx. References PandaNode::preserve_name(). Referenced by do_flatten_child(), and do_flatten_siblings(). |
|
Definition at line 372 of file sceneGraphReducer.cxx. References PandaNode::get_draw_mask(), PandaNode::get_effects(), PandaNode::get_state(), PandaNode::get_transform(), RenderEffects::safe_to_combine(), and PandaNode::safe_to_combine(). Referenced by r_flatten(). |
|
Definition at line 405 of file sceneGraphReducer.cxx. Referenced by flatten_siblings(). |
|
Definition at line 422 of file sceneGraphReducer.cxx. References choose_name(), NULL, PT(), and PandaNode::replace_child(). Referenced by r_flatten(). |
|
Definition at line 465 of file sceneGraphReducer.cxx. References choose_name(), NULL, PT(), PandaNode::remove_child(), and PandaNode::replace_child(). Referenced by flatten_siblings(). |
|
Definition at line 51 of file sceneGraphReducer.cxx. References flatten_siblings(), PandaNode::ChildrenCopy::get_child(), PandaNode::ChildrenCopy::get_num_children(), r_flatten(), and root. Referenced by NodePath::flatten_medium(), NodePath::flatten_strong(), and PT(). |
|
Definition at line 298 of file sceneGraphReducer.cxx. References consider_siblings(), do_flatten_siblings(), PandaNode::get_children(), NULL, PT(), RenderEffects::safe_to_combine(), and PandaNode::safe_to_combine(). Referenced by flatten(), and r_flatten(). |
|
Referenced by do_flatten_child(), do_flatten_siblings(), flatten_siblings(), r_apply_attribs(), and r_flatten(). |
|
|
|
Definition at line 47 of file sceneGraphReducer.h. |
|
Definition at line 89 of file sceneGraphReducer.h. |
|
Definition at line 83 of file sceneGraphReducer.h. |
|
Definition at line 83 of file sceneGraphReducer.h. |