#include "ConstructionAPI_Point.h"
//--------------------------------------------------------------------------------------
#include <ModelAPI_AttributeDouble.h>
+#include <ModelAPI_Document.h>
#include <ModelAPI_Feature.h>
#include <ModelHighAPI_Double.h>
{
return myZ;
}
+
+//--------------------------------------------------------------------------------------
+// TODO(spo): make add* as static functions of the class
+PointPtr addPoint(
+ std::shared_ptr<ModelAPI_Document> thePart)
+{
+ // TODO(spo): check that thePart is not empty
+ std::shared_ptr<ModelAPI_Feature> aFeature = thePart->addFeature("Point");
+ return PointPtr(new ConstructionAPI_Point(aFeature));
+}
+
+PointPtr addPoint(
+ std::shared_ptr<ModelAPI_Document> thePart,
+ const ModelHighAPI_Double& theX,
+ const ModelHighAPI_Double& theY,
+ const ModelHighAPI_Double& theZ)
+{
+ // TODO(spo): check that thePart is not empty
+ std::shared_ptr<ModelAPI_Feature> aFeature = thePart->addFeature("Point");
+ return PointPtr(new ConstructionAPI_Point(aFeature, theX, theY, theZ));
+}