MeVisLab Scripting Reference
MLSkeletonWrapper Class Reference
Inheritance diagram for MLSkeletonWrapper:
MLPropertyContainerWrapper

Public Slots

virtual void copyProperties (MLSkeletonWrapper *skeleton)
 
QList< double > position () const
 
double label () const
 
QList< float > getRGBA () const
 
void setRGBA (float r, float g, float b, float a)
 
size_t numVesselPositions ()
 
QVariant vesselPosition (size_t index)
 
void clearVesselPositions ()
 
void addVesselPosition (const QVariantList &voxelPosition)
 
- 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 MLPropertyContainerWrapper
QVariantMap properties
 

Detailed Description

A class that wraps Skeleton objects for use in Scripting.

Skeletons represent the center-line voxels of an edge.

Member Function Documentation

◆ addVesselPosition

void MLSkeletonWrapper::addVesselPosition ( const QVariantList &  voxelPosition)
inlineslot

Adds a vessel position.

◆ clearVesselPositions

void MLSkeletonWrapper::clearVesselPositions ( )
inlineslot

Clears all vessel positions.

◆ copyProperties

virtual void MLSkeletonWrapper::copyProperties ( MLSkeletonWrapper skeleton)
virtualslot

Copy all properties from the given skeleton object.

◆ getRGBA

QList<float> MLSkeletonWrapper::getRGBA ( ) const
slot

Get the RGBA color of the skeleton.

◆ label

double MLSkeletonWrapper::label ( ) const
slot

Get the label of the skeleton.

◆ numVesselPositions

size_t MLSkeletonWrapper::numVesselPositions ( )
inlineslot

Returns the number of voxels associated with this skeleton object.

(Vessel voxels in a cross section perpendicular to the skeleton.)

◆ position

QList<double> MLSkeletonWrapper::position ( ) const
slot

Get the position of the skeleton centerline voxel (as [x, y, z]).

◆ setRGBA

void MLSkeletonWrapper::setRGBA ( float  r,
float  g,
float  b,
float  a 
)
slot

Set the RGBA color of the skeleton.

◆ vesselPosition

QVariant MLSkeletonWrapper::vesselPosition ( size_t  index)
inlineslot

Return the position (as [x, y, z]) of the n-th voxel associated with this skeleton object.