X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_Edge.h;h=1c4802ecc687b10585a3ea5c8c761bec5c0b3057;hb=7f873aed4bae5a98dca078209699b54276b46fce;hp=584e4756cddb172c1af973cf861129b3cfa9f0df;hpb=d3b42dea410986c9fa81711e5cf0b0e18bbf6d6a;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_Edge.h b/src/GeomAPI/GeomAPI_Edge.h index 584e4756c..1c4802ecc 100644 --- a/src/GeomAPI/GeomAPI_Edge.h +++ b/src/GeomAPI/GeomAPI_Edge.h @@ -1,30 +1,30 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D + // File: GeomAPI_Edge.hxx // Created: 24 Jul 2014 // Author: Artem ZHIDKOV -#ifndef GeomAPI_Edge_HeaderFile -#define GeomAPI_Edge_HeaderFile +#ifndef GeomAPI_Edge_H_ +#define GeomAPI_Edge_H_ #include +class GeomAPI_Pnt; +class GeomAPI_Circ; + /**\class GeomAPI_Edge - * \ingroup DataModel +* \ingroup DataModel * \brief Interface to the edge object */ -class GEOMAPI_EXPORT GeomAPI_Edge: public GeomAPI_Shape +class GEOMAPI_EXPORT GeomAPI_Edge : public GeomAPI_Shape { public: - /// Creation of empty (null) shape - GeomAPI_Edge(); + /// Creation of empty (null) shape + GeomAPI_Edge(); - /// Returns whether the shape is a vertex - virtual bool isVertex() const - { return false; } - - /// Returns whether the shape is an edge - virtual bool isEdge() const - { return true; } + /// Creation of edge by the edge-shape + GeomAPI_Edge(const std::shared_ptr& theShape); /// Verifies that the edge is a line bool isLine() const; @@ -34,6 +34,18 @@ public: /// Verifies that the edge is an arc of circle bool isArc() const; + + /// Returns the first vertex coordinates of the edge + std::shared_ptr firstPoint(); + + /// Returns the Last vertex coordinates of the edge + std::shared_ptr lastPoint(); + + /// Returns a circle if edge is based on the cirsle curve + std::shared_ptr circle(); + + /// Returns true if the current edge is geometrically equal to the given edge + bool isEqual(const std::shared_ptr theEdge) const; }; #endif