Property for time and space resolved string values.
More...
#include <mitkTemporoSpatialStringProperty.h>
|
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 IndexValueType &slice) const |
|
std::vector< TimeStepType > | GetAvailableTimeSteps () const |
|
std::vector< IndexValueType > | GetAvailableSlices () const |
|
void | SetValue (const TimeStepType &timeStep, const IndexValueType &zSlice, const ValueType &value) |
|
void | SetValue (const ValueType &value) |
|
std::string | GetValueAsString () const override |
|
bool | IsUniform () const |
|
bool | ToJSON (nlohmann::json &j) const override |
| Serialize property value(s) to JSON. More...
|
|
bool | FromJSON (const nlohmann::json &j) override |
| Deserialize property value(s) from JSON. More...
|
|
BaseProperty & | operator= (const BaseProperty &property) |
| Assigns property to this BaseProperty instance. More...
|
|
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...
|
|
Property for time and space resolved string values.
Definition at line 36 of file mitkTemporoSpatialStringProperty.h.
◆ ConstPointer
◆ IndexValueType
◆ Pointer
◆ Self
◆ SliceMapType
◆ Superclass
◆ TimeMapType
◆ ValueType
◆ TemporoSpatialStringProperty() [1/3]
mitk::TemporoSpatialStringProperty::TemporoSpatialStringProperty |
( |
const char * |
string = nullptr | ) |
|
|
protected |
◆ TemporoSpatialStringProperty() [2/3]
mitk::TemporoSpatialStringProperty::TemporoSpatialStringProperty |
( |
const std::string & |
s | ) |
|
|
protected |
◆ TemporoSpatialStringProperty() [3/3]
◆ CheckValue()
std::pair<bool, ValueType> mitk::TemporoSpatialStringProperty::CheckValue |
( |
const TimeStepType & |
timeStep, |
|
|
const IndexValueType & |
zSlice, |
|
|
bool |
allowCloseTime = false , |
|
|
bool |
allowCloseSlice = false |
|
) |
| const |
|
protected |
◆ Clone()
Pointer mitk::TemporoSpatialStringProperty::Clone |
( |
| ) |
const |
◆ FromJSON()
bool mitk::TemporoSpatialStringProperty::FromJSON |
( |
const nlohmann::json & |
j | ) |
|
|
overridevirtual |
Deserialize property value(s) from JSON.
Rely on exceptions for error handling when implementing deserialization.
- Returns
- False if not deserializable by design, true otherwise.
Implements mitk::BaseProperty.
◆ GetAvailableSlices() [1/2]
std::vector<IndexValueType> mitk::TemporoSpatialStringProperty::GetAvailableSlices |
( |
| ) |
const |
return all slices stored in the property.
◆ GetAvailableSlices() [2/2]
return all slices stored for the specified timestep.
◆ GetAvailableTimeSteps() [1/2]
std::vector<TimeStepType> mitk::TemporoSpatialStringProperty::GetAvailableTimeSteps |
( |
| ) |
const |
return all time steps stored in the property.
◆ GetAvailableTimeSteps() [2/2]
return all time steps stored for the specified slice.
◆ GetClassHierarchy()
virtual std::vector<std::string> mitk::TemporoSpatialStringProperty::GetClassHierarchy |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ GetClassName()
virtual const char* mitk::TemporoSpatialStringProperty::GetClassName |
( |
| ) |
const |
|
virtual |
◆ GetStaticNameOfClass()
static const char* mitk::TemporoSpatialStringProperty::GetStaticNameOfClass |
( |
| ) |
|
|
inlinestatic |
◆ GetValue() [1/2]
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.
◆ GetValue() [2/2]
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.
◆ GetValueAsString()
std::string mitk::TemporoSpatialStringProperty::GetValueAsString |
( |
| ) |
const |
|
overridevirtual |
◆ GetValueBySlice()
ValueType mitk::TemporoSpatialStringProperty::GetValueBySlice |
( |
const IndexValueType & |
zSlice, |
|
|
bool |
allowClose = false |
|
) |
| const |
◆ GetValueByTimeStep()
ValueType mitk::TemporoSpatialStringProperty::GetValueByTimeStep |
( |
const TimeStepType & |
timeStep, |
|
|
bool |
allowClose = false |
|
) |
| const |
◆ HasValue() [1/2]
bool mitk::TemporoSpatialStringProperty::HasValue |
( |
| ) |
const |
◆ HasValue() [2/2]
bool mitk::TemporoSpatialStringProperty::HasValue |
( |
const TimeStepType & |
timeStep, |
|
|
const IndexValueType & |
zSlice, |
|
|
bool |
allowCloseTime = false , |
|
|
bool |
allowCloseSlice = false |
|
) |
| const |
◆ HasValueBySlice()
bool mitk::TemporoSpatialStringProperty::HasValueBySlice |
( |
const IndexValueType & |
zSlice, |
|
|
bool |
allowClose = false |
|
) |
| const |
◆ HasValueByTimeStep()
bool mitk::TemporoSpatialStringProperty::HasValueByTimeStep |
( |
const TimeStepType & |
timeStep, |
|
|
bool |
allowClose = false |
|
) |
| const |
◆ IsUniform()
bool mitk::TemporoSpatialStringProperty::IsUniform |
( |
| ) |
const |
Indicates of all values (all time steps, all slices) are the same, or if at least one value stored in the property is different. If IsUniform==true one can i.a. use GetValueAsString() without the loss of information to retrieve the stored value.
◆ New() [1/3]
static Pointer mitk::TemporoSpatialStringProperty::New |
( |
| ) |
|
|
static |
◆ New() [2/3]
static Pointer mitk::TemporoSpatialStringProperty::New |
( |
const char * |
_arg | ) |
|
|
inlinestatic |
◆ New() [3/3]
static Pointer mitk::TemporoSpatialStringProperty::New |
( |
const std::string & |
_arg | ) |
|
|
inlinestatic |
◆ operator=()
Assigns property to this BaseProperty instance.
Subclasses must implement Assign(const BaseProperty&) and call the superclass Assign method for proper handling of polymorphic assignments. The assignment operator of the subclass should be disabled and the baseclass operator should be made visible using "using" statements.
◆ SetValue() [1/2]
◆ SetValue() [2/2]
void mitk::TemporoSpatialStringProperty::SetValue |
( |
const ValueType & |
value | ) |
|
◆ ToJSON()
bool mitk::TemporoSpatialStringProperty::ToJSON |
( |
nlohmann::json & |
j | ) |
const |
|
overridevirtual |
Serialize property value(s) to JSON.
Rely on exceptions for error handling when implementing serialization.
- Returns
- False if not serializable by design, true otherwise.
Implements mitk::BaseProperty.
◆ m_Values
TimeMapType mitk::TemporoSpatialStringProperty::m_Values |
|
protected |
The documentation for this class was generated from the following file: