]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Meet the coding style (line length <= 100)
authorazv <azv@opencascade.com>
Thu, 27 Apr 2017 05:04:17 +0000 (08:04 +0300)
committerazv <azv@opencascade.com>
Thu, 27 Apr 2017 05:04:17 +0000 (08:04 +0300)
src/PartSet/PartSet_ExternalPointsMgr.h
src/PartSet/PartSet_Tools.cpp
src/PartSet/PartSet_WidgetPoint2d.cpp
src/SketchPlugin/SketchPlugin_MacroEllipse.cpp

index 8ced4b40386d3501826245f08756d9ec58d88271..a053bcd1a4224715881d9ee77692b0ee5313eee6 100644 (file)
@@ -29,7 +29,8 @@ class PartSet_ExternalPointsMgr: public QObject
 {
   Q_OBJECT
 public:
-  PartSet_ExternalPointsMgr(ModuleBase_IWorkshop* theWorkshop, const CompositeFeaturePtr& theSketch);
+  PartSet_ExternalPointsMgr(ModuleBase_IWorkshop* theWorkshop,
+                            const CompositeFeaturePtr& theSketch);
 
   virtual ~PartSet_ExternalPointsMgr();
 
index bb204073ba02c339ac5fa26a54f2103df1d386bb..678e14074db79147c2e72f3c8853949d0e0dc57a 100755 (executable)
@@ -891,11 +891,12 @@ bool PartSet_Tools::isAuxiliarySketchEntity(const ObjectPtr& theObject)
 }
 
 
-ResultPtr PartSet_Tools::createFixedByExternalCenter(const ObjectPtr& theObject,
-                                                     const std::shared_ptr<GeomAPI_Edge>& theEdge,
-                                                     ModelAPI_AttributeSelection::CenterType theType,
-                                                     const CompositeFeaturePtr& theSketch,
-                                                     bool theTemporary)
+ResultPtr PartSet_Tools::createFixedByExternalCenter(
+    const ObjectPtr& theObject,
+    const std::shared_ptr<GeomAPI_Edge>& theEdge,
+    ModelAPI_AttributeSelection::CenterType theType,
+    const CompositeFeaturePtr& theSketch,
+    bool theTemporary)
 {
   FeaturePtr aMyFeature = theSketch->addFeature(SketchPlugin_Point::ID());
 
index 9d3345e1d8046cb9d6c9a5b27bdc6ba5aeb82e3c..93d132b98a0c8c026f26bbccdd67423ec971be23 100644 (file)
@@ -684,13 +684,15 @@ void PartSet_WidgetPoint2D::mouseReleased(ModuleBase_IViewWindow* theWindow, QMo
   }
   // The selection could be a center of an external circular object
   else if (aFirstValue.get() && (!aFirstValue->interactive().IsNull())) {
-    Handle(PartSet_CenterPrs) aAIS = Handle(PartSet_CenterPrs)::DownCast(aFirstValue->interactive());
+    Handle(PartSet_CenterPrs) aAIS =
+        Handle(PartSet_CenterPrs)::DownCast(aFirstValue->interactive());
     if (!aAIS.IsNull()) {
       gp_Pnt aPntComp = aAIS->Component()->Pnt();
       GeomVertexPtr aVertPtr(new GeomAPI_Vertex(aPntComp.X(), aPntComp.Y(), aPntComp.Z()));
       TopoDS_Shape aShape = aVertPtr->impl<TopoDS_Shape>();
 
-      ResultPtr aFixedObject = PartSet_Tools::findFixedObjectByExternal(aShape, aAIS->object(), mySketch);
+      ResultPtr aFixedObject =
+          PartSet_Tools::findFixedObjectByExternal(aShape, aAIS->object(), mySketch);
       if (!aFixedObject.get())
         aFixedObject = PartSet_Tools::createFixedByExternalCenter(aAIS->object(), aAIS->edge(),
                                                                   aAIS->centerType(), mySketch);
index 77a04c978a2db57df1a1f2d50f32b78da2b5152b..1376384eada33876a166d085d0a917db1508590d 100644 (file)
@@ -50,7 +50,8 @@ void SketchPlugin_MacroEllipse::initAttributes()
   data()->addAttribute(AUXILIARY_ID(), ModelAPI_AttributeBoolean::typeId());
 
   ModelAPI_Session::get()->validators()->registerNotObligatory(getKind(), CENTER_POINT_REF_ID());
-  ModelAPI_Session::get()->validators()->registerNotObligatory(getKind(), MAJOR_AXIS_POINT_REF_ID());
+  ModelAPI_Session::get()->validators()->
+      registerNotObligatory(getKind(), MAJOR_AXIS_POINT_REF_ID());
   ModelAPI_Session::get()->validators()->registerNotObligatory(getKind(), PASSED_POINT_REF_ID());
 }