Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix due to the coding standards.
[modules/shaper.git]
/
src
/
GeomAPI
/
GeomAPI_Edge.h
diff --git
a/src/GeomAPI/GeomAPI_Edge.h
b/src/GeomAPI/GeomAPI_Edge.h
index 44c76df82e306eee106ff9722afff13c6f81d00c..ce0f7b559d18e0f1b9d830af6e6d3d5d94879970 100644
(file)
--- a/
src/GeomAPI/GeomAPI_Edge.h
+++ b/
src/GeomAPI/GeomAPI_Edge.h
@@
-27,6
+27,7
@@
class GeomAPI_Pln;
class GeomAPI_Pnt;
class GeomAPI_Circ;
class GeomAPI_Lin;
class GeomAPI_Pnt;
class GeomAPI_Circ;
class GeomAPI_Lin;
+class GeomAPI_Ellipse;
/**\class GeomAPI_Edge
* \ingroup DataModel
/**\class GeomAPI_Edge
* \ingroup DataModel
@@
-56,6
+57,10
@@
public:
GEOMAPI_EXPORT
bool isArc() const;
GEOMAPI_EXPORT
bool isArc() const;
+ /// Verifies that the edge is an arc of circle
+ GEOMAPI_EXPORT
+ bool isEllipse() const;
+
/// Returns the first vertex coordinates of the edge
GEOMAPI_EXPORT
std::shared_ptr<GeomAPI_Pnt> firstPoint();
/// Returns the first vertex coordinates of the edge
GEOMAPI_EXPORT
std::shared_ptr<GeomAPI_Pnt> firstPoint();
@@
-66,11
+71,15
@@
public:
/// Returns a circle if edge is based on the circle curve
GEOMAPI_EXPORT
/// Returns a circle if edge is based on the circle curve
GEOMAPI_EXPORT
- std::shared_ptr<GeomAPI_Circ> circle();
+ std::shared_ptr<GeomAPI_Circ> circle() const;
+
+ /// Returns an ellipse if edge is based on the ellipse curve
+ GEOMAPI_EXPORT
+ std::shared_ptr<GeomAPI_Ellipse> ellipse() const;
/// Returns a line if edge is based on the linear curve
GEOMAPI_EXPORT
/// Returns a line if edge is based on the linear curve
GEOMAPI_EXPORT
- std::shared_ptr<GeomAPI_Lin> line();
+ std::shared_ptr<GeomAPI_Lin> line()
const
;
/// Returns true if the current edge is geometrically equal to the given edge
GEOMAPI_EXPORT
/// Returns true if the current edge is geometrically equal to the given edge
GEOMAPI_EXPORT
@@
-87,7
+96,18
@@
public:
/// Returns edge length.
GEOMAPI_EXPORT
double length() const;
/// Returns edge length.
GEOMAPI_EXPORT
double length() const;
+
+ /// Returns true if the edge is closed (like full circle)
+ GEOMAPI_EXPORT
+ bool isClosed() const;
+
+ /// Returns true if the edge is degenerated (has no 3D curve)
+ GEOMAPI_EXPORT
+ bool isDegenerated() const;
};
};
+//! Pointer on attribute object
+typedef std::shared_ptr<GeomAPI_Edge> GeomEdgePtr;
+
#endif
#endif