Salome HOME
Issue #1664: In the Sketcher, add the function Split a segment. Correction of circle...
[modules/shaper.git] / src / GeomAPI / GeomAPI_Wire.h
index de849ef9391376b870c22321976f9c6d7e783d1c..2c11608571c4fe7dc4fcaced712049373dc69284 100644 (file)
@@ -1,42 +1,22 @@
-// File:        GeomAPI_Wire.hxx
-// Created:     24 Jul 2014
-// Author:      Artem ZHIDKOV
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
 
-#ifndef GEOMAPI_WIRE_H_
-#define GEOMAPI_WIRE_H_
+// File:        GeomAPI_Wire.h
+// Created:     28 April 2016
+// Author:      Dmitry Bobylev
 
-#include <GeomAPI.h>
-#include <GeomAPI_Edge.h>
+#ifndef GeomAPI_Wire_H_
+#define GeomAPI_Wire_H_
 
-#include <boost/smart_ptr/shared_ptr.hpp>
+#include "GeomAPI_Shape.h"
 
-#include <list>
-
-/**\class GeomAPI_Wire
- * \ingroup DataModel
- * \brief Interface to the edge object
- */
-
-class GEOMAPI_EXPORT GeomAPI_Wire : public GeomAPI_Shape
+/// \class GeomAPI_Wire
+/// \ingroup DataModel
+/// \brief Interface to the wire object
+class GeomAPI_Wire: public GeomAPI_Shape
 {
- public:
-  /// Creation of empty (null) shape
-  GeomAPI_Wire();
-
-  virtual bool isVertex() const
-  {
-    return false;
-  }
-
-  /// Returns whether the shape is an edge
-  virtual bool isEdge() const
-  {
-    return false;
-  }
-
-  void addEdge(boost::shared_ptr<GeomAPI_Shape> theEdge);
-  std::list<boost::shared_ptr<GeomAPI_Shape> > getEdges();
-
+public:
+  /// Makes an undefined Wire.
+  GEOMAPI_EXPORT GeomAPI_Wire();
 };
 
 #endif