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()
40 friend class LoadTreeData;
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.
MLint getRootId() const
Get root id.
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
#define ML_ABSTRACT_CLASS_HEADER(className)
Same like ML_ABSTRACT_CLASS_HEADER_EXPORTED with a non existing export symbol.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
MLint64 MLint
A signed ML integer type with at least 64 bits used for index calculations on very large images even ...
#define VESSELGRAPH_END_NAMESPACE
#define VESSELGRAPH_EXPORT
Definiert systemspezifische Macros, die f"ur diese DLL gelten sollen.
#define VESSELGRAPH_BEGIN_NAMESPACE