X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FFeaturesAPI%2FFeaturesAPI_Symmetry.h;h=c760c0914c6a49f059400b8e12403f72eff933e9;hb=2e0f664e66dc2b46796df2953f52871b10799173;hp=7b0bf31ceb57d3c5bcbabce6f498db94a35ef9c4;hpb=5b6031b015602aa07f5a6fc668c13ac3faf7a8a9;p=modules%2Fshaper.git diff --git a/src/FeaturesAPI/FeaturesAPI_Symmetry.h b/src/FeaturesAPI/FeaturesAPI_Symmetry.h index 7b0bf31ce..c760c0914 100644 --- a/src/FeaturesAPI/FeaturesAPI_Symmetry.h +++ b/src/FeaturesAPI/FeaturesAPI_Symmetry.h @@ -1,8 +1,21 @@ -// Copyright (C) 2014-2016 CEA/DEN, EDF R&D --> - -// File: FeaturesAPI_Symmetry.h -// Created: 07 Dec 2016 -// Author: Clarisse Genrault (CEA) +// 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 +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// 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 +// +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +// #ifndef FEATURESAPI_SYMMETRY_H_ #define FEATURESAPI_SYMMETRY_H_ @@ -31,14 +44,15 @@ public: /// Constructor with values. FEATURESAPI_EXPORT explicit FeaturesAPI_Symmetry(const std::shared_ptr& theFeature, - const std::list& theMainObjects, - const ModelHighAPI_Selection& theObject); + const std::list& theMainObjects, + const ModelHighAPI_Selection& theObject, + bool theKeepOriginal = true); /// Destructor. FEATURESAPI_EXPORT virtual ~FeaturesAPI_Symmetry(); - INTERFACE_5(FeaturesPlugin_Symmetry::ID(), + INTERFACE_6(FeaturesPlugin_Symmetry::ID(), creationMethod, FeaturesPlugin_Symmetry::CREATION_METHOD(), ModelAPI_AttributeString, /** Creation method */, mainObjects, FeaturesPlugin_Symmetry::OBJECTS_LIST_ID(), @@ -48,7 +62,9 @@ public: axisObject, FeaturesPlugin_Symmetry::AXIS_OBJECT_ID(), ModelAPI_AttributeSelection, /** Axis object */, planeObject, FeaturesPlugin_Symmetry::PLANE_OBJECT_ID(), - ModelAPI_AttributeSelection, /** Plane object */) + ModelAPI_AttributeSelection, /** Plane object */, + keepOriginal, FeaturesPlugin_Symmetry::KEEP_ORIGINAL_RESULT(), + ModelAPI_AttributeBoolean, /** Keep original shape */) /// Set main objects. FEATURESAPI_EXPORT @@ -78,7 +94,8 @@ typedef std::shared_ptr SymmetryPtr; /// \brief Create Symmetry feature. FEATURESAPI_EXPORT SymmetryPtr addSymmetry(const std::shared_ptr& thePart, - const std::list& theMainObjects, - const ModelHighAPI_Selection& theObject); + const std::list& theMainObjects, + const ModelHighAPI_Selection& theObject, + bool theKeepOriginal = true); #endif // FEATURESAPI_SYMMETRY_H_