Go to the documentation of this file.
14 #ifdef TOOLS_SG_GROUP_DEBUG
25 #ifdef TOOLS_SG_GROUP_DEBUG
26 std::ostream& out = a_action.
out();
28 out <<
"debug : tools::sg::group::render : children : " << (*it)->s_cls() <<
" begin : " << std::endl;
29 (*it)->render(a_action);
30 out <<
"debug : tools::sg::group::render : children : " << (*it)->s_cls() <<
" end," << std::endl;
38 (*it)->pick(a_action);
39 if(a_action.
done())
break;
47 (*it)->event(a_action);
48 if(a_action.
done())
break;
52 parent::search(a_action);
53 if(a_action.
done())
return;
56 (*it)->search(a_action);
57 if(a_action.
done())
return;
63 (*it)->get_matrix(a_action);
64 if(a_action.
done())
return;
68 if(!a_action.
beg_node(*
this))
return false;
71 if(!a_action.
end_node(*
this))
return false;
76 (*it)->is_visible(a_action);
90 if(&a_from==
this)
return *
this;
115 if(a_del)
delete old;
122 void swap(
unsigned int a_1,
unsigned int a_2){
132 T* o = safe_cast<node,T>(*(*it));
155 const std::string& a_class,
156 bool a_inc_a_node =
true)
const {
163 if(!a_inc_a_node)
continue;
167 void* p = (*it)->cast(a_class);
187 std::vector<node*>::iterator it =
m_children.begin();
196 std::vector<node*>::iterator it;
201 if(!a_inc_a_node) {it++;
continue;}
216 if(&a_from==
this)
return;
219 std::vector<node*>::iterator it =
m_children.begin();
220 std::vector<node*>::iterator fit = a_from.
m_children.begin();
221 for(;fit!=a_from.
m_children.end();++it,++fit) {
257 unsigned int index = 0;
258 std::vector<node*>::iterator it;
281 T* o = safe_cast<node,T>(*(*it));
290 if(a_node==(*it))
return true;
302 T*
child(
unsigned int a_index)
const {
306 return safe_cast<node,T>(*_node);
313 if(!(*it)->write(a_action))
return false;
#define TOOLS_NODE(a__class, a__sclass, a__parent)
#define tools_vforcrit(a__T, a__v, a__it)
#define tools_vforit(a__T, a__v, a__it)
#define tools_vforcit(a__T, a__v, a__it)