80 BaseProperty::ConstPointer
GetConstProperty(
const std::string& propertyKey,
const std::string& contextName =
"",
bool fallBackOnDefaultContext =
true)
const override;
88 std::vector<std::string>
GetPropertyKeys(
const std::string& contextName =
"",
bool includeDefaultContext =
false)
const override;
108 void SetProperty(
const std::string& propertyKey,
BaseProperty* property,
const std::string& contextName =
"",
bool fallBackOnDefaultContext =
false)
override;
116 void RemoveProperty(
const std::string& propertyKey,
const std::string& contextName =
"",
bool fallBackOnDefaultContext =
false)
override;
153 PropertyList::Pointer m_DefaultProperties;
158 itkFactorylessNewMacro(Self)
165 size_t GetNumberOfElements() const;
173 const
Element& GetElement(
unsigned int id) const;
182 void SetRequestedRegionToLargestPossibleRegion() override;
183 bool RequestedRegionIsOutsideOfTheBufferedRegion() override;
184 bool VerifyRequestedRegion() override;
185 void SetRequestedRegion(const
itk::DataObject* data) override;
Base of all data objects.
Abstract base class for properties.
Key-value list holding instances of BaseProperty.
Encapsulates a single (possibly time-resolved) ROI.
void SetDefaultProperties(PropertyList *properties)
Point3D GetMin(TimeStepType t=0) const
bool HasTimeStep(TimeStepType t) const
Check if the ROI is defined for a certain time step.
std::vector< std::string > GetPropertyContextNames() const override
Get all property context names (stringified time steps).
void SetProperty(const std::string &propertyKey, BaseProperty *property, TimeStepType t, bool fallBackOnDefaultContext=false)
void SetID(unsigned int id)
void SetProperty(const std::string &propertyKey, BaseProperty *property, const std::string &contextName="", bool fallBackOnDefaultContext=false) override
Set a property.
PropertyList * GetProperties(TimeStepType t=0) const
Get properties for a certain time step or nullptr if absent.
void RemoveProperty(const std::string &propertyKey, TimeStepType t, bool fallBackOnDefaultContext=false)
BaseProperty * GetNonConstProperty(const std::string &propertyKey, TimeStepType t, bool fallBackOnDefaultContext=true)
std::vector< TimeStepType > GetTimeSteps() const
Get all valid time steps that have a minimum point and a maximum point.
std::vector< std::string > GetPropertyKeys(TimeStepType t, bool includeDefaultContext=false) const
std::map< TimeStepType, Point3D > PointsType
void SetProperties(PropertyList *properties, TimeStepType t=0)
void SetMin(const Point3D &min, TimeStepType t=0)
void SetMax(const Point3D &max, TimeStepType t=0)
std::vector< std::string > GetPropertyKeys(const std::string &contextName="", bool includeDefaultContext=false) const override
Get all property keys.
PropertyList * GetDefaultProperties() const
BaseProperty * GetNonConstProperty(const std::string &propertyKey, const std::string &contextName="", bool fallBackOnDefaultContext=true) override
Get a property.
bool HasTimeSteps() const
Check if the ROI can be considered time-resolved.
BaseProperty::ConstPointer GetConstProperty(const std::string &propertyKey, const std::string &contextName="", bool fallBackOnDefaultContext=true) const override
Get a const property.
Point3D GetMax(TimeStepType t=0) const
void RemoveProperty(const std::string &propertyKey, const std::string &contextName="", bool fallBackOnDefaultContext=false) override
Remove a property.
BaseProperty::ConstPointer GetConstProperty(const std::string &propertyKey, TimeStepType t, bool fallBackOnDefaultContext=true) const
std::map< TimeStepType, PropertyList::Pointer > PropertyListsType
unsigned int GetID() const
A collection of region of interests (ROIs).
std::map< unsigned int, Element > ElementsType
mitkClassMacro(ROI, BaseData) static Pointer New()
ElementsType::const_iterator ConstIterator
ElementsType::iterator Iterator
#define mitkCloneMacro(classname)
Find image slices visible on a given plane.
void to_json(nlohmann::json &j, const GenericLookupTable< T > &t)
void from_json(const nlohmann::json &, GenericLookupTable< T > &)