#include <DCModelInfo.h>
Classes | |
| struct | Curve |
Public Member Functions | |
| DCModelInfo () | |
| int | indexInReport () const |
| double | misfit () const |
| int | offset (int curveIndex) const |
| ReportReader * | report () const |
| int | sampleCount (int curveIndex) const |
| void | setCurveCount (int n) |
| void | setIndexInReport (int i) |
| void | setMisfit (double m) |
| void | setOffset (int curveIndex, int offset) |
| void | setReport (ReportReader *r) |
| void | setSampleCount (int curveIndex, int nSamples) |
| ~DCModelInfo () | |
Static Public Member Functions | |
| static bool | loadLessThan (const DCModelInfo *i1, const DCModelInfo *i2) |
| static bool | misfitLessThan (const DCModelInfo *i1, const DCModelInfo *i2) |
| DinverDCCore::DCModelInfo::DCModelInfo | ( | ) | [inline] |
{_report=0;_samples=0;}
| DinverDCCore::DCModelInfo::~DCModelInfo | ( | ) | [inline] |
{
ReportReader::removeReference(_report);
delete [] _samples;
}
| int DinverDCCore::DCModelInfo::indexInReport | ( | ) | const [inline] |
Referenced by DinverDCGui::GroundModelViewer::exportModels(), DinverDCGui::DCModelViewer::loadModels(), main(), DinverDCGui::GroundModelViewer::minMaxProfiles(), DinverDCGui::DCModelViewer::rejectModels(), reportMode(), DinverDCGui::GroundModelViewer::saveAsReport(), and DinverDCGui::DCModelViewer::selectModels().
{return _indexInReport;}
| static bool DinverDCCore::DCModelInfo::loadLessThan | ( | const DCModelInfo * | i1, |
| const DCModelInfo * | i2 | ||
| ) | [inline, static] |
{
if(i1->_report < i2->_report) return true;
else if(i1->_report > i2->_report) return false;
else {
if(i1->_indexInReport < i2->_indexInReport) return true;
else return false;
}
}
| double DinverDCCore::DCModelInfo::misfit | ( | ) | const [inline] |
Referenced by main(), and reportMode().
{return _misfit;}
| static bool DinverDCCore::DCModelInfo::misfitLessThan | ( | const DCModelInfo * | i1, |
| const DCModelInfo * | i2 | ||
| ) | [inline, static] |
{
/* When dealing with minimum misfit reports, there are a lot of models
with the same misfit. Hence this is condition does not ensure a unique
order of a list of models. The model index is added to have a unique order. */
if(i1->_misfit>i2->_misfit) return true;
else if (i1->_misfit<i2->_misfit) return false;
else {
if(i1->_indexInReport<i2->_indexInReport) return true;
else return false;
}
}
| int DinverDCCore::DCModelInfo::offset | ( | int | curveIndex | ) | const [inline] |
Referenced by DinverDCGui::RefractionViewer::report2plot(), DinverDCGui::EllipticityViewer::report2plot(), DinverDCGui::MagnetoTelluricViewer::report2plot(), DinverDCGui::DispersionViewer::report2plot(), DinverDCGui::GroundModelViewer::report2plot(), and DinverDCGui::AutocorrViewer::report2plot().
{return _samples[ curveIndex ].offset;}
| ReportReader* DinverDCCore::DCModelInfo::report | ( | ) | const [inline] |
Referenced by DinverDCGui::GroundModelViewer::exportModels(), DinverDCGui::DCModelViewer::loadModels(), main(), DinverDCGui::GroundModelViewer::minMaxProfiles(), DinverDCGui::DCModelViewer::rejectModels(), reportMode(), DinverDCGui::GroundModelViewer::saveAsReport(), and DinverDCGui::DCModelViewer::selectModels().
{return _report;}
| int DinverDCCore::DCModelInfo::sampleCount | ( | int | curveIndex | ) | const [inline] |
Referenced by DinverDCGui::DCModelViewer::loadModels().
{return _samples[ curveIndex ].nSamples;}
| void DinverDCCore::DCModelInfo::setCurveCount | ( | int | n | ) | [inline] |
Referenced by DinverDCGui::DCModelViewer::rejectModels(), and DinverDCGui::DCModelViewer::selectModels().
{delete [] _samples; if(n>0) _samples=new Curve[n]; else _samples=0;}
| void DinverDCCore::DCModelInfo::setIndexInReport | ( | int | i | ) | [inline] |
Referenced by main(), reportMode(), and DinverDCGui::DCModelViewer::selectModels().
{_indexInReport=i;}
| void DinverDCCore::DCModelInfo::setMisfit | ( | double | m | ) | [inline] |
Referenced by main(), reportMode(), and DinverDCGui::DCModelViewer::selectModels().
{_misfit=m;}
| void DinverDCCore::DCModelInfo::setOffset | ( | int | curveIndex, |
| int | offset | ||
| ) | [inline] |
Referenced by DinverDCGui::DCModelViewer::loadModels().
{_samples[ curveIndex ].offset=offset;}
| void DinverDCCore::DCModelInfo::setReport | ( | ReportReader * | r | ) | [inline] |
References QGpCoreTools::SharedObject::addReference().
Referenced by main(), reportMode(), and DinverDCGui::DCModelViewer::selectModels().
{_report=r;_report->addReference();}
| void DinverDCCore::DCModelInfo::setSampleCount | ( | int | curveIndex, |
| int | nSamples | ||
| ) | [inline] |
Referenced by DinverDCGui::RefractionViewer::setSampleCount(), DinverDCGui::EllipticityViewer::setSampleCount(), DinverDCGui::MagnetoTelluricViewer::setSampleCount(), DinverDCGui::DispersionViewer::setSampleCount(), DinverDCGui::GroundModelViewer::setSampleCount(), and DinverDCGui::AutocorrViewer::setSampleCount().
{_samples[ curveIndex ].nSamples=nSamples;}