MeVisLabToolboxReference
|
class BaseGraphItem More...
#include <mlBaseGraphItem.h>
Public Member Functions | |
Graph Topology | |
Graph * | getGraph (void) |
Get the surrounding Graph object. | |
const Graph * | getGraph (void) const |
MLint | getId (void) const |
Get unique id of the object. | |
MLint | getRootId () const |
Get root id. | |
void | setRootId (MLint rootId) |
Sets the root id. Usually called by calling setRootIdToAllChildren on the graph itself. | |
Protected Member Functions | |
BaseGraphItem (Graph &graph, MLint id, const ManagerPointer &manager) | |
Constructor. | |
BaseGraphItem (const BaseGraphItem &item) | |
Copy constructor (creates an unconnected object, only copies properties), deprecated. | |
BaseGraphItem & | operator= (const BaseGraphItem &item) |
Assignment operator, deprecated. Use copyProperties() instead. | |
virtual void | copyProperties (const BaseGraphItem *other) |
Copy all properties (topology information is left unchanged) | |
bool | operator== (const BaseGraphItem &other) const |
Compare properties (ignores topology information) | |
bool | operator!= (const BaseGraphItem &other) const |
Persistence | |
virtual void | addStateToTree (TreeNode *parent) const |
Attaches the object state as children of the given parent node. | |
ML_SET_ADDSTATE_VERSION (2) | |
Set current addStateToTree() version number: | |
virtual void | readStateFromTree (TreeNode *parent) |
Reads the object state from the children of the given parent node. | |
Protected Attributes | |
Graph * | _graph |
Reference to the owner Graph object. | |
Friends | |
class | Graph |
class | LoadTreeData |
class BaseGraphItem
Definition at line 32 of file mlBaseGraphItem.h.
ml::BaseGraphItem::BaseGraphItem | ( | Graph & | graph, |
MLint | id, | ||
const ManagerPointer & | manager | ||
) | [protected] |
Constructor.
ml::BaseGraphItem::BaseGraphItem | ( | const BaseGraphItem & | item | ) | [protected] |
Copy constructor (creates an unconnected object, only copies properties), deprecated.
virtual void ml::BaseGraphItem::addStateToTree | ( | TreeNode * | parent | ) | const [protected, virtual] |
Attaches the object state as children of the given parent node.
Reimplemented from ml::PropertyContainer.
Reimplemented in ml::VesselEdge, and ml::VesselNode.
virtual void ml::BaseGraphItem::copyProperties | ( | const BaseGraphItem * | other | ) | [protected, virtual] |
Copy all properties (topology information is left unchanged)
const Graph* ml::BaseGraphItem::getGraph | ( | void | ) | const [inline] |
Definition at line 44 of file mlBaseGraphItem.h.
Graph* ml::BaseGraphItem::getGraph | ( | void | ) | [inline] |
Get the surrounding Graph object.
Definition at line 43 of file mlBaseGraphItem.h.
MLint ml::BaseGraphItem::getId | ( | void | ) | const [inline] |
Get unique id of the object.
Definition at line 47 of file mlBaseGraphItem.h.
MLint ml::BaseGraphItem::getRootId | ( | ) | const [inline] |
Get root id.
Is negative if invalid (not set). Is only set if setRootIdToAllChildren is called on the Graph itself.
Definition at line 51 of file mlBaseGraphItem.h.
ml::BaseGraphItem::ML_SET_ADDSTATE_VERSION | ( | 2 | ) | [protected] |
Set current addStateToTree() version number:
Reimplemented in ml::VesselNode.
bool ml::BaseGraphItem::operator!= | ( | const BaseGraphItem & | other | ) | const [inline, protected] |
Definition at line 71 of file mlBaseGraphItem.h.
BaseGraphItem& ml::BaseGraphItem::operator= | ( | const BaseGraphItem & | item | ) | [protected] |
Assignment operator, deprecated. Use copyProperties() instead.
bool ml::BaseGraphItem::operator== | ( | const BaseGraphItem & | other | ) | const [protected] |
Compare properties (ignores topology information)
virtual void ml::BaseGraphItem::readStateFromTree | ( | TreeNode * | parent | ) | [protected, virtual] |
Reads the object state from the children of the given parent node.
Reimplemented from ml::PropertyContainer.
Reimplemented in ml::VesselEdge, and ml::VesselNode.
void ml::BaseGraphItem::setRootId | ( | MLint | rootId | ) | [inline] |
Sets the root id. Usually called by calling setRootIdToAllChildren on the graph itself.
Definition at line 53 of file mlBaseGraphItem.h.
friend class Graph [friend] |
Reimplemented in ml::VesselEdge, and ml::VesselNode.
Definition at line 36 of file mlBaseGraphItem.h.
friend class LoadTreeData [friend] |
Reimplemented in ml::VesselEdge, and ml::VesselNode.
Definition at line 37 of file mlBaseGraphItem.h.
Graph* ml::BaseGraphItem::_graph [protected] |
Reference to the owner Graph object.
Definition at line 74 of file mlBaseGraphItem.h.