X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchAPI%2FSketchAPI_Projection.h;h=cfa3af1ac21e24fb51d59b3ee324729cb628518d;hb=05c54697df5d6968704e869a4a21102a0477121f;hp=cf18e20f3a0671d4b93c594781af709d1b6a43ee;hpb=f98f887290d4e2b4bd6618389911e82b6b9674f3;p=modules%2Fshaper.git diff --git a/src/SketchAPI/SketchAPI_Projection.h b/src/SketchAPI/SketchAPI_Projection.h index cf18e20f3..cfa3af1ac 100644 --- a/src/SketchAPI/SketchAPI_Projection.h +++ b/src/SketchAPI/SketchAPI_Projection.h @@ -1,8 +1,21 @@ -// Name : SketchAPI_Projection.h -// Purpose: +// 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 +// 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 // -// History: -// 16/06/16 - Sergey POKHODENKO - Creation of the file #ifndef SRC_SKETCHAPI_SKETCHAPI_PROJECTION_H_ #define SRC_SKETCHAPI_SKETCHAPI_PROJECTION_H_ @@ -34,15 +47,36 @@ public: SKETCHAPI_EXPORT virtual ~SketchAPI_Projection(); - INTERFACE_3(SketchPlugin_Projection::ID(), - externalFeature, SketchPlugin_Projection::EXTERNAL_FEATURE_ID(), ModelAPI_AttributeSelection, /** External feature */, - projectedFeature, SketchPlugin_Projection::EXTERNAL_FEATURE_ID(), ModelAPI_AttributeRefAttr, /** Projected feature */, - external, SketchPlugin_Projection::EXTERNAL_ID(), ModelAPI_AttributeSelection, /** External */ + INTERFACE_4(SketchPlugin_Projection::ID(), + externalFeature, SketchPlugin_Projection::EXTERNAL_FEATURE_ID(), + ModelAPI_AttributeSelection, /** External feature */, + projectedFeature, SketchPlugin_Projection::PROJECTED_FEATURE_ID(), + ModelAPI_AttributeRefAttr, /** Projected feature */, + external, SketchPlugin_Projection::EXTERNAL_ID(), + ModelAPI_AttributeSelection, /** External */, + includeToResult, SketchPlugin_Projection::INCLUDE_INTO_RESULT(), + ModelAPI_AttributeBoolean, /** Include into result */ ) /// Set external feature SKETCHAPI_EXPORT void setExternalFeature(const ModelHighAPI_Selection & theExternalLine); + + /// Set flag to include projection to result or not + SKETCHAPI_EXPORT + void setIncludeToResult(bool theKeepResult); + + /// Set flag to keep the reference to the original shape + SKETCHAPI_EXPORT + void setKeepReferenceToOriginal(bool theKeepRefToOriginal); + + /// Returns created feature + SKETCHAPI_EXPORT + std::shared_ptr createdFeature() const; + + /// Dump wrapped feature + SKETCHAPI_EXPORT + virtual void dump(ModelHighAPI_Dumper& theDumper) const; }; //! Pointer on Projection object