MeVisLab Scripting Reference
MLVesselNodeWrapper Class Reference
Inheritance diagram for MLVesselNodeWrapper:
MLBaseGraphItemWrapper MLPropertyContainerWrapper

Public Slots

virtual void copyProperties (MLVesselNodeWrapper *node)
 
double getDistance (QVariantList pos)
 
QVariant position () const
 
QVariantList getAllEdges ()
 
QVariantList getInEdges ()
 
QVariantList getOutEdges ()
 
- Public Slots inherited from MLBaseGraphItemWrapper
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)
 

Additional Inherited Members

- Properties inherited from MLBaseGraphItemWrapper
qint64 id
 
qint64 rootId
 
- Properties inherited from MLPropertyContainerWrapper
QVariantMap properties
 

Detailed Description

A class that wraps VesselNode objects for use in Scripting.

Member Function Documentation

◆ copyProperties

virtual void MLVesselNodeWrapper::copyProperties ( MLVesselNodeWrapper node)
virtualslot

Copy all properties (topology information is left unchanged).

◆ getAllEdges

QVariantList MLVesselNodeWrapper::getAllEdges ( )
slot

Get all edges attached to this node as a list of MLVesselEdgeWrapper.

◆ getDistance

double MLVesselNodeWrapper::getDistance ( QVariantList  pos)
slot

Get the euclidean distance between pos (given as [x, y, z]) and the position of this node.

◆ getInEdges

QVariantList MLVesselNodeWrapper::getInEdges ( )
slot

Get all in-bound edges attached to this node as a list of MLVesselEdgeWrapper.

◆ getOutEdges

QVariantList MLVesselNodeWrapper::getOutEdges ( )
slot

Get all out-bound edges attached to this node as a list of MLVesselEdgeWrapper.

◆ position

QVariant MLVesselNodeWrapper::position ( ) const
slot

Get the position of this node.