#include <WriteState.h>


Public Member Functions | |
| WriteStateActivator (bool active) | |
| virtual Result | processNodeTopDown (simulation::Node *) |
| Callback method called when decending to a new node. Recursion will stop if this method returns RESULT_PRUNE. | |
| bool | getState () const |
| void | setState (bool active) |
Protected Member Functions | |
| void | changeStateWriter (sofa::component::misc::WriteState *ws) |
Protected Attributes | |
| bool | state |
Definition at line 120 of file WriteState.h.
| sofa::component::misc::WriteStateActivator::WriteStateActivator | ( | bool | active | ) | [inline] |
Definition at line 123 of file WriteState.h.
| void sofa::component::misc::WriteStateActivator::changeStateWriter | ( | sofa::component::misc::WriteState * | ws | ) | [protected] |
Definition at line 93 of file WriteState.cpp.
References sofa::core::objectmodel::BaseObject::f_listening, sofa::component::misc::WriteState::reset(), sofa::core::objectmodel::Data< T >::setValue(), and state.
Referenced by processNodeTopDown().
| bool sofa::component::misc::WriteStateActivator::getState | ( | void | ) | const [inline] |
| simulation::Visitor::Result sofa::component::misc::WriteStateActivator::processNodeTopDown | ( | simulation::Node * | ) | [virtual] |
Callback method called when decending to a new node. Recursion will stop if this method returns RESULT_PRUNE.
Reimplemented from sofa::simulation::Visitor.
Definition at line 86 of file WriteState.cpp.
References changeStateWriter(), sofa::core::objectmodel::BaseContext::get(), and sofa::simulation::Visitor::RESULT_CONTINUE.
| void sofa::component::misc::WriteStateActivator::setState | ( | bool | active | ) | [inline] |
Definition at line 131 of file WriteState.h.
Referenced by changeStateWriter(), getState(), and setState().
1.5.7.1