17 #ifndef __mitkLabelSet_H_
18 #define __mitkLabelSet_H_
24 #include <itkObject.h>
25 #include <itkObjectFactory.h>
109 LabelContainerConstIteratorType IteratorConstBegin()
const;
113 LabelContainerConstIteratorType IteratorConstEnd()
const;
117 LabelContainerIteratorType IteratorBegin();
121 LabelContainerIteratorType IteratorEnd();
126 void OnLabelModified();
130 void SetLayer(
unsigned int);
134 void SetActiveLabel(PixelType);
138 void RemoveLabel(PixelType);
142 bool ExistLabel(PixelType);
150 void AddLabel(
const std::string &name,
const Color &color);
154 void RenameLabel(PixelType,
const std::string &,
const Color &);
158 unsigned int GetNumberOfLabels()
const;
162 void SetAllLabelsVisible(
bool);
166 void SetAllLabelsLocked(
bool);
170 void RemoveAllLabels();
180 Label *GetLabel(PixelType pixelValue);
184 const Label *GetLabel(PixelType pixelValue)
const;
186 itkGetMacro(Layer,
int) itkGetConstMacro(Layer,
int) itkGetModifiableObjectMacro(
LookupTable,
mitk::LookupTable)
190 void SetLookupTable(LookupTable *lut);
194 void UpdateLookupTable(PixelType pixelValue);
198 LabelSet(const LabelSet &);
204 void PrintSelf(
std::ostream &os,
itk::Indent indent) const override;
206 LabelContainerType m_LabelContainer;
210 PixelType m_ActiveLabelValue;
212 unsigned int m_Layer;
231 const
mitk::LabelSet &rightHandSide,
237 #endif // __mitkLabelSet_H_
Message AllLabelsModifiedEvent
AllLabelsModifiedEvent is emitted whenever a new label has been removed from the LabelSet.
DataCollection - Class to facilitate loading/accessing structured data.
A data structure describing a label.
#define MITKMULTILABEL_EXPORT
LabelContainerType::iterator LabelContainerIteratorType
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
mitk::Label::PixelType PixelType
Message1< PixelType > ActiveLabelEvent
ActiveLabelEvent is emitted whenever a label has been set as active in the LabelSet.
const Label * GetActiveLabel() const
The LookupTable class mitk wrapper for a vtkLookupTableThis class can be used to color images with a ...