From: Jérôme Date: Tue, 8 Dec 2020 09:12:25 +0000 (+0100) Subject: Fixed coding issues X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9a942445013f9330fe356967e9cc3ba99aa6fd39;p=modules%2Fshaper.git Fixed coding issues --- diff --git a/src/FeaturesPlugin/BoundingBox_widget.xml b/src/FeaturesPlugin/BoundingBox_widget.xml deleted file mode 100644 index 0dc8a0d12..000000000 --- a/src/FeaturesPlugin/BoundingBox_widget.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - diff --git a/src/FeaturesPlugin/Bounding_Box_widget.xml b/src/FeaturesPlugin/Bounding_Box_widget.xml new file mode 100644 index 000000000..0dc8a0d12 --- /dev/null +++ b/src/FeaturesPlugin/Bounding_Box_widget.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + diff --git a/src/FeaturesPlugin/CMakeLists.txt b/src/FeaturesPlugin/CMakeLists.txt index ec8382c3e..446b32b9d 100644 --- a/src/FeaturesPlugin/CMakeLists.txt +++ b/src/FeaturesPlugin/CMakeLists.txt @@ -24,7 +24,6 @@ INCLUDE(UseQtExt) # additional include directories INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/src/GeomDataAPI ${PROJECT_SOURCE_DIR}/src/Locale - ${PROJECT_SOURCE_DIR}/src/PrimitivesPlugin ${QT_INCLUDES}) # additional preprocessor / compiler flags @@ -164,8 +163,8 @@ SET(XML_RESOURCES fillet1d_widget.xml measurement_widget.xml GeometryCalculation_widget.xml - BoundingBox_widget.xml - CreateBoundingBox_widget.xml + Bounding_Box_widget.xml + Create_Bounding_Box_widget.xml fusion_faces_widget.xml chamfer_widget.xml copy_widget.xml diff --git a/src/FeaturesPlugin/CreateBoundingBox_widget.xml b/src/FeaturesPlugin/CreateBoundingBox_widget.xml deleted file mode 100644 index 02cb6484e..000000000 --- a/src/FeaturesPlugin/CreateBoundingBox_widget.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - - - diff --git a/src/FeaturesPlugin/Create_Bounding_Box_widget.xml b/src/FeaturesPlugin/Create_Bounding_Box_widget.xml new file mode 100644 index 000000000..02cb6484e --- /dev/null +++ b/src/FeaturesPlugin/Create_Bounding_Box_widget.xml @@ -0,0 +1,21 @@ + + + + + + + + + + diff --git a/src/FeaturesPlugin/FeaturesPlugin_BoundingBox.cpp b/src/FeaturesPlugin/FeaturesPlugin_BoundingBox.cpp index 0b92fcea4..e105a419c 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_BoundingBox.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_BoundingBox.cpp @@ -19,19 +19,19 @@ #include "FeaturesPlugin_BoundingBox.h" +#include + +#include + +#include + #include #include #include #include - -#include - #include #include #include -#include - -#include #include #include diff --git a/src/FeaturesPlugin/FeaturesPlugin_CommonBoundingBox.cpp b/src/FeaturesPlugin/FeaturesPlugin_CommonBoundingBox.cpp index 6edc82590..63047c5b8 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_CommonBoundingBox.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_CommonBoundingBox.cpp @@ -19,26 +19,23 @@ #include "FeaturesPlugin_CommonBoundingBox.h" -#include #include -#include -#include -#include -#include + #include +#include #include #include -#include #include -#include -#include + +#include +#include #include -#include +#include #include #include -#include + //================================================================================================= @@ -52,14 +49,14 @@ void FeaturesPlugin_CommonBoundingBox::createBoxByTwoPoints() DocumentPtr aDoc = aSession->activeDocument(); GeomVertexPtr vertexFirst = - GeomAlgoAPI_PointBuilder::vertex( aValues->value(0), - aValues->value(2), - aValues->value(4)); + GeomAlgoAPI_PointBuilder::vertex(aValues->value(0), + aValues->value(2), + aValues->value(4)); GeomVertexPtr vertexSecond = - GeomAlgoAPI_PointBuilder::vertex( aValues->value(1), - aValues->value(3), - aValues->value(5)); + GeomAlgoAPI_PointBuilder::vertex(aValues->value(1), + aValues->value(3), + aValues->value(5)); std::shared_ptr aBoxAlgo; diff --git a/src/FeaturesPlugin/FeaturesPlugin_CommonBoundingBox.h b/src/FeaturesPlugin/FeaturesPlugin_CommonBoundingBox.h index 18ba75972..dc6e7b125 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_CommonBoundingBox.h +++ b/src/FeaturesPlugin/FeaturesPlugin_CommonBoundingBox.h @@ -23,9 +23,10 @@ #include "FeaturesPlugin.h" #include +#include + #include #include -#include #include diff --git a/src/FeaturesPlugin/FeaturesPlugin_CreateBoundingBox.cpp b/src/FeaturesPlugin/FeaturesPlugin_CreateBoundingBox.cpp index df636ce89..5a4b8ba46 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_CreateBoundingBox.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_CreateBoundingBox.cpp @@ -21,7 +21,6 @@ #include #include -#include #include #include @@ -33,8 +32,6 @@ #include #include -#include - #include #include @@ -103,10 +100,10 @@ void FeaturesPlugin_CreateBoundingBox::updateValues() if (!aShape && aSelection->context()) aShape = aSelection->context()->shape(); } - if (aShape){ + if (aShape) { double aXmin, aXmax, aYmin,aYmax,aZmin,aZmax; std::string aError; - if( !GetBoundingBox(aShape, + if (!GetBoundingBox(aShape, true, aXmin, aXmax, aYmin,aYmax, diff --git a/src/FeaturesPlugin/plugin-Features.xml b/src/FeaturesPlugin/plugin-Features.xml index cc9dbccc3..5de92e7cd 100644 --- a/src/FeaturesPlugin/plugin-Features.xml +++ b/src/FeaturesPlugin/plugin-Features.xml @@ -179,11 +179,11 @@ - + - +