13 #ifndef __mitkLabelSet_H_ 14 #define __mitkLabelSet_H_ 20 #include <itkObject.h> 21 #include <itkObjectFactory.h> 105 LabelContainerConstIteratorType IteratorConstBegin()
const;
109 LabelContainerConstIteratorType IteratorConstEnd()
const;
113 LabelContainerIteratorType IteratorBegin();
117 LabelContainerIteratorType IteratorEnd();
122 void OnLabelModified();
126 void SetLayer(
unsigned int);
130 void SetActiveLabel(PixelType);
134 void RemoveLabel(PixelType);
138 bool ExistLabel(PixelType);
146 void AddLabel(
const std::string &name,
const Color &color);
150 void RenameLabel(PixelType,
const std::string &,
const Color &);
154 unsigned int GetNumberOfLabels()
const;
158 void SetAllLabelsVisible(
bool);
162 void SetAllLabelsLocked(
bool);
166 void RemoveAllLabels();
168 void SetNextActiveLabel();
178 Label *GetLabel(PixelType pixelValue);
182 const Label *GetLabel(PixelType pixelValue)
const;
184 itkGetMacro(Layer,
int);
186 itkGetConstMacro(Layer,
int);
196 void UpdateLookupTable(PixelType pixelValue);
206 void PrintSelf(std::ostream &os, itk::Indent indent)
const override;
239 #endif // __mitkLabelSet_H_ Message AllLabelsModifiedEvent
AllLabelsModifiedEvent is emitted whenever a new label has been removed from the LabelSet.
LookupTable::Pointer m_LookupTable
DataCollection - Class to facilitate loading/accessing structured data.
A data structure describing a label.
#define MITKMULTILABEL_EXPORT
LabelContainerType::iterator LabelContainerIteratorType
PixelType m_ActiveLabelValue
LabelContainerType m_LabelContainer
Message AddLabelEvent
AddLabelEvent is emitted whenever a new label has been added to the LabelSet.
#define mitkClassMacroItkParent(className, SuperClassName)
std::map< PixelType, Label::Pointer > LabelContainerType
Event/message/notification class.
LabelContainerType::const_iterator LabelContainerConstIteratorType
itk::RGBPixel< float > Color
Color Standard RGB color typedef (float)
#define mitkCloneMacro(classname)
Message ModifyLabelEvent
ModifyLabelEvent is emitted whenever a label has been modified from the LabelSet. ...
MITKNEWMODULE_EXPORT bool Equal(mitk::ExampleDataStructure *leftHandSide, mitk::ExampleDataStructure *rightHandSide, mitk::ScalarType eps, bool verbose)
Returns true if the example data structures are considered equal.
Message RemoveLabelEvent
RemoveLabelEvent is emitted whenever a new label has been removed from the LabelSet.
MITKCORE_EXPORT const ScalarType eps
const Label * GetActiveLabel() const
mitk::Label::PixelType PixelType
Message1< PixelType > ActiveLabelEvent
ActiveLabelEvent is emitted whenever a label has been set as active in the LabelSet.
The LookupTable class mitk wrapper for a vtkLookupTableThis class can be used to color images with a ...