Abstract class for all basic objects. More...
#include <MeshViz/graph/PbBase.h>
Classes | |
struct | Element |
Public Member Functions | |
void | enableConnection (SbBool flag) |
SbBool | isConnectionEnabled () const |
void | touch () |
PbBase & | operator= (const PbBase &base) |
Abstract class for all basic objects. This class handles a connection mechanism with PoBase objects. Each instance of this class maintains a list of PoBase objects. So when an instance of this class is modified, the list of PoBase objects is informed of this change, and thus, they can update themselves. For more information about the connection mechanism, see the section "Connection mechanism" of the paragraph "What you must know" of the reference manual. The constructor per copy and the assignment operator of any Pbxxx object do not copy the reference to Poxxx objects. This restriction prevents several Pbxxx objects (of the same class) from referencing the same Poxxx object.
void PbBase::enableConnection | ( | SbBool | flag | ) | [inline] |
Activates/deactivates the mechanism of connection.
If the mechanism is deactivated, the list of connected objects does not change, but the connected objects are not informed of any change.
SbBool PbBase::isConnectionEnabled | ( | ) | const [inline] |
Returns TRUE if the connection mechanism is active, otherwise FALSE.
Assignment operator.
Reimplemented in PbCartesianGrid2D, PbCartesianGrid3D, PbCell, PbGrid2D, PbGrid3D, PbHexahedronCell, PbHexahedronMesh3D, PbIndexedMesh2D, PbIndexedMesh3D, PbIrregularMesh1D, PbMesh, PbMesh1D, PbParalCartesianGrid2D, PbParalCartesianGrid3D, PbPixelCell, PbPolarGrid2D, PbPyramidCell, PbQuadrangleCell, PbQuadrangleMesh2D, PbRegularCartesianGrid2D, PbRegularCartesianGrid3D, PbRegularMesh1D, PbTetrahedronCell, PbTetrahedronMesh3D, PbTriangleCell, PbTriangleMesh2D, PbVoxelCell, PbWedgeCell, PbDataMapping, PbDateFormatMapping, PbDomain, PbIsovaluesList, PbLinearDataMapping, PbMiscTextAttr, PbNonLinearDataMapping2, and PbNumericDisplayFormat.
void PbBase::touch | ( | ) |
Simulates the changing of an instance of this object, so all connected objects are informed of this change.