Salome HOME
[Code coverage GeomAlgoAPI]: Remove default constructors of algorithms
authorazv <azv@opencascade.com>
Tue, 18 Dec 2018 15:40:18 +0000 (18:40 +0300)
committerazv <azv@opencascade.com>
Tue, 18 Dec 2018 15:40:36 +0000 (18:40 +0300)
14 files changed:
src/GeomAlgoAPI/GeomAlgoAPI_Cone.cpp
src/GeomAlgoAPI/GeomAlgoAPI_Cone.h
src/GeomAlgoAPI/GeomAlgoAPI_ConeSegment.cpp
src/GeomAlgoAPI/GeomAlgoAPI_ConeSegment.h
src/GeomAlgoAPI/GeomAlgoAPI_Cylinder.cpp
src/GeomAlgoAPI/GeomAlgoAPI_Cylinder.h
src/GeomAlgoAPI/GeomAlgoAPI_Ellipsoid.cpp
src/GeomAlgoAPI/GeomAlgoAPI_Ellipsoid.h
src/GeomAlgoAPI/GeomAlgoAPI_FaceBuilder.cpp
src/GeomAlgoAPI/GeomAlgoAPI_FaceBuilder.h
src/GeomAlgoAPI/GeomAlgoAPI_Sphere.cpp
src/GeomAlgoAPI/GeomAlgoAPI_Sphere.h
src/GeomAlgoAPI/GeomAlgoAPI_Torus.cpp
src/GeomAlgoAPI/GeomAlgoAPI_Torus.h

index 5d9be8c863afa09739876ee98d4a6b3c373610fa..7097023ee9b69260ff709e4004239fef754a9ba5 100644 (file)
 
 #include <BRepPrimAPI_MakeCone.hxx>
 
-//=================================================================================================
-GeomAlgoAPI_Cone::GeomAlgoAPI_Cone()
-{
-}
-
 //=================================================================================================
 GeomAlgoAPI_Cone::GeomAlgoAPI_Cone(std::shared_ptr<GeomAPI_Ax2> theAxis,
                                    const double theBaseRadius,
index 327ef6bbce4c0f0abedf4c1b730c88b7e6a8a75c..95a3c1a586bc89259c3e5f0fbad49f7fd882ffcb 100644 (file)
@@ -18,8 +18,6 @@
 class GeomAlgoAPI_Cone : public GeomAlgoAPI_MakeShape
 {
  public:
-  GEOMALGOAPI_EXPORT GeomAlgoAPI_Cone();
-
   /// Creates a cone.
   /// \param theAxis The axis of the cone
   /// \param theBaseRadius The base radius of the cone
index db5e544bb94f15b486ac29cf44153b3350616cd7..36111ca5aefded92af43ebba11c45fae7aa4f917 100644 (file)
 
 #include <math.h>
 
-//=================================================================================================
-GeomAlgoAPI_ConeSegment::GeomAlgoAPI_ConeSegment()
-{
-}
-
 //=================================================================================================
 
 GeomAlgoAPI_ConeSegment::GeomAlgoAPI_ConeSegment(const double theRMin1,
index f28cf597a733bbf0dfa673c46dec4f1086ad7fe2..3a57d72421542e982aef3400a829c96353066f2c 100644 (file)
@@ -30,8 +30,6 @@
 class GeomAlgoAPI_ConeSegment : public GeomAlgoAPI_MakeShape
 {
  public:
-  GEOMALGOAPI_EXPORT GeomAlgoAPI_ConeSegment();
-
   /// Creates a cone segment using standard GDML parameters.
   /// \param theRMin1 Cone base inner radius.
   /// \param theRMax1 Cone base outer radius.
index bfdc203b96b1f1ab15c06caa7069f9c954ac9213..5f0a0c6700eb7640ee0beca7213aaa1d1c752fc7 100644 (file)
 
 #include <BRepPrimAPI_MakeCylinder.hxx>
 
-//=================================================================================================
-GeomAlgoAPI_Cylinder::GeomAlgoAPI_Cylinder()
-{
-}
-
 //=================================================================================================
 GeomAlgoAPI_Cylinder::GeomAlgoAPI_Cylinder(std::shared_ptr<GeomAPI_Ax2> theAxis,
                                            const double theRadius,
index fcbca3448dc4147fdeb76cc880c534c2c5fb47e5..c92d3441c94f67c8ebac5b2ac724e9ea92aecae9 100644 (file)
@@ -33,8 +33,6 @@
 class GeomAlgoAPI_Cylinder : public GeomAlgoAPI_MakeShape
 {
  public:
-  GEOMALGOAPI_EXPORT GeomAlgoAPI_Cylinder();
-
   /// Creates a cylinder.
   /// \param theAxis The axis of the cylinder
   /// \param theRadius The radius of the cylinder
index afa430db18b3fef3fbb827304a72ce4cddd8c5cd..ee037729e6f56da64ecab0c5255ff155ad9e2957 100644 (file)
 #include <TopoDS.hxx>
 #include <TopoDS_Edge.hxx>
 
-//=================================================================================================
-GeomAlgoAPI_Ellipsoid::GeomAlgoAPI_Ellipsoid()
-{
-}
-
 //=================================================================================================
 
 GeomAlgoAPI_Ellipsoid::GeomAlgoAPI_Ellipsoid(const double theAx,
index 96a37ea70f9a25dd997e552443b228893adc6ec9..2e47ce7eabde538c1373a2755b1d371b691ff58c 100644 (file)
@@ -30,8 +30,6 @@
 class GeomAlgoAPI_Ellipsoid : public GeomAlgoAPI_MakeShape
 {
  public:
-  GEOMALGOAPI_EXPORT GeomAlgoAPI_Ellipsoid();
-
   /// Creates a ellipsoid using standard GDML parameters.
   /// \param theAx X dimension of the ellipsoid.
   /// \param theBy Y dimension of the ellipsoid.
index 728e9f56449da0e93a9756056526c8f28f16e5ac..68bc6377d7a72d76712cc75a1ec40291bff10db8 100644 (file)
@@ -120,23 +120,3 @@ std::shared_ptr<GeomAPI_Face> GeomAlgoAPI_FaceBuilder::planarFaceByThreeVertices
   aFace->setImpl(new TopoDS_Face(aMakeFace.Face()));
   return aFace;
 }
-
-//==================================================================================================
-std::shared_ptr<GeomAPI_Face> GeomAlgoAPI_FaceBuilder::planarFaceByFaceAndVertex(
-    const std::shared_ptr<GeomAPI_Face> theFace,
-    const std::shared_ptr<GeomAPI_Vertex> theVertex)
-{
-  gp_Pln aPln = theFace->getPlane()->impl<gp_Pln>();
-  gp_Pnt aPnt = theVertex->point()->impl<gp_Pnt>();
-
-  std::shared_ptr<GeomAPI_Face> aFace;
-  GC_MakePlane aMakePlane(aPln, aPnt);
-  if(!aMakePlane.IsDone()) {
-    return aFace;
-  }
-
-  BRepBuilderAPI_MakeFace aMakeFace(aMakePlane.Value()->Pln());
-  aFace.reset(new GeomAPI_Face());
-  aFace->setImpl(new TopoDS_Face(aMakeFace.Face()));
-  return aFace;
-}
index 1d7e8e8523e15fcfb27789d226b03be20b3c1367..41e22a0811f3baea01e22a6b40f3494de4d5396f 100644 (file)
@@ -61,11 +61,6 @@ class GEOMALGOAPI_EXPORT GeomAlgoAPI_FaceBuilder
                         const std::shared_ptr<GeomAPI_Vertex> theVertex1,
                         const std::shared_ptr<GeomAPI_Vertex> theVertex2,
                         const std::shared_ptr<GeomAPI_Vertex> theVertex3);
-
-  /// Creates a planar face parallel to theFace and passing through theVertex.
-  static std::shared_ptr<GeomAPI_Face> planarFaceByFaceAndVertex(
-                        const std::shared_ptr<GeomAPI_Face> theFace,
-                        const std::shared_ptr<GeomAPI_Vertex> theVertex);
 };
 
 #endif
index b2642c94cfbc2b27810f47d251ece8995f856788..0d39a46093dca743e106c4b76616b337a168ec25 100644 (file)
@@ -8,11 +8,6 @@
 
 #include <BRepPrimAPI_MakeSphere.hxx>
 
-//=================================================================================================
-GeomAlgoAPI_Sphere::GeomAlgoAPI_Sphere()
-{
-}
-
 //=================================================================================================
 GeomAlgoAPI_Sphere::GeomAlgoAPI_Sphere(std::shared_ptr<GeomAPI_Pnt> theCenterPoint,
                                        const double theRadius)
index f317a26eeef980c37d011f89ffc3f314f4f03c8a..fb144942639a10206ad915c868885760c900b415 100644 (file)
@@ -18,8 +18,6 @@
 class GeomAlgoAPI_Sphere : public GeomAlgoAPI_MakeShape
 {
  public:
-  GEOMALGOAPI_EXPORT GeomAlgoAPI_Sphere();
-
   /// Creates a sphere.
   /// \param theCenterPoint The center point of the sphere
   /// \param theRadius The radius of the sphere
index 3bc0653d8487162c057f32e4d1e1ab1783b23794..f77fc6221649db49d8923378a05ca7a0c4139989 100644 (file)
 
 #include <BRepPrimAPI_MakeTorus.hxx>
 
-//=================================================================================================
-GeomAlgoAPI_Torus::GeomAlgoAPI_Torus()
-{
-}
-
 //=================================================================================================
 GeomAlgoAPI_Torus::GeomAlgoAPI_Torus(std::shared_ptr<GeomAPI_Ax2> theAxis,
                                      const double theRadius,
index 10f66f53ecabb3513d0ad93fba371e65d791664e..1205f7298486300334258ebdfee1af49bbe5fdad 100644 (file)
@@ -18,8 +18,6 @@
 class GeomAlgoAPI_Torus : public GeomAlgoAPI_MakeShape
 {
  public:
-  GEOMALGOAPI_EXPORT GeomAlgoAPI_Torus();
-
   /// Creates a torus.
   /// \param theAxis The axis of the torus
   /// \param theRadius The radius of the torus