From: SONOLET Aymeric Date: Tue, 2 Apr 2024 09:03:03 +0000 (+0200) Subject: feat: update pre-commit-config X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Ftlpr%2F34%2Fhead;p=modules%2Fshaper.git feat: update pre-commit-config --- diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c552e08fa..0612adbae 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -55,7 +55,7 @@ repos: # # language_version: python3.8 - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.1.9 + rev: v0.3.5 hooks: # Run the linter. - id: ruff @@ -64,22 +64,22 @@ repos: exclude: | (?x)^( .*[Tt]est.*| - __init__.py + .*__init__.py )$ # Run the formatter. - id: ruff-format types_or: [python, pyi, jupyter] - - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.8.0 - hooks: - - id: mypy - exclude: | - (?x)^( - .*[Tt]est.* - )$ - args: [--ignore-missing-imports, --explicit-package-bases] + # - repo: https://github.com/pre-commit/mirrors-mypy + # rev: v1.8.0 + # hooks: + # - id: mypy + # exclude: | + # (?x)^( + # .*[Tt]est.* + # )$ + # args: [--ignore-missing-imports, --explicit-package-bases] - repo: https://github.com/pre-commit/mirrors-clang-format - rev: v17.0.6 # Use the sha / tag you want to point at + rev: v18.1.2 # Use the sha / tag you want to point at hooks: - id: clang-format # - id: clang-tidy @@ -89,7 +89,7 @@ repos: # .*\.cxx # )$ - repo: https://github.com/scop/pre-commit-shfmt - rev: v3.7.0-4 + rev: v3.8.0-1 hooks: # Choose one of: - id: shfmt # prebuilt upstream executable @@ -97,17 +97,17 @@ repos: # - id: shfmt-src # build from source (requires/installs Go to build) # - id: shfmt-docker # Docker image (requires Docker to run) - repo: https://github.com/shellcheck-py/shellcheck-py - rev: v0.9.0.6 + rev: v0.10.0.1 hooks: - id: shellcheck args: [--severity=warning] - repo: https://github.com/adrienverge/yamllint.git - rev: v1.21.0 # or higher tag + rev: v1.35.1 # or higher tag hooks: - id: yamllint args: [--strict, '--config-data={extends: relaxed, rules: {line-length: {max: 120}}}'] - repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt - rev: 0.2.1 # or other specific tag + rev: 0.2.3 # or other specific tag hooks: - id: yamlfmt - repo: https://github.com/pre-commit/pygrep-hooks @@ -117,7 +117,7 @@ repos: - id: rst-directive-colons - id: rst-inline-touching-normal - repo: https://github.com/cheshirekow/cmake-format-precommit - rev: v0.6.10 + rev: v0.6.13 hooks: - id: cmake-format # - id: cmake-lint diff --git a/CMakeCommon/FindPlaneGCS.cmake b/CMakeCommon/FindPlaneGCS.cmake index 300cdcf3f..aafec006e 100644 --- a/CMakeCommon/FindPlaneGCS.cmake +++ b/CMakeCommon/FindPlaneGCS.cmake @@ -50,7 +50,10 @@ file(TO_CMAKE_PATH "$ENV{EIGEN_ROOT_DIR}/include/eigen3" EIGEN3_INCLUDE_DIR) file(TO_CMAKE_PATH "$ENV{BOOST_ROOT_DIR}" BOOST_ROOT) set(CMAKE_MODULE_PATH "${PLANEGCS_CMAKE_DIR}" ${CMAKE_MODULE_PATH}) find_package(Eigen3 3.2.5 REQUIRED) -find_package(Boost COMPONENTS graph REQUIRED) +find_package( + Boost + COMPONENTS graph + REQUIRED) if(Boost_FOUND AND EIGEN3_FOUND) set(PLANEGCS_INCLUDE_DIRS ${PLANEGCS_INCLUDE_DIR}) diff --git a/salome_pid.py b/salome_pid.py index f639c061d..537c36dd1 100755 --- a/salome_pid.py +++ b/salome_pid.py @@ -19,7 +19,8 @@ # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -import sys, pickle +import sys +import pickle from killSalome import getPiDict process = sys.argv[2] # SALOME_Session_Server" diff --git a/src/BuildPlugin/Test/Test2409.py b/src/BuildPlugin/Test/Test2409.py index 65fc5033d..4f87d7604 100644 --- a/src/BuildPlugin/Test/Test2409.py +++ b/src/BuildPlugin/Test/Test2409.py @@ -18,8 +18,8 @@ # """ - Issue #2409: Filling on one edge - Check the Filling reports error if just one edge is selected +Issue #2409: Filling on one edge +Check the Filling reports error if just one edge is selected """ from salome.shaper import model diff --git a/src/CollectionPlugin/Test/TestField.py b/src/CollectionPlugin/Test/TestField.py index fda81672d..389cfe941 100644 --- a/src/CollectionPlugin/Test/TestField.py +++ b/src/CollectionPlugin/Test/TestField.py @@ -18,15 +18,16 @@ # """ - TestBoolean.py - Unit test of FeaturesPlugin_Group class +TestBoolean.py +Unit test of FeaturesPlugin_Group class - class FeaturesPlugin_Group - static const std::string MY_GROUP_ID("Group"); - static const std::string MY_GROUP_LIST_ID("group_list"); +class FeaturesPlugin_Group + static const std::string MY_GROUP_ID("Group"); + static const std::string MY_GROUP_LIST_ID("group_list"); - data()->addAttribute(FeaturesPlugin_Group::LIST_ID(), ModelAPI_AttributeSelectionList::typeId()); + data()->addAttribute(FeaturesPlugin_Group::LIST_ID(), ModelAPI_AttributeSelectionList::typeId()); """ + # ========================================================================= # Initialization of the test # ========================================================================= diff --git a/src/CollectionPlugin/Test/TestGroup.py b/src/CollectionPlugin/Test/TestGroup.py index 3b51d37fc..d0e8d28b4 100644 --- a/src/CollectionPlugin/Test/TestGroup.py +++ b/src/CollectionPlugin/Test/TestGroup.py @@ -18,15 +18,16 @@ # """ - TestBoolean.py - Unit test of FeaturesPlugin_Group class +TestBoolean.py +Unit test of FeaturesPlugin_Group class - class FeaturesPlugin_Group - static const std::string MY_GROUP_ID("Group"); - static const std::string MY_GROUP_LIST_ID("group_list"); +class FeaturesPlugin_Group + static const std::string MY_GROUP_ID("Group"); + static const std::string MY_GROUP_LIST_ID("group_list"); - data()->addAttribute(FeaturesPlugin_Group::LIST_ID(), ModelAPI_AttributeSelectionList::typeId()); + data()->addAttribute(FeaturesPlugin_Group::LIST_ID(), ModelAPI_AttributeSelectionList::typeId()); """ + # ========================================================================= # Initialization of the test # ========================================================================= diff --git a/src/Config/Config_Translator.cpp b/src/Config/Config_Translator.cpp index eeb238240..97c5c6be1 100644 --- a/src/Config/Config_Translator.cpp +++ b/src/Config/Config_Translator.cpp @@ -225,8 +225,7 @@ void Config_Translator::saveMissedTranslations() { aSrc = aDictIt->first; oFStream << " " << aSrc << "" << std::endl; - oFStream << " " - << "" << std::endl; + oFStream << " " << "" << std::endl; oFStream << " " << std::endl; } diff --git a/src/Config/Config_XMLReader.cpp b/src/Config/Config_XMLReader.cpp index 9080d7b75..b9da63952 100644 --- a/src/Config/Config_XMLReader.cpp +++ b/src/Config/Config_XMLReader.cpp @@ -219,17 +219,15 @@ xmlNodePtr Config_XMLReader::findRoot(const std::string theDocumentPath) { } if (myXmlDoc == nullptr) { #ifdef _DEBUG - std::cout << "Config_XMLReader::import: " - << "Document " << aDocPath << " is not parsed successfully." - << std::endl; + std::cout << "Config_XMLReader::import: " << "Document " << aDocPath + << " is not parsed successfully." << std::endl; #endif return nullptr; } xmlNodePtr aRoot = xmlDocGetRootElement(myXmlDoc); #ifdef _DEBUG if (aRoot == NULL) { - std::cout << "Config_XMLReader::import: " - << "Error: empty document"; + std::cout << "Config_XMLReader::import: " << "Error: empty document"; } #endif return aRoot; diff --git a/src/ConnectorAPI/Test/TestExportSTL.py b/src/ConnectorAPI/Test/TestExportSTL.py index ef332074b..a6a549422 100644 --- a/src/ConnectorAPI/Test/TestExportSTL.py +++ b/src/ConnectorAPI/Test/TestExportSTL.py @@ -18,8 +18,8 @@ # """ - TestExport.py - Unit test of ExchangePlugin_TestExport class +TestExport.py +Unit test of ExchangePlugin_TestExport class """ # ========================================================================= # Initialization of the test diff --git a/src/ConnectorAPI/Test/TestExportXAOMem.py b/src/ConnectorAPI/Test/TestExportXAOMem.py index 9c54be16b..b363497d6 100644 --- a/src/ConnectorAPI/Test/TestExportXAOMem.py +++ b/src/ConnectorAPI/Test/TestExportXAOMem.py @@ -18,8 +18,8 @@ # """ - TestExportXAOMem.py - Unit test of ExchangePlugin_ExportFeature class +TestExportXAOMem.py +Unit test of ExchangePlugin_ExportFeature class """ # ========================================================================= diff --git a/src/ConnectorAPI/Test/TestImportSTEP.py b/src/ConnectorAPI/Test/TestImportSTEP.py index c721c1acd..485bb3809 100644 --- a/src/ConnectorAPI/Test/TestImportSTEP.py +++ b/src/ConnectorAPI/Test/TestImportSTEP.py @@ -18,8 +18,8 @@ # """ - TestImportStep.py - Unit test of ExchangePlugin_ImportFeature class for STEP +TestImportStep.py +Unit test of ExchangePlugin_ImportFeature class for STEP """ # ========================================================================= # Initialization of the test diff --git a/src/ConnectorAPI/Test/TestImportXAOMem.py b/src/ConnectorAPI/Test/TestImportXAOMem.py index 1a359e080..3e3561a6f 100644 --- a/src/ConnectorAPI/Test/TestImportXAOMem.py +++ b/src/ConnectorAPI/Test/TestImportXAOMem.py @@ -18,8 +18,8 @@ # """ - TestImportXAOMem.py - Unit test of ExchangePlugin_ImportFeature class +TestImportXAOMem.py +Unit test of ExchangePlugin_ImportFeature class """ # ========================================================================= diff --git a/src/ConstructionPlugin/Test/TestPlane.py b/src/ConstructionPlugin/Test/TestPlane.py index 54908ba99..c46593d4a 100644 --- a/src/ConstructionPlugin/Test/TestPlane.py +++ b/src/ConstructionPlugin/Test/TestPlane.py @@ -20,6 +20,7 @@ """ Test case for Construction Plane feature. Written on High API. """ + from ModelAPI import * from GeomAPI import * diff --git a/src/ConstructionPlugin/Test/TestPlane_Copies.py b/src/ConstructionPlugin/Test/TestPlane_Copies.py index 19fe9149a..b8ccdedfc 100644 --- a/src/ConstructionPlugin/Test/TestPlane_Copies.py +++ b/src/ConstructionPlugin/Test/TestPlane_Copies.py @@ -20,6 +20,7 @@ """ Test case for Construction Plane feature. Written on High API. """ + from ModelAPI import * from GeomAPI import * diff --git a/src/ConstructionPlugin/Test/TestPoint_XYZ.py b/src/ConstructionPlugin/Test/TestPoint_XYZ.py index 9233dc1dd..eaf6bc3b4 100644 --- a/src/ConstructionPlugin/Test/TestPoint_XYZ.py +++ b/src/ConstructionPlugin/Test/TestPoint_XYZ.py @@ -20,6 +20,7 @@ """ Test case for Construction Point feature by coordinates. """ + from ModelAPI import * from GeomAPI import * diff --git a/src/ConstructionPlugin/Test/UnitTestAxis.py b/src/ConstructionPlugin/Test/UnitTestAxis.py index b3ff1b79e..06abe0fc2 100644 --- a/src/ConstructionPlugin/Test/UnitTestAxis.py +++ b/src/ConstructionPlugin/Test/UnitTestAxis.py @@ -18,34 +18,33 @@ # """ - UnitTestAxis.py - Unit Test of ConstructionPlugin_Axis class +UnitTestAxis.py +Unit Test of ConstructionPlugin_Axis class - static const std::string CONSTRUCTION_AXIS_KIND("Axis"); - static const std::string METHOD_ATTR("CreationMethod"); - static const std::string POINT_ATTR_FIRST("FirstPoint"); - static const std::string POINT_ATTR_SECOND("SecondPoint"); - static const std::string CYLINDRICAL_FACE_ATTR("CylindricalFace"); - static const std::string X_ATTR("X"); - static const std::string Y_ATTR("Y"); - static const std::string Z_ATTR("Z"); +static const std::string CONSTRUCTION_AXIS_KIND("Axis"); +static const std::string METHOD_ATTR("CreationMethod"); +static const std::string POINT_ATTR_FIRST("FirstPoint"); +static const std::string POINT_ATTR_SECOND("SecondPoint"); +static const std::string CYLINDRICAL_FACE_ATTR("CylindricalFace"); +static const std::string X_ATTR("X"); +static const std::string Y_ATTR("Y"); +static const std::string Z_ATTR("Z"); - data()->addAttribute(ConstructionPlugin_Axis::METHOD(), ModelAPI_AttributeString::typeId()); +data()->addAttribute(ConstructionPlugin_Axis::METHOD(), ModelAPI_AttributeString::typeId()); - data()->addAttribute(ConstructionPlugin_Axis::POINT_FIRST(), ModelAPI_AttributeSelection::typeId()); - data()->addAttribute(ConstructionPlugin_Axis::POINT_SECOND(), ModelAPI_AttributeSelection::typeId()); +data()->addAttribute(ConstructionPlugin_Axis::POINT_FIRST(), ModelAPI_AttributeSelection::typeId()); +data()->addAttribute(ConstructionPlugin_Axis::POINT_SECOND(), ModelAPI_AttributeSelection::typeId()); - data()->addAttribute(ConstructionPlugin_Axis::CYLINDRICAL_FACE(), ModelAPI_AttributeSelection::typeId()); +data()->addAttribute(ConstructionPlugin_Axis::CYLINDRICAL_FACE(), ModelAPI_AttributeSelection::typeId()); - data()->addAttribute(ConstructionPlugin_Axis::X(), ModelAPI_AttributeDouble::typeId()); - data()->addAttribute(ConstructionPlugin_Axis::Y(), ModelAPI_AttributeDouble::typeId()); - data()->addAttribute(ConstructionPlugin_Axis::Z(), ModelAPI_AttributeDouble::typeId()); +data()->addAttribute(ConstructionPlugin_Axis::X(), ModelAPI_AttributeDouble::typeId()); +data()->addAttribute(ConstructionPlugin_Axis::Y(), ModelAPI_AttributeDouble::typeId()); +data()->addAttribute(ConstructionPlugin_Axis::Z(), ModelAPI_AttributeDouble::typeId()); """ - # ========================================================================= # Initialization of the test # ========================================================================= diff --git a/src/ExchangeAPI/ExchangeAPI_Export.cpp b/src/ExchangeAPI/ExchangeAPI_Export.cpp index f19b837b4..447abde5a 100644 --- a/src/ExchangeAPI/ExchangeAPI_Export.cpp +++ b/src/ExchangeAPI/ExchangeAPI_Export.cpp @@ -298,11 +298,9 @@ void ExchangeAPI_Export::dump(ModelHighAPI_Dumper &theDumper) const { if (stldeflectionType()->value() == ExchangePlugin_ExportFeature::STL_DEFLECTION_TYPE_RELATIVE()) { - theDumper << "," - << "True"; + theDumper << "," << "True"; } else { - theDumper << "," - << "False"; + theDumper << "," << "False"; } if (stlfileType()->value() == diff --git a/src/ExchangePlugin/Test/TestExport.py b/src/ExchangePlugin/Test/TestExport.py index 10023e15a..6c6a435bf 100755 --- a/src/ExchangePlugin/Test/TestExport.py +++ b/src/ExchangePlugin/Test/TestExport.py @@ -18,9 +18,10 @@ # """ - TestExport.py - Unit test of ExchangePlugin_TestExport class +TestExport.py +Unit test of ExchangePlugin_TestExport class """ + # ========================================================================= # Initialization of the test # ========================================================================= diff --git a/src/ExchangePlugin/Test/TestImport.py b/src/ExchangePlugin/Test/TestImport.py index 3779e7684..edbd3f040 100644 --- a/src/ExchangePlugin/Test/TestImport.py +++ b/src/ExchangePlugin/Test/TestImport.py @@ -18,9 +18,10 @@ # """ - TestImport.py - Unit test of ExchangePlugin_TestImport class +TestImport.py +Unit test of ExchangePlugin_TestImport class """ + # ========================================================================= # Initialization of the test # ========================================================================= diff --git a/src/FeaturesAPI/FeaturesAPI_RemoveSubShapes.cpp b/src/FeaturesAPI/FeaturesAPI_RemoveSubShapes.cpp index a0332140a..fb4dca640 100644 --- a/src/FeaturesAPI/FeaturesAPI_RemoveSubShapes.cpp +++ b/src/FeaturesAPI/FeaturesAPI_RemoveSubShapes.cpp @@ -100,8 +100,7 @@ void FeaturesAPI_RemoveSubShapes::dump(ModelHighAPI_Dumper &theDumper) const { } theDumper << aBase << " = model.addRemoveSubShapes(" << aDocName << ", " - << anAttrBaseShape << ")" - << "\n" + << anAttrBaseShape << ")" << "\n" << theDumper.name(aBase) << (isKeepSubs ? ".setSubShapesToKeep(" : ".setSubShapesToRemove(") << anAttrSubShapes << ")" << std::endl; diff --git a/src/FeaturesPlugin/FeaturesPlugin_BoundingBoxBase.h b/src/FeaturesPlugin/FeaturesPlugin_BoundingBoxBase.h index 6883c3142..003e7187d 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_BoundingBoxBase.h +++ b/src/FeaturesPlugin/FeaturesPlugin_BoundingBoxBase.h @@ -38,7 +38,7 @@ class FeaturesPlugin_BoundingBoxBase : public ModelAPI_Feature { public: /// Performs the algorithm and stores results it in the data structure. - FEATURESPLUGIN_EXPORT void execute() override{}; + FEATURESPLUGIN_EXPORT void execute() override {}; /// Return Attribut values of result. virtual AttributePtr attributResultValues() = 0; diff --git a/src/FeaturesPlugin/FeaturesPlugin_CommonSharedFaces.h b/src/FeaturesPlugin/FeaturesPlugin_CommonSharedFaces.h index ac632a4e6..80a85f9d4 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_CommonSharedFaces.h +++ b/src/FeaturesPlugin/FeaturesPlugin_CommonSharedFaces.h @@ -34,7 +34,7 @@ class FeaturesPlugin_CommonSharedFaces : public ModelAPI_Feature { public: /// Performs the algorithm and stores results it in the data structure. - FEATURESPLUGIN_EXPORT void execute() override{}; + FEATURESPLUGIN_EXPORT void execute() override {}; /// Return Attribut values of result. virtual AttributePtr attributObject() = 0; diff --git a/src/FeaturesPlugin/Test/TestBoolean1.py b/src/FeaturesPlugin/Test/TestBoolean1.py index 199e96616..62c19a34f 100644 --- a/src/FeaturesPlugin/Test/TestBoolean1.py +++ b/src/FeaturesPlugin/Test/TestBoolean1.py @@ -18,19 +18,20 @@ # """ - TestBoolean.py - Unit test of FeaturesPlugin_Boolean class +TestBoolean.py +Unit test of FeaturesPlugin_Boolean class - class FeaturesPlugin_Boolean - static const std::string MY_ID("Boolean"); - static const std::string MY_OBJECT_ID("main_object"); - static const std::string MY_TOOL_ID("tool_object"); - static const std::string MY_TYPE_ID("bool_type"); +class FeaturesPlugin_Boolean + static const std::string MY_ID("Boolean"); + static const std::string MY_OBJECT_ID("main_object"); + static const std::string MY_TOOL_ID("tool_object"); + static const std::string MY_TYPE_ID("bool_type"); - data()->addAttribute(FeaturesPlugin_Boolean::OBJECT_ID(), ModelAPI_AttributeReference::typeId()); - data()->addAttribute(FeaturesPlugin_Boolean::TOOL_ID(), ModelAPI_AttributeReference::typeId()); - data()->addAttribute(FeaturesPlugin_Boolean::TYPE_ID(), ModelAPI_AttributeInteger::typeId()); + data()->addAttribute(FeaturesPlugin_Boolean::OBJECT_ID(), ModelAPI_AttributeReference::typeId()); + data()->addAttribute(FeaturesPlugin_Boolean::TOOL_ID(), ModelAPI_AttributeReference::typeId()); + data()->addAttribute(FeaturesPlugin_Boolean::TYPE_ID(), ModelAPI_AttributeInteger::typeId()); """ + # ========================================================================= # Initialization of the test # ========================================================================= diff --git a/src/FeaturesPlugin/Test/TestBoundingBox.py b/src/FeaturesPlugin/Test/TestBoundingBox.py index a32a56212..65ad73c90 100644 --- a/src/FeaturesPlugin/Test/TestBoundingBox.py +++ b/src/FeaturesPlugin/Test/TestBoundingBox.py @@ -18,13 +18,12 @@ # """ - Unit test of ... +Unit test of ... """ # ========================================================================= # Initialization of the test # ========================================================================= - import math from ModelAPI import * diff --git a/src/FeaturesPlugin/Test/TestChamfer.py b/src/FeaturesPlugin/Test/TestChamfer.py index 107fbbcc6..305f91477 100644 --- a/src/FeaturesPlugin/Test/TestChamfer.py +++ b/src/FeaturesPlugin/Test/TestChamfer.py @@ -18,8 +18,8 @@ # """ - TestChamfer.py - Unit test of FeaturesPlugin_Chamfer class +TestChamfer.py +Unit test of FeaturesPlugin_Chamfer class """ from ModelAPI import * diff --git a/src/FeaturesPlugin/Test/TestCheckSharedFaces.py b/src/FeaturesPlugin/Test/TestCheckSharedFaces.py index 69bd7ebb3..f86e57754 100644 --- a/src/FeaturesPlugin/Test/TestCheckSharedFaces.py +++ b/src/FeaturesPlugin/Test/TestCheckSharedFaces.py @@ -18,13 +18,12 @@ # """ - Unit test of Check shared faces +Unit test of Check shared faces """ # ========================================================================= # Initialization of the test # ========================================================================= - from ModelAPI import * from GeomAPI import * from salome.shaper import model diff --git a/src/FeaturesPlugin/Test/TestExtrusion.py b/src/FeaturesPlugin/Test/TestExtrusion.py index cc2f193cf..c49dd0f51 100644 --- a/src/FeaturesPlugin/Test/TestExtrusion.py +++ b/src/FeaturesPlugin/Test/TestExtrusion.py @@ -18,29 +18,30 @@ # """ - TestExtrusion.py - Unit test of FeaturesPlugin_Extrusion class +TestExtrusion.py +Unit test of FeaturesPlugin_Extrusion class - class FeaturesPlugin_Extrusion : public ModelAPI_Feature - static const std::string MY_EXTRUSION_ID("Extrusion"); - static const std::string LIST_ID("base"); - static const std::string METHOD_ATTR("CreationMethod"); - static const std::string MY_TO_SIZE_ID("to_size"); - static const std::string MY_FROM_SIZE_ID("from_size"); - static const std::string MY_TO_OBJECT_ID("to_object"); - static const std::string MY_TO_OFFSET_ID("to_offset"); - static const std::string MY_FROM_OBJECT_ID("from_object"); - static const std::string MY_FROM_OFFSET_ID("from_offset"); +class FeaturesPlugin_Extrusion : public ModelAPI_Feature + static const std::string MY_EXTRUSION_ID("Extrusion"); + static const std::string LIST_ID("base"); + static const std::string METHOD_ATTR("CreationMethod"); + static const std::string MY_TO_SIZE_ID("to_size"); + static const std::string MY_FROM_SIZE_ID("from_size"); + static const std::string MY_TO_OBJECT_ID("to_object"); + static const std::string MY_TO_OFFSET_ID("to_offset"); + static const std::string MY_FROM_OBJECT_ID("from_object"); + static const std::string MY_FROM_OFFSET_ID("from_offset"); - data()->addAttribute(LIST_ID(), ModelAPI_AttributeSelection::typeId()); - data()->addAttribute(CREATION_METHOD(), ModelAPI_AttributeString::typeId()); - data()->addAttribute(TO_SIZE_ID(), ModelAPI_AttributeDouble::typeId()); - data()->addAttribute(FROM_SIZE_ID(), ModelAPI_AttributeDouble::typeId()); - data()->addAttribute(TO_OBJECT_ID(), ModelAPI_AttributeSelection::typeId()); - data()->addAttribute(TO_OFFSET_ID(), ModelAPI_AttributeDouble::typeId()); - data()->addAttribute(FROM_OBJECT_ID(), ModelAPI_AttributeSelection::typeId()); - data()->addAttribute(FROM_OFFSET_ID(), ModelAPI_AttributeSelection::typeId()); + data()->addAttribute(LIST_ID(), ModelAPI_AttributeSelection::typeId()); + data()->addAttribute(CREATION_METHOD(), ModelAPI_AttributeString::typeId()); + data()->addAttribute(TO_SIZE_ID(), ModelAPI_AttributeDouble::typeId()); + data()->addAttribute(FROM_SIZE_ID(), ModelAPI_AttributeDouble::typeId()); + data()->addAttribute(TO_OBJECT_ID(), ModelAPI_AttributeSelection::typeId()); + data()->addAttribute(TO_OFFSET_ID(), ModelAPI_AttributeDouble::typeId()); + data()->addAttribute(FROM_OBJECT_ID(), ModelAPI_AttributeSelection::typeId()); + data()->addAttribute(FROM_OFFSET_ID(), ModelAPI_AttributeSelection::typeId()); """ + # ========================================================================= # Initialization of the test # ========================================================================= diff --git a/src/FeaturesPlugin/Test/TestFillet.py b/src/FeaturesPlugin/Test/TestFillet.py index 3d628569a..2162e2f4a 100644 --- a/src/FeaturesPlugin/Test/TestFillet.py +++ b/src/FeaturesPlugin/Test/TestFillet.py @@ -18,8 +18,8 @@ # """ - TestFillet.py - Unit test of FeaturesPlugin_Fillet class +TestFillet.py +Unit test of FeaturesPlugin_Fillet class """ from ModelAPI import * diff --git a/src/FeaturesPlugin/Test/TestGeometryCalculation.py b/src/FeaturesPlugin/Test/TestGeometryCalculation.py index c3f77c524..e80a3e4ac 100644 --- a/src/FeaturesPlugin/Test/TestGeometryCalculation.py +++ b/src/FeaturesPlugin/Test/TestGeometryCalculation.py @@ -18,7 +18,7 @@ # """ - Unit test of ... +Unit test of ... """ # ========================================================================= # Initialization of the test diff --git a/src/FeaturesPlugin/Test/TestMultiBoolean.py b/src/FeaturesPlugin/Test/TestMultiBoolean.py index a76496da1..cb4496382 100644 --- a/src/FeaturesPlugin/Test/TestMultiBoolean.py +++ b/src/FeaturesPlugin/Test/TestMultiBoolean.py @@ -18,18 +18,18 @@ # """ - TestExtrusion.py - Unit test of FeaturesPlugin_Boolean class: many Boolean operations performance - - class FeaturesPlugin_Extrusion : public ModelAPI_Feature - static const std::string MY_EXTRUSION_ID("Extrusion"); - static const std::string MY_FACE_ID("base"); - static const std::string MY_SIZE_ID("size"); - static const std::string MY_REVERSE_ID("reverse"); - - data()->addAttribute(FeaturesPlugin_Extrusion::FACE_ID(), ModelAPI_AttributeSelection::typeId()); - data()->addAttribute(FeaturesPlugin_Extrusion::SIZE_ID(), ModelAPI_AttributeDouble::typeId()); - data()->addAttribute(FeaturesPlugin_Extrusion::REVERSE_ID(), ModelAPI_AttributeBoolean::typeId()); +TestExtrusion.py +Unit test of FeaturesPlugin_Boolean class: many Boolean operations performance + +class FeaturesPlugin_Extrusion : public ModelAPI_Feature + static const std::string MY_EXTRUSION_ID("Extrusion"); + static const std::string MY_FACE_ID("base"); + static const std::string MY_SIZE_ID("size"); + static const std::string MY_REVERSE_ID("reverse"); + + data()->addAttribute(FeaturesPlugin_Extrusion::FACE_ID(), ModelAPI_AttributeSelection::typeId()); + data()->addAttribute(FeaturesPlugin_Extrusion::SIZE_ID(), ModelAPI_AttributeDouble::typeId()); + data()->addAttribute(FeaturesPlugin_Extrusion::REVERSE_ID(), ModelAPI_AttributeBoolean::typeId()); """ # Number rows and columns of cylinders that cuts the big box. Number of Boolena operations is N*N diff --git a/src/FeaturesPlugin/Test/TestNormalToFace.py b/src/FeaturesPlugin/Test/TestNormalToFace.py index ccc3c6abe..0b86f1367 100644 --- a/src/FeaturesPlugin/Test/TestNormalToFace.py +++ b/src/FeaturesPlugin/Test/TestNormalToFace.py @@ -18,13 +18,12 @@ # """ - Unit test of ... +Unit test of ... """ # ========================================================================= # Initialization of the test # ========================================================================= - from ModelAPI import modelAPI_ResultConstruction from salome.shaper import model diff --git a/src/FeaturesPlugin/Test/TestPointCloud.py b/src/FeaturesPlugin/Test/TestPointCloud.py index f9e322109..c10e0916d 100644 --- a/src/FeaturesPlugin/Test/TestPointCloud.py +++ b/src/FeaturesPlugin/Test/TestPointCloud.py @@ -18,7 +18,7 @@ # """ - Unit test of makeVertexInsideFace +Unit test of makeVertexInsideFace """ from salome.shaper import model diff --git a/src/FeaturesPlugin/Test/TestPointCoordinates.py b/src/FeaturesPlugin/Test/TestPointCoordinates.py index eb2dccd88..1bde9cf99 100644 --- a/src/FeaturesPlugin/Test/TestPointCoordinates.py +++ b/src/FeaturesPlugin/Test/TestPointCoordinates.py @@ -18,7 +18,7 @@ # """ - Unit test of ... +Unit test of ... """ # ========================================================================= # Initialization of the test diff --git a/src/FeaturesPlugin/Test/TestRevolution.py b/src/FeaturesPlugin/Test/TestRevolution.py index b980d1026..459687ed2 100644 --- a/src/FeaturesPlugin/Test/TestRevolution.py +++ b/src/FeaturesPlugin/Test/TestRevolution.py @@ -18,31 +18,32 @@ # """ - TestRevolution.py - Unit test of FeaturesPlugin_Revolution class - - class FeaturesPlugin_Revolution : public ModelAPI_Feature - static const std::string MY_REVOLUTION_ID("Revolution"); - static const std::string MY_GROUP_LIST_ID("base"); - static const std::string MY_TO_OBJECT_ID("axis_object"); - static const std::string METHOD_ATTR("CreationMethod"); - static const std::string MY_TO_ANGLE_ID("to_angle"); - static const std::string MY_FROM_ANGLE_ID("from_angle"); - static const std::string MY_TO_OBJECT_ID("to_object"); - static const std::string MY_TO_OFFSET_ID("to_offset"); - static const std::string MY_FROM_OBJECT_ID("from_object"); - static const std::string MY_FROM_OFFSET_ID("from_offset"); - - data()->addAttribute(LIST_ID(), ModelAPI_AttributeSelectionList::typeId()); - data()->addAttribute(AXIS_OBJECT_ID(), ModelAPI_AttributeSelection::typeId()); - data()->addAttribute(CREATION_METHOD(), ModelAPI_AttributeString::typeId()); - data()->addAttribute(TO_ANGLE_ID(), ModelAPI_AttributeDouble::typeId()); - data()->addAttribute(FROM_ANGLE_ID(), ModelAPI_AttributeDouble::typeId()); - data()->addAttribute(TO_OBJECT_ID(), ModelAPI_AttributeSelection::typeId()); - data()->addAttribute(TO_OFFSET_ID(), ModelAPI_AttributeDouble::typeId()); - data()->addAttribute(FROM_OBJECT_ID(), ModelAPI_AttributeSelection::typeId()); - data()->addAttribute(FROM_OFFSET_ID(), ModelAPI_AttributeDouble::typeId()); +TestRevolution.py +Unit test of FeaturesPlugin_Revolution class + +class FeaturesPlugin_Revolution : public ModelAPI_Feature + static const std::string MY_REVOLUTION_ID("Revolution"); + static const std::string MY_GROUP_LIST_ID("base"); + static const std::string MY_TO_OBJECT_ID("axis_object"); + static const std::string METHOD_ATTR("CreationMethod"); + static const std::string MY_TO_ANGLE_ID("to_angle"); + static const std::string MY_FROM_ANGLE_ID("from_angle"); + static const std::string MY_TO_OBJECT_ID("to_object"); + static const std::string MY_TO_OFFSET_ID("to_offset"); + static const std::string MY_FROM_OBJECT_ID("from_object"); + static const std::string MY_FROM_OFFSET_ID("from_offset"); + + data()->addAttribute(LIST_ID(), ModelAPI_AttributeSelectionList::typeId()); + data()->addAttribute(AXIS_OBJECT_ID(), ModelAPI_AttributeSelection::typeId()); + data()->addAttribute(CREATION_METHOD(), ModelAPI_AttributeString::typeId()); + data()->addAttribute(TO_ANGLE_ID(), ModelAPI_AttributeDouble::typeId()); + data()->addAttribute(FROM_ANGLE_ID(), ModelAPI_AttributeDouble::typeId()); + data()->addAttribute(TO_OBJECT_ID(), ModelAPI_AttributeSelection::typeId()); + data()->addAttribute(TO_OFFSET_ID(), ModelAPI_AttributeDouble::typeId()); + data()->addAttribute(FROM_OBJECT_ID(), ModelAPI_AttributeSelection::typeId()); + data()->addAttribute(FROM_OFFSET_ID(), ModelAPI_AttributeDouble::typeId()); """ + # ========================================================================= # Initialization of the test # ========================================================================= diff --git a/src/FeaturesPlugin/Test/TestRevolutionFuse.py b/src/FeaturesPlugin/Test/TestRevolutionFuse.py index 2ab408043..de77284f1 100644 --- a/src/FeaturesPlugin/Test/TestRevolutionFuse.py +++ b/src/FeaturesPlugin/Test/TestRevolutionFuse.py @@ -18,33 +18,34 @@ # """ - TestRevolutionFuse.py - Unit test of FeaturesPlugin_RevolutionFuse class +TestRevolutionFuse.py +Unit test of FeaturesPlugin_RevolutionFuse class - class FeaturesPlugin_RevolutionFuse : public FeaturesPlugin_RevolutionBoolean - static const std::string MY_REVOLUTION_ID("RevolutionFuse"); - static const std::string MY_SKETCH_OBJECT_ID("sketch"); - static const std::string MY_AXIS_ID("axis_object"); - static const std::string METHOD_ATTR("CreationMethod"); - static const std::string MY_TO_ANGLE_ID("to_angle"); - static const std::string MY_FROM_ANGLE_ID("from_angle"); - static const std::string MY_TO_OBJECT_ID("to_object"); - static const std::string MY_TO_OFFSET_ID("to_offset"); - static const std::string MY_FROM_OBJECT_ID("from_object"); - static const std::string MY_FROM_OFFSET_ID("from_offset"); - static const std::string MY_BOOLEAN_OBJECTS_ID("boolean_objects"); +class FeaturesPlugin_RevolutionFuse : public FeaturesPlugin_RevolutionBoolean + static const std::string MY_REVOLUTION_ID("RevolutionFuse"); + static const std::string MY_SKETCH_OBJECT_ID("sketch"); + static const std::string MY_AXIS_ID("axis_object"); + static const std::string METHOD_ATTR("CreationMethod"); + static const std::string MY_TO_ANGLE_ID("to_angle"); + static const std::string MY_FROM_ANGLE_ID("from_angle"); + static const std::string MY_TO_OBJECT_ID("to_object"); + static const std::string MY_TO_OFFSET_ID("to_offset"); + static const std::string MY_FROM_OBJECT_ID("from_object"); + static const std::string MY_FROM_OFFSET_ID("from_offset"); + static const std::string MY_BOOLEAN_OBJECTS_ID("boolean_objects"); - data()->addAttribute(SKETCH_OBJECT_ID(), ModelAPI_AttributeReference::typeId()); - data()->addAttribute(AXIS_OBJECT_ID(), ModelAPI_AttributeSelection::typeId()); - data()->addAttribute(CREATION_METHOD(), ModelAPI_AttributeString::typeId()); - data()->addAttribute(TO_ANGLE_ID(), ModelAPI_AttributeDouble::typeId()); - data()->addAttribute(FROM_ANGLE_ID(), ModelAPI_AttributeDouble::typeId()); - data()->addAttribute(TO_OBJECT_ID(), ModelAPI_AttributeSelection::typeId()); - data()->addAttribute(TO_OFFSET_ID(), ModelAPI_AttributeDouble::typeId()); - data()->addAttribute(FROM_OBJECT_ID(), ModelAPI_AttributeSelection::typeId()); - data()->addAttribute(FROM_OFFSET_ID(), ModelAPI_AttributeSelection::typeId()); - data()->addAttribute(BOOLEAN_OBJECTS_ID(), ModelAPI_AttributeSelectionList::typeId()); + data()->addAttribute(SKETCH_OBJECT_ID(), ModelAPI_AttributeReference::typeId()); + data()->addAttribute(AXIS_OBJECT_ID(), ModelAPI_AttributeSelection::typeId()); + data()->addAttribute(CREATION_METHOD(), ModelAPI_AttributeString::typeId()); + data()->addAttribute(TO_ANGLE_ID(), ModelAPI_AttributeDouble::typeId()); + data()->addAttribute(FROM_ANGLE_ID(), ModelAPI_AttributeDouble::typeId()); + data()->addAttribute(TO_OBJECT_ID(), ModelAPI_AttributeSelection::typeId()); + data()->addAttribute(TO_OFFSET_ID(), ModelAPI_AttributeDouble::typeId()); + data()->addAttribute(FROM_OBJECT_ID(), ModelAPI_AttributeSelection::typeId()); + data()->addAttribute(FROM_OFFSET_ID(), ModelAPI_AttributeSelection::typeId()); + data()->addAttribute(BOOLEAN_OBJECTS_ID(), ModelAPI_AttributeSelectionList::typeId()); """ + # ========================================================================= # Initialization of the test # ========================================================================= diff --git a/src/FeaturesPlugin/Test/TestRotation.py b/src/FeaturesPlugin/Test/TestRotation.py index f6a4bb0df..ecd3aba0d 100644 --- a/src/FeaturesPlugin/Test/TestRotation.py +++ b/src/FeaturesPlugin/Test/TestRotation.py @@ -18,19 +18,20 @@ # """ - TestRotation.py - Unit test of FeaturesPlugin_Rotation class +TestRotation.py +Unit test of FeaturesPlugin_Rotation class - class FeaturesPlugin_Movement : public ModelAPI_Feature - static const std::string MY_ROTATION_ID("Rotation"); - static const std::string MY_OBJECTS_LIST_ID("main_objects"); - static const std::string MY_AXIS_OBJECT_ID("axis_object"); - static const std::string MY_ANGLE_ID("angle"); +class FeaturesPlugin_Movement : public ModelAPI_Feature + static const std::string MY_ROTATION_ID("Rotation"); + static const std::string MY_OBJECTS_LIST_ID("main_objects"); + static const std::string MY_AXIS_OBJECT_ID("axis_object"); + static const std::string MY_ANGLE_ID("angle"); - data()->addAttribute(OBJECTS_LIST_ID(), ModelAPI_AttributeSelectionList::typeId()); - data()->addAttribute(AXIS_OBJECT_ID(), ModelAPI_AttributeSelection::typeId()); - data()->addAttribute(ANGLE_ID(), ModelAPI_AttributeDouble::typeId()); + data()->addAttribute(OBJECTS_LIST_ID(), ModelAPI_AttributeSelectionList::typeId()); + data()->addAttribute(AXIS_OBJECT_ID(), ModelAPI_AttributeSelection::typeId()); + data()->addAttribute(ANGLE_ID(), ModelAPI_AttributeDouble::typeId()); """ + # ========================================================================= # Initialization of the test # ========================================================================= diff --git a/src/FeaturesPlugin/Test/TestSerialBoolean.py b/src/FeaturesPlugin/Test/TestSerialBoolean.py index 231628728..8bbde3fdd 100644 --- a/src/FeaturesPlugin/Test/TestSerialBoolean.py +++ b/src/FeaturesPlugin/Test/TestSerialBoolean.py @@ -18,18 +18,18 @@ # """ - TestExtrusion.py - Unit test of FeaturesPlugin_Boolean class: many Boolean operations performance - - class FeaturesPlugin_Extrusion : public ModelAPI_Feature - static const std::string MY_EXTRUSION_ID("Extrusion"); - static const std::string MY_FACE_ID("base"); - static const std::string MY_SIZE_ID("size"); - static const std::string MY_REVERSE_ID("reverse"); - - data()->addAttribute(FeaturesPlugin_Extrusion::FACE_ID(), ModelAPI_AttributeSelection::typeId()); - data()->addAttribute(FeaturesPlugin_Extrusion::SIZE_ID(), ModelAPI_AttributeDouble::typeId()); - data()->addAttribute(FeaturesPlugin_Extrusion::REVERSE_ID(), ModelAPI_AttributeBoolean::typeId()); +TestExtrusion.py +Unit test of FeaturesPlugin_Boolean class: many Boolean operations performance + +class FeaturesPlugin_Extrusion : public ModelAPI_Feature + static const std::string MY_EXTRUSION_ID("Extrusion"); + static const std::string MY_FACE_ID("base"); + static const std::string MY_SIZE_ID("size"); + static const std::string MY_REVERSE_ID("reverse"); + + data()->addAttribute(FeaturesPlugin_Extrusion::FACE_ID(), ModelAPI_AttributeSelection::typeId()); + data()->addAttribute(FeaturesPlugin_Extrusion::SIZE_ID(), ModelAPI_AttributeDouble::typeId()); + data()->addAttribute(FeaturesPlugin_Extrusion::REVERSE_ID(), ModelAPI_AttributeBoolean::typeId()); """ # Number rows and columns of cylinders that cuts the big box. Number of Boolena operations is N*N diff --git a/src/FeaturesPlugin/Test/TestTranslation.py b/src/FeaturesPlugin/Test/TestTranslation.py index e45c77181..9d7bf310c 100644 --- a/src/FeaturesPlugin/Test/TestTranslation.py +++ b/src/FeaturesPlugin/Test/TestTranslation.py @@ -18,19 +18,20 @@ # """ - TestMovement.py - Unit test of FeaturesPlugin_Movement class +TestMovement.py +Unit test of FeaturesPlugin_Movement class - class FeaturesPlugin_Movement : public ModelAPI_Feature - static const std::string MY_MOVEMENT_ID("Translation"); - static const std::string MY_OBJECTS_LIST_ID("main_objects"); - static const std::string MY_AXIS_OBJECT_ID("axis_object"); - static const std::string MY_DISTANCE_ID("distance"); +class FeaturesPlugin_Movement : public ModelAPI_Feature + static const std::string MY_MOVEMENT_ID("Translation"); + static const std::string MY_OBJECTS_LIST_ID("main_objects"); + static const std::string MY_AXIS_OBJECT_ID("axis_object"); + static const std::string MY_DISTANCE_ID("distance"); - data()->addAttribute(OBJECTS_LIST_ID(), ModelAPI_AttributeSelectionList::typeId()); - data()->addAttribute(AXIS_OBJECT_ID(), ModelAPI_AttributeSelection::typeId()); - data()->addAttribute(DISTANCE_ID(), ModelAPI_AttributeDouble::typeId()); + data()->addAttribute(OBJECTS_LIST_ID(), ModelAPI_AttributeSelectionList::typeId()); + data()->addAttribute(AXIS_OBJECT_ID(), ModelAPI_AttributeSelection::typeId()); + data()->addAttribute(DISTANCE_ID(), ModelAPI_AttributeDouble::typeId()); """ + # ========================================================================= # Initialization of the test # ========================================================================= diff --git a/src/GeomAPI/Test/Test2675.py b/src/GeomAPI/Test/Test2675.py index 6e9170bb9..1c42f2e32 100644 --- a/src/GeomAPI/Test/Test2675.py +++ b/src/GeomAPI/Test/Test2675.py @@ -18,8 +18,8 @@ # """ - Test2675.py - Test case for issue #2675 "Selection of cone produces crash in the inspection panel" +Test2675.py +Test case for issue #2675 "Selection of cone produces crash in the inspection panel" """ from salome.shaper import model diff --git a/src/GeomAlgoImpl/GEOMAlgo_GlueDetector.cxx b/src/GeomAlgoImpl/GEOMAlgo_GlueDetector.cxx index 24c8bfb75..404186a5c 100644 --- a/src/GeomAlgoImpl/GEOMAlgo_GlueDetector.cxx +++ b/src/GeomAlgoImpl/GEOMAlgo_GlueDetector.cxx @@ -243,7 +243,7 @@ void GEOMAlgo_GlueDetector::DetectVertices() { } aMIP1.Add(aIP1); } // for (; aIt.More(); aIt.Next()) { - } // for(; aIt1.More(); aIt1.Next()) { + } // for(; aIt1.More(); aIt1.Next()) { // aNbIP1 = aMIP1.Extent(); if (!aNbIP1) { diff --git a/src/ModelAPI/Test/Test1064.py b/src/ModelAPI/Test/Test1064.py index c18391885..bb9687310 100644 --- a/src/ModelAPI/Test/Test1064.py +++ b/src/ModelAPI/Test/Test1064.py @@ -18,10 +18,11 @@ # """ - Test1064.py - Unit test for testing the Part sub-shapes naming, described in the issue 1064 +Test1064.py +Unit test for testing the Part sub-shapes naming, described in the issue 1064 """ + # ========================================================================= # Initialization of the test # ========================================================================= diff --git a/src/ModelAPI/Test/Test1512.py b/src/ModelAPI/Test/Test1512.py index c29dcef9f..8ea1f928e 100644 --- a/src/ModelAPI/Test/Test1512.py +++ b/src/ModelAPI/Test/Test1512.py @@ -18,10 +18,11 @@ # """ - Test1512.py - Unit test for testing the correct selection of feature by the faces after the BOPs applied +Test1512.py +Unit test for testing the correct selection of feature by the faces after the BOPs applied """ + # ========================================================================= # Initialization of the test # ========================================================================= diff --git a/src/ModelAPI/Test/Test1757.py b/src/ModelAPI/Test/Test1757.py index f6af2c6a6..bbe2fcd3e 100644 --- a/src/ModelAPI/Test/Test1757.py +++ b/src/ModelAPI/Test/Test1757.py @@ -18,11 +18,11 @@ # """ - Test1757.py - Unit test for testing the modification of base object after movement of the history line: - the referenced (that is disabled, after the current position of the history line) attribute - must be updated. - The test is created by modification of the dumped script. +Test1757.py +Unit test for testing the modification of base object after movement of the history line: +the referenced (that is disabled, after the current position of the history line) attribute +must be updated. +The test is created by modification of the dumped script. """ diff --git a/src/ModelAPI/Test/Test2873.py b/src/ModelAPI/Test/Test2873.py index 5afd585a7..7e812e358 100644 --- a/src/ModelAPI/Test/Test2873.py +++ b/src/ModelAPI/Test/Test2873.py @@ -18,8 +18,8 @@ # """ - Test2873.py - Test for issue #2873 "Freeze when inserting a new folder" +Test2873.py +Test for issue #2873 "Freeze when inserting a new folder" """ from salome.shaper import model diff --git a/src/ModelAPI/Test/TestDocument.py b/src/ModelAPI/Test/TestDocument.py index 966706844..571c4814d 100644 --- a/src/ModelAPI/Test/TestDocument.py +++ b/src/ModelAPI/Test/TestDocument.py @@ -18,10 +18,11 @@ # """ - TestDocument.py - Unit test for Model_Document/ModelAPI_Document class +TestDocument.py +Unit test for Model_Document/ModelAPI_Document class """ + # ========================================================================= # Initialization of the test # ========================================================================= diff --git a/src/ModelAPI/Test/TestFolder_Sketch.py b/src/ModelAPI/Test/TestFolder_Sketch.py index ab5743c5b..9acf081c7 100644 --- a/src/ModelAPI/Test/TestFolder_Sketch.py +++ b/src/ModelAPI/Test/TestFolder_Sketch.py @@ -18,7 +18,7 @@ # """ - Test checks adding sketch into a folder +Test checks adding sketch into a folder """ from ModelAPI import FeatureList, ModelAPI_Session diff --git a/src/ModelAPI/Test/TestIntArray.py b/src/ModelAPI/Test/TestIntArray.py index 02d4bbb58..d8eed29c9 100644 --- a/src/ModelAPI/Test/TestIntArray.py +++ b/src/ModelAPI/Test/TestIntArray.py @@ -18,10 +18,11 @@ # """ - Test1064.py - Unit test for testing the Part sub-shapes naming, described in the issue 1064 +Test1064.py +Unit test for testing the Part sub-shapes naming, described in the issue 1064 """ + # ========================================================================= # Initialization of the test # ========================================================================= diff --git a/src/ModelAPI/Test/TestResults.py b/src/ModelAPI/Test/TestResults.py index df5530b5b..6b32e58c6 100644 --- a/src/ModelAPI/Test/TestResults.py +++ b/src/ModelAPI/Test/TestResults.py @@ -18,10 +18,11 @@ # """ - TestResults.py - Cover specific working with the data model results +TestResults.py +Cover specific working with the data model results """ + # ========================================================================= # Initialization of the test # ========================================================================= diff --git a/src/ModelGeomAlgo/Test/TestPoint2D.py b/src/ModelGeomAlgo/Test/TestPoint2D.py index 1d944abba..5de1030b0 100644 --- a/src/ModelGeomAlgo/Test/TestPoint2D.py +++ b/src/ModelGeomAlgo/Test/TestPoint2D.py @@ -18,10 +18,11 @@ # """ - TestPoint2D.py - Unit test for testing the Point2D algorithms +TestPoint2D.py +Unit test for testing the Point2D algorithms """ + # ========================================================================= # Initialization of the test # ========================================================================= diff --git a/src/ModelHighAPI/ModelHighAPI_FeatureStore.cpp b/src/ModelHighAPI/ModelHighAPI_FeatureStore.cpp index 6857b3520..e2bc15be6 100644 --- a/src/ModelHighAPI/ModelHighAPI_FeatureStore.cpp +++ b/src/ModelHighAPI/ModelHighAPI_FeatureStore.cpp @@ -373,8 +373,7 @@ std::string ModelHighAPI_FeatureStore::dumpAttr(const AttributePtr &theAttr) { AttributeStringArrayPtr anAttr = std::dynamic_pointer_cast(theAttr); for (int a = 0; a < anAttr->size(); a++) - aResult << "'" << anAttr->value(a) << "'" - << " "; + aResult << "'" << anAttr->value(a) << "'" << " "; } else if (aType == ModelAPI_AttributeTables::typeId()) { AttributeTablesPtr anAttr = std::dynamic_pointer_cast(theAttr); diff --git a/src/ModuleBase/ModuleBase_IModule.h b/src/ModuleBase/ModuleBase_IModule.h index 492f7e059..460f4ab00 100644 --- a/src/ModuleBase/ModuleBase_IModule.h +++ b/src/ModuleBase/ModuleBase_IModule.h @@ -395,11 +395,11 @@ public: /// widgets \param theWidget a property contol widget \param isToConnect a /// boolean value whether connect or disconnect virtual void connectToPropertyPanel(ModuleBase_ModelWidget * /*theWidget*/, - const bool /*isToConnect*/){}; + const bool /*isToConnect*/) {}; /// Validates the operation to change the "Apply" button state. /// \param thePreviousState the previous state of the widget - virtual void widgetStateChanged(int /*thePreviousState*/){}; + virtual void widgetStateChanged(int /*thePreviousState*/) {}; /// Returns true if the event is processed. /// \param thePreviousAttributeID an index of the previous active attribute @@ -409,8 +409,8 @@ public: /// Performs some GUI actions before an operation transaction is stopped /// Default realization is empty - virtual void - beforeOperationStopped(ModuleBase_Operation * /*theOperation*/){}; + virtual void beforeOperationStopped(ModuleBase_Operation * /*theOperation*/) { + }; /// Finds a shape by attribute if it is possible /// \param theAttribute an attribute diff --git a/src/ModuleBase/ModuleBase_ModelWidget.h b/src/ModuleBase/ModuleBase_ModelWidget.h index e69bc8141..1dffa5705 100644 --- a/src/ModuleBase/ModuleBase_ModelWidget.h +++ b/src/ModuleBase/ModuleBase_ModelWidget.h @@ -175,8 +175,9 @@ public: /// Returns values which should be highlighted when the whidget is active /// \param theValues a list of presentations - virtual void getHighlighted( - QList> & /*theValues*/){}; + virtual void + getHighlighted(QList> & /*theValues*/) { + }; /// Checks if the selection presentation is valid in widget /// \param theValue a selected presentation in the view @@ -423,7 +424,7 @@ protected: virtual bool resetCustom() { return false; }; /// The method called when widget is activated - virtual void activateCustom(){}; + virtual void activateCustom() {}; //// Returns true if the event is processed. The default implementation is /// empty, returns false. diff --git a/src/ModuleBase/ModuleBase_Operation.h b/src/ModuleBase/ModuleBase_Operation.h index 373580746..e80bd7299 100644 --- a/src/ModuleBase/ModuleBase_Operation.h +++ b/src/ModuleBase/ModuleBase_Operation.h @@ -192,7 +192,7 @@ protected: /// Virtual method called when operation committed (see commit() method for /// more description) - virtual void commitOperation(){}; + virtual void commitOperation() {}; /// Virtual method called after operation committed (see commit() method for /// more description) diff --git a/src/ModuleBase/ModuleBase_WidgetSelector.h b/src/ModuleBase/ModuleBase_WidgetSelector.h index b277b6649..ef996a031 100644 --- a/src/ModuleBase/ModuleBase_WidgetSelector.h +++ b/src/ModuleBase/ModuleBase_WidgetSelector.h @@ -101,7 +101,7 @@ protected: /// Update focus after the attribute value change // NDS: has body is temporary - virtual void updateFocus(){}; + virtual void updateFocus() {}; /// Retunrs a list of possible shape types /// \return a list of shapes @@ -113,7 +113,7 @@ protected: /// Computes and updates name of selected object in the widget // NDS: has body is temporary - virtual void updateSelectionName(){}; + virtual void updateSelectionName() {}; /// The methiod called when widget is activated void activateCustom() override; diff --git a/src/ParametersPlugin/Test/Test1806.py b/src/ParametersPlugin/Test/Test1806.py index 9325e6045..cc661abfb 100644 --- a/src/ParametersPlugin/Test/Test1806.py +++ b/src/ParametersPlugin/Test/Test1806.py @@ -18,10 +18,11 @@ # """ - Test1806.py - Unit test for testing the expression evaluation even no parameters are created +Test1806.py +Unit test for testing the expression evaluation even no parameters are created """ + # ========================================================================= # Initialization of the test # ========================================================================= diff --git a/src/ParametersPlugin/Test/TestParameterChangeValue.py b/src/ParametersPlugin/Test/TestParameterChangeValue.py index 0b878f66b..13cc0ddaf 100644 --- a/src/ParametersPlugin/Test/TestParameterChangeValue.py +++ b/src/ParametersPlugin/Test/TestParameterChangeValue.py @@ -18,21 +18,21 @@ # """ - TestParameterCreation.py +TestParameterCreation.py - class ParametersPlugin_Parameter - static const std::string MY_PARAMETER_ID("Parameter"); - static const std::string MY_VARIABLE_ID("variable"); - static const std::string MY_EXPRESSION_ID("expression"); +class ParametersPlugin_Parameter +static const std::string MY_PARAMETER_ID("Parameter"); +static const std::string MY_VARIABLE_ID("variable"); +static const std::string MY_EXPRESSION_ID("expression"); - data()->addAttribute(ParametersPlugin_Parameter::VARIABLE_ID(), - ModelAPI_AttributeString::typeId()); - data()->addAttribute(ParametersPlugin_Parameter::EXPRESSION_ID(), - ModelAPI_AttributeString::typeId()); +data()->addAttribute(ParametersPlugin_Parameter::VARIABLE_ID(), + ModelAPI_AttributeString::typeId()); +data()->addAttribute(ParametersPlugin_Parameter::EXPRESSION_ID(), + ModelAPI_AttributeString::typeId()); - class ModelAPI_ResultParameter - static const std::string MY_VALUE_ID("Value"); - static const std::string MY_VALUE_ID("State"); +class ModelAPI_ResultParameter +static const std::string MY_VALUE_ID("Value"); +static const std::string MY_VALUE_ID("State"); """ # ========================================================================= diff --git a/src/ParametersPlugin/Test/TestParameterCreation.py b/src/ParametersPlugin/Test/TestParameterCreation.py index 52234d2ec..c18647774 100644 --- a/src/ParametersPlugin/Test/TestParameterCreation.py +++ b/src/ParametersPlugin/Test/TestParameterCreation.py @@ -18,21 +18,21 @@ # """ - TestParameterCreation.py +TestParameterCreation.py - class ParametersPlugin_Parameter - static const std::string MY_PARAMETER_ID("Parameter"); - static const std::string MY_VARIABLE_ID("variable"); - static const std::string MY_EXPRESSION_ID("expression"); +class ParametersPlugin_Parameter +static const std::string MY_PARAMETER_ID("Parameter"); +static const std::string MY_VARIABLE_ID("variable"); +static const std::string MY_EXPRESSION_ID("expression"); - data()->addAttribute(ParametersPlugin_Parameter::VARIABLE_ID(), - ModelAPI_AttributeString::typeId()); - data()->addAttribute(ParametersPlugin_Parameter::EXPRESSION_ID(), - ModelAPI_AttributeString::typeId()); +data()->addAttribute(ParametersPlugin_Parameter::VARIABLE_ID(), + ModelAPI_AttributeString::typeId()); +data()->addAttribute(ParametersPlugin_Parameter::EXPRESSION_ID(), + ModelAPI_AttributeString::typeId()); - class ModelAPI_ResultParameter - static const std::string MY_VALUE_ID("Value"); - static const std::string MY_VALUE_ID("State"); +class ModelAPI_ResultParameter +static const std::string MY_VALUE_ID("Value"); +static const std::string MY_VALUE_ID("State"); """ # ========================================================================= diff --git a/src/ParametersPlugin/Test/TestParameterRename.py b/src/ParametersPlugin/Test/TestParameterRename.py index a93382a24..ca4c0c06f 100644 --- a/src/ParametersPlugin/Test/TestParameterRename.py +++ b/src/ParametersPlugin/Test/TestParameterRename.py @@ -18,21 +18,21 @@ # """ - TestParameterCreation.py +TestParameterCreation.py - class ParametersPlugin_Parameter - static const std::string MY_PARAMETER_ID("Parameter"); - static const std::string MY_VARIABLE_ID("variable"); - static const std::string MY_EXPRESSION_ID("expression"); +class ParametersPlugin_Parameter +static const std::string MY_PARAMETER_ID("Parameter"); +static const std::string MY_VARIABLE_ID("variable"); +static const std::string MY_EXPRESSION_ID("expression"); - data()->addAttribute(ParametersPlugin_Parameter::VARIABLE_ID(), - ModelAPI_AttributeString::typeId()); - data()->addAttribute(ParametersPlugin_Parameter::EXPRESSION_ID(), - ModelAPI_AttributeString::typeId()); +data()->addAttribute(ParametersPlugin_Parameter::VARIABLE_ID(), + ModelAPI_AttributeString::typeId()); +data()->addAttribute(ParametersPlugin_Parameter::EXPRESSION_ID(), + ModelAPI_AttributeString::typeId()); - class ModelAPI_ResultParameter - static const std::string MY_VALUE_ID("Value"); - static const std::string MY_VALUE_ID("State"); +class ModelAPI_ResultParameter +static const std::string MY_VALUE_ID("Value"); +static const std::string MY_VALUE_ID("State"); """ # ========================================================================= diff --git a/src/ParametersPlugin/Test/TestParametersMgr.py b/src/ParametersPlugin/Test/TestParametersMgr.py index 2b3181c33..fc895101a 100644 --- a/src/ParametersPlugin/Test/TestParametersMgr.py +++ b/src/ParametersPlugin/Test/TestParametersMgr.py @@ -18,9 +18,9 @@ # """ - TestParametersMgr.py +TestParametersMgr.py - class ParametersPlugin_ParametersMgr +class ParametersPlugin_ParametersMgr """ # ========================================================================= diff --git a/src/PartSet/PartSet_Filters.h b/src/PartSet/PartSet_Filters.h index 77dc3b74e..ae3c69dd5 100644 --- a/src/PartSet/PartSet_Filters.h +++ b/src/PartSet/PartSet_Filters.h @@ -81,7 +81,7 @@ public: /// Constructor /// \param theWorkshop instance of workshop interface Standard_EXPORT PartSet_CirclePointFilter(ModuleBase_IWorkshop *theWorkshop) - : SelectMgr_Filter(), myWorkshop(theWorkshop){}; + : SelectMgr_Filter(), myWorkshop(theWorkshop) {}; /// Returns True if the given owner is acceptable for selection /// \param theOwner the selected owner diff --git a/src/PartSet/PartSet_SketcherMgr.cpp b/src/PartSet/PartSet_SketcherMgr.cpp index 908037732..8d9c3c96d 100644 --- a/src/PartSet/PartSet_SketcherMgr.cpp +++ b/src/PartSet/PartSet_SketcherMgr.cpp @@ -371,11 +371,8 @@ bool PartSet_SketcherMgr::isDragModeCreation() const { QString aId = aOp->id(); // Acceptable features; QStringList aList; - aList << "SketchLine" - << "SketchMacroCircle" - << "SketchMacroArc" - << "SketchMacroEllipse" - << "SketchMacroEllipticArc" + aList << "SketchLine" << "SketchMacroCircle" << "SketchMacroArc" + << "SketchMacroEllipse" << "SketchMacroEllipticArc" << "SketchMacroRectangle"; return aList.contains(aId); } diff --git a/src/PartSet/PartSet_WidgetSketchLabel.h b/src/PartSet/PartSet_WidgetSketchLabel.h index f0a5da392..fdd0433b5 100644 --- a/src/PartSet/PartSet_WidgetSketchLabel.h +++ b/src/PartSet/PartSet_WidgetSketchLabel.h @@ -106,7 +106,7 @@ public: /// This control accepts focus bool focusTo() override; - void setHighlighted(bool) override{/*do nothing*/}; + void setHighlighted(bool) override { /*do nothing*/ }; void enableFocusProcessing() override; /// Set current state of show free points diff --git a/src/PythonAPI/geom/__init__.py b/src/PythonAPI/geom/__init__.py index f3c551c33..182ac8560 100644 --- a/src/PythonAPI/geom/__init__.py +++ b/src/PythonAPI/geom/__init__.py @@ -16,8 +16,7 @@ # # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -"""This package defines the Direct Geometry API of the Modeler. -""" +"""This package defines the Direct Geometry API of the Modeler.""" # Swigged interfaces to Modeling Data diff --git a/src/PythonAPI/model/addons/__init__.py b/src/PythonAPI/model/addons/__init__.py index 1b5ba87fc..10be2eb8a 100644 --- a/src/PythonAPI/model/addons/__init__.py +++ b/src/PythonAPI/model/addons/__init__.py @@ -17,7 +17,8 @@ # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -import pkgutil, inspect +import pkgutil +import inspect __all__ = [] for loader, module_name, is_pkg in pkgutil.walk_packages(__path__): diff --git a/src/PythonAPI/model/collection/__init__.py b/src/PythonAPI/model/collection/__init__.py index fdcc8de47..6372c2210 100644 --- a/src/PythonAPI/model/collection/__init__.py +++ b/src/PythonAPI/model/collection/__init__.py @@ -16,8 +16,7 @@ # # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -"""Package for Collection plugin for the Parametric Geometry API of the Modeler. -""" +"""Package for Collection plugin for the Parametric Geometry API of the Modeler.""" from CollectionAPI import addGroup, addField from CollectionAPI import ( diff --git a/src/PythonAPI/model/connection/__init__.py b/src/PythonAPI/model/connection/__init__.py index 3cf5b51c0..7d6840af8 100644 --- a/src/PythonAPI/model/connection/__init__.py +++ b/src/PythonAPI/model/connection/__init__.py @@ -16,7 +16,6 @@ # # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -"""Package for Connection plugin for the Parametric Geometry API of the Modeler. -""" +"""Package for Connection plugin for the Parametric Geometry API of the Modeler.""" from ConnectorAPI import exportToGEOM diff --git a/src/PythonAPI/model/construction/__init__.py b/src/PythonAPI/model/construction/__init__.py index 523f576d1..32e0283d8 100644 --- a/src/PythonAPI/model/construction/__init__.py +++ b/src/PythonAPI/model/construction/__init__.py @@ -16,7 +16,6 @@ # # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -"""Package for Construction plugin for the Parametric Geometry API of the Modeler. -""" +"""Package for Construction plugin for the Parametric Geometry API of the Modeler.""" from ConstructionAPI import addAxis, addPlane, addPoint, addPointXYZ diff --git a/src/PythonAPI/model/dump/DumpAssistant.py b/src/PythonAPI/model/dump/DumpAssistant.py index 9e1d5d2b4..d90ef37f5 100644 --- a/src/PythonAPI/model/dump/DumpAssistant.py +++ b/src/PythonAPI/model/dump/DumpAssistant.py @@ -17,8 +17,7 @@ # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -"""Package for dumping purposes. -""" +"""Package for dumping purposes.""" import ModelHighAPI diff --git a/src/PythonAPI/model/dump/__init__.py b/src/PythonAPI/model/dump/__init__.py index a6281f0f4..6c09e0709 100644 --- a/src/PythonAPI/model/dump/__init__.py +++ b/src/PythonAPI/model/dump/__init__.py @@ -16,7 +16,6 @@ # # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -"""Package for dumping purposes. -""" +"""Package for dumping purposes.""" from .DumpAssistant import * diff --git a/src/PythonAPI/model/exchange/__init__.py b/src/PythonAPI/model/exchange/__init__.py index 188d4abf9..b69130829 100644 --- a/src/PythonAPI/model/exchange/__init__.py +++ b/src/PythonAPI/model/exchange/__init__.py @@ -16,8 +16,7 @@ # # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -"""Package for Exchange plugin for the Parametric Geometry API of the Modeler. -""" +"""Package for Exchange plugin for the Parametric Geometry API of the Modeler.""" from ExchangeAPI import addImport, addImportXAOMem, addImportSTEP from ExchangeAPI import exportToFile, exportToXAO, exportToXAOMem, exportToSTL diff --git a/src/PythonAPI/model/features/__init__.py b/src/PythonAPI/model/features/__init__.py index fd5a110a1..839443f62 100644 --- a/src/PythonAPI/model/features/__init__.py +++ b/src/PythonAPI/model/features/__init__.py @@ -16,8 +16,7 @@ # # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -"""Package for Features plugin for the Parametric Geometry API of the Modeler. -""" +"""Package for Features plugin for the Parametric Geometry API of the Modeler.""" from FeaturesAPI import addPlacement, addRotation, addScale, addSymmetry, addTranslation from FeaturesAPI import addMultiTranslation, addMultiRotation diff --git a/src/PythonAPI/model/filters/__init__.py b/src/PythonAPI/model/filters/__init__.py index b16acecd5..f30d69366 100644 --- a/src/PythonAPI/model/filters/__init__.py +++ b/src/PythonAPI/model/filters/__init__.py @@ -16,7 +16,6 @@ # # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -"""Package for Filters plugin for the Parametric Geometry API of the Modeler. -""" +"""Package for Filters plugin for the Parametric Geometry API of the Modeler.""" from FiltersAPI import filters, addFilter diff --git a/src/PythonAPI/model/gdml/__init__.py b/src/PythonAPI/model/gdml/__init__.py index ca65ccf45..ab1f1bc38 100644 --- a/src/PythonAPI/model/gdml/__init__.py +++ b/src/PythonAPI/model/gdml/__init__.py @@ -16,7 +16,6 @@ # # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -"""Package for GDML plugin for the Parametric Geometry API of the Modeler. -""" +"""Package for GDML plugin for the Parametric Geometry API of the Modeler.""" from GDMLAPI import addConeSegment, addEllipsoid diff --git a/src/PythonAPI/model/parameter/__init__.py b/src/PythonAPI/model/parameter/__init__.py index 4282b549c..c503c8931 100644 --- a/src/PythonAPI/model/parameter/__init__.py +++ b/src/PythonAPI/model/parameter/__init__.py @@ -16,8 +16,7 @@ # # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -"""Package for Parameter plugin for the Parametric Geometry API of the Modeler. -""" +"""Package for Parameter plugin for the Parametric Geometry API of the Modeler.""" from ParametersAPI import addParameter, removeParameter diff --git a/src/PythonAPI/model/parameter/import_parameter.py b/src/PythonAPI/model/parameter/import_parameter.py index ad1a92604..7d4075ef7 100644 --- a/src/PythonAPI/model/parameter/import_parameter.py +++ b/src/PythonAPI/model/parameter/import_parameter.py @@ -18,7 +18,8 @@ # from salome.shaper import model -import codecs, sys +import codecs +import sys def changeTab(theLine): diff --git a/src/PythonAPI/model/partset/__init__.py b/src/PythonAPI/model/partset/__init__.py index 6032c64f7..41bd7c9a4 100644 --- a/src/PythonAPI/model/partset/__init__.py +++ b/src/PythonAPI/model/partset/__init__.py @@ -16,7 +16,6 @@ # # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -"""Package for PartSet plugin for the Parametric Geometry API of the Modeler. -""" +"""Package for PartSet plugin for the Parametric Geometry API of the Modeler.""" from PartSetAPI import addPart, duplicatePart, removePart diff --git a/src/PythonAPI/model/primitives/__init__.py b/src/PythonAPI/model/primitives/__init__.py index a99093d54..4e6a0c2e6 100644 --- a/src/PythonAPI/model/primitives/__init__.py +++ b/src/PythonAPI/model/primitives/__init__.py @@ -16,7 +16,6 @@ # # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -"""Package for Primitives plugin for the Parametric Geometry API of the Modeler. -""" +"""Package for Primitives plugin for the Parametric Geometry API of the Modeler.""" from PrimitivesAPI import addBox, addCone, addCylinder, addSphere, addTorus, addTube diff --git a/src/PythonAPI/model/services/__init__.py b/src/PythonAPI/model/services/__init__.py index 630ca5c5f..3e44e9735 100644 --- a/src/PythonAPI/model/services/__init__.py +++ b/src/PythonAPI/model/services/__init__.py @@ -16,8 +16,7 @@ # # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -"""Package for services for the Parametric Geometry API of the Modeler. -""" +"""Package for services for the Parametric Geometry API of the Modeler.""" from ModelHighAPI import moduleDocument, activeDocument from ModelHighAPI import defaultPlane, standardPlane diff --git a/src/PythonAPI/model/sketcher/__init__.py b/src/PythonAPI/model/sketcher/__init__.py index 15eb61b6c..7bb03ab23 100644 --- a/src/PythonAPI/model/sketcher/__init__.py +++ b/src/PythonAPI/model/sketcher/__init__.py @@ -16,8 +16,7 @@ # # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -"""Package for Sketch plugin for the Parametric Geometry API of the Modeler. -""" +"""Package for Sketch plugin for the Parametric Geometry API of the Modeler.""" from SketchAPI import addSketch, copySketch from .tools import * diff --git a/src/PythonAddons/macros/midSurface/feature.py b/src/PythonAddons/macros/midSurface/feature.py index 9e7cc3a9f..268132122 100755 --- a/src/PythonAddons/macros/midSurface/feature.py +++ b/src/PythonAddons/macros/midSurface/feature.py @@ -29,6 +29,7 @@ On sait traiter les faces : Author: Gérald NICOLAS """ + __revision__ = "V02.04" import os diff --git a/src/PythonAddons/macros/midSurface/midSurface_1.py b/src/PythonAddons/macros/midSurface/midSurface_1.py index 1dbb7ceb3..74b7149df 100755 --- a/src/PythonAddons/macros/midSurface/midSurface_1.py +++ b/src/PythonAddons/macros/midSurface/midSurface_1.py @@ -1,7 +1,6 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -"""Géométrie de test pour la création de surfaces médianes - Cas n°1 -""" +"""Géométrie de test pour la création de surfaces médianes - Cas n°1""" __revision__ = "V02.01" diff --git a/src/PythonAddons/macros/midSurface/midSurface_2.py b/src/PythonAddons/macros/midSurface/midSurface_2.py index ea233cd97..404bd5c65 100755 --- a/src/PythonAddons/macros/midSurface/midSurface_2.py +++ b/src/PythonAddons/macros/midSurface/midSurface_2.py @@ -1,7 +1,6 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -"""Géométrie de test pour la création de surfaces médianes - Cas n°2 -""" +"""Géométrie de test pour la création de surfaces médianes - Cas n°2""" __revision__ = "V02.01" diff --git a/src/PythonAddons/macros/midSurface/surfaceMediane.py b/src/PythonAddons/macros/midSurface/surfaceMediane.py index e94fd6f12..f4c3a65a0 100755 --- a/src/PythonAddons/macros/midSurface/surfaceMediane.py +++ b/src/PythonAddons/macros/midSurface/surfaceMediane.py @@ -303,7 +303,6 @@ def exec_nom(fonction, nom=None, couleur=None): class SurfaceMediane(object): - """Calcul des surfaces médianes de solides minces L'objectif de ce programme est de créer les surfaces médianes, encore appelées fibres neutres, pour \ diff --git a/src/SHAPERGUI/SHAPERGUI.cpp b/src/SHAPERGUI/SHAPERGUI.cpp index c98df289c..430651cfc 100644 --- a/src/SHAPERGUI/SHAPERGUI.cpp +++ b/src/SHAPERGUI/SHAPERGUI.cpp @@ -1368,8 +1368,7 @@ void SHAPERGUI::publishToStudy() { // update SHAPERSTUDY objects in OCC and VTK viewers QStringList aVMList; - aVMList << "OCCViewer" - << "VTKViewer"; + aVMList << "OCCViewer" << "VTKViewer"; getApp()->updatePresentations("SHAPERSTUDY", aVMList); } } diff --git a/src/SketchAPI/SketchAPI_ConstraintAngle.cpp b/src/SketchAPI/SketchAPI_ConstraintAngle.cpp index 011c59cbc..71c53409b 100644 --- a/src/SketchAPI/SketchAPI_ConstraintAngle.cpp +++ b/src/SketchAPI/SketchAPI_ConstraintAngle.cpp @@ -147,8 +147,7 @@ void SketchAPI_ConstraintAngle::dump(ModelHighAPI_Dumper &theDumper) const { const std::string &aSketchName = theDumper.parentName(aBase); theDumper.name(aBase, false, true, true); // mark constraint as dumped - theDumper << aSketchName << "." - << "setAngle("; + theDumper << aSketchName << "." << "setAngle("; bool isFirstAttr = true; for (int i = 0; i < CONSTRAINT_ATTR_SIZE; ++i) { diff --git a/src/SketchPlugin/SketchPlugin_SketchEntity.h b/src/SketchPlugin/SketchPlugin_SketchEntity.h index 8667c5e14..c01c95c65 100644 --- a/src/SketchPlugin/SketchPlugin_SketchEntity.h +++ b/src/SketchPlugin/SketchPlugin_SketchEntity.h @@ -227,10 +227,10 @@ protected: SketchPlugin_SketchEntity(); /// \brief Initializes attributes of derived class. - virtual void initDerivedClassAttributes(){}; + virtual void initDerivedClassAttributes() {}; /// \brief Initializes attributes of derived class which were added recently. - virtual void initDerivedClassAttributes2(){}; + virtual void initDerivedClassAttributes2() {}; }; #endif diff --git a/src/SketchPlugin/SketchPlugin_Split.cpp b/src/SketchPlugin/SketchPlugin_Split.cpp index 556d56141..6ff3a6ba7 100644 --- a/src/SketchPlugin/SketchPlugin_Split.cpp +++ b/src/SketchPlugin/SketchPlugin_Split.cpp @@ -213,8 +213,8 @@ void SketchPlugin_Split::execute() { } std::shared_ptr aPointAttr = std::dynamic_pointer_cast(aBaseAttr); - std::cout << aPointAttr->id().c_str() << ": " - << "[" << aRefAttributes.size() << "] " << aRefsInfo << std::endl; + std::cout << aPointAttr->id().c_str() << ": " << "[" + << aRefAttributes.size() << "] " << aRefsInfo << std::endl; } std::cout << std::endl; std::cout << std::endl diff --git a/src/SketchPlugin/SketchPlugin_Tools.cpp b/src/SketchPlugin/SketchPlugin_Tools.cpp index f4949bebb..b4e6a3ca2 100644 --- a/src/SketchPlugin/SketchPlugin_Tools.cpp +++ b/src/SketchPlugin/SketchPlugin_Tools.cpp @@ -482,9 +482,9 @@ FeaturePtr createConstraintAttrAttr(SketchPlugin_Sketch *theSketch, aRefAttr->setAttr(theSecondAttribute); #if defined(DEBUG_TRIM) || defined(DEBUG_SPLIT) - std::cout << " :" - << " first attribute - " << theFirstAttribute->id() - << " second attribute - " << theSecondAttribute->id() << std::endl; + std::cout << " :" << " first attribute - " + << theFirstAttribute->id() << " second attribute - " + << theSecondAttribute->id() << std::endl; #endif return aConstraint; @@ -505,9 +505,8 @@ FeaturePtr createConstraintAttrObject(SketchPlugin_Sketch *theSketch, aRefAttr->setObject(theSecondObject); #if defined(DEBUG_TRIM) || defined(DEBUG_SPLIT) - std::cout << " :" - << " first attribute - " << theFirstAttribute->id() - << " second object - " + std::cout << " :" << " first attribute - " + << theFirstAttribute->id() << " second object - " << ModelAPI_Feature::feature(theSecondObject)->getKind() << std::endl; #endif @@ -530,8 +529,7 @@ FeaturePtr createConstraintObjectObject(SketchPlugin_Sketch *theSketch, aRefAttr->setObject(theSecondObject); #if defined(DEBUG_TRIM) || defined(DEBUG_SPLIT) - std::cout << " :" - << " first object - " + std::cout << " :" << " first object - " << ModelAPI_Feature::feature(theFirstObject)->getKind() << " second object - " << ModelAPI_Feature::feature(theSecondObject)->getKind() diff --git a/src/SketchPlugin/SketchPlugin_Trim.cpp b/src/SketchPlugin/SketchPlugin_Trim.cpp index 5c28611f2..b75081855 100644 --- a/src/SketchPlugin/SketchPlugin_Trim.cpp +++ b/src/SketchPlugin/SketchPlugin_Trim.cpp @@ -291,8 +291,8 @@ void SketchPlugin_Trim::execute() { } std::shared_ptr aPointAttr = std::dynamic_pointer_cast(aBaseAttr); - std::cout << aPointAttr->id().c_str() << ": " - << "[" << aRefAttributes.size() << "] " << aRefsInfo << std::endl; + std::cout << aPointAttr->id().c_str() << ": " << "[" + << aRefAttributes.size() << "] " << aRefsInfo << std::endl; } std::cout << std::endl; std::cout << std::endl diff --git a/src/SketchPlugin/Test/Test1061.py b/src/SketchPlugin/Test/Test1061.py index d5acd5b76..99fb39223 100644 --- a/src/SketchPlugin/Test/Test1061.py +++ b/src/SketchPlugin/Test/Test1061.py @@ -18,8 +18,8 @@ # """ - Test1061.py - Test case for issue #1061 "Distance constraint using for points with equal coordinates" +Test1061.py +Test case for issue #1061 "Distance constraint using for points with equal coordinates" """ from salome.shaper import model diff --git a/src/SketchPlugin/Test/Test1577.py b/src/SketchPlugin/Test/Test1577.py index 2f678778d..0f954baab 100644 --- a/src/SketchPlugin/Test/Test1577.py +++ b/src/SketchPlugin/Test/Test1577.py @@ -18,8 +18,8 @@ # """ - Test1577.py - Test case for issue #1577 "distance constraint change sign" +Test1577.py +Test case for issue #1577 "distance constraint change sign" """ from salome.shaper import model diff --git a/src/SketchPlugin/Test/Test1578.py b/src/SketchPlugin/Test/Test1578.py index 626796758..85abdc955 100644 --- a/src/SketchPlugin/Test/Test1578.py +++ b/src/SketchPlugin/Test/Test1578.py @@ -18,8 +18,8 @@ # """ - Test1578.py - Test case for issue #1578 "arc problems" +Test1578.py +Test case for issue #1578 "arc problems" """ from salome.shaper import model diff --git a/src/SketchPlugin/Test/Test1673.py b/src/SketchPlugin/Test/Test1673.py index 7b00036b3..01485a5b1 100644 --- a/src/SketchPlugin/Test/Test1673.py +++ b/src/SketchPlugin/Test/Test1673.py @@ -18,8 +18,8 @@ # """ - Test1673.py - Test case for issue #1673 "Drag and drop the extremity of an arc is too slow" +Test1673.py +Test case for issue #1673 "Drag and drop the extremity of an arc is too slow" """ from salome.shaper import model diff --git a/src/SketchPlugin/Test/Test1779.py b/src/SketchPlugin/Test/Test1779.py index bc46fd17d..d5dcef5f7 100644 --- a/src/SketchPlugin/Test/Test1779.py +++ b/src/SketchPlugin/Test/Test1779.py @@ -18,8 +18,8 @@ # """ - Test1779.py - Test case for issue #1779 "Wrong ExtrusionCut result after loading dump" +Test1779.py +Test case for issue #1779 "Wrong ExtrusionCut result after loading dump" """ from salome.shaper import model diff --git a/src/SketchPlugin/Test/Test1924.py b/src/SketchPlugin/Test/Test1924.py index f0863c2a3..1b97ae075 100644 --- a/src/SketchPlugin/Test/Test1924.py +++ b/src/SketchPlugin/Test/Test1924.py @@ -18,8 +18,8 @@ # """ - Test1924.py - Test case for issue #1924 "Wrong naming of multiple-rotated sketch edges on python dump" +Test1924.py +Test case for issue #1924 "Wrong naming of multiple-rotated sketch edges on python dump" """ from salome.shaper import model diff --git a/src/SketchPlugin/Test/Test1963.py b/src/SketchPlugin/Test/Test1963.py index 78220ee06..c7dd157c8 100644 --- a/src/SketchPlugin/Test/Test1963.py +++ b/src/SketchPlugin/Test/Test1963.py @@ -18,8 +18,8 @@ # """ - Test1963.py - Test case for issue #1963 "Conflicting constraint wrongly raised" +Test1963.py +Test case for issue #1963 "Conflicting constraint wrongly raised" """ from salome.shaper import model diff --git a/src/SketchPlugin/Test/Test1966.py b/src/SketchPlugin/Test/Test1966.py index 7fde76272..600a09c16 100644 --- a/src/SketchPlugin/Test/Test1966.py +++ b/src/SketchPlugin/Test/Test1966.py @@ -18,8 +18,8 @@ # """ - Test1966.py - Test case for issue #1966 "Sketch solving is 25 times slower between two studies with middle point" +Test1966.py +Test case for issue #1966 "Sketch solving is 25 times slower between two studies with middle point" """ from salome.shaper import model diff --git a/src/SketchPlugin/Test/Test1967.py b/src/SketchPlugin/Test/Test1967.py index ab2ccd4ea..643af514a 100644 --- a/src/SketchPlugin/Test/Test1967.py +++ b/src/SketchPlugin/Test/Test1967.py @@ -18,8 +18,8 @@ # """ - Test1967.py - Test case for issue #1967 "Drag and drop a point with middle point constraint is too slow" +Test1967.py +Test case for issue #1967 "Drag and drop a point with middle point constraint is too slow" """ from salome.shaper import model diff --git a/src/SketchPlugin/Test/Test2018.py b/src/SketchPlugin/Test/Test2018.py index 6b69eb164..e2ab27e0d 100644 --- a/src/SketchPlugin/Test/Test2018.py +++ b/src/SketchPlugin/Test/Test2018.py @@ -18,8 +18,8 @@ # """ - Test2018.py - Test case for issue #2018 "After split auxiliary circle edit of axiliary state of arc is wrong" +Test2018.py +Test case for issue #2018 "After split auxiliary circle edit of axiliary state of arc is wrong" """ from ModelAPI import FeatureSet, removeFeaturesAndReferences diff --git a/src/SketchPlugin/Test/Test2034_1.py b/src/SketchPlugin/Test/Test2034_1.py index 7b079c2e5..1ebf47667 100644 --- a/src/SketchPlugin/Test/Test2034_1.py +++ b/src/SketchPlugin/Test/Test2034_1.py @@ -18,8 +18,8 @@ # """ - Test2034_1.py - Test case for issue #2034 "Conflicting constraint not raised (but found by planegcs and shaper's dof computation)" +Test2034_1.py +Test case for issue #2034 "Conflicting constraint not raised (but found by planegcs and shaper's dof computation)" """ from SketchAPI import SketchAPI_Line diff --git a/src/SketchPlugin/Test/Test2034_2.py b/src/SketchPlugin/Test/Test2034_2.py index 6cf2ddedc..38d5d87c2 100644 --- a/src/SketchPlugin/Test/Test2034_2.py +++ b/src/SketchPlugin/Test/Test2034_2.py @@ -18,8 +18,8 @@ # """ - Test2034_2.py - Test case for issue #2034 "Conflicting constraint not raised (but found by planegcs and shaper's dof computation)" +Test2034_2.py +Test case for issue #2034 "Conflicting constraint not raised (but found by planegcs and shaper's dof computation)" """ from salome.shaper import model diff --git a/src/SketchPlugin/Test/Test2034_3.py b/src/SketchPlugin/Test/Test2034_3.py index c9fa2b04b..697ddc590 100644 --- a/src/SketchPlugin/Test/Test2034_3.py +++ b/src/SketchPlugin/Test/Test2034_3.py @@ -18,8 +18,8 @@ # """ - Test2034_3.py - Test case for issue #2034 "Conflicting constraint not raised (but found by planegcs and shaper's dof computation)" +Test2034_3.py +Test case for issue #2034 "Conflicting constraint not raised (but found by planegcs and shaper's dof computation)" """ from SketchAPI import SketchAPI_Point diff --git a/src/SketchPlugin/Test/Test2115.py b/src/SketchPlugin/Test/Test2115.py index 7ac6fc353..88f39cb0d 100644 --- a/src/SketchPlugin/Test/Test2115.py +++ b/src/SketchPlugin/Test/Test2115.py @@ -18,8 +18,8 @@ # """ - Test1061.py - Test case for issue #1061 "Distance constraint using for points with equal coordinates" +Test1061.py +Test case for issue #1061 "Distance constraint using for points with equal coordinates" """ from salome.shaper import model diff --git a/src/SketchPlugin/Test/Test2119.py b/src/SketchPlugin/Test/Test2119.py index e0755e10f..240693089 100644 --- a/src/SketchPlugin/Test/Test2119.py +++ b/src/SketchPlugin/Test/Test2119.py @@ -18,8 +18,8 @@ # """ - Test2119.py - Test case for issue #2119 "Sketch lost when creating a tangent constraint" +Test2119.py +Test case for issue #2119 "Sketch lost when creating a tangent constraint" """ from salome.shaper import model diff --git a/src/SketchPlugin/Test/Test2134.py b/src/SketchPlugin/Test/Test2134.py index 8df377d3a..42a18453d 100644 --- a/src/SketchPlugin/Test/Test2134.py +++ b/src/SketchPlugin/Test/Test2134.py @@ -18,8 +18,8 @@ # """ - Test2134.py - Test case for issue #2134 "Conflicting constraint not shown in the viewer" +Test2134.py +Test case for issue #2134 "Conflicting constraint not shown in the viewer" """ from salome.shaper import model diff --git a/src/SketchPlugin/Test/Test2224.py b/src/SketchPlugin/Test/Test2224.py index 15e5e35cd..9ed9fdd50 100644 --- a/src/SketchPlugin/Test/Test2224.py +++ b/src/SketchPlugin/Test/Test2224.py @@ -18,8 +18,8 @@ # """ - Test2224.py - Test case for issue #2224 "tangent arc problem when end point is on edge that is tangent to arc" +Test2224.py +Test case for issue #2224 "tangent arc problem when end point is on edge that is tangent to arc" """ from salome.shaper import model diff --git a/src/SketchPlugin/Test/Test2239.py b/src/SketchPlugin/Test/Test2239.py index 3525d3535..8e0f694eb 100644 --- a/src/SketchPlugin/Test/Test2239.py +++ b/src/SketchPlugin/Test/Test2239.py @@ -18,8 +18,8 @@ # """ - Test2239.py - Test case for issue #2239 "Sketch not updated after having changed the parameter of multi-translation to 1" +Test2239.py +Test case for issue #2239 "Sketch not updated after having changed the parameter of multi-translation to 1" """ from salome.shaper import model diff --git a/src/SketchPlugin/Test/Test2273.py b/src/SketchPlugin/Test/Test2273.py index 6c2f16439..70bfe526d 100644 --- a/src/SketchPlugin/Test/Test2273.py +++ b/src/SketchPlugin/Test/Test2273.py @@ -18,9 +18,9 @@ # """ - Test2273.py - Test case for issue #2273 "Error when reading HDF and Python dump" - (multi-rotation center refers to a feature produced by itself) +Test2273.py +Test case for issue #2273 "Error when reading HDF and Python dump" + (multi-rotation center refers to a feature produced by itself) """ from salome.shaper import model diff --git a/src/SketchPlugin/Test/Test2280.py b/src/SketchPlugin/Test/Test2280.py index 26edb7f77..cb774721f 100644 --- a/src/SketchPlugin/Test/Test2280.py +++ b/src/SketchPlugin/Test/Test2280.py @@ -18,8 +18,8 @@ # """ - Test2280.py - Test case for issue #2280 "Trim in the sketch generates a SIGSEGV" +Test2280.py +Test case for issue #2280 "Trim in the sketch generates a SIGSEGV" """ from salome.shaper import model diff --git a/src/SketchPlugin/Test/Test2341.py b/src/SketchPlugin/Test/Test2341.py index 77883c348..1442bab52 100644 --- a/src/SketchPlugin/Test/Test2341.py +++ b/src/SketchPlugin/Test/Test2341.py @@ -18,8 +18,8 @@ # """ - Test2341.py - Test case for issue #2341 "SIGSEGV when trying to move a point of a projected axis" +Test2341.py +Test case for issue #2341 "SIGSEGV when trying to move a point of a projected axis" """ from SketchAPI import SketchAPI_Line, SketchAPI_Point diff --git a/src/SketchPlugin/Test/Test2376.py b/src/SketchPlugin/Test/Test2376.py index f5fea00e7..c3ceaa2c6 100644 --- a/src/SketchPlugin/Test/Test2376.py +++ b/src/SketchPlugin/Test/Test2376.py @@ -18,11 +18,10 @@ # """ - Test2376.py - Test case for issue #2376 "Wrong DoF when creating the sketch" +Test2376.py +Test case for issue #2376 "Wrong DoF when creating the sketch" """ - from salome.shaper import model model.begin() diff --git a/src/SketchPlugin/Test/Test2390.py b/src/SketchPlugin/Test/Test2390.py index 7e77ae575..c0d2265c6 100644 --- a/src/SketchPlugin/Test/Test2390.py +++ b/src/SketchPlugin/Test/Test2390.py @@ -18,11 +18,10 @@ # """ - Test2390.py - Test case for issue #2390 "Revolution become invalid after changing parameter" +Test2390.py +Test case for issue #2390 "Revolution become invalid after changing parameter" """ - from SketchAPI import SketchAPI_Point from salome.shaper import model diff --git a/src/SketchPlugin/Test/Test2393.py b/src/SketchPlugin/Test/Test2393.py index 38ad9394e..896fc6f09 100644 --- a/src/SketchPlugin/Test/Test2393.py +++ b/src/SketchPlugin/Test/Test2393.py @@ -18,11 +18,10 @@ # """ - Test2393.py - Test case for issue #2393 "Constraint conflict when doing an angular copy of a projected edge" +Test2393.py +Test case for issue #2393 "Constraint conflict when doing an angular copy of a projected edge" """ - from SketchAPI import SketchAPI_Line, SketchAPI_Point from salome.shaper import model diff --git a/src/SketchPlugin/Test/Test2425.py b/src/SketchPlugin/Test/Test2425.py index 6c74a1b53..deb42ca4c 100644 --- a/src/SketchPlugin/Test/Test2425.py +++ b/src/SketchPlugin/Test/Test2425.py @@ -18,11 +18,10 @@ # """ - Test2425.py - Test case for issue #2425 "undo edit parameter - destroy document" +Test2425.py +Test case for issue #2425 "undo edit parameter - destroy document" """ - from salome.shaper import model model.begin() diff --git a/src/SketchPlugin/Test/Test2427.py b/src/SketchPlugin/Test/Test2427.py index 2b365b215..6d94ec1e4 100644 --- a/src/SketchPlugin/Test/Test2427.py +++ b/src/SketchPlugin/Test/Test2427.py @@ -18,8 +18,8 @@ # """ - Test2427.py - Test case for issue #2427 "error in sketch solver" +Test2427.py +Test case for issue #2427 "error in sketch solver" """ from SketchAPI import SketchAPI_Line diff --git a/src/SketchPlugin/Test/Test2440.py b/src/SketchPlugin/Test/Test2440.py index f6bef6b4d..9b3215006 100644 --- a/src/SketchPlugin/Test/Test2440.py +++ b/src/SketchPlugin/Test/Test2440.py @@ -18,11 +18,10 @@ # """ - Test2440.py - Test case for issue #2440 "Can't validate coincidence between a line and an imported line" +Test2440.py +Test case for issue #2440 "Can't validate coincidence between a line and an imported line" """ - from SketchAPI import SketchAPI_Point from salome.shaper import model diff --git a/src/SketchPlugin/Test/Test2481.py b/src/SketchPlugin/Test/Test2481.py index d288eff30..dbb2597cc 100644 --- a/src/SketchPlugin/Test/Test2481.py +++ b/src/SketchPlugin/Test/Test2481.py @@ -18,8 +18,8 @@ # """ - Test2481.py - Test case for issue #2481 "Application error when create fillet" +Test2481.py +Test case for issue #2481 "Application error when create fillet" """ from SketchAPI import SketchAPI_Point diff --git a/src/SketchPlugin/Test/Test2654.py b/src/SketchPlugin/Test/Test2654.py index 4867800ba..088dff53d 100644 --- a/src/SketchPlugin/Test/Test2654.py +++ b/src/SketchPlugin/Test/Test2654.py @@ -18,8 +18,8 @@ # """ - Test2654.py - Test case for issue #2654 "crash with a split" +Test2654.py +Test case for issue #2654 "crash with a split" """ from SketchAPI import SketchAPI_Point diff --git a/src/SketchPlugin/Test/Test2711.py b/src/SketchPlugin/Test/Test2711.py index ba04af8d2..bc4ad0cbb 100644 --- a/src/SketchPlugin/Test/Test2711.py +++ b/src/SketchPlugin/Test/Test2711.py @@ -18,8 +18,8 @@ # """ - Test2711.py - Test case for issue #2711 "Crash when calling split" +Test2711.py +Test case for issue #2711 "Crash when calling split" """ from salome.shaper import model diff --git a/src/SketchPlugin/Test/Test2741.py b/src/SketchPlugin/Test/Test2741.py index d03330cbf..e55947db1 100644 --- a/src/SketchPlugin/Test/Test2741.py +++ b/src/SketchPlugin/Test/Test2741.py @@ -18,8 +18,8 @@ # """ - Test2741.py - Test case for issue #2741 "Undo of distance argument change produces crash" +Test2741.py +Test case for issue #2741 "Undo of distance argument change produces crash" """ from salome.shaper import model diff --git a/src/SketchPlugin/Test/Test2810.py b/src/SketchPlugin/Test/Test2810.py index 685c1609f..a0ed4361d 100644 --- a/src/SketchPlugin/Test/Test2810.py +++ b/src/SketchPlugin/Test/Test2810.py @@ -18,8 +18,8 @@ # """ - Test2810.py - Test case for issue #2810 "crash creating arc fillet" +Test2810.py +Test case for issue #2810 "crash creating arc fillet" """ from salome.shaper import model diff --git a/src/SketchPlugin/Test/Test2824.py b/src/SketchPlugin/Test/Test2824.py index 8829a3645..d20ee1e5f 100644 --- a/src/SketchPlugin/Test/Test2824.py +++ b/src/SketchPlugin/Test/Test2824.py @@ -18,8 +18,8 @@ # """ - Test2824.py - Test case for issue #2824 "Constraints at wrong positions when editing the sketch (BARCOM)" +Test2824.py +Test case for issue #2824 "Constraints at wrong positions when editing the sketch (BARCOM)" """ from salome.shaper import model diff --git a/src/SketchPlugin/Test/Test2860.py b/src/SketchPlugin/Test/Test2860.py index 52813b924..e3816656b 100644 --- a/src/SketchPlugin/Test/Test2860.py +++ b/src/SketchPlugin/Test/Test2860.py @@ -18,9 +18,9 @@ # """ - Test2860.py - Test case for issue #2650 "setAngleComplementary becomes setAngle in BARCOM" - Test case for issue #2860 "Error in python dump reload because of setAngleComplementary" +Test2860.py +Test case for issue #2650 "setAngleComplementary becomes setAngle in BARCOM" +Test case for issue #2860 "Error in python dump reload because of setAngleComplementary" """ from salome.shaper import model diff --git a/src/SketchPlugin/Test/Test2894.py b/src/SketchPlugin/Test/Test2894.py index 338db4a9f..89e6e2bb5 100644 --- a/src/SketchPlugin/Test/Test2894.py +++ b/src/SketchPlugin/Test/Test2894.py @@ -18,8 +18,8 @@ # """ - Test2894.py - Test case for issue #2894 "SIGSEGV in trim after double-click" +Test2894.py +Test case for issue #2894 "SIGSEGV in trim after double-click" """ from SketchAPI import GeomAPI, SketchAPI_Point diff --git a/src/SketchPlugin/Test/Test3019.py b/src/SketchPlugin/Test/Test3019.py index 23cf0a07a..86d4fb62a 100644 --- a/src/SketchPlugin/Test/Test3019.py +++ b/src/SketchPlugin/Test/Test3019.py @@ -18,8 +18,8 @@ # """ - Test3019.py - Test case for issue #3019 "Error when load python script" +Test3019.py +Test case for issue #3019 "Error when load python script" """ from salome.shaper import model diff --git a/src/SketchPlugin/Test/TestArcBehavior.py b/src/SketchPlugin/Test/TestArcBehavior.py index 0bf46d9f3..cde33d821 100644 --- a/src/SketchPlugin/Test/TestArcBehavior.py +++ b/src/SketchPlugin/Test/TestArcBehavior.py @@ -18,10 +18,10 @@ # """ - TestArcBehavior.py +TestArcBehavior.py - It tests behavior of the arc during the changing of parameters to avoid - regressions in this complicated part. +It tests behavior of the arc during the changing of parameters to avoid +regressions in this complicated part. """ diff --git a/src/SketchPlugin/Test/TestBSplineAddPole.py b/src/SketchPlugin/Test/TestBSplineAddPole.py index be19980ea..39c44bf3b 100644 --- a/src/SketchPlugin/Test/TestBSplineAddPole.py +++ b/src/SketchPlugin/Test/TestBSplineAddPole.py @@ -18,7 +18,7 @@ # """ - Test for adding a pole to already created B-spline curve +Test for adding a pole to already created B-spline curve """ from salome.shaper import model diff --git a/src/SketchPlugin/Test/TestConstraintAngle.py b/src/SketchPlugin/Test/TestConstraintAngle.py index d63a4583a..f235d09de 100644 --- a/src/SketchPlugin/Test/TestConstraintAngle.py +++ b/src/SketchPlugin/Test/TestConstraintAngle.py @@ -18,18 +18,19 @@ # """ - TestConstraintAngle.py - Unit test of SketchPlugin_ConstraintAngle class +TestConstraintAngle.py +Unit test of SketchPlugin_ConstraintAngle class - SketchPlugin_ConstraintAngle - static const std::string MY_CONSTRAINT_ANGLE_ID("SketchConstraintAngle"); - data()->addAttribute(SketchPlugin_Constraint::VALUE(), ModelAPI_AttributeDouble::typeId()); - data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(), ModelAPI_AttributeRefAttr::typeId()); - data()->addAttribute(SketchPlugin_Constraint::ENTITY_B(), ModelAPI_AttributeRefAttr::typeId()); - data()->addAttribute(SketchPlugin_Constraint::FLYOUT_VALUE_PNT(), GeomDataAPI_Point2D::typeId()); +SketchPlugin_ConstraintAngle + static const std::string MY_CONSTRAINT_ANGLE_ID("SketchConstraintAngle"); + data()->addAttribute(SketchPlugin_Constraint::VALUE(), ModelAPI_AttributeDouble::typeId()); + data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(), ModelAPI_AttributeRefAttr::typeId()); + data()->addAttribute(SketchPlugin_Constraint::ENTITY_B(), ModelAPI_AttributeRefAttr::typeId()); + data()->addAttribute(SketchPlugin_Constraint::FLYOUT_VALUE_PNT(), GeomDataAPI_Point2D::typeId()); """ + from GeomDataAPI import * from ModelAPI import * import math diff --git a/src/SketchPlugin/Test/TestConstraintAngleEllipse.py b/src/SketchPlugin/Test/TestConstraintAngleEllipse.py index 70e600d53..0199f3935 100644 --- a/src/SketchPlugin/Test/TestConstraintAngleEllipse.py +++ b/src/SketchPlugin/Test/TestConstraintAngleEllipse.py @@ -18,7 +18,7 @@ # """ - Test constraint "Angle" applied for ellipse's axes +Test constraint "Angle" applied for ellipse's axes """ import unittest diff --git a/src/SketchPlugin/Test/TestConstraintCoincidence.py b/src/SketchPlugin/Test/TestConstraintCoincidence.py index 7455776d8..c81230a82 100644 --- a/src/SketchPlugin/Test/TestConstraintCoincidence.py +++ b/src/SketchPlugin/Test/TestConstraintCoincidence.py @@ -18,23 +18,24 @@ # """ - TestConstraintCoincidence.py - Unit test of SketchPlugin_ConstraintCoincidence class +TestConstraintCoincidence.py +Unit test of SketchPlugin_ConstraintCoincidence class - SketchPlugin_Constraint - static const std::string MY_CONSTRAINT_VALUE("ConstraintValue"); - static const std::string MY_FLYOUT_VALUE_PNT("ConstraintFlyoutValuePnt"); - static const std::string MY_ENTITY_A("ConstraintEntityA"); - static const std::string MY_ENTITY_B("ConstraintEntityB"); - static const std::string MY_ENTITY_C("ConstraintEntityC"); - static const std::string MY_ENTITY_D("ConstraintEntityD"); +SketchPlugin_Constraint + static const std::string MY_CONSTRAINT_VALUE("ConstraintValue"); + static const std::string MY_FLYOUT_VALUE_PNT("ConstraintFlyoutValuePnt"); + static const std::string MY_ENTITY_A("ConstraintEntityA"); + static const std::string MY_ENTITY_B("ConstraintEntityB"); + static const std::string MY_ENTITY_C("ConstraintEntityC"); + static const std::string MY_ENTITY_D("ConstraintEntityD"); - SketchPlugin_ConstraintCoincidence - static const std::string MY_CONSTRAINT_COINCIDENCE_ID("SketchConstraintCoincidence"); - data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(), ModelAPI_AttributeRefAttr::typeId()); - data()->addAttribute(SketchPlugin_Constraint::ENTITY_B(), ModelAPI_AttributeRefAttr::typeId()); +SketchPlugin_ConstraintCoincidence + static const std::string MY_CONSTRAINT_COINCIDENCE_ID("SketchConstraintCoincidence"); + data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(), ModelAPI_AttributeRefAttr::typeId()); + data()->addAttribute(SketchPlugin_Constraint::ENTITY_B(), ModelAPI_AttributeRefAttr::typeId()); """ + from GeomDataAPI import * from ModelAPI import * import math diff --git a/src/SketchPlugin/Test/TestConstraintCoincidenceBSpline.py b/src/SketchPlugin/Test/TestConstraintCoincidenceBSpline.py index a41133266..2e481870e 100644 --- a/src/SketchPlugin/Test/TestConstraintCoincidenceBSpline.py +++ b/src/SketchPlugin/Test/TestConstraintCoincidenceBSpline.py @@ -18,7 +18,7 @@ # """ - Test constraint coincidence applied for B-spline curve and its sub-results +Test constraint coincidence applied for B-spline curve and its sub-results """ import unittest diff --git a/src/SketchPlugin/Test/TestConstraintCoincidenceEllipse.py b/src/SketchPlugin/Test/TestConstraintCoincidenceEllipse.py index 1ecdf1380..4ad398a50 100644 --- a/src/SketchPlugin/Test/TestConstraintCoincidenceEllipse.py +++ b/src/SketchPlugin/Test/TestConstraintCoincidenceEllipse.py @@ -18,7 +18,7 @@ # """ - Test constraint coincidence applied for ellipse and its sub-results +Test constraint coincidence applied for ellipse and its sub-results """ import unittest diff --git a/src/SketchPlugin/Test/TestConstraintCoincidenceEllipticArc.py b/src/SketchPlugin/Test/TestConstraintCoincidenceEllipticArc.py index 7b5efb9d6..7908d4cae 100644 --- a/src/SketchPlugin/Test/TestConstraintCoincidenceEllipticArc.py +++ b/src/SketchPlugin/Test/TestConstraintCoincidenceEllipticArc.py @@ -18,7 +18,7 @@ # """ - Test constraint coincidence applied for elliptic arc and its sub-results +Test constraint coincidence applied for elliptic arc and its sub-results """ import unittest diff --git a/src/SketchPlugin/Test/TestConstraintCollinear.py b/src/SketchPlugin/Test/TestConstraintCollinear.py index c60fda05e..e80420125 100644 --- a/src/SketchPlugin/Test/TestConstraintCollinear.py +++ b/src/SketchPlugin/Test/TestConstraintCollinear.py @@ -18,13 +18,13 @@ # """ - TestConstraintCollinear.py - Unit test of SketchPlugin_ConstraintCollinear class +TestConstraintCollinear.py +Unit test of SketchPlugin_ConstraintCollinear class - SketchPlugin_ConstraintCollinear - static const std::string MY_CONSTRAINT_COLLINEAR_ID("SketchConstraintCollinear"); - data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(), ModelAPI_AttributeRefAttr::typeId()); - data()->addAttribute(SketchPlugin_Constraint::ENTITY_B(), ModelAPI_AttributeRefAttr::typeId()); +SketchPlugin_ConstraintCollinear + static const std::string MY_CONSTRAINT_COLLINEAR_ID("SketchConstraintCollinear"); + data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(), ModelAPI_AttributeRefAttr::typeId()); + data()->addAttribute(SketchPlugin_Constraint::ENTITY_B(), ModelAPI_AttributeRefAttr::typeId()); """ diff --git a/src/SketchPlugin/Test/TestConstraintCollinearEllipse.py b/src/SketchPlugin/Test/TestConstraintCollinearEllipse.py index b2b7697f0..0a4f68031 100644 --- a/src/SketchPlugin/Test/TestConstraintCollinearEllipse.py +++ b/src/SketchPlugin/Test/TestConstraintCollinearEllipse.py @@ -18,7 +18,7 @@ # """ - Test constraint "Collinear" applied for ellipse's axes +Test constraint "Collinear" applied for ellipse's axes """ import unittest diff --git a/src/SketchPlugin/Test/TestConstraintDistance.py b/src/SketchPlugin/Test/TestConstraintDistance.py index dbf7f7683..56d11a924 100644 --- a/src/SketchPlugin/Test/TestConstraintDistance.py +++ b/src/SketchPlugin/Test/TestConstraintDistance.py @@ -18,26 +18,27 @@ # """ - TestConstraintDistance.py - Unit test of SketchPlugin_ConstraintDistance class +TestConstraintDistance.py +Unit test of SketchPlugin_ConstraintDistance class - SketchPlugin_Constraint - static const std::string MY_CONSTRAINT_VALUE("ConstraintValue"); - static const std::string MY_FLYOUT_VALUE_PNT("ConstraintFlyoutValuePnt"); - static const std::string MY_ENTITY_A("ConstraintEntityA"); - static const std::string MY_ENTITY_B("ConstraintEntityB"); - static const std::string MY_ENTITY_C("ConstraintEntityC"); - static const std::string MY_ENTITY_D("ConstraintEntityD"); +SketchPlugin_Constraint + static const std::string MY_CONSTRAINT_VALUE("ConstraintValue"); + static const std::string MY_FLYOUT_VALUE_PNT("ConstraintFlyoutValuePnt"); + static const std::string MY_ENTITY_A("ConstraintEntityA"); + static const std::string MY_ENTITY_B("ConstraintEntityB"); + static const std::string MY_ENTITY_C("ConstraintEntityC"); + static const std::string MY_ENTITY_D("ConstraintEntityD"); - SketchPlugin_ConstraintDistance - static const std::string MY_CONSTRAINT_DISTANCE_ID("SketchConstraintDistance"); - data()->addAttribute(SketchPlugin_Constraint::VALUE(), ModelAPI_AttributeDouble::typeId()); - data()->addAttribute(SketchPlugin_Constraint::FLYOUT_VALUE_PNT(), GeomDataAPI_Point2D::typeId()); - data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(), ModelAPI_AttributeRefAttr::typeId()); - data()->addAttribute(SketchPlugin_Constraint::ENTITY_B(), ModelAPI_AttributeRefAttr::typeId()); +SketchPlugin_ConstraintDistance + static const std::string MY_CONSTRAINT_DISTANCE_ID("SketchConstraintDistance"); + data()->addAttribute(SketchPlugin_Constraint::VALUE(), ModelAPI_AttributeDouble::typeId()); + data()->addAttribute(SketchPlugin_Constraint::FLYOUT_VALUE_PNT(), GeomDataAPI_Point2D::typeId()); + data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(), ModelAPI_AttributeRefAttr::typeId()); + data()->addAttribute(SketchPlugin_Constraint::ENTITY_B(), ModelAPI_AttributeRefAttr::typeId()); """ + from GeomDataAPI import * from ModelAPI import * import math diff --git a/src/SketchPlugin/Test/TestConstraintDistanceEllipse.py b/src/SketchPlugin/Test/TestConstraintDistanceEllipse.py index ac9330757..b871c5589 100644 --- a/src/SketchPlugin/Test/TestConstraintDistanceEllipse.py +++ b/src/SketchPlugin/Test/TestConstraintDistanceEllipse.py @@ -18,7 +18,7 @@ # """ - Test constraint "Distance" applied sub-elements of an ellipse +Test constraint "Distance" applied sub-elements of an ellipse """ import unittest diff --git a/src/SketchPlugin/Test/TestConstraintDistanceHorizontal.py b/src/SketchPlugin/Test/TestConstraintDistanceHorizontal.py index 29b79b2d5..4c9efe4df 100644 --- a/src/SketchPlugin/Test/TestConstraintDistanceHorizontal.py +++ b/src/SketchPlugin/Test/TestConstraintDistanceHorizontal.py @@ -18,15 +18,15 @@ # """ - TestConstraintDistanceHorizontal.py - Unit test of SketchPlugin_ConstraintDistanceHorizontal class +TestConstraintDistanceHorizontal.py +Unit test of SketchPlugin_ConstraintDistanceHorizontal class - SketchPlugin_ConstraintDistanceHorizontal - static const std::string MY_CONSTRAINT_DISTANCE_ID("SketchConstraintDistance"); - data()->addAttribute(SketchPlugin_Constraint::VALUE(), ModelAPI_AttributeDouble::typeId()); - data()->addAttribute(SketchPlugin_Constraint::FLYOUT_VALUE_PNT(), GeomDataAPI_Point2D::typeId()); - data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(), ModelAPI_AttributeRefAttr::typeId()); - data()->addAttribute(SketchPlugin_Constraint::ENTITY_B(), ModelAPI_AttributeRefAttr::typeId()); +SketchPlugin_ConstraintDistanceHorizontal + static const std::string MY_CONSTRAINT_DISTANCE_ID("SketchConstraintDistance"); + data()->addAttribute(SketchPlugin_Constraint::VALUE(), ModelAPI_AttributeDouble::typeId()); + data()->addAttribute(SketchPlugin_Constraint::FLYOUT_VALUE_PNT(), GeomDataAPI_Point2D::typeId()); + data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(), ModelAPI_AttributeRefAttr::typeId()); + data()->addAttribute(SketchPlugin_Constraint::ENTITY_B(), ModelAPI_AttributeRefAttr::typeId()); """ from GeomDataAPI import * diff --git a/src/SketchPlugin/Test/TestConstraintDistanceHorizontalZero.py b/src/SketchPlugin/Test/TestConstraintDistanceHorizontalZero.py index 8ebc446f4..b0fb9b3cc 100644 --- a/src/SketchPlugin/Test/TestConstraintDistanceHorizontalZero.py +++ b/src/SketchPlugin/Test/TestConstraintDistanceHorizontalZero.py @@ -18,7 +18,7 @@ # """ - Test the zero value of the constraint "DistanceHorizontal" +Test the zero value of the constraint "DistanceHorizontal" """ import unittest diff --git a/src/SketchPlugin/Test/TestConstraintDistanceVertical.py b/src/SketchPlugin/Test/TestConstraintDistanceVertical.py index 8808c73c2..dac9cf167 100644 --- a/src/SketchPlugin/Test/TestConstraintDistanceVertical.py +++ b/src/SketchPlugin/Test/TestConstraintDistanceVertical.py @@ -18,15 +18,15 @@ # """ - TestConstraintDistanceVertical.py - Unit test of SketchPlugin_ConstraintDistanceVertical class +TestConstraintDistanceVertical.py +Unit test of SketchPlugin_ConstraintDistanceVertical class - SketchPlugin_ConstraintDistanceVertical - static const std::string MY_CONSTRAINT_DISTANCE_ID("SketchConstraintDistance"); - data()->addAttribute(SketchPlugin_Constraint::VALUE(), ModelAPI_AttributeDouble::typeId()); - data()->addAttribute(SketchPlugin_Constraint::FLYOUT_VALUE_PNT(), GeomDataAPI_Point2D::typeId()); - data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(), ModelAPI_AttributeRefAttr::typeId()); - data()->addAttribute(SketchPlugin_Constraint::ENTITY_B(), ModelAPI_AttributeRefAttr::typeId()); +SketchPlugin_ConstraintDistanceVertical + static const std::string MY_CONSTRAINT_DISTANCE_ID("SketchConstraintDistance"); + data()->addAttribute(SketchPlugin_Constraint::VALUE(), ModelAPI_AttributeDouble::typeId()); + data()->addAttribute(SketchPlugin_Constraint::FLYOUT_VALUE_PNT(), GeomDataAPI_Point2D::typeId()); + data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(), ModelAPI_AttributeRefAttr::typeId()); + data()->addAttribute(SketchPlugin_Constraint::ENTITY_B(), ModelAPI_AttributeRefAttr::typeId()); """ from GeomDataAPI import * diff --git a/src/SketchPlugin/Test/TestConstraintDistanceVerticalZero.py b/src/SketchPlugin/Test/TestConstraintDistanceVerticalZero.py index 4df86f334..81e08e7e6 100644 --- a/src/SketchPlugin/Test/TestConstraintDistanceVerticalZero.py +++ b/src/SketchPlugin/Test/TestConstraintDistanceVerticalZero.py @@ -18,7 +18,7 @@ # """ - Test the zero value of the constraint "DistanceVertical" +Test the zero value of the constraint "DistanceVertical" """ import unittest diff --git a/src/SketchPlugin/Test/TestConstraintDistanceZero.py b/src/SketchPlugin/Test/TestConstraintDistanceZero.py index ed1f2cab4..17c60acd4 100644 --- a/src/SketchPlugin/Test/TestConstraintDistanceZero.py +++ b/src/SketchPlugin/Test/TestConstraintDistanceZero.py @@ -18,7 +18,7 @@ # """ - Test the zero value of the constraint "Distance" +Test the zero value of the constraint "Distance" """ import unittest diff --git a/src/SketchPlugin/Test/TestConstraintEqual.py b/src/SketchPlugin/Test/TestConstraintEqual.py index b767e6826..d879828ad 100644 --- a/src/SketchPlugin/Test/TestConstraintEqual.py +++ b/src/SketchPlugin/Test/TestConstraintEqual.py @@ -18,15 +18,16 @@ # """ - TestConstraintEqual.py - Unit test of SketchPlugin_ConstraintEqual class +TestConstraintEqual.py +Unit test of SketchPlugin_ConstraintEqual class - SketchPlugin_ConstraintEqual - static const std::string MY_CONSTRAINT_EQAUL_ID("SketchConstraintEqual"); - data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(), ModelAPI_AttributeRefAttr::typeId()); - data()->addAttribute(SketchPlugin_Constraint::ENTITY_B(), ModelAPI_AttributeRefAttr::typeId()); +SketchPlugin_ConstraintEqual + static const std::string MY_CONSTRAINT_EQAUL_ID("SketchConstraintEqual"); + data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(), ModelAPI_AttributeRefAttr::typeId()); + data()->addAttribute(SketchPlugin_Constraint::ENTITY_B(), ModelAPI_AttributeRefAttr::typeId()); """ + from GeomDataAPI import * from ModelAPI import * import math diff --git a/src/SketchPlugin/Test/TestConstraintEqualEllipse.py b/src/SketchPlugin/Test/TestConstraintEqualEllipse.py index 0e417453c..c0ed413d9 100644 --- a/src/SketchPlugin/Test/TestConstraintEqualEllipse.py +++ b/src/SketchPlugin/Test/TestConstraintEqualEllipse.py @@ -18,7 +18,7 @@ # """ - Test constraint "Equal" applied to the pair of ellipses +Test constraint "Equal" applied to the pair of ellipses """ from salome.shaper import model diff --git a/src/SketchPlugin/Test/TestConstraintFixed.py b/src/SketchPlugin/Test/TestConstraintFixed.py index 3c4d9c1bf..c346ca83e 100644 --- a/src/SketchPlugin/Test/TestConstraintFixed.py +++ b/src/SketchPlugin/Test/TestConstraintFixed.py @@ -18,22 +18,23 @@ # """ - TestConstraintRigid.py - Unit test of SketchPlugin_ConstraintRigid class +TestConstraintRigid.py +Unit test of SketchPlugin_ConstraintRigid class - SketchPlugin_Constraint - static const std::string MY_CONSTRAINT_VALUE("ConstraintValue"); - static const std::string MY_FLYOUT_VALUE_PNT("ConstraintFlyoutValuePnt"); - static const std::string MY_ENTITY_A("ConstraintEntityA"); - static const std::string MY_ENTITY_B("ConstraintEntityB"); - static const std::string MY_ENTITY_C("ConstraintEntityC"); - static const std::string MY_ENTITY_D("ConstraintEntityD"); +SketchPlugin_Constraint + static const std::string MY_CONSTRAINT_VALUE("ConstraintValue"); + static const std::string MY_FLYOUT_VALUE_PNT("ConstraintFlyoutValuePnt"); + static const std::string MY_ENTITY_A("ConstraintEntityA"); + static const std::string MY_ENTITY_B("ConstraintEntityB"); + static const std::string MY_ENTITY_C("ConstraintEntityC"); + static const std::string MY_ENTITY_D("ConstraintEntityD"); - SketchPlugin_ConstraintRigid - static const std::string MY_CONSTRAINT_RIGID_ID("SketchConstraintRigid"); - data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(), ModelAPI_AttributeRefAttr::typeId()); +SketchPlugin_ConstraintRigid + static const std::string MY_CONSTRAINT_RIGID_ID("SketchConstraintRigid"); + data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(), ModelAPI_AttributeRefAttr::typeId()); """ + from GeomDataAPI import * from ModelAPI import * from GeomAPI import * diff --git a/src/SketchPlugin/Test/TestConstraintHorizontal.py b/src/SketchPlugin/Test/TestConstraintHorizontal.py index bbb6e7e49..ec5c65c14 100644 --- a/src/SketchPlugin/Test/TestConstraintHorizontal.py +++ b/src/SketchPlugin/Test/TestConstraintHorizontal.py @@ -18,14 +18,15 @@ # """ - TestConstraintHorizontal.py - Unit test of SketchPlugin_ConstraintHorizontal class +TestConstraintHorizontal.py +Unit test of SketchPlugin_ConstraintHorizontal class - SketchPlugin_ConstraintHorizontal - static const std::string MY_CONSTRAINT_HORIZONTAL_ID("SketchConstraintHorizontal"); - data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(), ModelAPI_AttributeRefAttr::typeId()); +SketchPlugin_ConstraintHorizontal + static const std::string MY_CONSTRAINT_HORIZONTAL_ID("SketchConstraintHorizontal"); + data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(), ModelAPI_AttributeRefAttr::typeId()); """ + from GeomDataAPI import * from ModelAPI import * from salome.shaper import model diff --git a/src/SketchPlugin/Test/TestConstraintHorizontalValidator.py b/src/SketchPlugin/Test/TestConstraintHorizontalValidator.py index c9a83ad57..42d9792cb 100644 --- a/src/SketchPlugin/Test/TestConstraintHorizontalValidator.py +++ b/src/SketchPlugin/Test/TestConstraintHorizontalValidator.py @@ -18,9 +18,9 @@ # """ - TestConstraintHorizontalValidator.py - It tests validation of horizontal and vertical segments in H and V constraints to avoid - selection segments that already have one of these constraint" +TestConstraintHorizontalValidator.py +It tests validation of horizontal and vertical segments in H and V constraints to avoid +selection segments that already have one of these constraint" """ # ========================================================================= diff --git a/src/SketchPlugin/Test/TestConstraintLength.py b/src/SketchPlugin/Test/TestConstraintLength.py index 9226595f1..8ac4e5b6e 100644 --- a/src/SketchPlugin/Test/TestConstraintLength.py +++ b/src/SketchPlugin/Test/TestConstraintLength.py @@ -18,16 +18,17 @@ # """ - TestConstraintLength.py - Unit test of SketchPlugin_ConstraintLength class +TestConstraintLength.py +Unit test of SketchPlugin_ConstraintLength class - SketchPlugin_ConstraintLength - static const std::string MY_CONSTRAINT_LENGTH_ID("SketchConstraintLength"); - data()->addAttribute(SketchPlugin_Constraint::VALUE(), ModelAPI_AttributeDouble::typeId()); - data()->addAttribute(SketchPlugin_Constraint::FLYOUT_VALUE_PNT(), GeomDataAPI_Point2D::typeId()); - data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(), ModelAPI_AttributeRefAttr::typeId()); +SketchPlugin_ConstraintLength + static const std::string MY_CONSTRAINT_LENGTH_ID("SketchConstraintLength"); + data()->addAttribute(SketchPlugin_Constraint::VALUE(), ModelAPI_AttributeDouble::typeId()); + data()->addAttribute(SketchPlugin_Constraint::FLYOUT_VALUE_PNT(), GeomDataAPI_Point2D::typeId()); + data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(), ModelAPI_AttributeRefAttr::typeId()); """ + from GeomDataAPI import * from ModelAPI import * import math diff --git a/src/SketchPlugin/Test/TestConstraintMiddlePoint.py b/src/SketchPlugin/Test/TestConstraintMiddlePoint.py index 1c402f7dd..f64e7f0f1 100644 --- a/src/SketchPlugin/Test/TestConstraintMiddlePoint.py +++ b/src/SketchPlugin/Test/TestConstraintMiddlePoint.py @@ -18,23 +18,24 @@ # """ - TestConstraintCoincidence.py - Unit test of SketchPlugin_ConstraintCoincidence class +TestConstraintCoincidence.py +Unit test of SketchPlugin_ConstraintCoincidence class - SketchPlugin_Constraint - static const std::string MY_CONSTRAINT_VALUE("ConstraintValue"); - static const std::string MY_FLYOUT_VALUE_PNT("ConstraintFlyoutValuePnt"); - static const std::string MY_ENTITY_A("ConstraintEntityA"); - static const std::string MY_ENTITY_B("ConstraintEntityB"); - static const std::string MY_ENTITY_C("ConstraintEntityC"); - static const std::string MY_ENTITY_D("ConstraintEntityD"); +SketchPlugin_Constraint + static const std::string MY_CONSTRAINT_VALUE("ConstraintValue"); + static const std::string MY_FLYOUT_VALUE_PNT("ConstraintFlyoutValuePnt"); + static const std::string MY_ENTITY_A("ConstraintEntityA"); + static const std::string MY_ENTITY_B("ConstraintEntityB"); + static const std::string MY_ENTITY_C("ConstraintEntityC"); + static const std::string MY_ENTITY_D("ConstraintEntityD"); - SketchPlugin_ConstraintCoincidence - static const std::string MY_CONSTRAINT_COINCIDENCE_ID("SketchConstraintCoincidence"); - data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(), ModelAPI_AttributeRefAttr::typeId()); - data()->addAttribute(SketchPlugin_Constraint::ENTITY_B(), ModelAPI_AttributeRefAttr::typeId()); +SketchPlugin_ConstraintCoincidence + static const std::string MY_CONSTRAINT_COINCIDENCE_ID("SketchConstraintCoincidence"); + data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(), ModelAPI_AttributeRefAttr::typeId()); + data()->addAttribute(SketchPlugin_Constraint::ENTITY_B(), ModelAPI_AttributeRefAttr::typeId()); """ + from GeomDataAPI import * from ModelAPI import * from SketchAPI import * diff --git a/src/SketchPlugin/Test/TestConstraintMiddlePointOnArc.py b/src/SketchPlugin/Test/TestConstraintMiddlePointOnArc.py index e817f9b4e..d9c8d5fdf 100644 --- a/src/SketchPlugin/Test/TestConstraintMiddlePointOnArc.py +++ b/src/SketchPlugin/Test/TestConstraintMiddlePointOnArc.py @@ -18,7 +18,7 @@ # """ - Test middle point on an arc +Test middle point on an arc """ import unittest diff --git a/src/SketchPlugin/Test/TestConstraintMiddlePointOnEllipticArc.py b/src/SketchPlugin/Test/TestConstraintMiddlePointOnEllipticArc.py index c8a827ae0..928c2cdf4 100644 --- a/src/SketchPlugin/Test/TestConstraintMiddlePointOnEllipticArc.py +++ b/src/SketchPlugin/Test/TestConstraintMiddlePointOnEllipticArc.py @@ -18,7 +18,7 @@ # """ - Test middle point on an elliptic arc +Test middle point on an elliptic arc """ import unittest diff --git a/src/SketchPlugin/Test/TestConstraintParallel.py b/src/SketchPlugin/Test/TestConstraintParallel.py index f041be721..1afa4b219 100644 --- a/src/SketchPlugin/Test/TestConstraintParallel.py +++ b/src/SketchPlugin/Test/TestConstraintParallel.py @@ -18,16 +18,17 @@ # """ - TestConstraintParallel.py - Unit test of SketchPlugin_ConstraintParallel class +TestConstraintParallel.py +Unit test of SketchPlugin_ConstraintParallel class - SketchPlugin_ConstraintParallel - static const std::string MY_CONSTRAINT_PARALLEL_ID("SketchConstraintParallel"); - data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(), ModelAPI_AttributeRefAttr::typeId()); - data()->addAttribute(SketchPlugin_Constraint::ENTITY_B(), ModelAPI_AttributeRefAttr::typeId()); - data()->addAttribute(SketchPlugin_Constraint::FLYOUT_VALUE_PNT(), GeomDataAPI_Point2D::typeId()); +SketchPlugin_ConstraintParallel + static const std::string MY_CONSTRAINT_PARALLEL_ID("SketchConstraintParallel"); + data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(), ModelAPI_AttributeRefAttr::typeId()); + data()->addAttribute(SketchPlugin_Constraint::ENTITY_B(), ModelAPI_AttributeRefAttr::typeId()); + data()->addAttribute(SketchPlugin_Constraint::FLYOUT_VALUE_PNT(), GeomDataAPI_Point2D::typeId()); """ + from GeomDataAPI import * from ModelAPI import * from salome.shaper import model diff --git a/src/SketchPlugin/Test/TestConstraintPerpendicular.py b/src/SketchPlugin/Test/TestConstraintPerpendicular.py index 2d644e126..f9861527f 100644 --- a/src/SketchPlugin/Test/TestConstraintPerpendicular.py +++ b/src/SketchPlugin/Test/TestConstraintPerpendicular.py @@ -18,23 +18,24 @@ # """ - TestConstraintPerpendicular.py - Unit test of SketchPlugin_ConstraintPerpendicular class +TestConstraintPerpendicular.py +Unit test of SketchPlugin_ConstraintPerpendicular class - SketchPlugin_Constraint - static const std::string MY_CONSTRAINT_VALUE("ConstraintValue"); - static const std::string MY_FLYOUT_VALUE_PNT("ConstraintFlyoutValuePnt"); - static const std::string MY_ENTITY_A("ConstraintEntityA"); - static const std::string MY_ENTITY_B("ConstraintEntityB"); - static const std::string MY_ENTITY_C("ConstraintEntityC"); - static const std::string MY_ENTITY_D("ConstraintEntityD"); +SketchPlugin_Constraint + static const std::string MY_CONSTRAINT_VALUE("ConstraintValue"); + static const std::string MY_FLYOUT_VALUE_PNT("ConstraintFlyoutValuePnt"); + static const std::string MY_ENTITY_A("ConstraintEntityA"); + static const std::string MY_ENTITY_B("ConstraintEntityB"); + static const std::string MY_ENTITY_C("ConstraintEntityC"); + static const std::string MY_ENTITY_D("ConstraintEntityD"); - SketchPlugin_ConstraintPerpendicular - static const std::string MY_CONSTRAINT_PERPENDICULAR_ID("SketchConstraintPerpendicular"); - data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(), ModelAPI_AttributeRefAttr::typeId()); - data()->addAttribute(SketchPlugin_Constraint::ENTITY_B(), ModelAPI_AttributeRefAttr::typeId()); - data()->addAttribute(SketchPlugin_Constraint::FLYOUT_VALUE_PNT(), GeomDataAPI_Point2D::typeId()); +SketchPlugin_ConstraintPerpendicular + static const std::string MY_CONSTRAINT_PERPENDICULAR_ID("SketchConstraintPerpendicular"); + data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(), ModelAPI_AttributeRefAttr::typeId()); + data()->addAttribute(SketchPlugin_Constraint::ENTITY_B(), ModelAPI_AttributeRefAttr::typeId()); + data()->addAttribute(SketchPlugin_Constraint::FLYOUT_VALUE_PNT(), GeomDataAPI_Point2D::typeId()); """ + from GeomDataAPI import * from ModelAPI import * from salome.shaper import model diff --git a/src/SketchPlugin/Test/TestConstraintRadius.py b/src/SketchPlugin/Test/TestConstraintRadius.py index 0bfda6361..5e7c18af6 100644 --- a/src/SketchPlugin/Test/TestConstraintRadius.py +++ b/src/SketchPlugin/Test/TestConstraintRadius.py @@ -18,24 +18,25 @@ # """ - TestConstraintRadius.py - Unit test of SketchPlugin_ConstraintRadius class +TestConstraintRadius.py +Unit test of SketchPlugin_ConstraintRadius class - SketchPlugin_Constraint - static const std::string MY_CONSTRAINT_VALUE("ConstraintValue"); - static const std::string MY_FLYOUT_VALUE_PNT("ConstraintFlyoutValuePnt"); - static const std::string MY_ENTITY_A("ConstraintEntityA"); - static const std::string MY_ENTITY_B("ConstraintEntityB"); - static const std::string MY_ENTITY_C("ConstraintEntityC"); - static const std::string MY_ENTITY_D("ConstraintEntityD"); +SketchPlugin_Constraint + static const std::string MY_CONSTRAINT_VALUE("ConstraintValue"); + static const std::string MY_FLYOUT_VALUE_PNT("ConstraintFlyoutValuePnt"); + static const std::string MY_ENTITY_A("ConstraintEntityA"); + static const std::string MY_ENTITY_B("ConstraintEntityB"); + static const std::string MY_ENTITY_C("ConstraintEntityC"); + static const std::string MY_ENTITY_D("ConstraintEntityD"); - SketchPlugin_ConstraintRadius - static const std::string MY_CONSTRAINT_RADIUS_ID("SketchConstraintRadius"); - data()->addAttribute(SketchPlugin_Constraint::VALUE(), ModelAPI_AttributeDouble::typeId()); - data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(), ModelAPI_AttributeRefAttr::typeId()); - data()->addAttribute(SketchPlugin_Constraint::FLYOUT_VALUE_PNT(), GeomDataAPI_Point2D::typeId()); +SketchPlugin_ConstraintRadius + static const std::string MY_CONSTRAINT_RADIUS_ID("SketchConstraintRadius"); + data()->addAttribute(SketchPlugin_Constraint::VALUE(), ModelAPI_AttributeDouble::typeId()); + data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(), ModelAPI_AttributeRefAttr::typeId()); + data()->addAttribute(SketchPlugin_Constraint::FLYOUT_VALUE_PNT(), GeomDataAPI_Point2D::typeId()); """ + from GeomDataAPI import * from ModelAPI import * import math diff --git a/src/SketchPlugin/Test/TestConstraintTangent.py b/src/SketchPlugin/Test/TestConstraintTangent.py index 1e0d2564a..a6f3d3479 100644 --- a/src/SketchPlugin/Test/TestConstraintTangent.py +++ b/src/SketchPlugin/Test/TestConstraintTangent.py @@ -18,15 +18,16 @@ # """ - TestConstraintTangent.py - Unit test of SketchPlugin_ConstraintTangent class +TestConstraintTangent.py +Unit test of SketchPlugin_ConstraintTangent class - SketchPlugin_ConstraintTangent - static const std::string MY_CONSTRAINT_TANGENT_ID("SketchConstraintTangent"); - data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(), ModelAPI_AttributeRefAttr::typeId()); - data()->addAttribute(SketchPlugin_Constraint::ENTITY_B(), ModelAPI_AttributeRefAttr::typeId()); +SketchPlugin_ConstraintTangent + static const std::string MY_CONSTRAINT_TANGENT_ID("SketchConstraintTangent"); + data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(), ModelAPI_AttributeRefAttr::typeId()); + data()->addAttribute(SketchPlugin_Constraint::ENTITY_B(), ModelAPI_AttributeRefAttr::typeId()); """ + from GeomDataAPI import * from GeomAPI import * from ModelAPI import * diff --git a/src/SketchPlugin/Test/TestConstraintTangentBSpline.py b/src/SketchPlugin/Test/TestConstraintTangentBSpline.py index c0b64e892..c359ec419 100644 --- a/src/SketchPlugin/Test/TestConstraintTangentBSpline.py +++ b/src/SketchPlugin/Test/TestConstraintTangentBSpline.py @@ -18,7 +18,7 @@ # """ - Test constraint "Tangent" applied to B-spline and another entity +Test constraint "Tangent" applied to B-spline and another entity """ import unittest diff --git a/src/SketchPlugin/Test/TestConstraintTangentEllipse.py b/src/SketchPlugin/Test/TestConstraintTangentEllipse.py index b16d75f28..9f9f05dfd 100644 --- a/src/SketchPlugin/Test/TestConstraintTangentEllipse.py +++ b/src/SketchPlugin/Test/TestConstraintTangentEllipse.py @@ -18,7 +18,7 @@ # """ - Test constraint "Tangent" applied to ellipse and another entity +Test constraint "Tangent" applied to ellipse and another entity """ import unittest diff --git a/src/SketchPlugin/Test/TestConstraintTangentEllipticArc.py b/src/SketchPlugin/Test/TestConstraintTangentEllipticArc.py index 7bc05625c..8540b09dc 100644 --- a/src/SketchPlugin/Test/TestConstraintTangentEllipticArc.py +++ b/src/SketchPlugin/Test/TestConstraintTangentEllipticArc.py @@ -18,7 +18,7 @@ # """ - Test constraint "Tangent" applied to elliptic arc and another entity +Test constraint "Tangent" applied to elliptic arc and another entity """ import unittest diff --git a/src/SketchPlugin/Test/TestConstraintVertical.py b/src/SketchPlugin/Test/TestConstraintVertical.py index 54494a637..c9c0d9a2b 100644 --- a/src/SketchPlugin/Test/TestConstraintVertical.py +++ b/src/SketchPlugin/Test/TestConstraintVertical.py @@ -18,14 +18,15 @@ # """ - TestConstraintVertical.py - Unit test of SketchPlugin_ConstraintVertical class +TestConstraintVertical.py +Unit test of SketchPlugin_ConstraintVertical class - SketchPlugin_ConstraintVertical - static const std::string MY_CONSTRAINT_VERTICAL_ID("SketchConstraintVertical"); - data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(), ModelAPI_AttributeRefAttr::typeId()); +SketchPlugin_ConstraintVertical + static const std::string MY_CONSTRAINT_VERTICAL_ID("SketchConstraintVertical"); + data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(), ModelAPI_AttributeRefAttr::typeId()); """ + from GeomDataAPI import * from ModelAPI import * from salome.shaper import model diff --git a/src/SketchPlugin/Test/TestCreateArcByCenterStartEnd.py b/src/SketchPlugin/Test/TestCreateArcByCenterStartEnd.py index b0f46a976..7936d0643 100644 --- a/src/SketchPlugin/Test/TestCreateArcByCenterStartEnd.py +++ b/src/SketchPlugin/Test/TestCreateArcByCenterStartEnd.py @@ -18,15 +18,15 @@ # """ - TestCreateArc.py +TestCreateArc.py - static const std::string MY_SKETCH_ARC_ID("SketchArc"); - static const std::string MY_CENTER_ID = "center_point"; - static const std::string MY_START_ID = "start_point"; - static const std::string MY_END_ID = "end_point"; - data()->addAttribute(SketchPlugin_Arc::CENTER_ID(), GeomDataAPI_Point2D::typeId()); - data()->addAttribute(SketchPlugin_Arc::START_ID(), GeomDataAPI_Point2D::typeId()); - data()->addAttribute(SketchPlugin_Arc::END_ID(), GeomDataAPI_Point2D::typeId()); +static const std::string MY_SKETCH_ARC_ID("SketchArc"); +static const std::string MY_CENTER_ID = "center_point"; +static const std::string MY_START_ID = "start_point"; +static const std::string MY_END_ID = "end_point"; +data()->addAttribute(SketchPlugin_Arc::CENTER_ID(), GeomDataAPI_Point2D::typeId()); +data()->addAttribute(SketchPlugin_Arc::START_ID(), GeomDataAPI_Point2D::typeId()); +data()->addAttribute(SketchPlugin_Arc::END_ID(), GeomDataAPI_Point2D::typeId()); """ # ========================================================================= diff --git a/src/SketchPlugin/Test/TestCreateArcByTangentEdge.py b/src/SketchPlugin/Test/TestCreateArcByTangentEdge.py index 4fd492b9f..cb2164a54 100644 --- a/src/SketchPlugin/Test/TestCreateArcByTangentEdge.py +++ b/src/SketchPlugin/Test/TestCreateArcByTangentEdge.py @@ -18,15 +18,15 @@ # """ - TestCreateArc.py - - static const std::string MY_SKETCH_ARC_ID("SketchArc"); - static const std::string MY_CENTER_ID = "center_point"; - static const std::string MY_START_ID = "start_point"; - static const std::string MY_END_ID = "end_point"; - data()->addAttribute(SketchPlugin_Arc::CENTER_ID(), GeomDataAPI_Point2D::typeId()); - data()->addAttribute(SketchPlugin_Arc::START_ID(), GeomDataAPI_Point2D::typeId()); - data()->addAttribute(SketchPlugin_Arc::END_ID(), GeomDataAPI_Point2D::typeId()); +TestCreateArc.py + +static const std::string MY_SKETCH_ARC_ID("SketchArc"); +static const std::string MY_CENTER_ID = "center_point"; +static const std::string MY_START_ID = "start_point"; +static const std::string MY_END_ID = "end_point"; +data()->addAttribute(SketchPlugin_Arc::CENTER_ID(), GeomDataAPI_Point2D::typeId()); +data()->addAttribute(SketchPlugin_Arc::START_ID(), GeomDataAPI_Point2D::typeId()); +data()->addAttribute(SketchPlugin_Arc::END_ID(), GeomDataAPI_Point2D::typeId()); """ # ========================================================================= diff --git a/src/SketchPlugin/Test/TestCreateArcByThreePoints.py b/src/SketchPlugin/Test/TestCreateArcByThreePoints.py index 886485872..504625e15 100644 --- a/src/SketchPlugin/Test/TestCreateArcByThreePoints.py +++ b/src/SketchPlugin/Test/TestCreateArcByThreePoints.py @@ -18,9 +18,9 @@ # """ - TestCreateArcByThreePoints.py +TestCreateArcByThreePoints.py - Test creation methods of arc built by three points +Test creation methods of arc built by three points """ # ========================================================================= diff --git a/src/SketchPlugin/Test/TestCreateArcChangeType.py b/src/SketchPlugin/Test/TestCreateArcChangeType.py index 281d7eb2a..8b70709e3 100644 --- a/src/SketchPlugin/Test/TestCreateArcChangeType.py +++ b/src/SketchPlugin/Test/TestCreateArcChangeType.py @@ -18,9 +18,9 @@ # """ - TestCreateArcChangeType.py +TestCreateArcChangeType.py - Test attributes reset when changing creation method of an arc on-the-fly +Test attributes reset when changing creation method of an arc on-the-fly """ # ========================================================================= diff --git a/src/SketchPlugin/Test/TestCreateBSpline.py b/src/SketchPlugin/Test/TestCreateBSpline.py index c9591b919..5258eefbd 100644 --- a/src/SketchPlugin/Test/TestCreateBSpline.py +++ b/src/SketchPlugin/Test/TestCreateBSpline.py @@ -18,7 +18,7 @@ # """ - Test creation of B-spline curve +Test creation of B-spline curve """ import unittest diff --git a/src/SketchPlugin/Test/TestCreateBSplinePeriodic.py b/src/SketchPlugin/Test/TestCreateBSplinePeriodic.py index 3f71a04a5..af6ba4377 100644 --- a/src/SketchPlugin/Test/TestCreateBSplinePeriodic.py +++ b/src/SketchPlugin/Test/TestCreateBSplinePeriodic.py @@ -18,7 +18,7 @@ # """ - Test creation of periodic B-spline curve +Test creation of periodic B-spline curve """ import unittest diff --git a/src/SketchPlugin/Test/TestCreateCircleByCenterAndPassed.py b/src/SketchPlugin/Test/TestCreateCircleByCenterAndPassed.py index 753f3b282..f790b0102 100644 --- a/src/SketchPlugin/Test/TestCreateCircleByCenterAndPassed.py +++ b/src/SketchPlugin/Test/TestCreateCircleByCenterAndPassed.py @@ -18,9 +18,9 @@ # """ - TestCreateCircleByCenterAndPassed.py +TestCreateCircleByCenterAndPassed.py - Test creation methods of a circle built by a center and a passed point +Test creation methods of a circle built by a center and a passed point """ # ========================================================================= diff --git a/src/SketchPlugin/Test/TestCreateCircleByThreePoints.py b/src/SketchPlugin/Test/TestCreateCircleByThreePoints.py index 69ac6bcc9..57c6e0dbe 100644 --- a/src/SketchPlugin/Test/TestCreateCircleByThreePoints.py +++ b/src/SketchPlugin/Test/TestCreateCircleByThreePoints.py @@ -18,9 +18,9 @@ # """ - TestCreateCircleByThreePoints.py +TestCreateCircleByThreePoints.py - Test creation methods of a circle built by three points +Test creation methods of a circle built by three points """ # ========================================================================= diff --git a/src/SketchPlugin/Test/TestCreateCircleChangeType.py b/src/SketchPlugin/Test/TestCreateCircleChangeType.py index a56be7563..1ff153f4d 100644 --- a/src/SketchPlugin/Test/TestCreateCircleChangeType.py +++ b/src/SketchPlugin/Test/TestCreateCircleChangeType.py @@ -18,9 +18,9 @@ # """ - TestCreateCircleChangeType.py +TestCreateCircleChangeType.py - Test attributes reset when changing creation method of a circle on-the-fly +Test attributes reset when changing creation method of a circle on-the-fly """ # ========================================================================= diff --git a/src/SketchPlugin/Test/TestCreateEllipseByCenterSemiaxisAndPassed.py b/src/SketchPlugin/Test/TestCreateEllipseByCenterSemiaxisAndPassed.py index 4bd37314d..a38eb405e 100644 --- a/src/SketchPlugin/Test/TestCreateEllipseByCenterSemiaxisAndPassed.py +++ b/src/SketchPlugin/Test/TestCreateEllipseByCenterSemiaxisAndPassed.py @@ -18,7 +18,7 @@ # """ - Test creation of ellipse by center, semi-axis and passed point +Test creation of ellipse by center, semi-axis and passed point """ import unittest diff --git a/src/SketchPlugin/Test/TestCreateEllipseByExternal.py b/src/SketchPlugin/Test/TestCreateEllipseByExternal.py index a6d40441c..5b8631037 100644 --- a/src/SketchPlugin/Test/TestCreateEllipseByExternal.py +++ b/src/SketchPlugin/Test/TestCreateEllipseByExternal.py @@ -18,7 +18,7 @@ # """ - Test creation of ellipse by external feature +Test creation of ellipse by external feature """ import unittest diff --git a/src/SketchPlugin/Test/TestCreateEllipseByMajorAxisAndPassed.py b/src/SketchPlugin/Test/TestCreateEllipseByMajorAxisAndPassed.py index 86bda9158..cdf2567fe 100644 --- a/src/SketchPlugin/Test/TestCreateEllipseByMajorAxisAndPassed.py +++ b/src/SketchPlugin/Test/TestCreateEllipseByMajorAxisAndPassed.py @@ -18,7 +18,7 @@ # """ - Test creation of ellipse by majoraxis and passed point +Test creation of ellipse by majoraxis and passed point """ import unittest diff --git a/src/SketchPlugin/Test/TestCreateEllipticArc.py b/src/SketchPlugin/Test/TestCreateEllipticArc.py index 249570331..ffac5e706 100644 --- a/src/SketchPlugin/Test/TestCreateEllipticArc.py +++ b/src/SketchPlugin/Test/TestCreateEllipticArc.py @@ -18,7 +18,7 @@ # """ - Test creation of elliptic arc by center, semi-axis, start and end points +Test creation of elliptic arc by center, semi-axis, start and end points """ import unittest diff --git a/src/SketchPlugin/Test/TestCreateEllipticArcByExternal.py b/src/SketchPlugin/Test/TestCreateEllipticArcByExternal.py index 115bdc3f6..6f28545d7 100644 --- a/src/SketchPlugin/Test/TestCreateEllipticArcByExternal.py +++ b/src/SketchPlugin/Test/TestCreateEllipticArcByExternal.py @@ -18,7 +18,7 @@ # """ - Test creation of elliptic arc by external feature +Test creation of elliptic arc by external feature """ import unittest diff --git a/src/SketchPlugin/Test/TestCreateMacroBSpline.py b/src/SketchPlugin/Test/TestCreateMacroBSpline.py index c2295666d..7608c269c 100644 --- a/src/SketchPlugin/Test/TestCreateMacroBSpline.py +++ b/src/SketchPlugin/Test/TestCreateMacroBSpline.py @@ -18,7 +18,7 @@ # """ - Test creation of B-spline curve by references to another features +Test creation of B-spline curve by references to another features """ import unittest diff --git a/src/SketchPlugin/Test/TestCurveFitting1.py b/src/SketchPlugin/Test/TestCurveFitting1.py index bbbf122ac..a71c34a90 100644 --- a/src/SketchPlugin/Test/TestCurveFitting1.py +++ b/src/SketchPlugin/Test/TestCurveFitting1.py @@ -18,7 +18,7 @@ # """ - Test creation of B-spline curve passing through the list of points +Test creation of B-spline curve passing through the list of points """ import math diff --git a/src/SketchPlugin/Test/TestCurveFitting2.py b/src/SketchPlugin/Test/TestCurveFitting2.py index 7edf1f5a5..d6308c468 100644 --- a/src/SketchPlugin/Test/TestCurveFitting2.py +++ b/src/SketchPlugin/Test/TestCurveFitting2.py @@ -18,7 +18,7 @@ # """ - Test creation of B-spline curve passing through the list of points +Test creation of B-spline curve passing through the list of points """ import math diff --git a/src/SketchPlugin/Test/TestCurveFitting3.py b/src/SketchPlugin/Test/TestCurveFitting3.py index 18466dcbc..23f1f50de 100644 --- a/src/SketchPlugin/Test/TestCurveFitting3.py +++ b/src/SketchPlugin/Test/TestCurveFitting3.py @@ -18,7 +18,7 @@ # """ - Test creation of B-spline curve passing through the list of points +Test creation of B-spline curve passing through the list of points """ import math diff --git a/src/SketchPlugin/Test/TestCurveFitting4.py b/src/SketchPlugin/Test/TestCurveFitting4.py index e6da7cf0f..b03ab0c4e 100644 --- a/src/SketchPlugin/Test/TestCurveFitting4.py +++ b/src/SketchPlugin/Test/TestCurveFitting4.py @@ -18,7 +18,7 @@ # """ - Test creation of B-spline curve passing through the list of points +Test creation of B-spline curve passing through the list of points """ import math diff --git a/src/SketchPlugin/Test/TestDistanceDump.py b/src/SketchPlugin/Test/TestDistanceDump.py index 6533f3701..cec85e417 100644 --- a/src/SketchPlugin/Test/TestDistanceDump.py +++ b/src/SketchPlugin/Test/TestDistanceDump.py @@ -18,9 +18,9 @@ # """ - TestDistanceDump.py +TestDistanceDump.py - Check that distances set by parameters are dumped correctly +Check that distances set by parameters are dumped correctly """ from salome.shaper import model diff --git a/src/SketchPlugin/Test/TestEdgesOrder.py b/src/SketchPlugin/Test/TestEdgesOrder.py index 0ad9471a9..281242f1a 100644 --- a/src/SketchPlugin/Test/TestEdgesOrder.py +++ b/src/SketchPlugin/Test/TestEdgesOrder.py @@ -18,7 +18,7 @@ # """ - Verify the order of sketch edges is the same after dump +Verify the order of sketch edges is the same after dump """ from salome.shaper import model diff --git a/src/SketchPlugin/Test/TestFillet.py b/src/SketchPlugin/Test/TestFillet.py index 58c418474..82d4b3215 100644 --- a/src/SketchPlugin/Test/TestFillet.py +++ b/src/SketchPlugin/Test/TestFillet.py @@ -18,16 +18,17 @@ # """ - TestFillet.py - Unit test of SketchPlugin_Fillet class +TestFillet.py +Unit test of SketchPlugin_Fillet class - SketchPlugin_Fillet - static const std::string MY_CONSTRAINT_FILLET_ID("SketchFillet"); - data()->addAttribute(SketchPlugin_Constraint::VALUE(), ModelAPI_AttributeDouble::typeId()); - data()->addAttribute(SketchPlugin_Constraint::ENTITY_B(), ModelAPI_AttributeRefList::typeId()); - data()->addAttribute(SketchPlugin_Constraint::ENTITY_C(), ModelAPI_AttributeRefAttrList::typeId()); +SketchPlugin_Fillet + static const std::string MY_CONSTRAINT_FILLET_ID("SketchFillet"); + data()->addAttribute(SketchPlugin_Constraint::VALUE(), ModelAPI_AttributeDouble::typeId()); + data()->addAttribute(SketchPlugin_Constraint::ENTITY_B(), ModelAPI_AttributeRefList::typeId()); + data()->addAttribute(SketchPlugin_Constraint::ENTITY_C(), ModelAPI_AttributeRefAttrList::typeId()); """ + from GeomDataAPI import * from ModelAPI import * import math diff --git a/src/SketchPlugin/Test/TestFilletAfterFolder.py b/src/SketchPlugin/Test/TestFilletAfterFolder.py index 0ddd11645..df57553ca 100644 --- a/src/SketchPlugin/Test/TestFilletAfterFolder.py +++ b/src/SketchPlugin/Test/TestFilletAfterFolder.py @@ -18,7 +18,7 @@ # """ - Crash when creating fillet in sketch started after a folder +Crash when creating fillet in sketch started after a folder """ from salome.shaper import model diff --git a/src/SketchPlugin/Test/TestFilletInteracting.py b/src/SketchPlugin/Test/TestFilletInteracting.py index aeb8ac0be..d4aba3450 100644 --- a/src/SketchPlugin/Test/TestFilletInteracting.py +++ b/src/SketchPlugin/Test/TestFilletInteracting.py @@ -18,9 +18,9 @@ # """ - TestFilletInteracting.py - Unit test of SketchPlugin_Fillet feature. - In scope of interaction with another constraints applied to filleted features. +TestFilletInteracting.py +Unit test of SketchPlugin_Fillet feature. +In scope of interaction with another constraints applied to filleted features. """ from GeomAPI import * diff --git a/src/SketchPlugin/Test/TestHighload.py b/src/SketchPlugin/Test/TestHighload.py index d897d2add..16f9afa6d 100644 --- a/src/SketchPlugin/Test/TestHighload.py +++ b/src/SketchPlugin/Test/TestHighload.py @@ -18,8 +18,9 @@ # """ - TestHighload.py +TestHighload.py """ + from GeomAPI import * from GeomDataAPI import * from ModelAPI import * diff --git a/src/SketchPlugin/Test/TestIntersectionChangeEdge.py b/src/SketchPlugin/Test/TestIntersectionChangeEdge.py index b748b5f78..330b666b4 100644 --- a/src/SketchPlugin/Test/TestIntersectionChangeEdge.py +++ b/src/SketchPlugin/Test/TestIntersectionChangeEdge.py @@ -18,8 +18,8 @@ # """ - TestIntersectionChangeEdge.py - Unit test of SketchPlugin_IntersectionPoint class +TestIntersectionChangeEdge.py +Unit test of SketchPlugin_IntersectionPoint class """ from SketchAPI import SketchAPI_Point diff --git a/src/SketchPlugin/Test/TestIntersectionWithCircle.py b/src/SketchPlugin/Test/TestIntersectionWithCircle.py index e92c8f402..c42eec0b6 100644 --- a/src/SketchPlugin/Test/TestIntersectionWithCircle.py +++ b/src/SketchPlugin/Test/TestIntersectionWithCircle.py @@ -18,8 +18,8 @@ # """ - TestIntersectionWithCircle.py - Unit test of SketchPlugin_IntersectionPoint class +TestIntersectionWithCircle.py +Unit test of SketchPlugin_IntersectionPoint class """ from GeomAPI import * diff --git a/src/SketchPlugin/Test/TestIntersectionWithLine.py b/src/SketchPlugin/Test/TestIntersectionWithLine.py index 9f222a897..e51e1092d 100644 --- a/src/SketchPlugin/Test/TestIntersectionWithLine.py +++ b/src/SketchPlugin/Test/TestIntersectionWithLine.py @@ -18,8 +18,8 @@ # """ - TestIntersectionWithLine.py - Unit test of SketchPlugin_IntersectionPoint class +TestIntersectionWithLine.py +Unit test of SketchPlugin_IntersectionPoint class """ from GeomAPI import * diff --git a/src/SketchPlugin/Test/TestIntersectionWithSpline.py b/src/SketchPlugin/Test/TestIntersectionWithSpline.py index fad943040..ef59fcd92 100644 --- a/src/SketchPlugin/Test/TestIntersectionWithSpline.py +++ b/src/SketchPlugin/Test/TestIntersectionWithSpline.py @@ -18,8 +18,8 @@ # """ - TestIntersectionWithSpline.py - Unit test of SketchPlugin_IntersectionPoint class +TestIntersectionWithSpline.py +Unit test of SketchPlugin_IntersectionPoint class """ from GeomAPI import * diff --git a/src/SketchPlugin/Test/TestMirror.py b/src/SketchPlugin/Test/TestMirror.py index dbf736b74..b2daeb479 100644 --- a/src/SketchPlugin/Test/TestMirror.py +++ b/src/SketchPlugin/Test/TestMirror.py @@ -18,16 +18,17 @@ # """ - TestConstraintMirror.py - Unit test of SketchPlugin_ConstraintMirror class +TestConstraintMirror.py +Unit test of SketchPlugin_ConstraintMirror class - SketchPlugin_ConstraintMirror - static const std::string MY_CONSTRAINT_MIRROR_ID("SketchConstraintMirror"); - data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(), ModelAPI_AttributeRefAttr::typeId()); - data()->addAttribute(SketchPlugin_Constraint::ENTITY_B(), ModelAPI_AttributeRefListAttr::typeId()); - data()->addAttribute(SketchPlugin_Constraint::ENTITY_C(), ModelAPI_AttributeRefListAttr::typeId()); +SketchPlugin_ConstraintMirror + static const std::string MY_CONSTRAINT_MIRROR_ID("SketchConstraintMirror"); + data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(), ModelAPI_AttributeRefAttr::typeId()); + data()->addAttribute(SketchPlugin_Constraint::ENTITY_B(), ModelAPI_AttributeRefListAttr::typeId()); + data()->addAttribute(SketchPlugin_Constraint::ENTITY_C(), ModelAPI_AttributeRefListAttr::typeId()); """ + from GeomDataAPI import * from ModelAPI import * import math diff --git a/src/SketchPlugin/Test/TestMoveArc.py b/src/SketchPlugin/Test/TestMoveArc.py index ec4a99f0c..d17518985 100644 --- a/src/SketchPlugin/Test/TestMoveArc.py +++ b/src/SketchPlugin/Test/TestMoveArc.py @@ -18,7 +18,7 @@ # """ - Test movement of the sketch arc of circle +Test movement of the sketch arc of circle """ import unittest diff --git a/src/SketchPlugin/Test/TestMoveBSpline.py b/src/SketchPlugin/Test/TestMoveBSpline.py index ce1ee787b..a7a0cda14 100644 --- a/src/SketchPlugin/Test/TestMoveBSpline.py +++ b/src/SketchPlugin/Test/TestMoveBSpline.py @@ -18,7 +18,7 @@ # """ - Test movement of the B-spline curve +Test movement of the B-spline curve """ import unittest diff --git a/src/SketchPlugin/Test/TestMoveBSplinePeriodic.py b/src/SketchPlugin/Test/TestMoveBSplinePeriodic.py index 0c8541f6a..5d9e65ca7 100644 --- a/src/SketchPlugin/Test/TestMoveBSplinePeriodic.py +++ b/src/SketchPlugin/Test/TestMoveBSplinePeriodic.py @@ -18,7 +18,7 @@ # """ - Test movement of the periodic B-spline curve +Test movement of the periodic B-spline curve """ import unittest diff --git a/src/SketchPlugin/Test/TestMoveCircle.py b/src/SketchPlugin/Test/TestMoveCircle.py index 120190fd0..35bd14285 100644 --- a/src/SketchPlugin/Test/TestMoveCircle.py +++ b/src/SketchPlugin/Test/TestMoveCircle.py @@ -18,7 +18,7 @@ # """ - Test movement of the sketch circle +Test movement of the sketch circle """ import unittest diff --git a/src/SketchPlugin/Test/TestMoveEllipse.py b/src/SketchPlugin/Test/TestMoveEllipse.py index a24bce802..30d75a8f3 100644 --- a/src/SketchPlugin/Test/TestMoveEllipse.py +++ b/src/SketchPlugin/Test/TestMoveEllipse.py @@ -18,7 +18,7 @@ # """ - Test movement of the sketch ellipse +Test movement of the sketch ellipse """ import unittest diff --git a/src/SketchPlugin/Test/TestMoveEllipticArc.py b/src/SketchPlugin/Test/TestMoveEllipticArc.py index a50357eda..016cbdc28 100644 --- a/src/SketchPlugin/Test/TestMoveEllipticArc.py +++ b/src/SketchPlugin/Test/TestMoveEllipticArc.py @@ -18,7 +18,7 @@ # """ - Test movement of the sketch ellipse +Test movement of the sketch ellipse """ import unittest diff --git a/src/SketchPlugin/Test/TestMoveLine.py b/src/SketchPlugin/Test/TestMoveLine.py index 30b0ad523..e9ea98f57 100644 --- a/src/SketchPlugin/Test/TestMoveLine.py +++ b/src/SketchPlugin/Test/TestMoveLine.py @@ -18,7 +18,7 @@ # """ - Test movement of the sketch line +Test movement of the sketch line """ import unittest diff --git a/src/SketchPlugin/Test/TestMovePoint.py b/src/SketchPlugin/Test/TestMovePoint.py index 75f39fc9f..5e30e2903 100644 --- a/src/SketchPlugin/Test/TestMovePoint.py +++ b/src/SketchPlugin/Test/TestMovePoint.py @@ -18,7 +18,7 @@ # """ - Test movement of the sketch point +Test movement of the sketch point """ import unittest diff --git a/src/SketchPlugin/Test/TestMovementComplex.py b/src/SketchPlugin/Test/TestMovementComplex.py index 880b924f5..8fc99ffe8 100644 --- a/src/SketchPlugin/Test/TestMovementComplex.py +++ b/src/SketchPlugin/Test/TestMovementComplex.py @@ -18,7 +18,7 @@ # """ - Test moving the entities in the complex sketch by the example of a clamp +Test moving the entities in the complex sketch by the example of a clamp """ from salome.shaper import model diff --git a/src/SketchPlugin/Test/TestMultiRotation.py b/src/SketchPlugin/Test/TestMultiRotation.py index f96805a3a..dc2e5b9c0 100644 --- a/src/SketchPlugin/Test/TestMultiRotation.py +++ b/src/SketchPlugin/Test/TestMultiRotation.py @@ -18,20 +18,21 @@ # """ - TestMultiRotation.py - Unit test of SketchPlugin_MultiRotation class - - SketchPlugin_MultiRotation - static const std::string MY_CONSTRAINT_ROTATION_ID("SketchMultiRotation"); - data()->addAttribute(ANGLE_TYPE(), ModelAPI_AttributeString::typeId()); - data()->addAttribute(ANGLE_ID(), ModelAPI_AttributeDouble::typeId()); - data()->addAttribute(ANGLE_FULL_ID(), ModelAPI_AttributeDouble::typeId()); - data()->addAttribute(NUMBER_OF_OBJECTS_ID(), ModelAPI_AttributeInteger::typeId()); - data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(), ModelAPI_AttributeRefList::typeId()); - data()->addAttribute(SketchPlugin_Constraint::ENTITY_B(), ModelAPI_AttributeRefList::typeId()); - data()->addAttribute(ROTATION_LIST_ID(), ModelAPI_AttributeRefList::typeId()); +TestMultiRotation.py +Unit test of SketchPlugin_MultiRotation class + +SketchPlugin_MultiRotation + static const std::string MY_CONSTRAINT_ROTATION_ID("SketchMultiRotation"); + data()->addAttribute(ANGLE_TYPE(), ModelAPI_AttributeString::typeId()); + data()->addAttribute(ANGLE_ID(), ModelAPI_AttributeDouble::typeId()); + data()->addAttribute(ANGLE_FULL_ID(), ModelAPI_AttributeDouble::typeId()); + data()->addAttribute(NUMBER_OF_OBJECTS_ID(), ModelAPI_AttributeInteger::typeId()); + data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(), ModelAPI_AttributeRefList::typeId()); + data()->addAttribute(SketchPlugin_Constraint::ENTITY_B(), ModelAPI_AttributeRefList::typeId()); + data()->addAttribute(ROTATION_LIST_ID(), ModelAPI_AttributeRefList::typeId()); """ + from GeomDataAPI import * from ModelAPI import * import math diff --git a/src/SketchPlugin/Test/TestMultiTranslation.py b/src/SketchPlugin/Test/TestMultiTranslation.py index 06500a9de..d4e78803c 100644 --- a/src/SketchPlugin/Test/TestMultiTranslation.py +++ b/src/SketchPlugin/Test/TestMultiTranslation.py @@ -18,20 +18,21 @@ # """ - TestMultiTranslation.py - Unit test of SketchPlugin_MultiTranslation class - - SketchPlugin_MultiTranslation - static const std::string MY_CONSTRAINT_TRANSLATION_ID("SketchMultiTranslation"); - data()->addAttribute(VALUE_TYPE(), ModelAPI_AttributeString::typeId()); - data()->addAttribute(START_POINT_ID(), ModelAPI_AttributeRefAttr::typeId()); - data()->addAttribute(END_POINT_ID(), ModelAPI_AttributeRefAttr::typeId()); - data()->addAttribute(NUMBER_OF_OBJECTS_ID(), ModelAPI_AttributeInteger::typeId()); - data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(), ModelAPI_AttributeRefList::typeId()); - data()->addAttribute(SketchPlugin_Constraint::ENTITY_B(), ModelAPI_AttributeRefList::typeId()); - data()->addAttribute(TRANSLATION_LIST_ID(), ModelAPI_AttributeRefList::typeId()); +TestMultiTranslation.py +Unit test of SketchPlugin_MultiTranslation class + +SketchPlugin_MultiTranslation + static const std::string MY_CONSTRAINT_TRANSLATION_ID("SketchMultiTranslation"); + data()->addAttribute(VALUE_TYPE(), ModelAPI_AttributeString::typeId()); + data()->addAttribute(START_POINT_ID(), ModelAPI_AttributeRefAttr::typeId()); + data()->addAttribute(END_POINT_ID(), ModelAPI_AttributeRefAttr::typeId()); + data()->addAttribute(NUMBER_OF_OBJECTS_ID(), ModelAPI_AttributeInteger::typeId()); + data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(), ModelAPI_AttributeRefList::typeId()); + data()->addAttribute(SketchPlugin_Constraint::ENTITY_B(), ModelAPI_AttributeRefList::typeId()); + data()->addAttribute(TRANSLATION_LIST_ID(), ModelAPI_AttributeRefList::typeId()); """ + from GeomDataAPI import * from ModelAPI import * from salome.shaper import model diff --git a/src/SketchPlugin/Test/TestOffset1.py b/src/SketchPlugin/Test/TestOffset1.py index 7a6d1e13d..fd24b2c47 100644 --- a/src/SketchPlugin/Test/TestOffset1.py +++ b/src/SketchPlugin/Test/TestOffset1.py @@ -18,17 +18,17 @@ # """ - TestOffset.py - Unit test of SketchPlugin_Offset class - - SketchPlugin_Offset - static const std::string ID("SketchOffset"); - data()->addAttribute(EDGES_ID(), ModelAPI_AttributeRefList::typeId()); - data()->addAttribute(VALUE_ID(), ModelAPI_AttributeDouble::typeId()); - data()->addAttribute(REVERSED_ID(), ModelAPI_AttributeBoolean::typeId()); - data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(), ModelAPI_AttributeRefList::typeId()); - data()->addAttribute(SketchPlugin_Constraint::ENTITY_B(), ModelAPI_AttributeRefList::typeId()); - data()->addAttribute(SketchPlugin_Constraint::ENTITY_C(), ModelAPI_AttributeIntArray::typeId()); +TestOffset.py +Unit test of SketchPlugin_Offset class + +SketchPlugin_Offset + static const std::string ID("SketchOffset"); + data()->addAttribute(EDGES_ID(), ModelAPI_AttributeRefList::typeId()); + data()->addAttribute(VALUE_ID(), ModelAPI_AttributeDouble::typeId()); + data()->addAttribute(REVERSED_ID(), ModelAPI_AttributeBoolean::typeId()); + data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(), ModelAPI_AttributeRefList::typeId()); + data()->addAttribute(SketchPlugin_Constraint::ENTITY_B(), ModelAPI_AttributeRefList::typeId()); + data()->addAttribute(SketchPlugin_Constraint::ENTITY_C(), ModelAPI_AttributeIntArray::typeId()); """ from GeomDataAPI import * diff --git a/src/SketchPlugin/Test/TestPresentation.py b/src/SketchPlugin/Test/TestPresentation.py index c50a038d6..a6755142b 100644 --- a/src/SketchPlugin/Test/TestPresentation.py +++ b/src/SketchPlugin/Test/TestPresentation.py @@ -18,8 +18,8 @@ # """ - TestPresentation.py - Test AIS presentations for constraints and macro-features +TestPresentation.py +Test AIS presentations for constraints and macro-features """ from salome.shaper import model diff --git a/src/SketchPlugin/Test/TestProjection.py b/src/SketchPlugin/Test/TestProjection.py index 3b1d49fbd..f45649a1c 100644 --- a/src/SketchPlugin/Test/TestProjection.py +++ b/src/SketchPlugin/Test/TestProjection.py @@ -18,10 +18,11 @@ # """ - TestProjection.py - Unit test of SketchPlugin_Projection class +TestProjection.py +Unit test of SketchPlugin_Projection class """ + from GeomDataAPI import * from ModelAPI import * import math diff --git a/src/SketchPlugin/Test/TestProjectionIntoResult.py b/src/SketchPlugin/Test/TestProjectionIntoResult.py index 885e68062..06add1bea 100644 --- a/src/SketchPlugin/Test/TestProjectionIntoResult.py +++ b/src/SketchPlugin/Test/TestProjectionIntoResult.py @@ -18,8 +18,8 @@ # """ - TestProjectionIntoResult.py - Unit test of SketchPlugin_Projection class +TestProjectionIntoResult.py +Unit test of SketchPlugin_Projection class """ from salome.shaper import model diff --git a/src/SketchPlugin/Test/TestProjectionUpdate.py b/src/SketchPlugin/Test/TestProjectionUpdate.py index 9b65ccdc4..50d7888b7 100644 --- a/src/SketchPlugin/Test/TestProjectionUpdate.py +++ b/src/SketchPlugin/Test/TestProjectionUpdate.py @@ -18,7 +18,7 @@ # """ - Check that there is no crash while changing the projecting feature +Check that there is no crash while changing the projecting feature """ from salome.shaper import model diff --git a/src/SketchPlugin/Test/TestProjectionWithoutReference.py b/src/SketchPlugin/Test/TestProjectionWithoutReference.py index dff4c9190..efe19e4f9 100644 --- a/src/SketchPlugin/Test/TestProjectionWithoutReference.py +++ b/src/SketchPlugin/Test/TestProjectionWithoutReference.py @@ -18,7 +18,7 @@ # """ - Test projection without the reference to the source geometry. +Test projection without the reference to the source geometry. """ import unittest diff --git a/src/SketchPlugin/Test/TestRectangle1.py b/src/SketchPlugin/Test/TestRectangle1.py index 66184b9f3..24b7ba60d 100644 --- a/src/SketchPlugin/Test/TestRectangle1.py +++ b/src/SketchPlugin/Test/TestRectangle1.py @@ -18,10 +18,11 @@ # """ - TestRectangle1.py - Unit test of SketchPlugin_Rectangle class +TestRectangle1.py +Unit test of SketchPlugin_Rectangle class """ + from GeomDataAPI import * from ModelAPI import * from GeomAPI import * diff --git a/src/SketchPlugin/Test/TestRemoveBSpline.py b/src/SketchPlugin/Test/TestRemoveBSpline.py index c7dca43ef..e8b29db4c 100644 --- a/src/SketchPlugin/Test/TestRemoveBSpline.py +++ b/src/SketchPlugin/Test/TestRemoveBSpline.py @@ -18,7 +18,7 @@ # """ - Test removing B-spline curve and its construstion elements +Test removing B-spline curve and its construstion elements """ from salome.shaper import model diff --git a/src/SketchPlugin/Test/TestRemoveBSplinePeriodic.py b/src/SketchPlugin/Test/TestRemoveBSplinePeriodic.py index d29be0db8..c28f44114 100644 --- a/src/SketchPlugin/Test/TestRemoveBSplinePeriodic.py +++ b/src/SketchPlugin/Test/TestRemoveBSplinePeriodic.py @@ -18,7 +18,7 @@ # """ - Test removing peridoc B-spline curve and its construstion elements +Test removing peridoc B-spline curve and its construstion elements """ from salome.shaper import model diff --git a/src/SketchPlugin/Test/TestRemoveEllipse.py b/src/SketchPlugin/Test/TestRemoveEllipse.py index 09ba494f7..f57d32efc 100644 --- a/src/SketchPlugin/Test/TestRemoveEllipse.py +++ b/src/SketchPlugin/Test/TestRemoveEllipse.py @@ -18,7 +18,7 @@ # """ - Test removing ellipse and its construstion elements +Test removing ellipse and its construstion elements """ from salome.shaper import model diff --git a/src/SketchPlugin/Test/TestRemoveEllipticArc.py b/src/SketchPlugin/Test/TestRemoveEllipticArc.py index f421effee..ef9c2d4ad 100644 --- a/src/SketchPlugin/Test/TestRemoveEllipticArc.py +++ b/src/SketchPlugin/Test/TestRemoveEllipticArc.py @@ -18,7 +18,7 @@ # """ - Test removing elliptic arc and its construstion elements +Test removing elliptic arc and its construstion elements """ from salome.shaper import model diff --git a/src/SketchPlugin/Test/TestRemoveSketch.py b/src/SketchPlugin/Test/TestRemoveSketch.py index 3f02f6d7a..9f088149f 100644 --- a/src/SketchPlugin/Test/TestRemoveSketch.py +++ b/src/SketchPlugin/Test/TestRemoveSketch.py @@ -18,8 +18,9 @@ # """ - TestRemoveSketch.py +TestRemoveSketch.py """ + from GeomDataAPI import * from ModelAPI import * diff --git a/src/SketchPlugin/Test/TestSnowflake.py b/src/SketchPlugin/Test/TestSnowflake.py index d7c83b388..e5684cad1 100644 --- a/src/SketchPlugin/Test/TestSnowflake.py +++ b/src/SketchPlugin/Test/TestSnowflake.py @@ -18,8 +18,9 @@ # """ - TestSnowflake.py +TestSnowflake.py """ + from GeomAPI import * from GeomDataAPI import * from ModelAPI import * diff --git a/src/SketchSolver/SketchSolver_ConstraintMulti.h b/src/SketchSolver/SketchSolver_ConstraintMulti.h index 4157cb340..38853a917 100644 --- a/src/SketchSolver/SketchSolver_ConstraintMulti.h +++ b/src/SketchSolver/SketchSolver_ConstraintMulti.h @@ -54,8 +54,7 @@ public: protected: /// \brief Converts SketchPlugin constraint to a list of SolveSpace /// constraints - void process() override { /* do nothing here */ - } + void process() override { /* do nothing here */ } /// \brief Collect entities which are translated or rotated (not their copies) void getEntities(std::list &theEntities); @@ -63,8 +62,7 @@ protected: /// \brief Generate list of attributes of constraint in order useful for /// SolveSpace constraints void getAttributes(EntityWrapperPtr &, std::vector &) - override { /* do nothing here */ - } + override { /* do nothing here */ } /// \brief This method is used in derived objects to check consistence of /// constraint. diff --git a/src/XAO/XAO_XaoExporter.cxx b/src/XAO/XAO_XaoExporter.cxx index 3aa7d7d16..01e47628d 100644 --- a/src/XAO/XAO_XaoExporter.cxx +++ b/src/XAO/XAO_XaoExporter.cxx @@ -133,9 +133,9 @@ std::string readStringProp(xmlNodePtr node, const xmlChar *attribute, if (exception.size() > 0) throw XAO_Exception(exception.c_str()); - throw XAO_Exception(MsgBuilder() << "Line " << node->line << ": " - << "Property " << (char *)attribute - << " is required."); + throw XAO_Exception(MsgBuilder() + << "Line " << node->line << ": " << "Property " + << (char *)attribute << " is required."); } return defaultValue; @@ -155,9 +155,9 @@ int readIntegerProp(xmlNodePtr node, const xmlChar *attribute, bool required, if (exception.size() > 0) throw XAO_Exception(exception.c_str()); - throw XAO_Exception(MsgBuilder() << "Line " << node->line << ": " - << "Property " << (char *)attribute - << " is required."); + throw XAO_Exception(MsgBuilder() + << "Line " << node->line << ": " << "Property " + << (char *)attribute << " is required."); } return defaultValue; diff --git a/src/XGUI/XGUI_WorkshopListener.cpp b/src/XGUI/XGUI_WorkshopListener.cpp index dd975fd45..c8f5b432d 100644 --- a/src/XGUI/XGUI_WorkshopListener.cpp +++ b/src/XGUI/XGUI_WorkshopListener.cpp @@ -135,8 +135,8 @@ void XGUI_WorkshopListener::processEvent( if (QApplication::instance() && QApplication::instance()->thread() != QThread::currentThread()) { #ifdef _DEBUG - std::cout << "XGUI_Workshop::processEvent: " - << "Working in another thread." << std::endl; + std::cout << "XGUI_Workshop::processEvent: " << "Working in another thread." + << std::endl; #endif SessionPtr aMgr = ModelAPI_Session::get(); auto *aPostponeEvent = new PostponeMessageQtEvent(theMessage); diff --git a/test.API/SHAPER/GDML/TestConeSegment.py b/test.API/SHAPER/GDML/TestConeSegment.py index d4a3114b2..49f6d8623 100644 --- a/test.API/SHAPER/GDML/TestConeSegment.py +++ b/test.API/SHAPER/GDML/TestConeSegment.py @@ -21,6 +21,7 @@ Test case for GDML Primitive Cone Segment feature. Written on High API. """ + from salome.shaper import model model.begin() diff --git a/test.API/SHAPER/Primitives/TestBox.py b/test.API/SHAPER/Primitives/TestBox.py index d22b066e5..4473e013c 100644 --- a/test.API/SHAPER/Primitives/TestBox.py +++ b/test.API/SHAPER/Primitives/TestBox.py @@ -21,6 +21,7 @@ Test case for Primitive Box feature. Written on High API. """ + from salome.shaper import model model.begin() diff --git a/test.API/SHAPER/Transformations/TestMultiTranslation.py b/test.API/SHAPER/Transformations/TestMultiTranslation.py index 8a421a06b..d7528a158 100644 --- a/test.API/SHAPER/Transformations/TestMultiTranslation.py +++ b/test.API/SHAPER/Transformations/TestMultiTranslation.py @@ -21,6 +21,7 @@ Test case for MultiTranslation feature. Written on High API. """ + from salome.shaper import model model.begin() diff --git a/test.API/SHAPER/Transformations/TestRotation.py b/test.API/SHAPER/Transformations/TestRotation.py index d07678927..4f9037e82 100644 --- a/test.API/SHAPER/Transformations/TestRotation.py +++ b/test.API/SHAPER/Transformations/TestRotation.py @@ -21,6 +21,7 @@ Test case for Rotation feature. Written on High API. """ + from salome.shaper import model model.begin() diff --git a/test.API/SHAPER/Transformations/TestScale.py b/test.API/SHAPER/Transformations/TestScale.py index 9d2a5d6b9..ffc66ac15 100644 --- a/test.API/SHAPER/Transformations/TestScale.py +++ b/test.API/SHAPER/Transformations/TestScale.py @@ -21,6 +21,7 @@ Test case for Scale feature. Written on High API. """ + from salome.shaper import model model.begin() diff --git a/test.API/SHAPER/Transformations/TestSymmetry.py b/test.API/SHAPER/Transformations/TestSymmetry.py index 0889a3729..a39b789d0 100644 --- a/test.API/SHAPER/Transformations/TestSymmetry.py +++ b/test.API/SHAPER/Transformations/TestSymmetry.py @@ -21,6 +21,7 @@ Test case for Symmetry feature. Written on High API. """ + from salome.shaper import model model.begin() diff --git a/test.API/SHAPER/Transformations/TestTranslation.py b/test.API/SHAPER/Transformations/TestTranslation.py index 2b382cf4a..4921ee583 100644 --- a/test.API/SHAPER/Transformations/TestTranslation.py +++ b/test.API/SHAPER/Transformations/TestTranslation.py @@ -21,6 +21,7 @@ Test case for Translation feature. Written on High API. """ + from ModelAPI import * from GeomAPI import * diff --git a/test.API/SHAPER/Transformations/TestTranslation_1.py b/test.API/SHAPER/Transformations/TestTranslation_1.py index e94b4da00..3091cd310 100644 --- a/test.API/SHAPER/Transformations/TestTranslation_1.py +++ b/test.API/SHAPER/Transformations/TestTranslation_1.py @@ -21,6 +21,7 @@ Test case for Translation feature. Written on High API. """ + from salome.shaper import model model.begin() diff --git a/test.API/SHAPER/Transformations/TestTranslation_2.py b/test.API/SHAPER/Transformations/TestTranslation_2.py index fbf63c449..32812f979 100644 --- a/test.API/SHAPER/Transformations/TestTranslation_2.py +++ b/test.API/SHAPER/Transformations/TestTranslation_2.py @@ -21,6 +21,7 @@ Test case for Translation feature. Written on High API. """ + from salome.shaper import model model.begin() diff --git a/test.API/SHAPER/Transformations/TestTranslation_3.py b/test.API/SHAPER/Transformations/TestTranslation_3.py index a72403ca8..c7f90dd47 100644 --- a/test.API/SHAPER/Transformations/TestTranslation_3.py +++ b/test.API/SHAPER/Transformations/TestTranslation_3.py @@ -21,6 +21,7 @@ Test case for Translation feature. Written on High API. """ + from salome.shaper import model model.begin() diff --git a/test.API/SHAPER/Transformations/TestTranslation_4.py b/test.API/SHAPER/Transformations/TestTranslation_4.py index d50548dbf..bfbe013ac 100644 --- a/test.API/SHAPER/Transformations/TestTranslation_4.py +++ b/test.API/SHAPER/Transformations/TestTranslation_4.py @@ -21,6 +21,7 @@ Test case for Translation feature. Written on High API. """ + from salome.shaper import model model.begin() diff --git a/test.API/SHAPER/Transformations/TestTranslation_5.py b/test.API/SHAPER/Transformations/TestTranslation_5.py index f5242de3b..7dc2ab242 100644 --- a/test.API/SHAPER/Transformations/TestTranslation_5.py +++ b/test.API/SHAPER/Transformations/TestTranslation_5.py @@ -21,6 +21,7 @@ Test case for Translation feature. Written on High API. """ + from salome.shaper import model model.begin() diff --git a/utils.py b/utils.py index 4ae306e85..519fc4e0c 100644 --- a/utils.py +++ b/utils.py @@ -17,7 +17,8 @@ # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -import os, os.path +import os +import os.path # SHAPER_SRC = os.environ['SHAPER_SRC'] SHAPER_SRC = os.environ["PWD"]