17 if( this->last_check_frame_id != frame_id )
19 this->last_check_frame_id = frame_id;
21 std::unordered_set< Elem * > roots = this->elems;
23 for(
Elem * elem : this->elems )
33 for(
Elem * root : roots )
35 if( !root->quiet() && root->first_pass_frame_id() != frame_id )
48 this->elems.insert( elem );
53 this->elems.erase( elem );
56 void ElementSystem::print_elem_children(
TreeDebugView * tree,
Elem * elem, std::unordered_set< Elem * > & printed )
61 if( !printed.count( child ) )
63 printed.insert( child );
65 tree->Push( child->cm.instance()->instance_name().c_str() );
66 child->cm.inheritance_root()->print_status_with_inherited( (TextDebugView*)tree, &child->cm );
67 this->print_elem_children( tree, child, printed );
76 std::unordered_set< Elem * > printed;
80 for(
Camera * camera : this->cameras )
82 tree.
Push( camera->cm.instance()->instance_name().c_str() );
83 camera->cm.print_status_with_inherited( (
TextDebugView*)&tree, &camera->cm );
84 this->print_elem_children( &tree, camera, printed );
93 this->cameras.insert( camera );
98 this->cameras.erase( camera );