-// Copyright (C) 2014-2019 CEA/DEN, EDF R&D
+// Copyright (C) 2014-2020 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
#define FeaturesPlugin_Tools_H_
#include <GeomAlgoAPI_MakeShape.h>
+#include <GeomAPI_ShapeHierarchy.h>
#include <ModelAPI_ResultBody.h>
#include <vector>
const bool theShareTopology,
ListOfShape& theShapesList,
std::string& theError);
+
+ /// Collect shapes from the attribute and fill the hierarchy or a list of parts
+ static bool shapesFromSelectionList(
+ const std::shared_ptr<ModelAPI_AttributeSelectionList> theSelectionList,
+ const bool theStoreFullHierarchy,
+ GeomAPI_ShapeHierarchy& theHierarchy,
+ std::list<ResultPtr>& theParts);
};
#endif /* FeaturesPlugin_Tools_H_ */