sofa::core::componentmodel::topology::TopologyChange Class Reference

Base class to indicate a topology change occurred. More...

#include <Topology.h>

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

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

Collaboration graph
[legend]

Public Member Functions

virtual ~TopologyChange ()
 \ brief Destructor.
TopologyChangeType getChangeType () const
 Returns the code of this TopologyChange.

Protected Member Functions

 TopologyChange (TopologyChangeType changeType=BASE)

Protected Attributes

TopologyChangeType m_changeType
 A code that tells the nature of the Topology modification event (could be an enum).

Detailed Description

Base class to indicate a topology change occurred.

All topological changes taking place in a given BaseTopology will issue a TopologyChange in the BaseTopology's changeList, so that BasicTopologies mapped to it can know what happened and decide how to react. Classes inheriting from this one describe a given topolopy change (e.g. RemovedPoint, AddedEdge, etc). The exact type of topology change is given by member changeType.

Definition at line 84 of file Topology.h.


Constructor & Destructor Documentation

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

\ brief Destructor.

Must be virtual for TopologyChange to be a Polymorphic type.

Definition at line 91 of file Topology.h.

sofa::core::componentmodel::topology::TopologyChange::TopologyChange ( TopologyChangeType  changeType = BASE  )  [inline, protected]

Definition at line 97 of file Topology.h.


Member Function Documentation

TopologyChangeType sofa::core::componentmodel::topology::TopologyChange::getChangeType (  )  const [inline]

Returns the code of this TopologyChange.

Definition at line 94 of file Topology.h.

References m_changeType.


Field Documentation

A code that tells the nature of the Topology modification event (could be an enum).

Definition at line 101 of file Topology.h.

Referenced by getChangeType().


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

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