MeVisLab Scripting Reference
MLBaseGraphItemWrapper Class Reference

#include <mlBaseGraphItemWrapper.h>

Inherits MLPropertyContainerWrapper.

Inherited by MLVesselEdgeWrapper, and MLVesselNodeWrapper.

Public Slots

qint64 getId () const
 
qint64 getRootId () const
 
void setRootId (qint64 id)
 
- Public Slots inherited from MLPropertyContainerWrapper
virtual void copyProperties (QObject *wrapper)
 
QVariantMap getProperties ()
 
QVariant getProperty (const QString &name)
 
void setProperty (const QString &name, QVariant value)
 
size_t getPropertyIndex (const QString &name)
 
QVariant getProperty (size_t index)
 
void setProperty (size_t index, QVariant value)
 
size_t createPropertyDouble (const QString &name, double defaultValue)
 
size_t createPropertyUInt8 (const QString &name, long defaultValue)
 
size_t createPropertyInt32 (const QString &name, long defaultValue)
 
size_t createPropertyVector3 (const QString &name, QVariantList pos)
 
void removeProperty (const QString &name)
 

Properties

qint64 id
 
qint64 rootId
 
- Properties inherited from MLPropertyContainerWrapper
QVariantMap properties
 

Detailed Description

A class that wraps BaseGraphItem objects for use in Scripting.

Member Function Documentation

◆ getId

qint64 MLBaseGraphItemWrapper::getId ( ) const
inlineslot

Returns the id of this item.

References getId().

Referenced by getId().

◆ getRootId

qint64 MLBaseGraphItemWrapper::getRootId ( ) const
inlineslot

Returns the id of the root of this item.

References getRootId().

Referenced by getRootId().

◆ setRootId

void MLBaseGraphItemWrapper::setRootId ( qint64 id)
inlineslot

Sets the id for the root of this item.

References setRootId().

Referenced by setRootId().

Property Documentation

◆ id

qint64 MLBaseGraphItemWrapper::id
read

The id of the node/edge

◆ rootId

qint64 MLBaseGraphItemWrapper::rootId
readwrite

the id of the root node of the tree the node/edge belongs to