|
inlib
1.2.0
|


Public Member Functions | |
| virtual void | render (render_action &a_action) |
| virtual void | pick (pick_action &a_action) |
| virtual void | bbox (bbox_action &a_action) |
| virtual void | search (search_action &a_action) |
| virtual void | event (event_action &a_action) |
| _switch () | |
| virtual | ~_switch () |
Public Attributes | |
| sf< int > | which |
Protected Member Functions | |
| _switch (const _switch &a_from) | |
| _switch & | operator= (const _switch &a_from) |
| inlib::sg::_switch::_switch | ( | ) | [inline] |
| virtual inlib::sg::_switch::~_switch | ( | ) | [inline, virtual] |
| inlib::sg::_switch::_switch | ( | const _switch & | a_from | ) | [inline, protected] |
| virtual void inlib::sg::_switch::bbox | ( | bbox_action & | a_action | ) | [inline, virtual] |
Reimplemented from inlib::sg::group.
Definition at line 45 of file _switch.
{
int index = which.value();
if(index==(-1)) {
std::vector<node*>::iterator it;
for(it=m_children.begin();it!=m_children.end();++it) {
(*it)->bbox(a_action);
}
} else if((index>=0)&&(index<(int)m_children.size())) {
m_children[index]->bbox(a_action);
}
}
| virtual void inlib::sg::_switch::event | ( | event_action & | a_action | ) | [inline, virtual] |
Reimplemented from inlib::sg::group.
Definition at line 68 of file _switch.
{
int index = which.value();
if(index==(-1)) {
std::vector<node*>::iterator it;
for(it=m_children.begin();it!=m_children.end();++it) {
(*it)->event(a_action);
//if(a_action.handled()) break;
}
} else if((index>=0)&&(index<(int)m_children.size())) {
m_children[index]->event(a_action);
}
}
Definition at line 95 of file _switch.
{
group::operator=(a_from);
which = a_from.which;
return *this;
}
| virtual void inlib::sg::_switch::pick | ( | pick_action & | a_action | ) | [inline, virtual] |
Reimplemented from inlib::sg::group.
Definition at line 33 of file _switch.
{
int index = which.value();
if(index==(-1)) {
std::vector<node*>::iterator it;
for(it=m_children.begin();it!=m_children.end();++it) {
(*it)->pick(a_action);
if(a_action.done()) break;
}
} else if((index>=0)&&(index<(int)m_children.size())) {
m_children[index]->pick(a_action);
}
}
| virtual void inlib::sg::_switch::render | ( | render_action & | a_action | ) | [inline, virtual] |
Reimplemented from inlib::sg::group.
Definition at line 22 of file _switch.
{
int index = which.value();
if(index==(-1)) {
std::vector<node*>::iterator it;
for(it=m_children.begin();it!=m_children.end();++it) {
(*it)->render(a_action);
}
} else if((index>=0)&&(index<(int)m_children.size())) {
m_children[index]->render(a_action);
}
}
| virtual void inlib::sg::_switch::search | ( | search_action & | a_action | ) | [inline, virtual] |
Reimplemented from inlib::sg::group.
Definition at line 56 of file _switch.
{
int index = which.value();
if(index==(-1)) {
std::vector<node*>::iterator it;
for(it=m_children.begin();it!=m_children.end();++it) {
(*it)->search(a_action);
if(a_action.done()) break;
}
} else if((index>=0)&&(index<(int)m_children.size())) {
m_children[index]->search(a_action);
}
}
1.7.5.1