1 // Copyright (C) 2014-2017 CEA/DEN, EDF R&D
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
20 #ifndef SRC_SKETCHAPI_SKETCHAPI_INTERSECTIONPOINT_H_
21 #define SRC_SKETCHAPI_SKETCHAPI_INTERSECTIONPOINT_H_
23 //--------------------------------------------------------------------------------------
24 #include "SketchAPI.h"
26 #include <SketchPlugin_IntersectionPoint.h>
28 #include "SketchAPI_SketchEntity.h"
29 //--------------------------------------------------------------------------------------
30 class ModelHighAPI_Selection;
31 //--------------------------------------------------------------------------------------
32 /**\class SketchAPI_IntersectionPoint
34 * \brief Interface for IntersectionPoint feature
36 class SketchAPI_IntersectionPoint : public SketchAPI_SketchEntity
39 /// Constructor without values
41 explicit SketchAPI_IntersectionPoint(const std::shared_ptr<ModelAPI_Feature> & theFeature);
42 /// Constructor with values
44 SketchAPI_IntersectionPoint(const std::shared_ptr<ModelAPI_Feature> & theFeature,
45 const ModelHighAPI_Selection & theExternal);
46 /// Constructor with values
48 SketchAPI_IntersectionPoint(const std::shared_ptr<ModelAPI_Feature> & theFeature,
49 const std::string & theExternalName);
52 virtual ~SketchAPI_IntersectionPoint();
54 INTERFACE_2(SketchPlugin_IntersectionPoint::ID(),
55 coordinates, SketchPlugin_IntersectionPoint::COORD_ID(),
56 GeomDataAPI_Point2D, /** IntersectionPoint coordinates */,
57 externalLine, SketchPlugin_IntersectionPoint::EXTERNAL_LINE_ID(),
58 ModelAPI_AttributeSelection, /** External line */
63 void setByExternalLine(const ModelHighAPI_Selection & theExternalLine);
65 /// Set by external name
67 void setByExternalLineName(const std::string & theExternalLineName);
69 /// Dump wrapped feature
71 virtual void dump(ModelHighAPI_Dumper& theDumper) const;
74 //! Pointer on IntersectionPoint object
75 typedef std::shared_ptr<SketchAPI_IntersectionPoint> IntersectionPointPtr;
77 //--------------------------------------------------------------------------------------
78 //--------------------------------------------------------------------------------------
79 #endif /* SRC_SKETCHAPI_SKETCHAPI_INTERSECTIONPOINT_H_ */