sofa::core::objectmodel::BaseContext Class Reference

Base class for Context classes, storing shared variables and parameters. More...

#include <BaseContext.h>

Inheritance diagram for sofa::core::objectmodel::BaseContext:

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

Collaboration graph
[legend]

Data Structures

class  GetObjectsCallBack
class  GetObjectsCallBackT

Public Types

enum  SearchDirection { SearchUp = -1, Local = 0, SearchDown = 1, SearchRoot = 2 }
 Specification of where to search for queried objects. More...
Types defined for local coordinate system handling
typedef
defaulttype::SolidTypes
< double > 
SolidTypes
typedef SolidTypes::Transform Frame
typedef SolidTypes::Vec Vec3
typedef SolidTypes::Rot Quat
typedef SolidTypes::Mat Mat33
typedef SolidTypes::SpatialVector SpatialVector

Public Member Functions

 BaseContext ()
virtual ~BaseContext ()
virtual Vec3 getLocalGravity () const
 Gravity in local coordinates.
virtual const Vec3 & getGravityInWorld () const
 Gravity in world coordinates.
virtual void setGravityInWorld (const Vec3 &)
 Gravity in world coordinates.
Parameters
virtual bool isActive () const
 The Context is active.
virtual void setActive (bool)
 State of the context.
virtual double getTime () const
 Simulation time.
virtual double getDt () const
 Simulation timestep.
virtual bool getAnimate () const
 Animation flag.
virtual bool getMultiThreadSimulation () const
 MultiThreading activated.
virtual bool getShowCollisionModels () const
 Display flags: Collision Models.
virtual bool getShowBoundingCollisionModels () const
 Display flags: Bounding Collision Models.
virtual bool getShowBehaviorModels () const
 Display flags: Behavior Models.
virtual bool getShowVisualModels () const
 Display flags: Visual Models.
virtual bool getShowMappings () const
 Display flags: Mappings.
virtual bool getShowMechanicalMappings () const
 Display flags: Mechanical Mappings.
virtual bool getShowForceFields () const
 Display flags: ForceFields.
virtual bool getShowInteractionForceFields () const
 Display flags: InteractionForceFields.
virtual bool getShowWireFrame () const
 Display flags: WireFrame.
virtual bool getShowNormals () const
 Display flags: Normals.
virtual int getCurrentLevel () const
 Multiresolution support (UNSTABLE).
virtual int getCoarsestLevel () const
 Multiresolution support (UNSTABLE).
virtual int getFinestLevel () const
 Multiresolution support (UNSTABLE).
Local Coordinate System
Multiresolution support (UNSTABLE)

Projection from the local coordinate system to the world coordinate system.

virtual const Frame & getPositionInWorld () const
 Projection from the local coordinate system to the world coordinate system.
virtual void setPositionInWorld (const Frame &)
 Projection from the local coordinate system to the world coordinate system.
virtual const SpatialVector & getVelocityInWorld () const
 Spatial velocity (linear, angular) of the local frame with respect to the world.
virtual void setVelocityInWorld (const SpatialVector &)
 Spatial velocity (linear, angular) of the local frame with respect to the world.
virtual const Vec3 & getVelocityBasedLinearAccelerationInWorld () const
 Linear acceleration of the origin induced by the angular velocity of the ancestors.
virtual void setVelocityBasedLinearAccelerationInWorld (const Vec3 &)
 Linear acceleration of the origin induced by the angular velocity of the ancestors.
Containers
virtual BaseObject * getMechanicalState () const
 Mechanical Degrees-of-Freedom.
virtual
core::componentmodel::topology::Topology * 
getTopology () const
 Topology.
virtual
core::componentmodel::topology::BaseMeshTopology * 
getMeshTopology () const
 Mesh Topology (unified interface for both static and dynamic topologies).
virtual BaseObject * getMass () const
 Mass.
virtual BaseObject * getShader () const
 Global Shader.
virtual void * getObject (const ClassInfo &class_info, SearchDirection dir=SearchUp) const
 Generic object access, possibly searching up or down from the current context.
virtual void * getObject (const ClassInfo &class_info, const std::string &path) const
 Generic object access, given a path from the current context.
virtual void getObjects (const ClassInfo &class_info, GetObjectsCallBack &container, SearchDirection dir=SearchUp) const
 Generic list of objects access, possibly searching up or down from the current context.
template<class T >
T * get (SearchDirection dir=SearchUp) const
 Generic object access template wrapper, possibly searching up or down from the current context.
template<class T >
void get (T *&ptr, SearchDirection dir=SearchUp) const
 Generic object access template wrapper, possibly searching up or down from the current context.
template<class T >
T * get (const std::string &path) const
 Generic object access template wrapper, given a path from the current context.
template<class T >
void get (T *&ptr, const std::string &path) const
 Generic object access template wrapper, given a path from the current context.
template<class T , class Container >
void get (Container *list, SearchDirection dir=SearchUp) const
 Generic list of objects access template wrapper, possibly searching up or down from the current context.
Parameters Setters
virtual void setDt (double)
 Simulation timestep.
virtual void setAnimate (bool)
 Animation flag.
virtual void setMultiThreadSimulation (bool)
 MultiThreading activated.
virtual void setShowCollisionModels (bool)
 Display flags: Collision Models.
virtual void setShowBoundingCollisionModels (bool)
 Display flags: Bounding Collision Models.
virtual void setShowBehaviorModels (bool)
 Display flags: Behavior Models.
virtual void setShowVisualModels (bool)
 Display flags: Visual Models.
virtual void setShowMappings (bool)
 Display flags: Mappings.
virtual void setShowMechanicalMappings (bool)
 Display flags: Mechanical Mappings.
virtual void setShowForceFields (bool)
 Display flags: ForceFields.
virtual void setShowInteractionForceFields (bool)
 Display flags: InteractionForceFields.
virtual void setShowWireFrame (bool)
 Display flags: WireFrame.
virtual void setShowNormals (bool)
 Display flags: Normals.
virtual bool setCurrentLevel (int)
 Multiresolution support (UNSTABLE) : Set the current level, return false if l >= coarsestLevel.
virtual void setCoarsestLevel (int)
 Multiresolution support (UNSTABLE).
virtual void setFinestLevel (int)
 Multiresolution support (UNSTABLE).
Variables Setters
virtual void setMechanicalState (BaseObject *)
 Mechanical Degrees-of-Freedom.
virtual void setTopology (BaseObject *)
 Topology.
Adding/Removing objects. Note that these methods can fail if the context doesn't support attached objects
virtual bool addObject (BaseObject *)
 Add an object, or return false if not supported.
virtual bool removeObject (BaseObject *)
 Remove an object, or return false if not supported.
Visitors.
virtual void executeVisitor (simulation::Visitor *)
 apply an action
virtual void propagateEvent (Event *)
 Propagate an event.

Static Public Member Functions

static BaseContext * getDefault ()
 Get the default Context object, that contains the default values for all parameters and can be used when no local context is defined.

Detailed Description

Base class for Context classes, storing shared variables and parameters.

A Context contains values or pointers to variables and parameters shared by a group of objects, typically refering to the same simulated body. Derived classes can defined simple isolated contexts or more powerful hierarchical representations (scene-graphs), in which case the context also implements the BaseNode interface.

Author:
Jeremie Allard

Definition at line 73 of file BaseContext.h.


Member Typedef Documentation

Reimplemented in sofa::core::objectmodel::Context.

Definition at line 84 of file BaseContext.h.

Definition at line 87 of file BaseContext.h.

Reimplemented in sofa::core::objectmodel::Context.

Definition at line 86 of file BaseContext.h.

Definition at line 82 of file BaseContext.h.

Reimplemented in sofa::core::objectmodel::Context.

Definition at line 88 of file BaseContext.h.

Reimplemented in sofa::core::objectmodel::Context.

Definition at line 85 of file BaseContext.h.


Member Enumeration Documentation

Specification of where to search for queried objects.

Enumerator:
SearchUp 
Local 
SearchDown 
SearchRoot 

Definition at line 99 of file BaseContext.h.


Constructor & Destructor Documentation

sofa::core::objectmodel::BaseContext::BaseContext (  ) 

Definition at line 48 of file BaseContext.cpp.

sofa::core::objectmodel::BaseContext::~BaseContext (  )  [virtual]

Definition at line 51 of file BaseContext.cpp.


Member Function Documentation

virtual bool sofa::core::objectmodel::BaseContext::addObject ( BaseObject *   )  [inline, virtual]

void sofa::core::objectmodel::BaseContext::executeVisitor ( simulation::Visitor *   )  [virtual]

template<class T , class Container >
void sofa::core::objectmodel::BaseContext::get ( Container *  list,
SearchDirection  dir = SearchUp 
) const [inline]

Generic list of objects access template wrapper, possibly searching up or down from the current context.

Definition at line 281 of file BaseContext.h.

References classid, and getObjects().

template<class T >
void sofa::core::objectmodel::BaseContext::get ( T *&  ptr,
const std::string &  path 
) const [inline]

Generic object access template wrapper, given a path from the current context.

Definition at line 262 of file BaseContext.h.

template<class T >
T* sofa::core::objectmodel::BaseContext::get ( const std::string &  path  )  const [inline]

Generic object access template wrapper, given a path from the current context.

Definition at line 255 of file BaseContext.h.

References classid, and getObject().

template<class T >
void sofa::core::objectmodel::BaseContext::get ( T *&  ptr,
SearchDirection  dir = SearchUp 
) const [inline]

Generic object access template wrapper, possibly searching up or down from the current context.

Definition at line 248 of file BaseContext.h.

template<class T >
T* sofa::core::objectmodel::BaseContext::get ( SearchDirection  dir = SearchUp  )  const [inline]

Generic object access template wrapper, possibly searching up or down from the current context.

Definition at line 241 of file BaseContext.h.

References classid, and getObject().

Referenced by sofa::component::misc::CompareStateCreator::addCompareState(), sofa::component::misc::ReadStateCreator::addReadState(), sofa::component::misc::WriteStateCreator::addWriteState(), sofa::component::ParticleSource< TDataTypes >::animateBegin(), sofa::component::ParticleSink< TDataTypes >::animateBegin(), sofa::component::topology::Triangle2EdgeTopologicalMapping::canCreate(), sofa::component::topology::Tetra2TriangleTopologicalMapping::canCreate(), sofa::component::topology::Quad2TriangleTopologicalMapping::canCreate(), sofa::component::topology::Hexa2QuadTopologicalMapping::canCreate(), sofa::component::topology::Edge2QuadTopologicalMapping::canCreate(), sofa::component::collision::DefaultPickingManager< TDataTypes, ContactForceField >::canCreate(), sofa::component::topology::Triangle2EdgeTopologicalMapping::create(), sofa::component::topology::Tetra2TriangleTopologicalMapping::create(), sofa::component::topology::Quad2TriangleTopologicalMapping::create(), sofa::component::topology::Hexa2QuadTopologicalMapping::create(), sofa::component::topology::Edge2QuadTopologicalMapping::create(), sofa::component::collision::SolverMergers::createLinearSolver(), sofa::component::collision::CarvingManager::doCarve(), sofa::component::constraint::getLinearSolver(), sofa::core::componentmodel::behavior::PairInteractionForceField< TDataTypes >::getMState(), sofa::component::constraint::getOdeSolver(), sofa::gui::qt::RealGUI::graphCreateStats(), sofa::component::collision::TriangleModel::handleTopologyChange(), sofa::component::collision::TopologicalChangeManager::incisionTriangleModel(), sofa::component::collision::TopologicalChangeManager::incisionTriangleSetTopology(), sofa::component::visualmodel::CudaVisualModel< TDataTypes >::init(), sofa::component::visualmodel::OglTetrahedralModel< gpu::cuda::CudaVectorTypes< TCoord, TDeriv, TReal > >::init(), sofa::component::visualmodel::OglTetrahedralModel< DataTypes >::init(), sofa::component::topology::TriangleSetTopologyAlgorithms< DataTypes >::init(), sofa::component::topology::Triangle2EdgeTopologicalMapping::init(), sofa::component::topology::TetrahedronSetTopologyModifier::init(), sofa::component::topology::TetrahedronSetTopologyAlgorithms< DataTypes >::init(), sofa::component::topology::Tetra2TriangleTopologicalMapping::init(), sofa::component::topology::QuadSetTopologyAlgorithms< DataTypes >::init(), sofa::component::topology::Quad2TriangleTopologicalMapping::init(), sofa::component::topology::PointSetTopologyContainer::init(), sofa::component::topology::PointSetTopologyAlgorithms< DataTypes >::init(), sofa::component::topology::MeshTopology::init(), sofa::component::topology::ManifoldEdgeSetTopologyAlgorithms< DataTypes >::init(), sofa::component::topology::HexahedronSetTopologyModifier::init(), sofa::component::topology::HexahedronSetTopologyAlgorithms< DataTypes >::init(), sofa::component::topology::Hexa2QuadTopologicalMapping::init(), sofa::component::topology::EdgeSetTopologyAlgorithms< DataTypes >::init(), sofa::component::MechanicalObject< DataTypes >::init(), sofa::component::odesolver::MasterContactSolver::init(), sofa::component::mass::DiagonalMass< DataTypes, MassType >::init(), sofa::component::forcefield::VectorSpringForceField< DataTypes >::init(), sofa::component::forcefield::SPHFluidForceField< DataTypes >::init(), sofa::component::forcefield::EdgePressureForceField< DataTypes >::init(), sofa::component::controller::NullForceFeedback::init(), sofa::component::controller::LCPForceFeedback::init(), sofa::component::controller::EnslavementForceFeedback::init(), sofa::component::controller::EdgeSetController< DataTypes >::init(), sofa::component::collision::SpatialGridPointModel::init(), sofa::component::collision::RayPickInteractor::init(), sofa::component::collision::LineModel::init(), sofa::component::collision::CarvingManager::init(), sofa::component::forcefield::TrianglePressureForceField< DataTypes >::initTriangleInformation(), sofa::simulation::OdeSolverImpl::m_print(), sofa::simulation::OdeSolverImpl::m_resetSystem(), sofa::simulation::OdeSolverImpl::m_setSystemLHVector(), sofa::simulation::OdeSolverImpl::m_setSystemMBKMatrix(), sofa::simulation::OdeSolverImpl::m_setSystemRHVector(), sofa::simulation::OdeSolverImpl::m_solveSystem(), main(), sofa::component::misc::WriteStateActivator::processNodeTopDown(), sofa::component::misc::ReadStateModifier::processNodeTopDown(), sofa::component::misc::ReadStateActivator::processNodeTopDown(), sofa::component::misc::CompareStateResult::processNodeTopDown(), sofa::gpu::cuda::CudaTestForceField::reinit(), sofa::component::MechanicalObject< DataTypes >::reinit(), sofa::component::collision::TopologicalChangeManager::removeItemsFromTriangleModel(), sofa::component::constraint::PrecomputedConstraintCorrection< TDataTypes >::rotateConstraints(), sofa::component::constraint::PrecomputedConstraintCorrection< TDataTypes >::rotateResponse(), sofa::gui::qt::viewer::SofaViewer::setScene(), sofa::gui::glut::SimpleGUI::setScene(), sofa::simulation::Node::sortComponents(), sofa::component::container::SpatialGridContainer< DataTypes >::sortPoints(), sofa::component::forcefield::TriangularBiquadraticSpringsForceField< DataTypes >::TRBSEdgeCreationFunction(), sofa::component::forcefield::TriangularQuadraticSpringsForceField< DataTypes >::TRQSEdgeCreationFunction(), sofa::component::topology::SparseGridTopology::updateMesh(), sofa::component::topology::Triangle2EdgeTopologicalMapping::updateTopologicalMapping(), sofa::component::topology::Tetra2TriangleTopologicalMapping::updateTopologicalMapping(), sofa::component::topology::Quad2TriangleTopologicalMapping::updateTopologicalMapping(), sofa::component::topology::Hexa2QuadTopologicalMapping::updateTopologicalMapping(), sofa::component::topology::Edge2QuadTopologicalMapping::updateTopologicalMapping(), and sofa::component::visualmodel::VisualModelImpl::updateVisual().

bool sofa::core::objectmodel::BaseContext::getAnimate (  )  const [virtual]

int sofa::core::objectmodel::BaseContext::getCoarsestLevel (  )  const [virtual]

Multiresolution support (UNSTABLE).

Reimplemented in sofa::core::objectmodel::Context.

Definition at line 170 of file BaseContext.cpp.

int sofa::core::objectmodel::BaseContext::getCurrentLevel (  )  const [virtual]

Multiresolution support (UNSTABLE).

Multiresolution.

Reimplemented in sofa::core::objectmodel::Context.

Definition at line 166 of file BaseContext.cpp.

BaseContext * sofa::core::objectmodel::BaseContext::getDefault (  )  [static]

Get the default Context object, that contains the default values for all parameters and can be used when no local context is defined.

Definition at line 54 of file BaseContext.cpp.

Referenced by sofa::core::objectmodel::BaseObject::getContext().

double sofa::core::objectmodel::BaseContext::getDt (  )  const [virtual]

Simulation timestep.

Reimplemented in sofa::core::objectmodel::Context.

Definition at line 82 of file BaseContext.cpp.

Referenced by sofa::component::constraint::UncoupledConstraintCorrection< TDataTypes >::applyContactForce(), sofa::component::constraint::PrecomputedConstraintCorrection< TDataTypes >::applyContactForce(), sofa::component::collision::CarvingManager::doCarve(), sofa::component::collision::DefaultPipeline::doCollisionDetection(), sofa::component::constraint::ParabolicConstraint< DataTypes >::draw(), sofa::component::behaviormodel::eulerianfluid::Fluid3D::drawVisual(), sofa::component::behaviormodel::eulerianfluid::Fluid2D::drawVisual(), sofa::component::misc::Monitor< DataTypes >::fwdDraw(), sofa::component::constraint::UncoupledConstraintCorrection< TDataTypes >::getCompliance(), sofa::component::odesolver::RungeKutta4Solver::getIntegrationFactor(), sofa::component::odesolver::RungeKutta2Solver::getIntegrationFactor(), sofa::component::odesolver::EulerSolver::getIntegrationFactor(), sofa::component::odesolver::EulerImplicitSolver::getIntegrationFactor(), sofa::component::odesolver::DampVelocitySolver::getIntegrationFactor(), sofa::component::odesolver::CGImplicitSolver::getIntegrationFactor(), sofa::component::odesolver::CentralDifferenceSolver::getIntegrationFactor(), sofa::component::odesolver::EulerImplicitSolver::getPositionIntegrationFactor(), sofa::component::odesolver::RungeKutta4Solver::getSolutionIntegrationFactor(), sofa::component::odesolver::RungeKutta2Solver::getSolutionIntegrationFactor(), sofa::component::odesolver::EulerSolver::getSolutionIntegrationFactor(), sofa::component::odesolver::EulerImplicitSolver::getSolutionIntegrationFactor(), sofa::component::odesolver::CGImplicitSolver::getSolutionIntegrationFactor(), sofa::component::odesolver::CentralDifferenceSolver::getSolutionIntegrationFactor(), sofa::component::mapping::CurveMapping< BasicMapping >::handleEvent(), sofa::component::constraint::PrecomputedConstraintCorrection< TDataTypes >::init(), sofa::filemanager::pml::LMLConstraint< DataTypes >::projectResponse(), sofa::component::constraint::ParabolicConstraint< DataTypes >::projectVelocity(), and sofa::component::constraint::LinearMovementConstraint< DataTypes >::projectVelocity().

int sofa::core::objectmodel::BaseContext::getFinestLevel (  )  const [virtual]

Multiresolution support (UNSTABLE).

Reimplemented in sofa::core::objectmodel::Context.

Definition at line 174 of file BaseContext.cpp.

const BaseContext::Vec3 & sofa::core::objectmodel::BaseContext::getGravityInWorld (  )  const [virtual]

Gravity in world coordinates.

Gravity in the world coordinate system.

Reimplemented in sofa::core::objectmodel::Context.

Definition at line 75 of file BaseContext.cpp.

Referenced by sofa::component::constraint::PrecomputedConstraintCorrection< TDataTypes >::init().

BaseContext::Vec3 sofa::core::objectmodel::BaseContext::getLocalGravity (  )  const [virtual]

BaseObject * sofa::core::objectmodel::BaseContext::getMass (  )  const [virtual]

Mass.

Definition at line 244 of file BaseContext.cpp.

BaseObject * sofa::core::objectmodel::BaseContext::getMechanicalState (  )  const [virtual]

Mechanical Degrees-of-Freedom.

Reimplemented in sofa::simulation::Node, and sofa::simulation::tree::GNode.

Definition at line 238 of file BaseContext.cpp.

Referenced by sofa::gui::qt::GraphModeler::addComponent(), sofa::component::visualmodel::OglTetrahedralModel< gpu::cuda::CudaVectorTypes< TCoord, TDeriv, TReal > >::canCreate(), sofa::component::visualmodel::OglTetrahedralModel< DataTypes >::canCreate(), sofa::component::misc::WriteState::canCreate(), sofa::component::misc::ReadState::canCreate(), sofa::component::misc::CompareState::canCreate(), sofa::component::container::SpatialGridContainer< DataTypes >::canCreate(), sofa::component::constraint::UnilateralInteractionConstraint< sofa::defaulttype::StdVectorTypes >::canCreate(), sofa::component::constraint::UncoupledConstraintCorrection< TDataTypes >::canCreate(), sofa::component::constraint::PrecomputedConstraintCorrection< TDataTypes >::canCreate(), sofa::component::constraint::LinearSolverConstraintCorrection< TDataTypes >::canCreate(), sofa::core::componentmodel::behavior::PairInteractionForceField< DataTypes >::canCreate(), sofa::core::componentmodel::behavior::PairInteractionConstraint< DataTypes >::canCreate(), sofa::core::componentmodel::behavior::ForceField< DataTypes >::canCreate(), sofa::core::componentmodel::behavior::Constraint< TDataTypes >::canCreate(), sofa::component::visualmodel::VisualModelImpl::computeMesh(), sofa::component::constraint::UnilateralInteractionConstraint< sofa::defaulttype::StdVectorTypes >::create(), sofa::core::componentmodel::behavior::PairInteractionForceField< DataTypes >::create(), sofa::core::componentmodel::behavior::PairInteractionConstraint< DataTypes >::create(), sofa::core::objectmodel::BaseObjectDescription::findObject(), SofaFlowVR::FlowVRInputMesh::flowvrBeginIteration(), sofa::gpu::cuda::CudaPointModel::init(), sofa::gpu::cuda::CudaRigidDistanceGridCollisionModel::init(), sofa::component::misc::WriteState::init(), sofa::component::misc::Monitor< DataTypes >::init(), sofa::component::mapping::VoidMapping::init(), sofa::component::forcefield::TriangleBendingSprings< DataTypes >::init(), sofa::component::forcefield::RegularGridSpringForceField< DataTypes >::init(), sofa::component::forcefield::QuadBendingSprings< DataTypes >::init(), sofa::component::forcefield::MeshSpringForceField< DataTypes >::init(), sofa::component::controller::MechanicalStateController< DataTypes >::init(), sofa::component::controller::LCPForceFeedback::init(), sofa::component::controller::EnslavementForceFeedback::init(), sofa::component::container::SpatialGridContainer< DataTypes >::init(), sofa::component::constraint::UncoupledConstraintCorrection< TDataTypes >::init(), sofa::component::constraint::PrecomputedConstraintCorrection< TDataTypes >::init(), sofa::component::constraint::LinearSolverConstraintCorrection< TDataTypes >::init(), sofa::component::collision::TriangleModel::init(), sofa::component::collision::TetrahedronModel::init(), sofa::component::collision::PointModel::init(), sofa::component::collision::LineModel::init(), sofa::component::collision::FFDDistanceGridCollisionModel::init(), sofa::component::collision::RigidDistanceGridCollisionModel::init(), SensAble::init(), and sofa::component::misc::ReadState::reset().

core::componentmodel::topology::BaseMeshTopology * sofa::core::objectmodel::BaseContext::getMeshTopology (  )  const [virtual]

Mesh Topology (unified interface for both static and dynamic topologies).

Reimplemented in sofa::simulation::Node, and sofa::simulation::tree::GNode.

Definition at line 256 of file BaseContext.cpp.

Referenced by sofa::component::ParticleSource< TDataTypes >::animateBegin(), sofa::component::ParticleSink< TDataTypes >::animateBegin(), sofa::component::collision::CarvingManager::doCarve(), sofa::component::ParticleSource< TDataTypes >::handleTopologyChange(), sofa::component::ParticleSink< TDataTypes >::handleTopologyChange(), sofa::component::mapping::BarycentricMapping< BasicMapping >::handleTopologyChange(), sofa::component::collision::LineModel::handleTopologyChange(), sofa::component::visualmodel::CudaVisualModel< TDataTypes >::init(), sofa::component::visualmodel::VisualModelImpl::init(), sofa::component::topology::PointSetGeometryAlgorithms< DataTypes >::init(), sofa::component::MechanicalObject< DataTypes >::init(), sofa::component::mass::DiagonalMass< DataTypes, MassType >::init(), sofa::component::mapping::LineSetSkinningMapping< BasicMapping >::init(), sofa::component::mapping::BarycentricMapping< BasicMapping >::init(), sofa::component::MappedObject< DataTypes >::init(), sofa::component::forcefield::VectorSpringForceField< DataTypes >::init(), sofa::component::forcefield::TriangularTensorMassForceField< DataTypes >::init(), sofa::component::forcefield::TriangularQuadraticSpringsForceField< DataTypes >::init(), sofa::component::forcefield::TriangularFEMForceField< DataTypes >::init(), sofa::component::forcefield::TriangularBiquadraticSpringsForceField< DataTypes >::init(), sofa::component::forcefield::TriangularBendingSprings< DataTypes >::init(), sofa::component::forcefield::TriangularAnisotropicFEMForceField< DataTypes >::init(), sofa::component::forcefield::TrianglePressureForceField< DataTypes >::init(), sofa::component::forcefield::TriangleFEMForceField< DataTypes >::init(), sofa::component::forcefield::TriangleBendingSprings< DataTypes >::init(), sofa::component::forcefield::TetrahedronFEMForceField< DataTypes >::init(), sofa::component::forcefield::TetrahedralTensorMassForceField< DataTypes >::init(), sofa::component::forcefield::TetrahedralCorotationalFEMForceField< DataTypes >::init(), sofa::component::forcefield::RegularGridSpringForceField< DataTypes >::init(), sofa::component::forcefield::QuadularBendingSprings< DataTypes >::init(), sofa::component::forcefield::QuadBendingSprings< DataTypes >::init(), sofa::component::forcefield::MeshSpringForceField< DataTypes >::init(), sofa::component::forcefield::HexahedronFEMForceField< DataTypes >::init(), sofa::component::forcefield::HexahedralFEMForceField< DataTypes >::init(), sofa::component::forcefield::EdgePressureForceField< DataTypes >::init(), sofa::component::forcefield::BeamFEMForceField< DataTypes >::init(), sofa::component::controller::EdgeSetController< DataTypes >::init(), sofa::component::constraint::LinearMovementConstraint< DataTypes >::init(), sofa::component::constraint::FixedPlaneConstraint< DataTypes >::init(), sofa::component::constraint::FixedConstraint< DataTypes >::init(), sofa::component::constraint::AttachConstraint< DataTypes >::init(), sofa::component::collision::TriangleModel::init(), sofa::component::collision::TetrahedronModel::init(), sofa::component::collision::LineModel::init(), sofa::component::collision::FFDDistanceGridCollisionModel::init(), sofa::component::collision::CarvingManager::init(), sofa::component::collision::TopologicalChangeManager::removeItemsFromTriangleModel(), sofa::component::collision::LineModel::updateFromTopology(), and sofa::component::collision::PointModel::updateNormals().

bool sofa::core::objectmodel::BaseContext::getMultiThreadSimulation (  )  const [virtual]

MultiThreading activated.

Reimplemented in sofa::core::objectmodel::Context.

Definition at line 100 of file BaseContext.cpp.

void * sofa::core::objectmodel::BaseContext::getObject ( const ClassInfo &  class_info,
const std::string &  path 
) const [virtual]

Generic object access, given a path from the current context.

Note that the template wrapper method should generally be used to have the correct return type,

Note that the template wrapper method should generally be used to have the correct return type,

Reimplemented in sofa::simulation::tree::GNode.

Definition at line 225 of file BaseContext.cpp.

void * sofa::core::objectmodel::BaseContext::getObject ( const ClassInfo &  class_info,
SearchDirection  dir = SearchUp 
) const [virtual]

Generic object access, possibly searching up or down from the current context.

Note that the template wrapper method should generally be used to have the correct return type,

Note that the template wrapper method should generally be used to have the correct return type,

Reimplemented in sofa::simulation::tree::GNode.

Definition at line 217 of file BaseContext.cpp.

Referenced by get().

void sofa::core::objectmodel::BaseContext::getObjects ( const ClassInfo &  class_info,
GetObjectsCallBack &  container,
SearchDirection  dir = SearchUp 
) const [virtual]

Generic list of objects access, possibly searching up or down from the current context.

Note that the template wrapper method should generally be used to have the correct return type,

Note that the template wrapper method should generally be used to have the correct return type,

Reimplemented in sofa::simulation::tree::GNode.

Definition at line 233 of file BaseContext.cpp.

Referenced by get().

const BaseContext::Frame & sofa::core::objectmodel::BaseContext::getPositionInWorld (  )  const [virtual]

BaseObject * sofa::core::objectmodel::BaseContext::getShader (  )  const [virtual]

Global Shader.

Shader.

Reimplemented in sofa::simulation::Node, and sofa::simulation::tree::GNode.

Definition at line 262 of file BaseContext.cpp.

bool sofa::core::objectmodel::BaseContext::getShowBehaviorModels (  )  const [virtual]

Display flags: Behavior Models.

Reimplemented in sofa::core::objectmodel::Context.

Definition at line 118 of file BaseContext.cpp.

Referenced by sofa::gui::qt::RealGUI::setScene().

bool sofa::core::objectmodel::BaseContext::getShowBoundingCollisionModels (  )  const [virtual]

Display flags: Bounding Collision Models.

Reimplemented in sofa::core::objectmodel::Context.

Definition at line 112 of file BaseContext.cpp.

Referenced by sofa::gui::qt::RealGUI::setScene().

bool sofa::core::objectmodel::BaseContext::getShowCollisionModels (  )  const [virtual]

Display flags: Collision Models.

Reimplemented in sofa::core::objectmodel::Context.

Definition at line 106 of file BaseContext.cpp.

Referenced by sofa::gui::qt::RealGUI::setScene().

bool sofa::core::objectmodel::BaseContext::getShowForceFields (  )  const [virtual]

Display flags: ForceFields.

Reimplemented in sofa::core::objectmodel::Context.

Definition at line 142 of file BaseContext.cpp.

Referenced by sofa::gui::qt::RealGUI::setScene().

bool sofa::core::objectmodel::BaseContext::getShowInteractionForceFields (  )  const [virtual]

Display flags: InteractionForceFields.

Reimplemented in sofa::core::objectmodel::Context.

Definition at line 148 of file BaseContext.cpp.

Referenced by sofa::gui::qt::RealGUI::setScene().

bool sofa::core::objectmodel::BaseContext::getShowMappings (  )  const [virtual]

bool sofa::core::objectmodel::BaseContext::getShowMechanicalMappings (  )  const [virtual]

bool sofa::core::objectmodel::BaseContext::getShowNormals (  )  const [virtual]

Display flags: Normals.

Reimplemented in sofa::core::objectmodel::Context.

Definition at line 160 of file BaseContext.cpp.

Referenced by sofa::gui::qt::RealGUI::setScene().

bool sofa::core::objectmodel::BaseContext::getShowVisualModels (  )  const [virtual]

Display flags: Visual Models.

Reimplemented in sofa::core::objectmodel::Context.

Definition at line 124 of file BaseContext.cpp.

Referenced by sofa::gui::qt::RealGUI::setScene().

bool sofa::core::objectmodel::BaseContext::getShowWireFrame (  )  const [virtual]

double sofa::core::objectmodel::BaseContext::getTime (  )  const [virtual]

Simulation time.

Reimplemented in sofa::core::objectmodel::Context.

Definition at line 88 of file BaseContext.cpp.

Referenced by sofa::filemanager::pml::LMLForce< DataTypes >::addForce(), SofaFlowVR::FlowVRModule::animateBegin(), SofaFlowVR::FlowVRInputDistanceGrid< DistanceGridModel, DistanceGrid >::flowvrBeginIteration(), sofa::core::objectmodel::BaseObject::getTime(), sofa::component::misc::WriteState::handleEvent(), sofa::component::ParticleSource< TDataTypes >::handleEvent(), sofa::component::ParticleSink< TDataTypes >::handleEvent(), sofa::component::misc::CompareState::processCompareState(), sofa::component::misc::ReadState::processReadState(), sofa::filemanager::pml::LMLConstraint< DataTypes >::projectPosition(), sofa::component::ParticleSource< TDataTypes >::projectPosition(), sofa::component::constraint::ParabolicConstraint< DataTypes >::projectPosition(), sofa::component::constraint::OscillatorConstraint< DataTypes >::projectPosition(), sofa::component::constraint::LinearMovementConstraint< DataTypes >::projectPosition(), sofa::filemanager::pml::LMLConstraint< DataTypes >::projectResponse(), sofa::component::ParticleSource< TDataTypes >::projectResponse(), sofa::component::constraint::ParabolicConstraint< DataTypes >::projectResponse(), sofa::component::ParticleSource< TDataTypes >::projectVelocity(), sofa::component::constraint::ParabolicConstraint< DataTypes >::projectVelocity(), sofa::component::constraint::OscillatorConstraint< DataTypes >::projectVelocity(), and sofa::component::constraint::LinearMovementConstraint< DataTypes >::projectVelocity().

core::componentmodel::topology::Topology * sofa::core::objectmodel::BaseContext::getTopology (  )  const [virtual]

const BaseContext::Vec3 & sofa::core::objectmodel::BaseContext::getVelocityBasedLinearAccelerationInWorld (  )  const [virtual]

const BaseContext::SpatialVector & sofa::core::objectmodel::BaseContext::getVelocityInWorld (  )  const [virtual]

bool sofa::core::objectmodel::BaseContext::isActive (  )  const [virtual]

The Context is active.

Reimplemented in sofa::core::objectmodel::Context.

Definition at line 65 of file BaseContext.cpp.

void sofa::core::objectmodel::BaseContext::propagateEvent ( Event *   )  [virtual]

virtual bool sofa::core::objectmodel::BaseContext::removeObject ( BaseObject *   )  [inline, virtual]

virtual void sofa::core::objectmodel::BaseContext::setActive ( bool   )  [inline, virtual]

State of the context.

Reimplemented in sofa::core::objectmodel::Context.

Definition at line 108 of file BaseContext.h.

virtual void sofa::core::objectmodel::BaseContext::setAnimate ( bool   )  [inline, virtual]

Animation flag.

Reimplemented in sofa::core::objectmodel::Context.

Definition at line 299 of file BaseContext.h.

Referenced by sofa::gui::glut::SimpleGUI::playpause(), and sofa::gui::qt::RealGUI::playpauseGUI().

virtual void sofa::core::objectmodel::BaseContext::setCoarsestLevel ( int   )  [inline, virtual]

Multiresolution support (UNSTABLE).

Reimplemented in sofa::core::objectmodel::Context.

Definition at line 353 of file BaseContext.h.

virtual bool sofa::core::objectmodel::BaseContext::setCurrentLevel ( int   )  [inline, virtual]

Multiresolution support (UNSTABLE) : Set the current level, return false if l >= coarsestLevel.

Reimplemented in sofa::core::objectmodel::Context.

Definition at line 347 of file BaseContext.h.

virtual void sofa::core::objectmodel::BaseContext::setDt ( double   )  [inline, virtual]

Simulation timestep.

Reimplemented in sofa::core::objectmodel::Context.

Definition at line 295 of file BaseContext.h.

Referenced by sofa::gui::qt::RealGUI::setDt().

virtual void sofa::core::objectmodel::BaseContext::setFinestLevel ( int   )  [inline, virtual]

Multiresolution support (UNSTABLE).

Reimplemented in sofa::core::objectmodel::Context.

Definition at line 356 of file BaseContext.h.

virtual void sofa::core::objectmodel::BaseContext::setGravityInWorld ( const Vec3 &   )  [inline, virtual]

virtual void sofa::core::objectmodel::BaseContext::setMechanicalState ( BaseObject *   )  [inline, virtual]

Mechanical Degrees-of-Freedom.

Definition at line 364 of file BaseContext.h.

virtual void sofa::core::objectmodel::BaseContext::setMultiThreadSimulation ( bool   )  [inline, virtual]

MultiThreading activated.

Reimplemented in sofa::core::objectmodel::Context.

Definition at line 303 of file BaseContext.h.

virtual void sofa::core::objectmodel::BaseContext::setPositionInWorld ( const Frame &   )  [inline, virtual]

Projection from the local coordinate system to the world coordinate system.

Reimplemented in sofa::core::objectmodel::Context.

Definition at line 172 of file BaseContext.h.

Referenced by sofa::component::contextobject::CoordinateSystem::apply().

virtual void sofa::core::objectmodel::BaseContext::setShowBehaviorModels ( bool   )  [inline, virtual]

Display flags: Behavior Models.

Reimplemented in sofa::core::objectmodel::Context.

Definition at line 315 of file BaseContext.h.

Referenced by sofa::gui::glut::SimpleGUI::showBehavior(), and sofa::gui::qt::RealGUI::showhideElements().

virtual void sofa::core::objectmodel::BaseContext::setShowBoundingCollisionModels ( bool   )  [inline, virtual]

Display flags: Bounding Collision Models.

Reimplemented in sofa::core::objectmodel::Context.

Definition at line 311 of file BaseContext.h.

Referenced by sofa::gui::glut::SimpleGUI::showBoundingCollision(), and sofa::gui::qt::RealGUI::showhideElements().

virtual void sofa::core::objectmodel::BaseContext::setShowCollisionModels ( bool   )  [inline, virtual]

Display flags: Collision Models.

Reimplemented in sofa::core::objectmodel::Context.

Definition at line 307 of file BaseContext.h.

Referenced by sofa::gui::glut::SimpleGUI::showCollision(), and sofa::gui::qt::RealGUI::showhideElements().

virtual void sofa::core::objectmodel::BaseContext::setShowForceFields ( bool   )  [inline, virtual]

Display flags: ForceFields.

Reimplemented in sofa::core::objectmodel::Context.

Definition at line 331 of file BaseContext.h.

Referenced by sofa::gui::glut::SimpleGUI::showForceField(), and sofa::gui::qt::RealGUI::showhideElements().

virtual void sofa::core::objectmodel::BaseContext::setShowInteractionForceFields ( bool   )  [inline, virtual]

Display flags: InteractionForceFields.

Reimplemented in sofa::core::objectmodel::Context.

Definition at line 335 of file BaseContext.h.

Referenced by sofa::gui::qt::RealGUI::showhideElements(), and sofa::gui::glut::SimpleGUI::showInteractionForceField().

virtual void sofa::core::objectmodel::BaseContext::setShowMappings ( bool   )  [inline, virtual]

Display flags: Mappings.

Reimplemented in sofa::core::objectmodel::Context.

Definition at line 323 of file BaseContext.h.

Referenced by sofa::gui::qt::RealGUI::showhideElements(), and sofa::gui::glut::SimpleGUI::showMapping().

virtual void sofa::core::objectmodel::BaseContext::setShowMechanicalMappings ( bool   )  [inline, virtual]

Display flags: Mechanical Mappings.

Reimplemented in sofa::core::objectmodel::Context.

Definition at line 327 of file BaseContext.h.

Referenced by sofa::gui::qt::RealGUI::showhideElements(), and sofa::gui::glut::SimpleGUI::showMechanicalMapping().

virtual void sofa::core::objectmodel::BaseContext::setShowNormals ( bool   )  [inline, virtual]

Display flags: Normals.

Reimplemented in sofa::core::objectmodel::Context.

Definition at line 343 of file BaseContext.h.

Referenced by sofa::gui::qt::RealGUI::showhideElements(), and sofa::gui::glut::SimpleGUI::showNormals().

virtual void sofa::core::objectmodel::BaseContext::setShowVisualModels ( bool   )  [inline, virtual]

Display flags: Visual Models.

Reimplemented in sofa::core::objectmodel::Context.

Definition at line 319 of file BaseContext.h.

Referenced by sofa::gui::qt::RealGUI::showhideElements(), and sofa::gui::glut::SimpleGUI::showVisual().

virtual void sofa::core::objectmodel::BaseContext::setShowWireFrame ( bool   )  [inline, virtual]

Display flags: WireFrame.

Reimplemented in sofa::core::objectmodel::Context.

Definition at line 339 of file BaseContext.h.

Referenced by sofa::gui::qt::RealGUI::showhideElements(), and sofa::gui::glut::SimpleGUI::showWireFrame().

virtual void sofa::core::objectmodel::BaseContext::setTopology ( BaseObject *   )  [inline, virtual]

Topology.

Definition at line 368 of file BaseContext.h.

virtual void sofa::core::objectmodel::BaseContext::setVelocityBasedLinearAccelerationInWorld ( const Vec3 &   )  [inline, virtual]

Linear acceleration of the origin induced by the angular velocity of the ancestors.

Reimplemented in sofa::core::objectmodel::Context.

Definition at line 184 of file BaseContext.h.

Referenced by sofa::component::contextobject::CoordinateSystem::apply().

virtual void sofa::core::objectmodel::BaseContext::setVelocityInWorld ( const SpatialVector &   )  [inline, virtual]

Spatial velocity (linear, angular) of the local frame with respect to the world.

Reimplemented in sofa::core::objectmodel::Context.

Definition at line 178 of file BaseContext.h.

Referenced by sofa::component::contextobject::CoordinateSystem::apply().


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

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