13 #ifndef _mitk_TubeGraphProperty_h 14 #define _mitk_TubeGraphProperty_h 22 #include <itkObject.h> 67 bool IsTubeVisible(
const TubeDescriptorType &tube);
74 void SetTubeActive(
const TubeDescriptorType &tube,
const bool &active);
80 void SetTubesActive(std::vector<TubeDescriptorType> &tubes);
87 bool IsTubeActive(
const TubeDescriptorType &tube);
89 std::vector<TubeDescriptorType> GetActiveTubes();
91 Color GetColorOfTube(
const TubeDescriptorType &tube);
93 void SetTubesToLabels(std::map<TubeToLabelGroupType, std::string> tubeToLabelMap);
95 std::map<TubeToLabelGroupType, std::string> GetTubesToLabels();
100 void DeactivateAllTubes();
103 Annotation *GetAnnotationByName(std::string annotation);
104 std::vector<Annotation *> GetAnnotations();
105 void RemoveAnnotation(
Annotation *annotation);
107 void AddLabelGroup(
LabelGroup *labelGroup,
unsigned int position);
108 void RemoveLabelGroup(
LabelGroup *labelGroup);
109 LabelGroupSetType GetLabelGroups();
110 unsigned int GetNumberOfLabelGroups();
111 unsigned int GetIndexOfLabelGroup(
LabelGroup *labelGroup);
112 LabelGroup *GetLabelGroupByName(std::string labelGroup);
121 std::string GetValueAsString()
const override;
129 std::vector<TubeDescriptorType> m_ActiveTubes;
130 LabelGroupSetType m_LabelGroups;
131 std::map<TubeToLabelGroupType, std::string> m_TubeToLabelsMap;
132 std::vector<Annotation *> m_Annotations;
134 bool TubeDescriptorsCompare(
const TubeDescriptorType &tube1,
const TubeDescriptorType &tube2);
139 bool IsEqual(
const BaseProperty &property)
const override;
141 itk::LightObject::Pointer InternalClone()
const override;
TubeGraph::TubeDescriptorType TubeDescriptorType
#define MITKTUBEGRAPH_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
Abstract base class for properties.
std::pair< TubeDescriptorType, std::string > TubeToLabelGroupType
std::pair< VertexDescriptorType, VertexDescriptorType > TubeDescriptorType
Property for tube graphs.
#define mitkClassMacro(className, SuperClassName)
std::string labelGroupName
itk::RGBPixel< float > Color
Color Standard RGB color typedef (float)
std::vector< TubeGraphProperty::LabelGroup * > LabelGroupSetType
std::vector< Label * > labels