#include <ReadState.h>


Public Member Functions | |
| ReadStateActivator (bool active) | |
| virtual Result | processNodeTopDown (simulation::Node *) |
| if state is true, we activate all the write states present in the scene. | |
| bool | getState () const |
| void | setState (bool active) |
Protected Member Functions | |
| void | changeStateReader (sofa::component::misc::ReadState *ws) |
Protected Attributes | |
| bool | state |
Definition at line 111 of file ReadState.h.
| sofa::component::misc::ReadStateActivator::ReadStateActivator | ( | bool | active | ) | [inline] |
Definition at line 114 of file ReadState.h.
| void sofa::component::misc::ReadStateActivator::changeStateReader | ( | sofa::component::misc::ReadState * | ws | ) | [protected] |
Definition at line 87 of file ReadState.cpp.
References sofa::core::objectmodel::BaseObject::f_listening, sofa::component::misc::ReadState::reset(), sofa::core::objectmodel::Data< T >::setValue(), and state.
Referenced by processNodeTopDown().
| bool sofa::component::misc::ReadStateActivator::getState | ( | void | ) | const [inline] |
| simulation::Visitor::Result sofa::component::misc::ReadStateActivator::processNodeTopDown | ( | simulation::Node * | gnode | ) | [virtual] |
if state is true, we activate all the write states present in the scene.
Definition at line 79 of file ReadState.cpp.
References changeStateReader(), sofa::core::objectmodel::BaseContext::get(), and sofa::simulation::Visitor::RESULT_CONTINUE.
| void sofa::component::misc::ReadStateActivator::setState | ( | bool | active | ) | [inline] |
bool sofa::component::misc::ReadStateActivator::state [protected] |
Definition at line 122 of file ReadState.h.
Referenced by changeStateReader(), getState(), and setState().
1.5.7.1