MeVisLabToolboxReference
ml::Skeleton Class Reference

class Skeleton More...

#include <mlSkeleton.h>

Inheritance diagram for ml::Skeleton:
ml::PropertyContainer ml::Base

List of all members.

Public Types

Color type of member Skeleton::label
enum  LABELTYPE { TRACECOLOR, CONTINUOUS }

Public Member Functions

 Skeleton (const PropertyManager::Pointer &manager, const Vector3 &pos=Vector3(0), float min=0, float max=0)
 Constructor.
 Skeleton (const Skeleton &other)
 Copy Constructor.
Skeletonoperator= (const Skeleton &other)
virtual void copyProperties (const Skeleton *other)
bool operator== (const Skeleton &other) const
bool operator!= (const Skeleton &other) const
virtual void addStateToTree (TreeNode *parent) const
 Attaches the object state as children of the given parent node.
 ML_SET_ADDSTATE_VERSION (5)
 Set current addStateToTree() version number:
virtual void readStateFromTree (TreeNode *parent)
 Reads the object state from the children of the given parent node.
Skeleton Position
ImageVector voxelPos ()
 Make it easer to access world-position as class Vector (int) position, if positions are in fact in voxel-coordinates.
void transform (const Matrix4 &m)
 Apply a 4x4 homogeneous transformation matrix to the skeleton position.
void convertToVoxel (Matrix4 *mat)
 convert all coordinates of the skeleton, including its vessel voxels
void convertToWorld (Matrix4 *mat)
Default Measurements
 STATIC_GRAPH_PROPERTY (double, minDistance, MinDistance)
 STATIC_GRAPH_PROPERTY (double, maxDistance, MaxDistance)
 STATIC_GRAPH_PROPERTY (double, area, Area)
 STATIC_GRAPH_PROPERTY (double, distanceLabel, DistanceLabel)
 STATIC_GRAPH_PROPERTY (double, freeLabel, FreeLabel)
 STATIC_GRAPH_PROPERTY (double, label, Label)
Default Labels
 STATIC_CASTED_GRAPH_PROPERTY (LABELTYPE, MLuint64, labelType, LabelType)
 decide whether label is a trace color or continuous gray value.
 STATIC_GRAPH_PROPERTY (MLuint64, enumLabel, EnumLabel)
 label to enumerate the skeleton within a graph. not enumerated value is 0. not persistent.
void setRGBA (float r, float g, float b, float a)
void setRGBA (float *rgba)
void getRGBA (float *r, float *g, float *b, float *a) const
float * getRGBA (void)
Encapsulate std::vector<vec3>: container of vessel voxels coordinates.
size_t getVoxelNum () const
size_t numVesselPos () const
void addVesselPos (const Vector3 &position)
void addVesselPos (const ImageVector &v)
const Vector3vesselPos (size_t index) const
Vector3vesselPos (size_t index)
ImageVector vesselVoxelPos (size_t index)
void clearVesselPos ()

Static Public Member Functions

static void setCopyVesselVoxels (bool flag)
 Set global parameter for skeleton copy.
static void setCopyVesselVoxelsDefault (void)

Friends

class Graph
class VesselEdge

Detailed Description

class Skeleton

Definition at line 35 of file mlSkeleton.h.


Member Enumeration Documentation

Enumerator:
TRACECOLOR 
CONTINUOUS 

Definition at line 43 of file mlSkeleton.h.


Constructor & Destructor Documentation

ml::Skeleton::Skeleton ( const PropertyManager::Pointer manager,
const Vector3 pos = Vector3(0),
float  min = 0,
float  max = 0 
)

Constructor.

ml::Skeleton::Skeleton ( const Skeleton other)

Copy Constructor.


Member Function Documentation

virtual void ml::Skeleton::addStateToTree ( TreeNode parent) const [virtual]

Attaches the object state as children of the given parent node.

Reimplemented from ml::PropertyContainer.

void ml::Skeleton::addVesselPos ( const Vector3 position) [inline]

Definition at line 127 of file mlSkeleton.h.

void ml::Skeleton::addVesselPos ( const ImageVector v) [inline]

Definition at line 128 of file mlSkeleton.h.

void ml::Skeleton::clearVesselPos ( ) [inline]

Definition at line 132 of file mlSkeleton.h.

void ml::Skeleton::convertToVoxel ( Matrix4 mat)

convert all coordinates of the skeleton, including its vessel voxels

void ml::Skeleton::convertToWorld ( Matrix4 mat)
virtual void ml::Skeleton::copyProperties ( const Skeleton other) [virtual]
void ml::Skeleton::getRGBA ( float *  r,
float *  g,
float *  b,
float *  a 
) const [inline]

Definition at line 102 of file mlSkeleton.h.

float* ml::Skeleton::getRGBA ( void  ) [inline]

Definition at line 109 of file mlSkeleton.h.

size_t ml::Skeleton::getVoxelNum ( ) const [inline]

Definition at line 125 of file mlSkeleton.h.

ml::Skeleton::ML_SET_ADDSTATE_VERSION ( )

Set current addStateToTree() version number:

size_t ml::Skeleton::numVesselPos ( ) const [inline]

Definition at line 126 of file mlSkeleton.h.

bool ml::Skeleton::operator!= ( const Skeleton other) const [inline]

Definition at line 57 of file mlSkeleton.h.

Skeleton& ml::Skeleton::operator= ( const Skeleton other)
bool ml::Skeleton::operator== ( const Skeleton other) const
virtual void ml::Skeleton::readStateFromTree ( TreeNode parent) [virtual]

Reads the object state from the children of the given parent node.

Reimplemented from ml::PropertyContainer.

static void ml::Skeleton::setCopyVesselVoxels ( bool  flag) [inline, static]

Set global parameter for skeleton copy.

Definition at line 136 of file mlSkeleton.h.

static void ml::Skeleton::setCopyVesselVoxelsDefault ( void  ) [inline, static]

Definition at line 137 of file mlSkeleton.h.

void ml::Skeleton::setRGBA ( float  r,
float  g,
float  b,
float  a 
) [inline]

Definition at line 91 of file mlSkeleton.h.

void ml::Skeleton::setRGBA ( float *  rgba) [inline]

Definition at line 98 of file mlSkeleton.h.

ml::Skeleton::STATIC_CASTED_GRAPH_PROPERTY ( LABELTYPE  ,
MLuint64  ,
labelType  ,
LabelType   
)

decide whether label is a trace color or continuous gray value.

ml::Skeleton::STATIC_GRAPH_PROPERTY ( MLuint64  ,
enumLabel  ,
EnumLabel   
)

label to enumerate the skeleton within a graph. not enumerated value is 0. not persistent.

ml::Skeleton::STATIC_GRAPH_PROPERTY ( double  ,
area  ,
Area   
)
ml::Skeleton::STATIC_GRAPH_PROPERTY ( double  ,
freeLabel  ,
FreeLabel   
)
ml::Skeleton::STATIC_GRAPH_PROPERTY ( double  ,
minDistance  ,
MinDistance   
)
ml::Skeleton::STATIC_GRAPH_PROPERTY ( double  ,
maxDistance  ,
MaxDistance   
)
ml::Skeleton::STATIC_GRAPH_PROPERTY ( double  ,
distanceLabel  ,
DistanceLabel   
)
ml::Skeleton::STATIC_GRAPH_PROPERTY ( double  ,
label  ,
Label   
)
void ml::Skeleton::transform ( const Matrix4 m)

Apply a 4x4 homogeneous transformation matrix to the skeleton position.

const Vector3& ml::Skeleton::vesselPos ( size_t  index) const [inline]

Definition at line 129 of file mlSkeleton.h.

Vector3& ml::Skeleton::vesselPos ( size_t  index) [inline]

Definition at line 130 of file mlSkeleton.h.

ImageVector ml::Skeleton::vesselVoxelPos ( size_t  index)
ImageVector ml::Skeleton::voxelPos ( )

Make it easer to access world-position as class Vector (int) position, if positions are in fact in voxel-coordinates.


Friends And Related Function Documentation

friend class Graph [friend]

Definition at line 37 of file mlSkeleton.h.

friend class VesselEdge [friend]

Definition at line 38 of file mlSkeleton.h.


The documentation for this class was generated from the following file: