Exemple #1
0
bool CurveFile::GetIDs(SC_StringArray& currIDs) const
{
  currIDs.SetEmpty();
  if (currentCurveData != 0)
    currentCurveData->GetIDs(currIDs);
  return ! currIDs.IsEmpty();
}
Exemple #2
0
bool LayerStaticSupport::GetWellBoreZoneIDs(SC_StringArray& ids)
{
  ids.SetStringLen(IntervalBase::intervalIDLen);
  ids.Alloc(wellBoreZones.Size());
  for (int i = 0; i < wellBoreZones.Size(); i++)
    ids += wellBoreZones[i].intervalID;
  return !ids.IsEmpty();
}
Exemple #3
0
bool LayerStaticSupport::GetGeoLayerIDs(SC_StringArray& ids)
{
  ids.SetStringLen(IntervalBase::intervalIDLen);
  ids.Alloc(geologyLayers.Size());
  for (int i = 0; i < geologyLayers.Size(); i++)
    ids += geologyLayers[i].intervalID;
  return !ids.IsEmpty();
}
void DPO_SelectLabelArrayPS::SetIndexList()
{
    SC_StringArray dataIDs;
    if (labDataArrayObjRefUI.CheckDataObj())
    {
        dataIDs = static_cast<DO_LabelArray*>(labDataArrayObjRefUI.GetDataObj())->dataLabels;
    }

    listDataOK = !dataIDs.IsEmpty();
    if (listDataOK)
    {
        indexMSUI.indexListUI.SetListText(dataIDs);
    }
    else
    {
        indexMSUI.indexListUI.SetListNA();
    }
    SetAllSensitive();

}
Exemple #5
0
void DPO_SelectOptPS::SetIndexList()
{
    SC_StringArray dataIDs;
    if (optSimResultsObjRefUI.CheckDataObj())
    {
        dataDC = static_cast<DO_OptSimResults*>(optSimResultsObjRefUI.GetDataObj())->optResults;
        dataDC->GetMenuStrings(dataIDs, showFitComponents, showOKonly);
    }

    listDataOK = !dataIDs.IsEmpty();
    if (listDataOK)
    {
        indexMSUI.indexListUI.SetListText(dataIDs);
    }
    else
    {
        indexMSUI.indexListUI.SetListNA();
    }
    SetAllSensitive();
}
Exemple #6
0
void DPO_SelectCurvePS::SetIndexList()
{
    SC_StringArray dataIDs;
    if (curveArrayObjRefUI.CheckDataObj())
    {
        DO_CurveArray* dataDO = static_cast<DO_CurveArray*>(curveArrayObjRefUI.GetDataObj());
        dataDO->curveArray->GetIDs(dataIDs);
    }

    listDataOK = !dataIDs.IsEmpty();
    if (listDataOK)
    {
        indexMSUI.indexListUI.SetListText(dataIDs);
    }
    else
    {
        indexMSUI.indexListUI.SetListNA();
    }

    SetAllSensitive();

}