X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_Edge.h;h=4c929aa2a86379615e2523e983dc0f0801707ec5;hb=ced1c42d80f02b1efa749ecdf35e620dcca4d9cc;hp=53552262983695efa0144176558bc02e86ceb647;hpb=38afbd899a8645c83e17f2c24a17a2b7414911b4;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_Edge.h b/src/GeomAPI/GeomAPI_Edge.h index 535522629..4c929aa2a 100644 --- a/src/GeomAPI/GeomAPI_Edge.h +++ b/src/GeomAPI/GeomAPI_Edge.h @@ -11,41 +11,59 @@ class GeomAPI_Pnt; class GeomAPI_Circ; +class GeomAPI_Lin; /**\class GeomAPI_Edge * \ingroup DataModel * \brief Interface to the edge object */ -class GEOMAPI_EXPORT GeomAPI_Edge : public GeomAPI_Shape +class GeomAPI_Edge : public GeomAPI_Shape { public: /// Creation of empty (null) shape + GEOMAPI_EXPORT GeomAPI_Edge(); /// Creation of edge by the edge-shape + GEOMAPI_EXPORT GeomAPI_Edge(const std::shared_ptr& theShape); /// Verifies that the edge is a line + GEOMAPI_EXPORT bool isLine() const; /// Verifies that the edge is a circle + GEOMAPI_EXPORT bool isCircle() const; /// Verifies that the edge is an arc of circle + GEOMAPI_EXPORT bool isArc() const; /// Returns the first vertex coordinates of the edge + GEOMAPI_EXPORT std::shared_ptr firstPoint(); /// Returns the Last vertex coordinates of the edge + GEOMAPI_EXPORT std::shared_ptr lastPoint(); - /// Returns a circle if edge is based on the cirsle curve + /// Returns a circle if edge is based on the circle curve + GEOMAPI_EXPORT std::shared_ptr circle(); + /// Returns a line if edge is based on the linear curve + GEOMAPI_EXPORT + std::shared_ptr line(); + /// Returns true if the current edge is geometrically equal to the given edge - bool isEqual(std::shared_ptr theEdge); + GEOMAPI_EXPORT + bool isEqual(const std::shared_ptr theEdge) const; + + /// Returns range of parameter on the curve + GEOMAPI_EXPORT + void getRange(double& theFirst, double& theLast) const; }; #endif