MCPcopy Create free account
hub / github.com/MITK/MITK / GetValueAsString

Method GetValueAsString

Modules/RT/src/mitkIsoDoseLevelSetProperty.cpp:81–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81std::string mitk::IsoDoseLevelSetProperty::GetValueAsString() const
82{
83 std::stringstream myStr;
84
85 myStr << "IsoDoseLevels: ";
86
87 if (m_IsoLevelSet.IsNotNull())
88 {
89 myStr << m_IsoLevelSet->Size() << std::endl;
90
91 for (IsoDoseLevelSet::ConstIterator pos = m_IsoLevelSet->Begin(); pos != m_IsoLevelSet->End(); ++pos)
92 {
93 myStr << " " << 100*(pos->GetDoseValue()) << "% : ("<<pos->GetColor()<< "); iso line: " << pos->GetVisibleIsoLine() << "; color wash: "<<pos->GetVisibleColorWash() << std::endl;
94 }
95 }
96 return myStr.str();
97}
98
99bool mitk::IsoDoseLevelSetProperty::ToJSON(nlohmann::json&) const
100{

Callers 15

GetPropertyAsStringMethod · 0.45
LoadDicomMethod · 0.45
ComparePlanarFiguresMethod · 0.45
ensureModelFitUIDFunction · 0.45
ConnectMethod · 0.45
DisconnectMethod · 0.45

Calls 5

IsNotNullMethod · 0.80
SizeMethod · 0.45
BeginMethod · 0.45
EndMethod · 0.45
GetColorMethod · 0.45

Tested by 15

ComparePlanarFiguresMethod · 0.36
ensureModelFitUIDFunction · 0.36
ConnectMethod · 0.36
DisconnectMethod · 0.36
ReadStringPropFunction · 0.36
ReadStringPropFunction · 0.36
ReadStringPropMethod · 0.36