13 #ifndef mitkIOVolumeSplitReason_h
14 #define mitkIOVolumeSplitReason_h
17 #include <nlohmann/json.hpp>
29 using Pointer = std::shared_ptr<IOVolumeSplitReason>;
40 SliceDistanceInconsistency,
79 template<
typename BasicJsonType>
82 static_assert(std::is_enum<IOVolumeSplitReason::ReasonType>::value,
83 "IOVolumeSplitReason::ReasonType"
88 template<
typename BasicJsonType>
91 static_assert(std::is_enum<IOVolumeSplitReason::ReasonType>::value,
92 "IOVolumeSplitReason::ReasonType"
std::shared_ptr< IOVolumeSplitReason > Pointer
Pointer ExtendReason(ConstPointer otherReason) const
std::string GetReasonDetails(ReasonType type) const
static std::string TypeToString(ReasonType reasonType)
bool HasReason(ReasonType type) const
static IOVolumeSplitReason::ReasonType StringToType(const std::string &reasonStr)
ReasonMapType m_ReasonMap
std::map< ReasonType, std::string > ReasonMapType
void RemoveReason(ReasonType type)
static Pointer FromJSON(const nlohmann::json &j)
void AddReason(ReasonType type, const std::string &detail="")
static nlohmann::json ToJSON(ConstPointer)
std::shared_ptr< const IOVolumeSplitReason > ConstPointer
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 > &)