//! \param theFeature a removed feature
void removeFeature(FeaturePtr theFeature);
+ //! Moves the feature to make it after the given one in the history.
+ void moveFeature(FeaturePtr theMoved, FeaturePtr theAfterThis);
+
//! Returns the existing feature by the label
//! \param theLabel base label of the feature
FeaturePtr feature(TDF_Label theLabel) const;
/// Creates a part results
std::shared_ptr<ModelAPI_ResultPart> createPart(
const std::shared_ptr<ModelAPI_Data>& theFeatureData, const int theIndex = 0);
+ /// Copies a part results, keeping the same data
+ std::shared_ptr<ModelAPI_ResultPart> copyPart(
+ const std::shared_ptr<ModelAPI_Result>& theOldPart,
+ const std::shared_ptr<ModelAPI_ResultPart>& theOrigin, const int theIndex = 0);
/// Creates a group results
std::shared_ptr<ModelAPI_ResultGroup> createGroup(
const std::shared_ptr<ModelAPI_Data>& theFeatureData, const int theIndex = 0);