//--------------------------------------------------------------------------------------
SketchAPI_Line::SketchAPI_Line(
const std::shared_ptr<ModelAPI_Feature> & theFeature)
-: ModelHighAPI_Interface(theFeature)
+: SketchAPI_SketchEntity(theFeature)
{
initialize();
}
SketchAPI_Line::SketchAPI_Line(
const std::shared_ptr<ModelAPI_Feature> & theFeature,
double theX1, double theY1, double theX2, double theY2)
-: ModelHighAPI_Interface(theFeature)
+: SketchAPI_SketchEntity(theFeature)
{
if (initialize()) {
setByCoordinates(theX1, theY1, theX2, theY2);
const std::shared_ptr<ModelAPI_Feature> & theFeature,
const std::shared_ptr<GeomAPI_Pnt2d> & theStartPoint,
const std::shared_ptr<GeomAPI_Pnt2d> & theEndPoint)
-: ModelHighAPI_Interface(theFeature)
+: SketchAPI_SketchEntity(theFeature)
{
if (initialize()) {
setByPoints(theStartPoint, theEndPoint);
SketchAPI_Line::SketchAPI_Line(
const std::shared_ptr<ModelAPI_Feature> & theFeature,
const ModelHighAPI_Selection & theExternal )
-: ModelHighAPI_Interface(theFeature)
+: SketchAPI_SketchEntity(theFeature)
{
if (initialize()) {
setByExternal(theExternal);
SketchAPI_Line::SketchAPI_Line(
const std::shared_ptr<ModelAPI_Feature> & theFeature,
const std::string & theExternalName )
-: ModelHighAPI_Interface(theFeature)
+: SketchAPI_SketchEntity(theFeature)
{
if (initialize()) {
setByExternalName(theExternalName);
#include <SketchPlugin_Line.h>
-#include <ModelHighAPI_Interface.h>
-#include <ModelHighAPI_Macro.h>
+#include <SketchAPI_SketchEntity.h>
//--------------------------------------------------------------------------------------
class ModelHighAPI_Selection;
//--------------------------------------------------------------------------------------
* \ingroup CPPHighAPI
* \brief Interface for Line feature
*/
-class SketchAPI_Line : public ModelHighAPI_Interface
+class SketchAPI_Line : public SketchAPI_SketchEntity
{
public:
/// Constructor without values
SKETCHAPI_EXPORT
void setExternal(const ModelHighAPI_Selection & theExternal);
+ // TODO(spo): addPoint
+
/// Add line
SKETCHAPI_EXPORT
std::shared_ptr<SketchAPI_Line> addLine(
SKETCHAPI_EXPORT
std::shared_ptr<SketchAPI_Line> addLine(const std::string & theExternalName);
+ // TODO(spo): addCircle
+ // TODO(spo): addArc
+
+ // TODO(spo): set* (constraints)
+
+ // TODO(spo): setValue
+ // TODO(spo): setText
+
protected:
std::shared_ptr<ModelAPI_CompositeFeature> compositeFeature() const;