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

Method GetPositionalPlot

Modules/ModelFit/src/Common/mitkModelFitPlotDataHelper.cpp:133–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131
132
133const mitk::PlotDataCurveCollection* mitk::ModelFitPlotData::GetPositionalPlot(const mitk::Point3D& point) const
134{
135 auto predicate = [point](const PositionalCollectionMap::value_type& value) {return value.second.first == point; };
136
137 auto iter = std::find_if(std::begin(this->positionalPlots), std::end(this->positionalPlots), predicate);
138 if (iter != positionalPlots.end())
139 {
140 return iter->second.second.GetPointer();
141 }
142 return nullptr;
143};
144
145const mitk::PlotDataCurveCollection* mitk::ModelFitPlotData::GetPositionalPlot(mitk::PointSet::PointIdentifier id) const
146{

Callers

nothing calls this directly

Calls 5

beginFunction · 0.85
endFunction · 0.85
GetPointerMethod · 0.80
endMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected