Medical Imaging Interaction Toolkit
2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
|
Go to the documentation of this file.
13 #ifndef mitkTemporoSpatialStringProperty_h
14 #define mitkTemporoSpatialStringProperty_h
16 #include <itkConfigure.h>
29 #pragma warning(disable : 4522)
44 itkFactorylessNewMacro(
Self);
57 bool allowCloseTime =
false,
58 bool allowCloseSlice =
false)
const;
62 bool HasValue()
const;
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;
71 std::vector<IndexValueType> GetAvailableSlices(
const TimeStepType& timeStep)
const;
73 std::vector<TimeStepType> GetAvailableTimeSteps(
const IndexValueType& slice)
const;
75 std::vector<TimeStepType> GetAvailableTimeSteps()
const;
77 std::vector<IndexValueType> GetAvailableSlices()
const;
83 std::string GetValueAsString()
const override;
88 bool IsUniform()
const;
93 using BaseProperty::operator=;
106 std::pair<bool, ValueType> CheckValue(
const TimeStepType &timeStep,
108 bool allowCloseTime =
false,
109 bool allowCloseSlice =
false)
const;
115 itk::LightObject::Pointer InternalClone()
const override;
117 bool IsEqual(
const BaseProperty &property)
const override;
121 namespace PropertyPersistenceSerialization
127 namespace PropertyPersistenceDeserialization
Abstract base class for properties.
MITKCORE_EXPORT void FromJSON(const nlohmann::json &j, AffineTransform3D::Pointer transform)
Read transform from JSON array (16 elements, resp. 4x4 matrix).
#define mitkNewMacro1Param(classname, type)
std::map< TimeStepType, SliceMapType > TimeMapType
Property for time and space resolved string values.
MITKCORE_EXPORT mitk::BaseProperty::Pointer deserializeJSONToTemporoSpatialStringProperty(const std::string &value)
Find image slices visible on a given plane.
MITKCORE_EXPORT std::string serializeTemporoSpatialStringPropertyToJSON(const mitk::BaseProperty *prop)
::itk::IndexValueType IndexValueType
std::map< IndexValueType, std::string > SliceMapType
itk::SmartPointer< Self > Pointer
TemporoSpatialStringProperty::Pointer MITKCORE_EXPORT ExtractTimeStepFromTemporoSpatialStringProperty(const TemporoSpatialStringProperty *tsProperty, TimeStepType ts)
MITKCORE_EXPORT void ToJSON(nlohmann::json &j, AffineTransform3D::ConstPointer transform)
Write transform (4x4 matrix) as JSON array with 16 elements.
#define mitkClassMacro(className, SuperClassName)