1 // Name : SketchAPI_IntersectionPoint.h
5 // 16/06/16 - Sergey POKHODENKO - Creation of the file
7 #ifndef SRC_SKETCHAPI_SKETCHAPI_INTERSECTIONPOINT_H_
8 #define SRC_SKETCHAPI_SKETCHAPI_INTERSECTIONPOINT_H_
10 //--------------------------------------------------------------------------------------
11 #include "SketchAPI.h"
13 #include <SketchPlugin_IntersectionPoint.h>
15 #include "SketchAPI_SketchEntity.h"
16 //--------------------------------------------------------------------------------------
17 class ModelHighAPI_Selection;
18 //--------------------------------------------------------------------------------------
19 /**\class SketchAPI_IntersectionPoint
21 * \brief Interface for IntersectionPoint feature
23 class SketchAPI_IntersectionPoint : public SketchAPI_SketchEntity
26 /// Constructor without values
28 explicit SketchAPI_IntersectionPoint(const std::shared_ptr<ModelAPI_Feature> & theFeature);
29 /// Constructor with values
31 SketchAPI_IntersectionPoint(const std::shared_ptr<ModelAPI_Feature> & theFeature,
32 const ModelHighAPI_Selection & theExternal);
33 /// Constructor with values
35 SketchAPI_IntersectionPoint(const std::shared_ptr<ModelAPI_Feature> & theFeature,
36 const std::string & theExternalName);
39 virtual ~SketchAPI_IntersectionPoint();
41 INTERFACE_2(SketchPlugin_IntersectionPoint::ID(),
42 coordinates, SketchPlugin_IntersectionPoint::COORD_ID(), GeomDataAPI_Point2D, /** IntersectionPoint coordinates */,
43 externalLine, SketchPlugin_IntersectionPoint::EXTERNAL_LINE_ID(), ModelAPI_AttributeSelection, /** External line */
48 void setByExternalLine(const ModelHighAPI_Selection & theExternalLine);
50 /// Set by external name
52 void setByExternalLineName(const std::string & theExternalLineName);
54 /// Dump wrapped feature
56 virtual void dump(ModelHighAPI_Dumper& theDumper) const;
59 //! Pointer on IntersectionPoint object
60 typedef std::shared_ptr<SketchAPI_IntersectionPoint> IntersectionPointPtr;
62 //--------------------------------------------------------------------------------------
63 //--------------------------------------------------------------------------------------
64 #endif /* SRC_SKETCHAPI_SKETCHAPI_INTERSECTIONPOINT_H_ */