28#include <boost/shared_ptr.hpp>
54 return !(*
this ==
other);
63 ImageVector voxelPos();
69 void convertToVoxel(Matrix4*
mat);
70 void convertToWorld(Matrix4*
mat);
81 size_t getVoxelNum()
const
83 return _vesselCoordinates.size() + 1;
87 return _vesselCoordinates.size();
91 _vesselCoordinates.push_back(position);
95 _vesselCoordinates.push_back(
100 return _vesselCoordinates.at(index);
104 return _vesselCoordinates.at(index);
109 _vesselCoordinates.clear();
116 std::vector<Vector3> _vesselCoordinates;
141 void setRGBA(
float r,
float g,
float b,
float a)
151 for (
size_t i = 0;
i < 4; ++
i) {
156 void getRGBA(
float* r,
float* g,
float* b,
float* a)
const
180 Skeleton::_copyVesselVoxels =
flag;
184 Skeleton::_copyVesselVoxels =
true;
190 static bool _copyVesselVoxels;
Defines the basic Graph class which holds sets of nodes, edges and roots to model tubular structures ...
boost::intrusive_ptr< type > Pointer
Skeleton objects represent centerline voxels stored in a VesselEdge object.
STATIC_GRAPH_PROPERTY(double, label, Label)
STATIC_GRAPH_PROPERTY(MLuint64, enumLabel, EnumLabel)
label to enumerate the skeleton within a graph. not enumerated value is 0. not persistent.
STATIC_GRAPH_PROPERTY(double, freeLabel, FreeLabel)
static void setCopyVesselVoxelsDefault(void)
const Vector3 & vesselPos(size_t index) const
STATIC_GRAPH_PROPERTY(double, distanceLabel, DistanceLabel)
void copyProperties(const Skeleton *other)
bool operator==(const Skeleton &other) const
void readStateFromTree(TreeNode *parent) override
Reads the object state from the children of the given parent node.
static void setCopyVesselVoxels(bool flag)
Set global parameter for skeleton copy.
Skeleton(const PropertyManager::Pointer &manager, const Vector3 &pos=Vector3(0), double minDistance=0, double maxDistance=0)
Constructor.
void addVesselPos(const ImageVector &v)
size_t numVesselPos() const
STATIC_CASTED_GRAPH_PROPERTY(LABELTYPE, MLuint64, labelType, LabelType)
Skeleton(const Skeleton &other)
Copy Constructor.
ML_SET_ADDSTATE_VERSION(5)
Set current addStateToTree() version number:
void addVesselPos(const Vector3 &position)
Vector3 & vesselPos(size_t index)
ImageVector vesselVoxelPos(size_t index)
Skeleton & operator=(const Skeleton &other)
void addStateToTree(TreeNode *parent) const override
Attaches the object state as children of the given parent node.
bool operator!=(const Skeleton &other) const
void setRGBA(float r, float g, float b, float a)
STATIC_GRAPH_PROPERTY(double, area, Area)
void setRGBA(float *rgba)
void getRGBA(float *r, float *g, float *b, float *a) const
#define ML_ABSTRACT_CLASS_HEADER(className)
Similar to ML_ABSTRACT_CLASS_HEADER_EXPORTED with a non-existing export symbol.
#define STATIC_GRAPH_PROPERTY(Type, lowerCaseName, upperCaseName)
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
UINT64 MLuint64
Introduce platform-independent 64-bit unsigned integer type.
#define VESSELGRAPH_END_NAMESPACE
#define VESSELGRAPH_EXPORT
Definiert systemspezifische Macros, die f"ur diese DLL gelten sollen.
#define VESSELGRAPH_BEGIN_NAMESPACE