]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Meet the coding style (split too long lines)
authorazv <azv@opencascade.com>
Wed, 20 Nov 2019 08:20:28 +0000 (11:20 +0300)
committerazv <azv@opencascade.com>
Wed, 20 Nov 2019 08:20:28 +0000 (11:20 +0300)
src/BuildPlugin/BuildPlugin_Vertex.cpp
src/FeaturesPlugin/FeaturesPlugin_ExtrusionFuse.cpp
src/GeomAlgoAPI/GeomAlgoAPI_ShapeTools.cpp
src/ModuleBase/ModuleBase_IModule.h
src/PartSet/PartSet_Module.cpp
src/SketchPlugin/SketchPlugin_SketchEntity.h

index cd14766ed902b40105e2d42c9db29d47c36a09ae..f2b20617707526352cd56918ff822cdeef705b20 100644 (file)
@@ -77,7 +77,8 @@ bool BuildPlugin_Vertex::buildVertices(GeomShapePtr theShape,
     GeomAPI_DataMapOfShapeShape alreadyProcessed;
 
     // 1. Explode on Vertices
-    for (GeomAPI_ShapeExplorer anExp (theShape, GeomAPI_Shape::VERTEX); anExp.more(); anExp.next()) {
+    for (GeomAPI_ShapeExplorer anExp (theShape, GeomAPI_Shape::VERTEX);
+         anExp.more(); anExp.next()) {
       GeomShapePtr aSubShape = anExp.current();
 
       if (alreadyProcessed.bind(aSubShape, aSubShape)) {
@@ -94,7 +95,8 @@ bool BuildPlugin_Vertex::buildVertices(GeomShapePtr theShape,
       // Partition
       ListOfShape anObjList, aTools;
       anObjList.push_back(theShape);
-      std::shared_ptr<GeomAlgoAPI_Partition> aPartitionAlgo (new GeomAlgoAPI_Partition(anObjList, aTools));
+      std::shared_ptr<GeomAlgoAPI_Partition> aPartitionAlgo (
+          new GeomAlgoAPI_Partition(anObjList, aTools));
 
       std::string anError;
       if (GeomAlgoAPI_Tools::AlgoError::isAlgorithmFailed(aPartitionAlgo, getKind(), anError)) {
@@ -104,7 +106,8 @@ bool BuildPlugin_Vertex::buildVertices(GeomShapePtr theShape,
       GeomShapePtr aSplittedSketch = aPartitionAlgo->shape();
 
       // Explode on Vertices, skip vertices of initial sketch
-      for (GeomAPI_ShapeExplorer anExp (aSplittedSketch, GeomAPI_Shape::VERTEX); anExp.more(); anExp.next()) {
+      for (GeomAPI_ShapeExplorer anExp (aSplittedSketch, GeomAPI_Shape::VERTEX);
+           anExp.more(); anExp.next()) {
         GeomShapePtr aSubShape = anExp.current();
 
         //if (!theShape->isSubShape(aSubShape)) { // skip vertices of initial sketch
@@ -160,7 +163,8 @@ bool BuildPlugin_Vertex::buildVertices(FeaturePtr theFeature,
     // Partition
     ListOfShape anObjList, aTools;
     anObjList.push_back(theShape);
-    std::shared_ptr<GeomAlgoAPI_Partition> aPartitionAlgo (new GeomAlgoAPI_Partition(anObjList, aTools));
+    std::shared_ptr<GeomAlgoAPI_Partition> aPartitionAlgo (
+        new GeomAlgoAPI_Partition(anObjList, aTools));
 
     std::string anError;
     if (GeomAlgoAPI_Tools::AlgoError::isAlgorithmFailed(aPartitionAlgo, getKind(), anError)) {
@@ -170,7 +174,8 @@ bool BuildPlugin_Vertex::buildVertices(FeaturePtr theFeature,
     GeomShapePtr aSplittedSketch = aPartitionAlgo->shape();
 
     // Explode on Vertices, skip vertices of initial sketch
-    for (GeomAPI_ShapeExplorer anExp (aSplittedSketch, GeomAPI_Shape::VERTEX); anExp.more(); anExp.next()) {
+    for (GeomAPI_ShapeExplorer anExp (aSplittedSketch, GeomAPI_Shape::VERTEX);
+         anExp.more(); anExp.next()) {
       GeomShapePtr aSubShape = anExp.current();
 
       //if (!theShape->isSubShape(aSubShape)) { // skip vertices of initial sketch
@@ -196,7 +201,8 @@ bool BuildPlugin_Vertex::buildVertices(FeaturePtr theFeature,
         // Sub-result i
         GeomShapePtr aSubResShape = aRes->shape();
 
-        for (GeomAPI_ShapeExplorer anExp (aSubResShape, GeomAPI_Shape::VERTEX); anExp.more(); anExp.next()) {
+        for (GeomAPI_ShapeExplorer anExp (aSubResShape, GeomAPI_Shape::VERTEX);
+             anExp.more(); anExp.next()) {
           GeomShapePtr aSubShape = anExp.current();
 
           if (alreadyProcessed.bind(aSubShape, aSubShape)) {
index a50ec376897ae6168498a0e36213ab781d8ae743..849e1cd4587c9660308f9bdaf10809e20488b882 100644 (file)
@@ -73,10 +73,12 @@ void FeaturesPlugin_ExtrusionFuse::executeFuseThroughAll()
   for (ListOfMakeShape::const_iterator
          anIt = aGenMakeShapes.cbegin(); anIt != aGenMakeShapes.cend(); ++anIt) {
     GeomMakeShapePtr anAlgo = (*anIt);
-    std::shared_ptr<GeomAlgoAPI_Prism> aPrismAlgo = std::dynamic_pointer_cast<GeomAlgoAPI_Prism>(anAlgo);
+    std::shared_ptr<GeomAlgoAPI_Prism> aPrismAlgo =
+        std::dynamic_pointer_cast<GeomAlgoAPI_Prism>(anAlgo);
 
     // Cut the prism by all objects and throw away end pieces
-    std::shared_ptr<GeomAlgoAPI_ThroughAll> aToolAlgo (new GeomAlgoAPI_ThroughAll(aPrismAlgo, anObjects));
+    std::shared_ptr<GeomAlgoAPI_ThroughAll> aToolAlgo (
+        new GeomAlgoAPI_ThroughAll(aPrismAlgo, anObjects));
 
     // Checking that the algorithm worked properly
     if (!aToolAlgo->isDone() || aToolAlgo->shape()->isNull() || !aToolAlgo->isValid()) {
index 71426779d1f35c582a94a430a84aaaee21f300c5..77aeaad15ea46a7d73a3b2580c5785babdd27aaa 100644 (file)
@@ -1154,7 +1154,8 @@ void GeomAlgoAPI_ShapeTools::computeThroughAll(const ListOfShape& theObjects,
                                                double& theToSize, double& theFromSize)
 {
   // Bounding box of objects
-  std::list<std::shared_ptr<GeomAPI_Pnt> > aBndObjs = GeomAlgoAPI_ShapeTools::getBoundingBox(theObjects);
+  std::list<std::shared_ptr<GeomAPI_Pnt> > aBndObjs =
+      GeomAlgoAPI_ShapeTools::getBoundingBox(theObjects);
   if (aBndObjs.size() != 8) {
     return;
   }
@@ -1165,7 +1166,8 @@ void GeomAlgoAPI_ShapeTools::computeThroughAll(const ListOfShape& theObjects,
     gp_Dir aDir = theDir->impl<gp_Dir>();
 
     // Bounding box of the base
-    std::list<std::shared_ptr<GeomAPI_Pnt> > aBndBases = GeomAlgoAPI_ShapeTools::getBoundingBox(theBaseShapes);
+    std::list<std::shared_ptr<GeomAPI_Pnt> > aBndBases =
+        GeomAlgoAPI_ShapeTools::getBoundingBox(theBaseShapes);
     if (aBndBases.size() != 8) {
       return;
     }
@@ -1189,13 +1191,15 @@ void GeomAlgoAPI_ShapeTools::computeThroughAll(const ListOfShape& theObjects,
     theToSize = 0.0;
     theFromSize = 0.0;
 
-    for (ListOfShape::const_iterator anIt = theBaseShapes.begin(); anIt != theBaseShapes.end(); ++anIt) {
+    for (ListOfShape::const_iterator anIt = theBaseShapes.begin();
+         anIt != theBaseShapes.end(); ++anIt) {
       const GeomShapePtr& aBaseShape_i = (*anIt);
       ListOfShape aBaseShapes_i;
       aBaseShapes_i.push_back(aBaseShape_i);
 
       // Bounding box of the base
-      std::list<std::shared_ptr<GeomAPI_Pnt> > aBndBases = GeomAlgoAPI_ShapeTools::getBoundingBox(aBaseShapes_i);
+      std::list<std::shared_ptr<GeomAPI_Pnt> > aBndBases =
+          GeomAlgoAPI_ShapeTools::getBoundingBox(aBaseShapes_i);
       if (aBndBases.size() != 8) {
         return;
       }
index d2ce9c4a9832a52b2b5c877268f49690a4b2ef24..a2c250dbf1d380f00668db7510b3f3390ac8c074 100644 (file)
@@ -323,7 +323,8 @@ class MODULEBASE_EXPORT ModuleBase_IModule : public QObject
   /// Customize presentation according to objects attributes
   /// \param theObject an object for presentation
   /// \param thePrs a presentation object
-  virtual void customizePresentation(const ObjectPtr& theObject, const AISObjectPtr& thePrs) const {}
+  virtual void customizePresentation(const ObjectPtr& theObject, const AISObjectPtr& thePrs) const
+  {}
 
   //! Returns data object by AIS
   virtual ObjectPtr findPresentedObject(const AISObjectPtr& theAIS) const = 0;
index 5245438e5abd441500d7ef6e4fb546ae597551a8..35242846020d31c7ada2c2cffc3262705a957d33 100644 (file)
@@ -1359,7 +1359,8 @@ double getResultTransparency(const ResultPtr& theResult)
 
 
 //******************************************************
-void PartSet_Module::customizePresentation(const ObjectPtr& theObject, const AISObjectPtr& thePrs) const
+void PartSet_Module::customizePresentation(const ObjectPtr& theObject,
+                                           const AISObjectPtr& thePrs) const
 {
   if (mySketchMgr->isSketchStarted()) {
     mySketchMgr->customizeSketchPresentation(theObject, thePrs);
index b181565a7bc1f633b6b300c1d787c687ed749f68..4d85894e574e9a695de5d7f2e9ccab3c9474f43e 100644 (file)
@@ -179,7 +179,8 @@ class SketchPlugin_SketchEntity : public SketchPlugin_Feature //, public GeomAPI
   //  }
   //  if (!aColor.empty()) {
   //    if (theResult.get() && ModelAPI_Session::get()->isOperation()) {
-  //      AttributeIntArrayPtr aColorAttr = theResult->data()->intArray(ModelAPI_Result::COLOR_ID());
+  //      AttributeIntArrayPtr aColorAttr =
+  //          theResult->data()->intArray(ModelAPI_Result::COLOR_ID());
   //      aColorAttr->setSize(3);
   //      // Set the color attribute in order do not use default colors in the presentation object
   //      for (int i = 0; i < 3; i++)