sofa::component::misc::WriteStateActivator Class Reference

#include <WriteState.h>

Inheritance diagram for sofa::component::misc::WriteStateActivator:

Inheritance graph
[legend]
Collaboration diagram for sofa::component::misc::WriteStateActivator:

Collaboration graph
[legend]

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

Detailed Description

Definition at line 120 of file WriteState.h.


Constructor & Destructor Documentation

sofa::component::misc::WriteStateActivator::WriteStateActivator ( bool  active  )  [inline]

Definition at line 123 of file WriteState.h.


Member Function Documentation

void sofa::component::misc::WriteStateActivator::changeStateWriter ( sofa::component::misc::WriteState *  ws  )  [protected]

bool sofa::component::misc::WriteStateActivator::getState ( void   )  const [inline]

Definition at line 126 of file WriteState.h.

References state.

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 127 of file WriteState.h.

References state.


Field Documentation

Definition at line 131 of file WriteState.h.

Referenced by changeStateWriter(), getState(), and setState().


The documentation for this class was generated from the following files:

Generated on Sun Nov 23 04:21:17 2008 for Sofa by  doxygen 1.5.7.1