Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
Property for time and space resolved string values. More...
#include <mitkTemporoSpatialStringProperty.h>
Public Types | |
typedef ::itk::IndexValueType | IndexValueType |
typedef std::string | ValueType |
typedef TemporoSpatialStringProperty | Self |
typedef BaseProperty | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer< const Self > | ConstPointer |
![]() | |
typedef BaseProperty | Self |
typedef itk::Object | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer< const Self > | ConstPointer |
Public Member Functions | |
virtual std::vector< std::string > | GetClassHierarchy () const override |
virtual const char * | GetClassName () const |
Pointer | Clone () const |
ValueType | GetValue () const |
ValueType | GetValue (const TimeStepType &timeStep, const IndexValueType &zSlice, bool allowCloseTime=false, bool allowCloseSlice=false) const |
ValueType | GetValueBySlice (const IndexValueType &zSlice, bool allowClose=false) const |
ValueType | GetValueByTimeStep (const TimeStepType &timeStep, bool allowClose=false) const |
bool | HasValue () const |
bool | HasValue (const TimeStepType &timeStep, const IndexValueType &zSlice, bool allowCloseTime=false, bool allowCloseSlice=false) const |
bool | HasValueBySlice (const IndexValueType &zSlice, bool allowClose=false) const |
bool | HasValueByTimeStep (const TimeStepType &timeStep, bool allowClose=false) const |
std::vector< IndexValueType > | GetAvailableSlices (const TimeStepType &timeStep) const |
std::vector< TimeStepType > | GetAvailableTimeSteps () const |
void | SetValue (const TimeStepType &timeStep, const IndexValueType &zSlice, const ValueType &value) |
void | SetValue (const ValueType &value) |
std::string | GetValueAsString () const override |
![]() | |
Pointer | Clone () const |
bool | operator== (const BaseProperty &property) const |
Subclasses must implement IsEqual(const BaseProperty&) to support comparison. More... | |
BaseProperty & | operator= (const BaseProperty &property) |
Assigns property to this BaseProperty instance. More... | |
bool | AssignProperty (const BaseProperty &property) |
Assigns property to this BaseProperty instance. More... | |
Static Public Member Functions | |
static const char * | GetStaticNameOfClass () |
static Pointer | New () |
static Pointer | New (const char *_arg) |
static Pointer | New (const std::string &_arg) |
![]() | |
static const char * | GetStaticNameOfClass () |
Protected Types | |
typedef std::map< IndexValueType, std::string > | SliceMapType |
typedef std::map< TimeStepType, SliceMapType > | TimeMapType |
Protected Member Functions | |
TemporoSpatialStringProperty (const char *string=nullptr) | |
TemporoSpatialStringProperty (const std::string &s) | |
TemporoSpatialStringProperty (const TemporoSpatialStringProperty &) | |
std::pair< bool, ValueType > | CheckValue (const TimeStepType &timeStep, const IndexValueType &zSlice, bool allowCloseTime=false, bool allowCloseSlice=false) const |
![]() | |
BaseProperty () | |
BaseProperty (const BaseProperty &other) | |
~BaseProperty () override | |
Protected Attributes | |
TimeMapType | m_Values |
Additional Inherited Members | |
![]() | |
static const std::string | VALUE_CANNOT_BE_CONVERTED_TO_STRING |
Default return value if a property which can not be returned as string. More... | |
Property for time and space resolved string values.
Definition at line 36 of file mitkTemporoSpatialStringProperty.h.
Definition at line 42 of file mitkTemporoSpatialStringProperty.h.
typedef ::itk::IndexValueType mitk::TemporoSpatialStringProperty::IndexValueType |
Definition at line 39 of file mitkTemporoSpatialStringProperty.h.
Definition at line 42 of file mitkTemporoSpatialStringProperty.h.
Definition at line 42 of file mitkTemporoSpatialStringProperty.h.
|
protected |
Definition at line 82 of file mitkTemporoSpatialStringProperty.h.
Definition at line 42 of file mitkTemporoSpatialStringProperty.h.
|
protected |
Definition at line 83 of file mitkTemporoSpatialStringProperty.h.
typedef std::string mitk::TemporoSpatialStringProperty::ValueType |
Definition at line 40 of file mitkTemporoSpatialStringProperty.h.
|
protected |
Definition at line 28 of file mitkTemporoSpatialStringProperty.cpp.
References m_Values.
|
protected |
Definition at line 38 of file mitkTemporoSpatialStringProperty.cpp.
References m_Values.
|
protected |
Definition at line 45 of file mitkTemporoSpatialStringProperty.cpp.
References m_Values.
|
protected |
Definition at line 87 of file mitkTemporoSpatialStringProperty.cpp.
References m_Values.
Referenced by GetValue(), and HasValue().
Pointer mitk::TemporoSpatialStringProperty::Clone | ( | ) | const |
std::vector< mitk::TemporoSpatialStringProperty::IndexValueType > mitk::TemporoSpatialStringProperty::GetAvailableSlices | ( | const TimeStepType & | timeStep | ) | const |
Definition at line 172 of file mitkTemporoSpatialStringProperty.cpp.
References m_Values.
std::vector< mitk::TimeStepType > mitk::TemporoSpatialStringProperty::GetAvailableTimeSteps | ( | ) | const |
Definition at line 191 of file mitkTemporoSpatialStringProperty.cpp.
References m_Values.
|
inlineoverridevirtual |
Reimplemented from mitk::BaseProperty.
Definition at line 42 of file mitkTemporoSpatialStringProperty.h.
|
virtual |
Reimplemented from mitk::BaseProperty.
|
inlinestatic |
Definition at line 42 of file mitkTemporoSpatialStringProperty.h.
mitk::TemporoSpatialStringProperty::ValueType mitk::TemporoSpatialStringProperty::GetValue | ( | ) | const |
Returns the value of the first time point in the first slice. If now value is set it returns an empty string.
Definition at line 73 of file mitkTemporoSpatialStringProperty.cpp.
References m_Values.
Referenced by GetValueAsString(), GetValueBySlice(), GetValueByTimeStep(), mitk::CustomTagParser::ParseDicomProperty(), and mitk::DICOMSegmentationIO::Read().
mitk::TemporoSpatialStringProperty::ValueType mitk::TemporoSpatialStringProperty::GetValue | ( | const TimeStepType & | timeStep, |
const IndexValueType & | zSlice, | ||
bool | allowCloseTime = false , |
||
bool | allowCloseSlice = false |
||
) | const |
Returns the value of the passed time step and slice. If it does not exist and allowedClosed is true it will look for the closest value. If nothing could be found an empty string will be returned.
Definition at line 129 of file mitkTemporoSpatialStringProperty.cpp.
References CheckValue().
|
overridevirtual |
Reimplemented from mitk::BaseProperty.
Definition at line 61 of file mitkTemporoSpatialStringProperty.cpp.
References GetValue().
Referenced by mitk::DICOMSegmentationIO::Read().
mitk::TemporoSpatialStringProperty::ValueType mitk::TemporoSpatialStringProperty::GetValueBySlice | ( | const IndexValueType & | zSlice, |
bool | allowClose = false |
||
) | const |
Definition at line 137 of file mitkTemporoSpatialStringProperty.cpp.
References GetValue().
mitk::TemporoSpatialStringProperty::ValueType mitk::TemporoSpatialStringProperty::GetValueByTimeStep | ( | const TimeStepType & | timeStep, |
bool | allowClose = false |
||
) | const |
Definition at line 143 of file mitkTemporoSpatialStringProperty.cpp.
References GetValue().
bool mitk::TemporoSpatialStringProperty::HasValue | ( | ) | const |
Definition at line 149 of file mitkTemporoSpatialStringProperty.cpp.
References m_Values.
Referenced by HasValueBySlice(), and HasValueByTimeStep().
bool mitk::TemporoSpatialStringProperty::HasValue | ( | const TimeStepType & | timeStep, |
const IndexValueType & | zSlice, | ||
bool | allowCloseTime = false , |
||
bool | allowCloseSlice = false |
||
) | const |
Definition at line 154 of file mitkTemporoSpatialStringProperty.cpp.
References CheckValue().
bool mitk::TemporoSpatialStringProperty::HasValueBySlice | ( | const IndexValueType & | zSlice, |
bool | allowClose = false |
||
) | const |
Definition at line 162 of file mitkTemporoSpatialStringProperty.cpp.
References HasValue().
bool mitk::TemporoSpatialStringProperty::HasValueByTimeStep | ( | const TimeStepType & | timeStep, |
bool | allowClose = false |
||
) | const |
Definition at line 167 of file mitkTemporoSpatialStringProperty.cpp.
References HasValue().
|
static |
Referenced by mitk::SourceImageRelationRule::CreateNewSourceImageSequenceItem(), mitk::DICOMPMPropertyHelper::DeriveDICOMPMProperties(), mitk::DICOMSegmentationPropertyHelper::DeriveDICOMSegmentationProperties(), mitk::DICOMQIPropertyHelper::DeriveDICOMSourceProperties(), mitk::PropertyPersistenceDeserialization::deserializeJSONToTemporoSpatialStringProperty(), mitk::GetDICOMPropertyForDICOMValuesFunctor(), mitk::DICOMSegmentationIO::Read(), mitk::DICOMSegmentationPropertyHelper::SetDICOMSegmentProperties(), and mitk::SetProperties().
|
inlinestatic |
Definition at line 47 of file mitkTemporoSpatialStringProperty.h.
|
inlinestatic |
Definition at line 48 of file mitkTemporoSpatialStringProperty.h.
void mitk::TemporoSpatialStringProperty::SetValue | ( | const TimeStepType & | timeStep, |
const IndexValueType & | zSlice, | ||
const ValueType & | value | ||
) |
Definition at line 203 of file mitkTemporoSpatialStringProperty.cpp.
References m_Values.
Referenced by SetValue().
void mitk::TemporoSpatialStringProperty::SetValue | ( | const ValueType & | value | ) |
Definition at line 222 of file mitkTemporoSpatialStringProperty.cpp.
References m_Values, and SetValue().
|
protected |
Definition at line 85 of file mitkTemporoSpatialStringProperty.h.
Referenced by CheckValue(), GetAvailableSlices(), GetAvailableTimeSteps(), GetValue(), HasValue(), SetValue(), and TemporoSpatialStringProperty().