#include <mitkLabelSet.h>
Definition at line 34 of file mitkLabelSet.h.
◆ LabelContainerConstIteratorType
◆ LabelContainerIteratorType
◆ LabelContainerType
◆ LabelValueType
◆ PixelType
◆ ReservedLabelValuesFunctor
◆ LabelSet() [1/2]
mitk::LabelSet::LabelSet |
( |
| ) |
|
|
protected |
◆ LabelSet() [2/2]
mitk::LabelSet::LabelSet |
( |
const LabelSet & |
| ) |
|
|
protected |
◆ ~LabelSet()
mitk::LabelSet::~LabelSet |
( |
| ) |
|
|
overrideprotected |
◆ AddLabel() [1/2]
mitk::Label* mitk::LabelSet::AddLabel |
( |
const std::string & |
name, |
|
|
const Color & |
color |
|
) |
| |
◆ AddLabel() [2/2]
Adds a label to the label set.
- Parameters
-
label | Instance of an label that should be added or used as template |
addAsClone | flag that control if the passed instance should be added or a clone of the instance. |
- Returns
- Instance of the label as it was added to the label set.
◆ ExistLabel()
bool mitk::LabelSet::ExistLabel |
( |
PixelType |
| ) |
|
◆ GetActiveLabel() [1/2]
Label* mitk::LabelSet::GetActiveLabel |
( |
| ) |
|
|
inline |
◆ GetActiveLabel() [2/2]
const Label* mitk::LabelSet::GetActiveLabel |
( |
| ) |
const |
|
inline |
◆ GetLabel() [1/2]
◆ GetLabel() [2/2]
◆ GetLayer() [1/2]
virtual int mitk::LabelSet::GetLayer |
( |
| ) |
|
|
virtual |
◆ GetLayer() [2/2]
virtual int mitk::LabelSet::GetLayer |
( |
| ) |
const |
|
virtual |
◆ GetNumberOfLabels()
unsigned int mitk::LabelSet::GetNumberOfLabels |
( |
| ) |
const |
◆ GetUsedLabelValues()
std::vector<LabelValueType> mitk::LabelSet::GetUsedLabelValues |
( |
| ) |
const |
◆ IteratorBegin()
Returns a iterator poiting to the begining of the container.
◆ IteratorConstBegin()
Returns a const iterator poiting to the begining of the container.
◆ IteratorConstEnd()
Returns a const iterator pointing to the end of the container.
◆ IteratorEnd()
Returns a iterator pointing to the end of the container.
◆ itkGetModifiableObjectMacro()
◆ mitkClassMacroItkParent()
mitk::LabelSet::mitkClassMacroItkParent |
( |
LabelSet |
, |
|
|
itk::Object |
|
|
) |
| |
◆ mitkCloneMacro()
mitk::LabelSet::mitkCloneMacro |
( |
Self |
| ) |
|
|
protected |
◆ New()
static Pointer mitk::LabelSet::New |
( |
| ) |
|
|
static |
◆ OnLabelModified()
void mitk::LabelSet::OnLabelModified |
( |
const Object * |
, |
|
|
const itk::EventObject & |
|
|
) |
| |
Recall itk::Object::Modified event from a label and send a ModifyLabelEvent.
◆ PrintSelf()
void mitk::LabelSet::PrintSelf |
( |
std::ostream & |
os, |
|
|
itk::Indent |
indent |
|
) |
| const |
|
overrideprotected |
◆ RemoveAllLabels()
void mitk::LabelSet::RemoveAllLabels |
( |
| ) |
|
◆ RemoveLabel()
void mitk::LabelSet::RemoveLabel |
( |
PixelType |
| ) |
|
◆ RenameLabel()
void mitk::LabelSet::RenameLabel |
( |
PixelType |
, |
|
|
const std::string & |
, |
|
|
const Color & |
|
|
) |
| |
◆ SetActiveLabel()
void mitk::LabelSet::SetActiveLabel |
( |
PixelType |
| ) |
|
◆ SetAllLabelsLocked()
void mitk::LabelSet::SetAllLabelsLocked |
( |
bool |
| ) |
|
◆ SetAllLabelsVisible()
void mitk::LabelSet::SetAllLabelsVisible |
( |
bool |
| ) |
|
◆ SetLayer()
void mitk::LabelSet::SetLayer |
( |
unsigned int |
| ) |
|
◆ SetLookupTable()
void mitk::LabelSet::SetLookupTable |
( |
LookupTable * |
lut | ) |
|
◆ SetNextActiveLabel()
void mitk::LabelSet::SetNextActiveLabel |
( |
| ) |
|
◆ UpdateLookupTable()
void mitk::LabelSet::UpdateLookupTable |
( |
PixelType |
pixelValue | ) |
|
◆ ActiveLabelEvent
ActiveLabelEvent is emitted whenever a label has been set as active in the LabelSet.
Definition at line 92 of file mitkLabelSet.h.
◆ AddLabelEvent
AddLabelEvent is emitted whenever a new label has been added to the LabelSet.
The registered method will be called with the label value of the added label. Observers should register to this event by calling myLabelSet->AddLabelEvent.AddListener(myObject, MyObject::MyMethod). After registering, myObject->MyMethod() will be called every time a new label has been added to the LabelSet. Observers should unregister by calling myLabelSet->AddLabelEvent.RemoveListener(myObject, MyObject::MyMethod).
member variable is not needed to be locked in multi-threaded scenarios since the LabelSetEvent is a typedef for a Message1 object which is thread safe
Definition at line 59 of file mitkLabelSet.h.
◆ AllLabelsModifiedEvent
Message mitk::LabelSet::AllLabelsModifiedEvent |
AllLabelsModifiedEvent is emitted whenever a new label has been removed from the LabelSet.
Observers should register to this event by calling myLabelSet->AllLabelsModifiedEvent.AddListener(myObject, MyObject::MyMethod). After registering, myObject->MyMethod() will be called every time a new label has been removed from the LabelSet. Observers should unregister by calling myLabelSet->AllLabelsModifiedEvent.RemoveListener(myObject, MyObject::MyMethod).
member variable is not needed to be locked in multi-threaded scenarios since the LabelSetEvent is a typedef for a Message object which is thread safe
Definition at line 106 of file mitkLabelSet.h.
◆ m_ActiveLabelValue
◆ m_LabelContainer
◆ m_Layer
unsigned int mitk::LabelSet::m_Layer |
|
protected |
◆ m_LookupTable
◆ m_ReservedLabelValuesFunctor
◆ ModifyLabelEvent
ModifyLabelEvent is emitted whenever a label has been modified from the LabelSet.
The registered method will be called with the label value of the modified label. Observers should register to this event by calling myLabelSet->ModifyLabelEvent.AddListener(myObject, MyObject::MyMethod). After registering, myObject->MyMethod() will be called every time a new label has been removed from the LabelSet. Observers should unregister by calling myLabelSet->ModifyLabelEvent.RemoveListener(myObject, MyObject::MyMethod).
member variable is not needed to be locked in multi-threaded scenarios since the LabelSetEvent is a typedef for a Message object which is thread safe
Definition at line 87 of file mitkLabelSet.h.
◆ RemoveLabelEvent
RemoveLabelEvent is emitted whenever a new label has been removed from the LabelSet.
The registered method will be called with the label value of the removed label. Observers should register to this event by calling myLabelSet->RemoveLabelEvent.AddListener(myObject, MyObject::MyMethod). After registering, myObject->MyMethod() will be called every time a new label has been removed from the LabelSet. Observers should unregister by calling myLabelSet->RemoveLabelEvent.RemoveListener(myObject, MyObject::MyMethod).
member variable is not needed to be locked in multi-threaded scenarios since the LabelSetEvent is a typedef for a Message object which is thread safe
Definition at line 73 of file mitkLabelSet.h.
The documentation for this class was generated from the following file: