13 #ifndef MITKTEMPOROSPATIALSTRINGPROPERTY_H_HEADER 14 #define MITKTEMPOROSPATIALSTRINGPROPERTY_H_HEADER 16 #include <itkConfigure.h> 29 #pragma warning(disable : 4522) 44 itkFactorylessNewMacro(
Self);
52 ValueType GetValue()
const;
56 const IndexValueType &zSlice,
57 bool allowCloseTime =
false,
58 bool allowCloseSlice =
false)
const;
59 ValueType GetValueBySlice(
const IndexValueType &zSlice,
bool allowClose =
false)
const;
60 ValueType GetValueByTimeStep(
const TimeStepType &timeStep,
bool allowClose =
false)
const;
62 bool HasValue()
const;
64 const IndexValueType &zSlice,
65 bool allowCloseTime =
false,
66 bool allowCloseSlice =
false)
const;
67 bool HasValueBySlice(
const IndexValueType &zSlice,
bool allowClose =
false)
const;
68 bool HasValueByTimeStep(
const TimeStepType &timeStep,
bool allowClose =
false)
const;
70 std::vector<IndexValueType> GetAvailableSlices(
const TimeStepType &timeStep)
const;
71 std::vector<TimeStepType> GetAvailableTimeSteps()
const;
73 void SetValue(
const TimeStepType &timeStep,
const IndexValueType &zSlice,
const ValueType &value);
75 void SetValue(
const ValueType &value);
77 std::string GetValueAsString()
const override;
79 using BaseProperty::operator=;
92 std::pair<bool, ValueType> CheckValue(
const TimeStepType &timeStep,
93 const IndexValueType &zSlice,
94 bool allowCloseTime =
false,
95 bool allowCloseSlice =
false)
const;
101 itk::LightObject::Pointer InternalClone()
const override;
103 bool IsEqual(
const BaseProperty &property)
const override;
107 namespace PropertyPersistenceSerialization
113 namespace PropertyPersistenceDeserialization
MITKCORE_EXPORT::std::string serializeTemporoSpatialStringPropertyToJSON(const mitk::BaseProperty *prop)
#define mitkNewMacro1Param(classname, type)
DataCollection - Class to facilitate loading/accessing structured data.
Abstract base class for properties.
std::map< TimeStepType, SliceMapType > TimeMapType
#define mitkClassMacro(className, SuperClassName)
std::vcl_size_t TimeStepType
std::map< IndexValueType, std::string > SliceMapType
MITKCORE_EXPORT mitk::BaseProperty::Pointer deserializeJSONToTemporoSpatialStringProperty(const std::string &value)
::itk::IndexValueType IndexValueType
Property for time and space resolved string values.