sofa::core::objectmodel::ContextObject Class Reference

Base class for simulation objects that modify the shared context (such as gravity, local coordinate system, . More...

#include <ContextObject.h>

Inheritance diagram for sofa::core::objectmodel::ContextObject:

Inheritance graph
[legend]
Collaboration diagram for sofa::core::objectmodel::ContextObject:

Collaboration graph
[legend]

Public Member Functions

 ContextObject ()
virtual ~ContextObject ()
virtual void apply ()=0
 modify the Context

Protected Member Functions

BaseContext * getContext ()
 Get a writable pointer to the context.

Detailed Description

Base class for simulation objects that modify the shared context (such as gravity, local coordinate system, .

..).

Definition at line 45 of file ContextObject.h.


Constructor & Destructor Documentation

sofa::core::objectmodel::ContextObject::ContextObject (  )  [inline]

Definition at line 48 of file ContextObject.h.

virtual sofa::core::objectmodel::ContextObject::~ContextObject (  )  [inline, virtual]

Definition at line 52 of file ContextObject.h.


Member Function Documentation

virtual void sofa::core::objectmodel::ContextObject::apply (  )  [pure virtual]

BaseContext* sofa::core::objectmodel::ContextObject::getContext (  )  [inline, protected]

Get a writable pointer to the context.

Note that this method should only be called inside apply()

Reimplemented from sofa::core::objectmodel::BaseObject.

Definition at line 62 of file ContextObject.h.

References sofa::core::objectmodel::BaseObject::context_.

Referenced by sofa::component::contextobject::Gravity::apply(), and sofa::component::contextobject::CoordinateSystem::apply().


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

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