MeVisLabToolboxReference
ml::BaseGraphItem Class Reference

class BaseGraphItem More...

#include <mlBaseGraphItem.h>

Inheritance diagram for ml::BaseGraphItem:
ml::PropertyContainer ml::Base ml::VesselEdge ml::VesselNode

List of all members.

Public Member Functions

Graph Topology
GraphgetGraph (void)
 Get the surrounding Graph object.
const GraphgetGraph (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.
BaseGraphItemoperator= (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

Detailed Description

class BaseGraphItem

Definition at line 32 of file mlBaseGraphItem.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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 ( ) [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.


Friends And Related Function Documentation

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.


Member Data Documentation

Reference to the owner Graph object.

Definition at line 74 of file mlBaseGraphItem.h.


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