-// Copyright (C) 2014-2017 CEA/DEN, EDF R&D
+// Copyright (C) 2014-2019 CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
-// See http://www.salome-platform.org/ or
-// email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
#include <ExchangePlugin_ImportFeature.h>
// complex conversion of element index to reference id
int anElementID = aXaoGroup->get(anElementIndex);
std::string aReferenceString =
- aXaoGeometry->getElementReference(aXaoGroup->getDimension(), anElementID);
+ aXaoGeometry->getElementReference(aXaoGroup->getDimension(), anElementID);
int aReferenceID = XAO::XaoUtils::stringToInt(aReferenceString);
aSelectionList->value(anElementIndex)->setId(aReferenceID);
ModelAPI_EventCreator::get()->sendReordered(
std::dynamic_pointer_cast<ModelAPI_Feature>(aRefListOfGroups->owner()));
+// LCOV_EXCL_START
} catch (XAO::XAO_Exception& e) {
std::string anError = e.what();
setError("An error occurred while importing " + theFileName + ": " + anError);
return;
}
+// LCOV_EXCL_STOP
}
//============================================================================
return aNew;
}
+// LCOV_EXCL_START
void ExchangePlugin_ImportFeature::removeFeature(
std::shared_ptr<ModelAPI_Feature> theFeature)
{
AttributeRefListPtr aList = reflist(FEATURES_ID());
aList->remove(theFeature);
}
+// LCOV_EXCL_STOP
int ExchangePlugin_ImportFeature::numberOfSubs(bool forTree) const
{
return aRes;
}
+// LCOV_EXCL_START
int ExchangePlugin_ImportFeature::subFeatureId(const int theIndex) const
{
std::shared_ptr<ModelAPI_AttributeRefList> aRefList = std::dynamic_pointer_cast<
}
return aResultIndex;
}
+// LCOV_EXCL_STOP
bool ExchangePlugin_ImportFeature::isSub(ObjectPtr theObject) const
{