sofa::core::componentmodel::topology::TopologyContainer Class Reference

A class that contains a description of the topology (set of edges, triangles, adjacency information, . More...

#include <BaseTopology.h>

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

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

Collaboration graph
[legend]

Public Member Functions

virtual ~TopologyContainer ()
 Destructor.
virtual void init ()
 Initialization method called at graph modification, during bottom-up traversal.
const std::list< const
TopologyChange * > & 
getChangeList () const
const std::list< const
TopologyChange * > & 
getStateChangeList () const
void addTopologyChange (const TopologyChange *topologyChange)
 Adds a TopologyChange to the list.
void addStateChange (const TopologyChange *topologyChange)
 Adds a StateChange to the list.
std::list< const
TopologyChange * >
::const_iterator 
firstChange () const
 Provides an iterator on the first element in the list of TopologyChange objects.
std::list< const
TopologyChange * >
::const_iterator 
lastChange () const
 Provides an iterator on the last element in the list of TopologyChange objects.
std::list< const
TopologyChange * >
::const_iterator 
firstStateChange () const
 Provides an iterator on the first element in the list of StateChange objects.
std::list< const
TopologyChange * >
::const_iterator 
lastStateChange () const
 Provides an iterator on the last element in the list of StateChange objects.
void resetTopologyChangeList ()
 Free each Topology changes in the list and remove them from the list.
void resetStateChangeList ()
 Free each State changes in the list and remove them from the list.
virtual const SeqEdges & getEdges ()
 BaseMeshTopology API.
virtual const SeqTriangles & getTriangles ()
virtual const SeqQuads & getQuads ()
virtual const SeqTetras & getTetras ()
virtual const SeqHexas & getHexas ()

Protected Member Functions

 TopologyContainer ()
 Constructor.

Private Attributes

std::list< const TopologyChange * > m_changeList
 Array of topology modifications that have already occured (addition) or will occur next (deletion).
std::list< const TopologyChange * > m_stateChangeList
 Array of state modifications that have already occured (addition) or will occur next (deletion).

Detailed Description

A class that contains a description of the topology (set of edges, triangles, adjacency information, .

..)

Definition at line 177 of file BaseTopology.h.


Constructor & Destructor Documentation

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

Constructor.

Definition at line 184 of file BaseTopology.h.

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

Destructor.

Definition at line 189 of file BaseTopology.h.


Member Function Documentation

void sofa::core::componentmodel::topology::TopologyContainer::addStateChange ( const TopologyChange *  topologyChange  )  [inline]

Adds a StateChange to the list.

Needed by topologies linked to this one to know what happened and what to do to take it into account.

Definition at line 223 of file BaseTopology.h.

References m_stateChangeList.

Referenced by sofa::core::componentmodel::topology::TopologyModifier::addStateChange().

void sofa::core::componentmodel::topology::TopologyContainer::addTopologyChange ( const TopologyChange *  topologyChange  )  [inline]

Adds a TopologyChange to the list.

Needed by topologies linked to this one to know what happened and what to do to take it into account.

Definition at line 213 of file BaseTopology.h.

References m_changeList.

Referenced by sofa::core::componentmodel::topology::TopologyModifier::addTopologyChange(), sofa::core::componentmodel::topology::TopologyAlgorithms::addTopologyChange(), and sofa::component::topology::PointSetTopologyModifier::notifyEndingEvent().

std::list< const TopologyChange * >::const_iterator sofa::core::componentmodel::topology::TopologyContainer::firstChange (  )  const [virtual]

Provides an iterator on the first element in the list of TopologyChange objects.

Reimplemented from sofa::core::componentmodel::topology::BaseMeshTopology.

Definition at line 91 of file BaseTopology.cpp.

References m_changeList.

std::list< const TopologyChange * >::const_iterator sofa::core::componentmodel::topology::TopologyContainer::firstStateChange (  )  const [virtual]

Provides an iterator on the first element in the list of StateChange objects.

Reimplemented from sofa::core::componentmodel::topology::BaseMeshTopology.

Definition at line 101 of file BaseTopology.cpp.

References m_stateChangeList.

const std::list<const TopologyChange *>& sofa::core::componentmodel::topology::TopologyContainer::getChangeList (  )  const [inline]

Definition at line 204 of file BaseTopology.h.

References m_changeList.

virtual const SeqEdges& sofa::core::componentmodel::topology::TopologyContainer::getEdges (  )  [inline, virtual]

virtual const SeqHexas& sofa::core::componentmodel::topology::TopologyContainer::getHexas (  )  [inline, virtual]

virtual const SeqQuads& sofa::core::componentmodel::topology::TopologyContainer::getQuads (  )  [inline, virtual]

const std::list<const TopologyChange *>& sofa::core::componentmodel::topology::TopologyContainer::getStateChangeList (  )  const [inline]

Definition at line 206 of file BaseTopology.h.

References m_stateChangeList.

virtual const SeqTetras& sofa::core::componentmodel::topology::TopologyContainer::getTetras (  )  [inline, virtual]

virtual const SeqTriangles& sofa::core::componentmodel::topology::TopologyContainer::getTriangles (  )  [inline, virtual]

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

std::list< const TopologyChange * >::const_iterator sofa::core::componentmodel::topology::TopologyContainer::lastChange (  )  const [virtual]

Provides an iterator on the last element in the list of TopologyChange objects.

Reimplemented from sofa::core::componentmodel::topology::BaseMeshTopology.

Definition at line 86 of file BaseTopology.cpp.

References m_changeList.

std::list< const TopologyChange * >::const_iterator sofa::core::componentmodel::topology::TopologyContainer::lastStateChange (  )  const [virtual]

Provides an iterator on the last element in the list of StateChange objects.

Reimplemented from sofa::core::componentmodel::topology::BaseMeshTopology.

Definition at line 96 of file BaseTopology.cpp.

References m_stateChangeList.

void sofa::core::componentmodel::topology::TopologyContainer::resetStateChangeList (  ) 

Free each State changes in the list and remove them from the list.

Definition at line 117 of file BaseTopology.cpp.

References m_stateChangeList.

Referenced by sofa::component::topology::PointSetTopologyModifier::propagateStateChanges().

void sofa::core::componentmodel::topology::TopologyContainer::resetTopologyChangeList (  ) 

Free each Topology changes in the list and remove them from the list.

Definition at line 106 of file BaseTopology.cpp.

References m_changeList.

Referenced by sofa::component::topology::PointSetTopologyModifier::propagateTopologicalChanges().


Field Documentation

Array of topology modifications that have already occured (addition) or will occur next (deletion).

Definition at line 257 of file BaseTopology.h.

Referenced by addTopologyChange(), firstChange(), getChangeList(), lastChange(), and resetTopologyChangeList().

Array of state modifications that have already occured (addition) or will occur next (deletion).

Definition at line 260 of file BaseTopology.h.

Referenced by addStateChange(), firstStateChange(), getStateChangeList(), lastStateChange(), and resetStateChangeList().


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