From: azv Date: Tue, 18 Dec 2018 15:40:18 +0000 (+0300) Subject: [Code coverage GeomAlgoAPI]: Remove default constructors of algorithms X-Git-Tag: End2018~41 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=786c507f8ee4432890b09740530f09941da2a504;p=modules%2Fshaper.git [Code coverage GeomAlgoAPI]: Remove default constructors of algorithms --- diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_Cone.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_Cone.cpp index 5d9be8c86..7097023ee 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_Cone.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_Cone.cpp @@ -10,11 +10,6 @@ #include -//================================================================================================= -GeomAlgoAPI_Cone::GeomAlgoAPI_Cone() -{ -} - //================================================================================================= GeomAlgoAPI_Cone::GeomAlgoAPI_Cone(std::shared_ptr theAxis, const double theBaseRadius, diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_Cone.h b/src/GeomAlgoAPI/GeomAlgoAPI_Cone.h index 327ef6bbc..95a3c1a58 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_Cone.h +++ b/src/GeomAlgoAPI/GeomAlgoAPI_Cone.h @@ -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 diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_ConeSegment.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_ConeSegment.cpp index db5e544bb..36111ca5a 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_ConeSegment.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_ConeSegment.cpp @@ -33,11 +33,6 @@ #include -//================================================================================================= -GeomAlgoAPI_ConeSegment::GeomAlgoAPI_ConeSegment() -{ -} - //================================================================================================= GeomAlgoAPI_ConeSegment::GeomAlgoAPI_ConeSegment(const double theRMin1, diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_ConeSegment.h b/src/GeomAlgoAPI/GeomAlgoAPI_ConeSegment.h index f28cf597a..3a57d7242 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_ConeSegment.h +++ b/src/GeomAlgoAPI/GeomAlgoAPI_ConeSegment.h @@ -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. diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_Cylinder.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_Cylinder.cpp index bfdc203b9..5f0a0c670 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_Cylinder.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_Cylinder.cpp @@ -27,11 +27,6 @@ #include -//================================================================================================= -GeomAlgoAPI_Cylinder::GeomAlgoAPI_Cylinder() -{ -} - //================================================================================================= GeomAlgoAPI_Cylinder::GeomAlgoAPI_Cylinder(std::shared_ptr theAxis, const double theRadius, diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_Cylinder.h b/src/GeomAlgoAPI/GeomAlgoAPI_Cylinder.h index fcbca3448..c92d3441c 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_Cylinder.h +++ b/src/GeomAlgoAPI/GeomAlgoAPI_Cylinder.h @@ -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 diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_Ellipsoid.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_Ellipsoid.cpp index afa430db1..ee037729e 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_Ellipsoid.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_Ellipsoid.cpp @@ -34,11 +34,6 @@ #include #include -//================================================================================================= -GeomAlgoAPI_Ellipsoid::GeomAlgoAPI_Ellipsoid() -{ -} - //================================================================================================= GeomAlgoAPI_Ellipsoid::GeomAlgoAPI_Ellipsoid(const double theAx, diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_Ellipsoid.h b/src/GeomAlgoAPI/GeomAlgoAPI_Ellipsoid.h index 96a37ea70..2e47ce7ea 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_Ellipsoid.h +++ b/src/GeomAlgoAPI/GeomAlgoAPI_Ellipsoid.h @@ -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. diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_FaceBuilder.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_FaceBuilder.cpp index 728e9f564..68bc6377d 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_FaceBuilder.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_FaceBuilder.cpp @@ -120,23 +120,3 @@ std::shared_ptr GeomAlgoAPI_FaceBuilder::planarFaceByThreeVertices aFace->setImpl(new TopoDS_Face(aMakeFace.Face())); return aFace; } - -//================================================================================================== -std::shared_ptr GeomAlgoAPI_FaceBuilder::planarFaceByFaceAndVertex( - const std::shared_ptr theFace, - const std::shared_ptr theVertex) -{ - gp_Pln aPln = theFace->getPlane()->impl(); - gp_Pnt aPnt = theVertex->point()->impl(); - - std::shared_ptr 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; -} diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_FaceBuilder.h b/src/GeomAlgoAPI/GeomAlgoAPI_FaceBuilder.h index 1d7e8e852..41e22a081 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_FaceBuilder.h +++ b/src/GeomAlgoAPI/GeomAlgoAPI_FaceBuilder.h @@ -61,11 +61,6 @@ class GEOMALGOAPI_EXPORT GeomAlgoAPI_FaceBuilder const std::shared_ptr theVertex1, const std::shared_ptr theVertex2, const std::shared_ptr theVertex3); - - /// Creates a planar face parallel to theFace and passing through theVertex. - static std::shared_ptr planarFaceByFaceAndVertex( - const std::shared_ptr theFace, - const std::shared_ptr theVertex); }; #endif diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_Sphere.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_Sphere.cpp index b2642c94c..0d39a4609 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_Sphere.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_Sphere.cpp @@ -8,11 +8,6 @@ #include -//================================================================================================= -GeomAlgoAPI_Sphere::GeomAlgoAPI_Sphere() -{ -} - //================================================================================================= GeomAlgoAPI_Sphere::GeomAlgoAPI_Sphere(std::shared_ptr theCenterPoint, const double theRadius) diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_Sphere.h b/src/GeomAlgoAPI/GeomAlgoAPI_Sphere.h index f317a26ee..fb1449426 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_Sphere.h +++ b/src/GeomAlgoAPI/GeomAlgoAPI_Sphere.h @@ -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 diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_Torus.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_Torus.cpp index 3bc0653d8..f77fc6221 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_Torus.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_Torus.cpp @@ -10,11 +10,6 @@ #include -//================================================================================================= -GeomAlgoAPI_Torus::GeomAlgoAPI_Torus() -{ -} - //================================================================================================= GeomAlgoAPI_Torus::GeomAlgoAPI_Torus(std::shared_ptr theAxis, const double theRadius, diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_Torus.h b/src/GeomAlgoAPI/GeomAlgoAPI_Torus.h index 10f66f53e..1205f7298 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_Torus.h +++ b/src/GeomAlgoAPI/GeomAlgoAPI_Torus.h @@ -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