13#ifndef ML_BASE_GRAPH_ITEM_H
14#define ML_BASE_GRAPH_ITEM_H
25#include <boost/shared_ptr.hpp>
28#define GETPROPERTYREFERENCE(name) name()
BaseGraphItem(Graph &graph, MLint id, const ManagerPointer &manager)
Constructor.
bool operator!=(const BaseGraphItem &other) const
bool operator==(const BaseGraphItem &other) const
Compare properties (ignores topology information).
void readStateFromTree(TreeNode *parent) override
Reads the object state from the children of the given parent node.
BaseGraphItem(const BaseGraphItem &item)
Copy constructor (creates an unconnected object, only copies properties), deprecated.
MLint getId(void) const
Get unique id of the object.
void copyProperties(const BaseGraphItem *other)
Copy all properties (topology information is left unchanged).
BaseGraphItem & operator=(const BaseGraphItem &item)
Assignment operator, deprecated. Use copyProperties() instead.
const Graph * getGraph(void) const
void setRootId(MLint rootId)
Sets the root id. Usually called by calling setRootIdToAllChildren on the graph itself.
void addStateToTree(TreeNode *parent) const override
Graph * _graph
Reference to the owner Graph object.
friend class LoadTreeData
ML_SET_ADDSTATE_VERSION(2)
Set current addStateToTree() version number:
Defines the basic Graph class which holds sets of nodes, edges and roots to model tubular structures ...
PropertyManager::Pointer ManagerPointer
PropertyContainer(const ManagerPointer &manager)
#define ML_ABSTRACT_CLASS_HEADER(className)
#define VESSELGRAPH_END_NAMESPACE
#define VESSELGRAPH_EXPORT
#define VESSELGRAPH_BEGIN_NAMESPACE