sofa::core::componentmodel::topology::TopologyModifier Class Reference

A class that contains a set of low-level methods that perform topological changes. More...

#include <BaseTopology.h>

Inheritance diagram for sofa::core::componentmodel::topology::TopologyModifier:

Inheritance graph
[legend]
Collaboration diagram for sofa::core::componentmodel::topology::TopologyModifier:

Collaboration graph
[legend]

Public Member Functions

virtual ~TopologyModifier ()
 Destructor.
virtual void init ()
 Initialization method called at graph modification, during bottom-up traversal.
virtual void propagateStateChanges ()
 Called by a topology to warn the Mechanical Object component that points have been added or will be removed.
virtual void propagateTopologicalChanges ()
 Called by a topology to warn specific topologies linked to it that TopologyChange objects happened.
virtual void notifyEndingEvent ()
 the end for the current sequence of topological change events.
virtual void removeItems (sofa::helper::vector< unsigned int > &)
 Generic method to remove a list of items.

Protected Member Functions

 TopologyModifier ()
 Constructor.
void addTopologyChange (const TopologyChange *topologyChange)
 Adds a TopologyChange object to the list of the topology this object describes.
void addStateChange (const TopologyChange *topologyChange)
 Adds a StateChange object to the list of the topology this object describes.

Protected Attributes

TopologyContainer * m_topologyContainer
 Contains the actual topology data and give acces to it (nature of these data heavily depends on the kind of topology).

Detailed Description

A class that contains a set of low-level methods that perform topological changes.

Definition at line 115 of file BaseTopology.h.


Constructor & Destructor Documentation

sofa::core::componentmodel::topology::TopologyModifier::TopologyModifier (  )  [inline, protected]

Constructor.

Definition at line 121 of file BaseTopology.h.

virtual sofa::core::componentmodel::topology::TopologyModifier::~TopologyModifier (  )  [inline, virtual]

Destructor.

Definition at line 127 of file BaseTopology.h.


Member Function Documentation

void sofa::core::componentmodel::topology::TopologyModifier::addStateChange ( const TopologyChange *  topologyChange  )  [protected]

void sofa::core::componentmodel::topology::TopologyModifier::addTopologyChange ( const TopologyChange *  topologyChange  )  [protected]

void sofa::core::componentmodel::topology::TopologyModifier::init (  )  [virtual]

void sofa::core::componentmodel::topology::TopologyModifier::notifyEndingEvent (  )  [virtual]

the end for the current sequence of topological change events.

Reimplemented in sofa::component::topology::PointSetTopologyModifier.

Definition at line 77 of file BaseTopology.cpp.

Referenced by sofa::component::collision::TopologicalChangeManager::removeItemsFromTriangleModel().

void sofa::core::componentmodel::topology::TopologyModifier::propagateStateChanges (  )  [virtual]

Called by a topology to warn the Mechanical Object component that points have been added or will be removed.

StateChangeList should contain all TopologyChange objects corresponding to vertex changes in this topology that just happened (in the case of creation) or are about to happen (in the case of destruction) since last call to propagateTopologicalChanges.

See also:
firstChange()

lastChange()

Reimplemented in sofa::component::topology::PointSetTopologyModifier.

Definition at line 75 of file BaseTopology.cpp.

void sofa::core::componentmodel::topology::TopologyModifier::propagateTopologicalChanges (  )  [virtual]

Called by a topology to warn specific topologies linked to it that TopologyChange objects happened.

ChangeList should contain all TopologyChange objects corresponding to changes in this topology that just happened (in the case of creation) or are about to happen (in the case of destruction) since last call to propagateTopologicalChanges.

See also:
firstChange()

lastChange()

Reimplemented in sofa::component::topology::PointSetTopologyModifier.

Definition at line 76 of file BaseTopology.cpp.

Referenced by sofa::component::collision::TopologicalChangeManager::removeItemsFromTriangleModel().

void sofa::core::componentmodel::topology::TopologyModifier::removeItems ( sofa::helper::vector< unsigned int > &   )  [virtual]


Field Documentation

Contains the actual topology data and give acces to it (nature of these data heavily depends on the kind of topology).

Definition at line 173 of file BaseTopology.h.

Referenced by addStateChange(), addTopologyChange(), and init().


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

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