X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchAPI%2FSketchAPI_IntersectionPoint.h;h=cc1b4e947a107f780ff058eec33d5acc77ee5f7d;hb=6b48364b1da91a4958ce92d392e8bc49a3cbd7a2;hp=7f0bdfbd86fbb4502cedb33f64a3c75b68353c45;hpb=226a930e71fe9cbdae89e4f6935f6cb13b12cdbf;p=modules%2Fshaper.git diff --git a/src/SketchAPI/SketchAPI_IntersectionPoint.h b/src/SketchAPI/SketchAPI_IntersectionPoint.h index 7f0bdfbd8..cc1b4e947 100644 --- a/src/SketchAPI/SketchAPI_IntersectionPoint.h +++ b/src/SketchAPI/SketchAPI_IntersectionPoint.h @@ -1,8 +1,22 @@ -// Name : SketchAPI_IntersectionPoint.h -// Purpose: +// Copyright (C) 2014-2017 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_INTERSECTIONPOINT_H_ #define SRC_SKETCHAPI_SKETCHAPI_INTERSECTIONPOINT_H_ @@ -38,18 +52,34 @@ public: SKETCHAPI_EXPORT virtual ~SketchAPI_IntersectionPoint(); - INTERFACE_2(SketchPlugin_IntersectionPoint::ID(), - coordinates, SketchPlugin_IntersectionPoint::COORD_ID(), GeomDataAPI_Point2D, /** IntersectionPoint coordinates */, - externalLine, SketchPlugin_IntersectionPoint::EXTERNAL_LINE_ID(), ModelAPI_AttributeSelection, /** External line */ + INTERFACE_3(SketchPlugin_IntersectionPoint::ID(), + externalFeature, SketchPlugin_IntersectionPoint::EXTERNAL_FEATURE_ID(), + ModelAPI_AttributeSelection, /** External edge */, + external, SketchPlugin_IntersectionPoint::EXTERNAL_ID(), + ModelAPI_AttributeSelection, /** External */, + includeToResult, SketchPlugin_IntersectionPoint::INCLUDE_INTO_RESULT(), + ModelAPI_AttributeBoolean, /** Include into result */ ) /// Set by external SKETCHAPI_EXPORT - void setByExternalLine(const ModelHighAPI_Selection & theExternalLine); + void setByExternalEdge(const ModelHighAPI_Selection & theExternaEdge); /// Set by external name SKETCHAPI_EXPORT - void setByExternalLineName(const std::string & theExternalLineName); + void setByExternalEdgeName(const std::string & theExternalEdgeName); + + /// Set flag to include projection to result or not + SKETCHAPI_EXPORT + void setIncludeToResult(bool theKeepResult); + + /// Returns created intersection points + SKETCHAPI_EXPORT + std::list > intersectionPoints() const; + + /// Dump wrapped feature + SKETCHAPI_EXPORT + virtual void dump(ModelHighAPI_Dumper& theDumper) const; }; //! Pointer on IntersectionPoint object