33 namespace LabelPropertyConstants
242 void SetProperty(
const std::string &propertyKey,
BaseProperty *property,
const std::string &contextName =
"",
bool fallBackOnDefaultContext =
false)
override;
243 BaseProperty::ConstPointer
GetConstProperty(
const std::string& propertyKey,
const std::string& contextName =
"",
bool fallBackOnDefaultContext =
true)
const override;
246 using itk::Object::Modified;
255 void Update(
const Label* templateLabel,
bool updateLabelValue =
false);
262 void PrintSelf(std::ostream &os, itk::Indent indent)
const override;
273 itk::LightObject::Pointer InternalClone()
const override;
290 std::optional<DICOMCodeSequence> GetDICOMCodeSequenceFromProperties(
const PropertyKeyPath& basePath)
const;
297 std::optional<DICOMCodeSequenceWithModifiers> GetDICOMCodeSequenceWithModifiersFromProperties(
const PropertyKeyPath& basePath)
const;
303 void RemoveDICOMCodeSequenceProperties(
const PropertyKeyPath& basePath);
#define MITKMULTILABEL_EXPORT
Abstract base class for properties.
Represents a DICOM Code Sequence with optional modifiers.
Represents a DICOM Code Sequence with value, scheme, and meaning.
A data structure describing a label.
DICOMCodeSequenceWithModifiers GetAnatomicRegion(std::size_t index=0) const
Gets an anatomic region code at the specified index.
std::string GetAlgorithmName() const
BaseProperty * GetNonConstProperty(const std::string &propertyKey, const std::string &contextName="", bool fallBackOnDefaultContext=true) override
Get property by its key.
mitk::Point3D GetCenterOfMassCoordinates() const
void Update(const Label *templateLabel, bool updateLabelValue=false)
Function updates the property values of a label provided as templates. If a property exists in the de...
void SetValue(PixelType pixelValue)
void SetPrimaryAnatomicStructure(const DICOMCodeSequenceWithModifiers &code, std::size_t index=0)
Sets a primary anatomic structure code at the specified index.
void SetTrackingID(const std::string &trackingID)
std::string GetName() const
mitkNewMacro2Param(Self, PixelType, const std::string &)
std::optional< DICOMCodeSequence > GetSegmentedPropertyCategory() const
Gets the segmented property category code.
void SetOpacity(float opacity)
void SetAlgorithmName(const std::string &algoName)
void SetSegmentedPropertyType(const DICOMCodeSequenceWithModifiers &code)
Sets the segmented property type code with optional modifiers.
void SetCenterOfMassCoordinates(const mitk::Point3D ¢er)
mitk::Point3D GetCenterOfMassIndex() const
std::string GetDescription() const
void SetAnatomicRegion(const DICOMCodeSequenceWithModifiers &code, std::size_t index=0)
Sets an anatomic region code at the specified index.
AlgorithmType GetAlgorithmType() const
void SetAlgorithmType(AlgorithmType algoType)
std::string GetAlgorithmTypeStr() const
std::string GetTrackingUID() const
void SetSegmentedPropertyCategory(const DICOMCodeSequence &code)
Sets the segmented property category code.
void SetTrackingUID(const std::string &trackingUID)
void SetName(const std::string &name)
void SetLocked(bool locked)
BaseProperty::ConstPointer GetConstProperty(const std::string &propertyKey, const std::string &contextName="", bool fallBackOnDefaultContext=true) const override
Get property by its key.
PixelType GetValue() const
void UpdateCenterOfMass(const mitk::Point3D &index, const mitk::Point3D &coordinates)
void PrintSelf(std::ostream &os, itk::Indent indent) const override
void SetVisible(bool visible)
std::size_t GetPrimaryAnatomicStructureCount() const
Gets the number of primary anatomic structure codes stored.
Label(const Label &other)
DICOMCodeSequenceWithModifiers GetPrimaryAnatomicStructure(std::size_t index=0) const
Gets a primary anatomic structure code at the specified index.
const mitk::Color & GetColor() const
void SetCenterOfMassIndex(const mitk::Point3D ¢er)
Label(PixelType value, const std::string &name)
std::optional< DICOMCodeSequenceWithModifiers > GetSegmentedPropertyType() const
Gets the segmented property type code with modifiers.
std::string GetTrackingID() const
mitkClassMacro(Label, mitk::PropertyList)
std::size_t GetAnatomicRegionCount() const
Gets the number of anatomic region codes stored.
itk::ModifiedTimeType GetCenterOfMassMTime() const
void SetAlgorithmTypeStr(const std::string &algoType)
void SetProperty(const std::string &propertyKey, BaseProperty *property, const std::string &contextName="", bool fallBackOnDefaultContext=false) override
Add new or change existent property.
static const PixelType MAX_LABEL_VALUE
The maximum value a label can get: Since the value is of type unsigned short MAX_LABEL_VALUE = 65535.
void AddToolUse(AlgorithmType algoType, const std::string &algoName)
Helper function to add the usage of multiple tools correctly to the label. Mixture of types always le...
void RemovePrimaryAnatomicStructure(std::size_t index)
Removes a primary anatomic structure code at the specified index.
void RemoveAnatomicRegion(std::size_t index)
Removes an anatomic region code at the specified index.
void SetDescription(const std::string &description)
void SetColor(const mitk::Color &)
Class that can be used to specify nested or wild carded property keys. E.g. for the use in context of...
Key-value list holding instances of BaseProperty.
mitk::BaseProperty * GetProperty(const std::string &propertyKey) const
Get a property by its name.
MITKMULTILABEL_EXPORT const std::string & GetSchemePropertySubName()
Gets the property key path element for code scheme.
MITKMULTILABEL_EXPORT const std::string & GetPrimaryAnatomicStructurePropertyBaseName()
Gets the property key path element for primary anatomic structure.
MITKMULTILABEL_EXPORT const std::string & GetAnatomicRegionPropertyBaseName()
Gets the property key path element for anatomic region.
MITKMULTILABEL_EXPORT const std::string & GetMeaningPropertySubName()
Gets the property key path element for code meaning.
MITKMULTILABEL_EXPORT const std::string & GetValuePropertySubName()
Gets the property key path element for code value.
MITKMULTILABEL_EXPORT const std::string & GetSegmentedPropertyCategoryPropertyBaseName()
Gets the property key path element for segmented property category.
MITKMULTILABEL_EXPORT const std::string & GetModifierPropertySubName()
Gets the property key path element for modifier.
MITKMULTILABEL_EXPORT const std::string & GetSegmentedPropertyTypePropertyBaseName()
Gets the property key path element for segmented property type.
Find image slices visible on a given plane.
std::vector< Label::ConstPointer > ConstLabelVector
MITKCORE_EXPORT const ScalarType eps
std::vector< Label::Pointer > LabelVector
itk::RGBPixel< float > Color
Color Standard RGB color typedef (float)
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.