20 #ifndef SRC_SKETCHAPI_SKETCHAPI_POINT_H_
21 #define SRC_SKETCHAPI_SKETCHAPI_POINT_H_
24 #include "SketchAPI.h"
26 #include <GeomDataAPI_Point2D.h>
28 #include <SketchPlugin_Point.h>
30 #include "SketchAPI_SketchEntity.h"
43 explicit SketchAPI_Point(
const std::shared_ptr<ModelAPI_Feature> & theFeature);
47 double theX,
double theY);
51 const std::shared_ptr<GeomAPI_Pnt2d> & thePoint);
59 const std::wstring & theExternalName);
2D point defined by two coordinates
Definition: GeomAPI_Pnt2d.h:36
Attribute that contains 2D point coordinates.
Definition: GeomDataAPI_Point2D.h:37
Attribute that contains reference to the sub-shape of some result, the selected shape.
Definition: ModelAPI_AttributeSelection.h:35
Dump engine for the model.
Definition: ModelHighAPI_Dumper.h:81
Class for filling ModelAPI_AttributeSelection.
Definition: ModelHighAPI_Selection.h:49
Interface for Point feature.
Definition: SketchAPI_Point.h:39
virtual ~SketchAPI_Point()
Destructor.
Definition: SketchAPI_Point.cpp:75
SketchAPI_Point(const std::shared_ptr< ModelAPI_Feature > &theFeature)
Constructor without values.
Definition: SketchAPI_Point.cpp:28
virtual std::shared_ptr< ModelAPI_AttributeSelection > external() const
External.
Definition: SketchAPI_Point.h:69
void setByExternal(const ModelHighAPI_Selection &theExternal)
Set by external.
Definition: SketchAPI_Point.cpp:97
virtual std::shared_ptr< GeomDataAPI_Point2D > coordinates() const
Point coordinates.
Definition: SketchAPI_Point.h:69
virtual void dump(ModelHighAPI_Dumper &theDumper) const
Dump wrapped feature.
Definition: SketchAPI_Point.cpp:113
void setByExternalName(const std::wstring &theExternalName)
Set by external name.
Definition: SketchAPI_Point.cpp:104
void setCoordinates(double theX, double theY)
Set by coordinates.
Definition: SketchAPI_Point.cpp:81
Base class for Sketch feature interfaces.
Definition: SketchAPI_SketchEntity.h:38
static const std::string & ID()
Point feature kind.
Definition: SketchPlugin_Point.h:36
static const std::string & COORD_ID()
Coordinates of the point.
Definition: SketchPlugin_Point.h:42
static const std::string & EXTERNAL_ID()
Reference to the external edge or vertex as a AttributeSelection.
Definition: SketchPlugin_SketchEntity.h:55