#include <BaseTopology.h>


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). | |
..)
Definition at line 177 of file BaseTopology.h.
| sofa::core::componentmodel::topology::TopologyContainer::TopologyContainer | ( | ) | [inline, protected] |
| virtual sofa::core::componentmodel::topology::TopologyContainer::~TopologyContainer | ( | ) | [inline, virtual] |
| 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] |
| virtual const SeqEdges& sofa::core::componentmodel::topology::TopologyContainer::getEdges | ( | ) | [inline, virtual] |
BaseMeshTopology API.
Implements sofa::core::componentmodel::topology::BaseMeshTopology.
Reimplemented in sofa::component::topology::EdgeSetTopologyContainer.
Definition at line 196 of file BaseTopology.h.
| virtual const SeqHexas& sofa::core::componentmodel::topology::TopologyContainer::getHexas | ( | ) | [inline, virtual] |
Implements sofa::core::componentmodel::topology::BaseMeshTopology.
Reimplemented in sofa::component::topology::HexahedronSetTopologyContainer.
Definition at line 200 of file BaseTopology.h.
| virtual const SeqQuads& sofa::core::componentmodel::topology::TopologyContainer::getQuads | ( | ) | [inline, virtual] |
Implements sofa::core::componentmodel::topology::BaseMeshTopology.
Reimplemented in sofa::component::topology::QuadSetTopologyContainer.
Definition at line 198 of file BaseTopology.h.
| const std::list<const TopologyChange *>& sofa::core::componentmodel::topology::TopologyContainer::getStateChangeList | ( | ) | const [inline] |
| virtual const SeqTetras& sofa::core::componentmodel::topology::TopologyContainer::getTetras | ( | ) | [inline, virtual] |
Implements sofa::core::componentmodel::topology::BaseMeshTopology.
Reimplemented in sofa::component::topology::TetrahedronSetTopologyContainer.
Definition at line 199 of file BaseTopology.h.
| virtual const SeqTriangles& sofa::core::componentmodel::topology::TopologyContainer::getTriangles | ( | ) | [inline, virtual] |
Implements sofa::core::componentmodel::topology::BaseMeshTopology.
Reimplemented in sofa::component::topology::TriangleSetTopologyContainer.
Definition at line 197 of file BaseTopology.h.
| void sofa::core::componentmodel::topology::TopologyContainer::init | ( | ) | [virtual] |
Initialization method called at graph modification, during bottom-up traversal.
Reimplemented from sofa::core::objectmodel::BaseObject.
Reimplemented in sofa::component::topology::EdgeSetTopologyContainer, sofa::component::topology::HexahedronSetTopologyContainer, sofa::component::topology::ManifoldEdgeSetTopologyContainer, sofa::component::topology::PointSetTopologyContainer, sofa::component::topology::QuadSetTopologyContainer, sofa::component::topology::TetrahedronSetTopologyContainer, and sofa::component::topology::TriangleSetTopologyContainer.
Definition at line 82 of file BaseTopology.cpp.
| 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().
std::list<const TopologyChange *> sofa::core::componentmodel::topology::TopologyContainer::m_changeList [private] |
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().
std::list<const TopologyChange *> sofa::core::componentmodel::topology::TopologyContainer::m_stateChangeList [private] |
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().
1.5.7.1