MeVisLab Toolbox Reference
|
class BaseGraphItem More...
#include <mlBaseGraphItem.h>
Public Member Functions | |
MLint | getRootId () const |
Get root id. More... | |
void | setRootId (MLint rootId) |
Sets the root id. Usually called by calling setRootIdToAllChildren on the graph itself. More... | |
Graph Topology | |
Get the surrounding Graph object. | |
Graph * | getGraph (void) |
const Graph * | getGraph (void) const |
MLint | getId (void) const |
Get unique id of the object. More... | |
Public Member Functions inherited from PropertyContainer | |
PropertyContainer (const ManagerPointer &manager) | |
PropertyContainer (const PropertyContainer &other) | |
~PropertyContainer () override | |
bool | operator== (const PropertyContainer &other) const |
Check for equality (managers and values). More... | |
bool | operator!= (const PropertyContainer &other) const |
Check for inequality (managers and values). More... | |
void | copyProperties (const PropertyContainer &other) |
Copy all properties from the given container to this object. More... | |
const PropertyManager * | getPropertyManager () const |
Get read-only access to the associated property manager. More... | |
PropertyManager * | getPropertyManager () |
Get access to the associated property manager. More... | |
PropertyMap | getPropertyMap () const |
Get a map of the contained properties, can be useful for comparison. More... | |
size_t | numberOfProperties () const |
Return the number of properties currently available. More... | |
const PropertyValue & | property (size_t index) const |
Get the property with index index as PropertyValue. More... | |
template<typename T > | |
T & | property (size_t index) |
Get the property with index index with type T. Throws boost::bad_get exception if the currently stored property has a different type. More... | |
template<typename T > | |
const T & | property (size_t index) const |
Get the property with index index with type T, const version. Throws boost::bad_get exception if the currently stored property has a different type. More... | |
const PropertyValue & | property (const std::string &name) const |
Get the property with name name . More... | |
template<typename T > | |
T & | property (const std::string &name) |
template<typename T > | |
const T & | property (const std::string &name) const |
virtual void | reset () |
Set all properties to default values. More... | |
ML_ABSTRACT_CLASS_HEADER (PropertyContainer) | |
void | addStateToTree (TreeNode *parent) const override |
ML_SET_ADDSTATE_VERSION (1) | |
Set current addStateToTree() version number: More... | |
void | readStateFromTree (TreeNode *parent) override |
Reads the object state from the children of the given parent node. More... | |
Protected Member Functions | |
BaseGraphItem (Graph &graph, MLint id, const ManagerPointer &manager) | |
Constructor. More... | |
BaseGraphItem (const BaseGraphItem &item) | |
Copy constructor (creates an unconnected object, only copies properties), deprecated. More... | |
BaseGraphItem & | operator= (const BaseGraphItem &item) |
Assignment operator, deprecated. Use copyProperties() instead. More... | |
void | copyProperties (const BaseGraphItem *other) |
Copy all properties (topology information is left unchanged) More... | |
bool | operator== (const BaseGraphItem &other) const |
Compare properties (ignores topology information) More... | |
bool | operator!= (const BaseGraphItem &other) const |
Persistence | |
Attaches the object state as children of the given parent node. | |
void | addStateToTree (TreeNode *parent) const override |
ML_SET_ADDSTATE_VERSION (2) | |
Set current addStateToTree() version number: More... | |
void | readStateFromTree (TreeNode *parent) override |
Reads the object state from the children of the given parent node. More... | |
Protected Attributes | |
Graph * | _graph |
Reference to the owner Graph object. More... | |
Protected Attributes inherited from PropertyContainer | |
std::vector< PropertyValue > | _values |
ManagerPointer | _manager |
Friends | |
class | Graph |
class | LoadTreeData |
Additional Inherited Members | |
Public Types inherited from PropertyContainer | |
typedef PropertyManager::Pointer | ManagerPointer |
typedef PropertyManager::ConstPointer | ConstManagerPointer |
typedef PropertyManager::PropertyMap | PropertyMap |
class BaseGraphItem
Definition at line 35 of file mlBaseGraphItem.h.
|
protected |
Constructor.
|
protected |
Copy constructor (creates an unconnected object, only copies properties), deprecated.
|
overrideprotected |
|
protected |
Copy all properties (topology information is left unchanged)
|
inline |
Definition at line 46 of file mlBaseGraphItem.h.
|
inline |
Definition at line 47 of file mlBaseGraphItem.h.
|
inline |
Get unique id of the object.
Definition at line 50 of file mlBaseGraphItem.h.
|
inline |
Get root id.
Is negative if invalid (not set). Is only set if setRootIdToAllChildren is called on the Graph itself.
Definition at line 81 of file mlBaseGraphItem.h.
|
protected |
Set current addStateToTree() version number:
|
inlineprotected |
Definition at line 68 of file mlBaseGraphItem.h.
|
protected |
Assignment operator, deprecated. Use copyProperties() instead.
|
protected |
Compare properties (ignores topology information)
|
overrideprotected |
Reads the object state from the children of the given parent node.
|
inline |
Sets the root id. Usually called by calling setRootIdToAllChildren on the graph itself.
Definition at line 83 of file mlBaseGraphItem.h.
|
friend |
Definition at line 39 of file mlBaseGraphItem.h.
|
friend |
Definition at line 40 of file mlBaseGraphItem.h.
|
protected |
Reference to the owner Graph object.
Definition at line 71 of file mlBaseGraphItem.h.