1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
3 // File: BuildAPI_Vertex.cpp
4 // Created: 09 June 2016
5 // Author: Dmitry Bobylev
7 #include "BuildAPI_Vertex.h"
9 #include <ModelHighAPI_Tools.h>
11 //==================================================================================================
12 BuildAPI_Vertex::BuildAPI_Vertex(const std::shared_ptr<ModelAPI_Feature>& theFeature)
13 : ModelHighAPI_Interface(theFeature)
18 //==================================================================================================
19 BuildAPI_Vertex::BuildAPI_Vertex(const std::shared_ptr<ModelAPI_Feature>& theFeature,
20 const std::list<ModelHighAPI_Selection>& theBaseObjects)
21 : ModelHighAPI_Interface(theFeature)
24 setBase(theBaseObjects);
28 //==================================================================================================
29 BuildAPI_Vertex::~BuildAPI_Vertex()
34 //==================================================================================================
35 void BuildAPI_Vertex::setBase(const std::list<ModelHighAPI_Selection>& theBaseObjects)
37 fillAttribute(theBaseObjects, mybaseObjects);
42 //==================================================================================================
43 VertexPtr addVertex(const std::shared_ptr<ModelAPI_Document>& thePart,
44 const std::list<ModelHighAPI_Selection>& theBaseObjects)
46 std::shared_ptr<ModelAPI_Feature> aFeature = thePart->addFeature(BuildAPI_Vertex::ID());
47 return VertexPtr(new BuildAPI_Vertex(aFeature, theBaseObjects));