Medical Imaging Interaction Toolkit
2024.06.00
Medical Imaging Interaction Toolkit
|
Encapsulates a single (possibly time-resolved) ROI. More...
#include <mitkROI.h>
Public Types | |
using | PointsType = std::map< TimeStepType, Point3D > |
using | PropertyListsType = std::map< TimeStepType, PropertyList::Pointer > |
Public Member Functions | |
Element () | |
Element (unsigned int id) | |
~Element ()=default | |
BaseProperty::ConstPointer | GetConstProperty (const std::string &propertyKey, const std::string &contextName="", bool fallBackOnDefaultContext=true) const override |
Get a const property. More... | |
BaseProperty::ConstPointer | GetConstProperty (const std::string &propertyKey, TimeStepType t, bool fallBackOnDefaultContext=true) const |
std::vector< std::string > | GetPropertyKeys (const std::string &contextName="", bool includeDefaultContext=false) const override |
Get all property keys. More... | |
std::vector< std::string > | GetPropertyKeys (TimeStepType t, bool includeDefaultContext=false) const |
std::vector< std::string > | GetPropertyContextNames () const override |
Get all property context names (stringified time steps). More... | |
BaseProperty * | GetNonConstProperty (const std::string &propertyKey, const std::string &contextName="", bool fallBackOnDefaultContext=true) override |
Get a property. More... | |
BaseProperty * | GetNonConstProperty (const std::string &propertyKey, TimeStepType t, bool fallBackOnDefaultContext=true) |
void | SetProperty (const std::string &propertyKey, BaseProperty *property, const std::string &contextName="", bool fallBackOnDefaultContext=false) override |
Set a property. More... | |
void | SetProperty (const std::string &propertyKey, BaseProperty *property, TimeStepType t, bool fallBackOnDefaultContext=false) |
void | RemoveProperty (const std::string &propertyKey, const std::string &contextName="", bool fallBackOnDefaultContext=false) override |
Remove a property. More... | |
void | RemoveProperty (const std::string &propertyKey, TimeStepType t, bool fallBackOnDefaultContext=false) |
unsigned int | GetID () const |
void | SetID (unsigned int id) |
bool | HasTimeStep (TimeStepType t) const |
Check if the ROI is defined for a certain time step. More... | |
bool | HasTimeSteps () const |
Check if the ROI can be considered time-resolved. More... | |
std::vector< TimeStepType > | GetTimeSteps () const |
Get all valid time steps that have a minimum point and a maximum point. More... | |
Point3D | GetMin (TimeStepType t=0) const |
void | SetMin (const Point3D &min, TimeStepType t=0) |
Point3D | GetMax (TimeStepType t=0) const |
void | SetMax (const Point3D &max, TimeStepType t=0) |
PropertyList * | GetDefaultProperties () const |
void | SetDefaultProperties (PropertyList *properties) |
PropertyList * | GetProperties (TimeStepType t=0) const |
Get properties for a certain time step or nullptr if absent. More... | |
void | SetProperties (PropertyList *properties, TimeStepType t=0) |
Public Member Functions inherited from mitk::IPropertyOwner | |
~IPropertyOwner () override | |
Public Member Functions inherited from mitk::IPropertyProvider | |
virtual | ~IPropertyProvider () |
Encapsulates a single (possibly time-resolved) ROI.
using mitk::ROI::Element::PointsType = std::map<TimeStepType, Point3D> |
using mitk::ROI::Element::PropertyListsType = std::map<TimeStepType, PropertyList::Pointer> |
mitk::ROI::Element::Element | ( | ) |
|
explicit |
|
default |
|
overridevirtual |
Get a const property.
std::to_string()
to convert a time step to a context name. An empty context name addresses the default properties. Implements mitk::IPropertyProvider.
Referenced by mitk::ROIMapperHelper::GetConstProperty().
BaseProperty::ConstPointer mitk::ROI::Element::GetConstProperty | ( | const std::string & | propertyKey, |
TimeStepType | t, | ||
bool | fallBackOnDefaultContext = true |
||
) | const |
PropertyList* mitk::ROI::Element::GetDefaultProperties | ( | ) | const |
unsigned int mitk::ROI::Element::GetID | ( | ) | const |
Point3D mitk::ROI::Element::GetMax | ( | TimeStepType | t = 0 | ) | const |
Point3D mitk::ROI::Element::GetMin | ( | TimeStepType | t = 0 | ) | const |
|
overridevirtual |
Get a property.
std::to_string()
to convert a time step to a context name. An empty context name addresses the default properties. Implements mitk::IPropertyOwner.
BaseProperty* mitk::ROI::Element::GetNonConstProperty | ( | const std::string & | propertyKey, |
TimeStepType | t, | ||
bool | fallBackOnDefaultContext = true |
||
) |
PropertyList* mitk::ROI::Element::GetProperties | ( | TimeStepType | t = 0 | ) | const |
Get properties for a certain time step or nullptr
if absent.
|
overridevirtual |
Get all property context names (stringified time steps).
Implements mitk::IPropertyProvider.
|
overridevirtual |
Get all property keys.
std::to_string()
to convert a time step to a context name. An empty context name addresses the default properties. Implements mitk::IPropertyProvider.
std::vector<std::string> mitk::ROI::Element::GetPropertyKeys | ( | TimeStepType | t, |
bool | includeDefaultContext = false |
||
) | const |
std::vector<TimeStepType> mitk::ROI::Element::GetTimeSteps | ( | ) | const |
Get all valid time steps that have a minimum point and a maximum point.
bool mitk::ROI::Element::HasTimeStep | ( | TimeStepType | t | ) | const |
Check if the ROI is defined for a certain time step.
bool mitk::ROI::Element::HasTimeSteps | ( | ) | const |
Check if the ROI can be considered time-resolved.
|
overridevirtual |
Remove a property.
std::to_string()
to convert a time step to a context name. An empty context name addresses the default properties. Implements mitk::IPropertyOwner.
void mitk::ROI::Element::RemoveProperty | ( | const std::string & | propertyKey, |
TimeStepType | t, | ||
bool | fallBackOnDefaultContext = false |
||
) |
void mitk::ROI::Element::SetDefaultProperties | ( | PropertyList * | properties | ) |
void mitk::ROI::Element::SetID | ( | unsigned int | id | ) |
void mitk::ROI::Element::SetMax | ( | const Point3D & | max, |
TimeStepType | t = 0 |
||
) |
void mitk::ROI::Element::SetMin | ( | const Point3D & | min, |
TimeStepType | t = 0 |
||
) |
void mitk::ROI::Element::SetProperties | ( | PropertyList * | properties, |
TimeStepType | t = 0 |
||
) |
|
overridevirtual |
Set a property.
std::to_string()
to convert a time step to a context name. An empty context name addresses the default properties. Implements mitk::IPropertyOwner.
void mitk::ROI::Element::SetProperty | ( | const std::string & | propertyKey, |
BaseProperty * | property, | ||
TimeStepType | t, | ||
bool | fallBackOnDefaultContext = false |
||
) |