]> OCCT Git - occt.git/commitdiff
Coding - Update Clang-format with more macroses (#677)
authorPasukhin Dmitry <dpasukhi@opencascade.com>
Sat, 16 Aug 2025 19:50:50 +0000 (20:50 +0100)
committerGitHub <noreply@github.com>
Sat, 16 Aug 2025 19:50:50 +0000 (20:50 +0100)
- Updates `.clang-format` to include `OCC_CATCH_SIGNALS`, `DEFINE_STANDARD_RTTIEXT`, and `Draw_Drawable3D_FACTORY` as statement macros
- Adds a GitHub action step to automatically remove empty lines after `Standard_DEPRECATED` macro declarations
- Reformats numerous files by removing blank lines after deprecated method declarations and improving macro formatting

93 files changed:
.clang-format
.github/actions/clang-format-check/action.yml
src/ApplicationFramework/TKCAF/TNaming/TNaming_Identifier.cxx
src/ApplicationFramework/TKCAF/TNaming/TNaming_Name.cxx
src/ApplicationFramework/TKCDF/PCDM/PCDM_StorageDriver.cxx
src/DataExchange/TKDESTEP/GeomToStep/GeomToStep_MakeBSplineCurveWithKnots.cxx
src/DataExchange/TKDESTEP/GeomToStep/GeomToStep_MakeBSplineCurveWithKnotsAndRationalBSplineCurve.cxx
src/DataExchange/TKDESTEP/GeomToStep/GeomToStep_MakeLine.cxx
src/DataExchange/TKDESTEP/RWStepVisual/RWStepVisual_RWPresentationLayerUsage.cxx
src/DataExchange/TKXCAF/XCAFDoc/XCAFDoc_VisMaterial.hxx
src/Draw/TKDCAF/DNaming/DNaming_BooleanOperationDriver.cxx
src/Draw/TKDraw/DBRep/DBRep_DrawableShape.hxx
src/Draw/TKDraw/Draw/Draw.cxx
src/Draw/TKDraw/Draw/Draw_Number.hxx
src/Draw/TKDraw/DrawTrSurf/DrawTrSurf_BSplineCurve.hxx
src/Draw/TKDraw/DrawTrSurf/DrawTrSurf_BSplineCurve2d.hxx
src/Draw/TKDraw/DrawTrSurf/DrawTrSurf_BSplineSurface.hxx
src/Draw/TKDraw/DrawTrSurf/DrawTrSurf_BezierCurve.hxx
src/Draw/TKDraw/DrawTrSurf/DrawTrSurf_BezierCurve2d.hxx
src/Draw/TKDraw/DrawTrSurf/DrawTrSurf_BezierSurface.hxx
src/Draw/TKDraw/DrawTrSurf/DrawTrSurf_Curve.hxx
src/Draw/TKDraw/DrawTrSurf/DrawTrSurf_Curve2d.hxx
src/Draw/TKDraw/DrawTrSurf/DrawTrSurf_Point.hxx
src/Draw/TKDraw/DrawTrSurf/DrawTrSurf_Polygon2D.hxx
src/Draw/TKDraw/DrawTrSurf/DrawTrSurf_Polygon3D.hxx
src/Draw/TKDraw/DrawTrSurf/DrawTrSurf_Surface.hxx
src/Draw/TKDraw/DrawTrSurf/DrawTrSurf_Triangulation.hxx
src/Draw/TKTopTest/HLRTest/HLRTest_Projector.hxx
src/FoundationClasses/TKMath/Poly/Poly_PolygonOnTriangulation.hxx
src/FoundationClasses/TKMath/Poly/Poly_Triangulation.hxx
src/FoundationClasses/TKernel/Message/Message_ProgressSentry.hxx
src/FoundationClasses/TKernel/NCollection/NCollection_Map.hxx
src/FoundationClasses/TKernel/Standard/Standard_Atomic.hxx
src/FoundationClasses/TKernel/Standard/Standard_Handle.hxx
src/FoundationClasses/TKernel/Standard/Standard_MMgrOpt.cxx
src/FoundationClasses/TKernel/Standard/Standard_Strtod.cxx
src/FoundationClasses/TKernel/TCollection/TCollection.hxx
src/ModelingAlgorithms/TKBool/TopOpeBRepBuild/TopOpeBRepBuild_BuilderON.cxx
src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_NSections.cxx
src/ModelingAlgorithms/TKShHealing/ShapeAnalysis/ShapeAnalysis_ShapeContents.hxx
src/ModelingAlgorithms/TKShHealing/ShapeFix/ShapeFix_FaceConnect.cxx
src/ModelingAlgorithms/TKTopAlgo/MAT2d/MAT2d_Tool2d.cxx
src/ModelingData/TKGeomBase/GC/GC_MakeArcOfCircle.hxx
src/ModelingData/TKGeomBase/GC/GC_MakeArcOfEllipse.hxx
src/ModelingData/TKGeomBase/GC/GC_MakeArcOfHyperbola.hxx
src/ModelingData/TKGeomBase/GC/GC_MakeArcOfParabola.hxx
src/ModelingData/TKGeomBase/GC/GC_MakeCircle.hxx
src/ModelingData/TKGeomBase/GC/GC_MakeConicalSurface.hxx
src/ModelingData/TKGeomBase/GC/GC_MakeCylindricalSurface.hxx
src/ModelingData/TKGeomBase/GC/GC_MakeEllipse.hxx
src/ModelingData/TKGeomBase/GC/GC_MakeHyperbola.hxx
src/ModelingData/TKGeomBase/GC/GC_MakeLine.hxx
src/ModelingData/TKGeomBase/GC/GC_MakeMirror.hxx
src/ModelingData/TKGeomBase/GC/GC_MakePlane.hxx
src/ModelingData/TKGeomBase/GC/GC_MakeRotation.hxx
src/ModelingData/TKGeomBase/GC/GC_MakeScale.hxx
src/ModelingData/TKGeomBase/GC/GC_MakeSegment.hxx
src/ModelingData/TKGeomBase/GC/GC_MakeTranslation.hxx
src/ModelingData/TKGeomBase/GC/GC_MakeTrimmedCone.hxx
src/ModelingData/TKGeomBase/GC/GC_MakeTrimmedCylinder.hxx
src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeArcOfCircle.hxx
src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeArcOfEllipse.hxx
src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeArcOfHyperbola.hxx
src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeArcOfParabola.hxx
src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeCircle.hxx
src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeEllipse.hxx
src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeHyperbola.hxx
src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeLine.hxx
src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeMirror.hxx
src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeParabola.hxx
src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeRotation.hxx
src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeScale.hxx
src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeSegment.hxx
src/ModelingData/TKGeomBase/GCE2d/GCE2d_MakeTranslation.hxx
src/Visualization/TKMeshVS/MeshVS/MeshVS_Mesh.cxx
src/Visualization/TKOpenGl/OpenGl/OpenGl_Context.hxx
src/Visualization/TKOpenGl/OpenGl/OpenGl_FrameBuffer.hxx
src/Visualization/TKOpenGl/OpenGl/OpenGl_Texture.hxx
src/Visualization/TKOpenGl/OpenGl/OpenGl_TextureSet.hxx
src/Visualization/TKService/Font/Font_FTFont.hxx
src/Visualization/TKService/Font/Font_TextFormatter.hxx
src/Visualization/TKService/Graphic3d/Graphic3d_AspectFillArea3d.hxx
src/Visualization/TKService/Graphic3d/Graphic3d_Aspects.hxx
src/Visualization/TKService/Graphic3d/Graphic3d_MaterialAspect.hxx
src/Visualization/TKService/Graphic3d/Graphic3d_Structure.hxx
src/Visualization/TKV3d/AIS/AIS_InteractiveContext.hxx
src/Visualization/TKV3d/Prs3d/Prs3d_Drawer.hxx
src/Visualization/TKV3d/PrsMgr/PrsMgr_Presentation.hxx
src/Visualization/TKV3d/Select3D/Select3D_SensitiveCircle.hxx
src/Visualization/TKV3d/SelectBasics/SelectBasics_SelectingVolumeManager.hxx
src/Visualization/TKV3d/SelectMgr/SelectMgr_EntityOwner.hxx
src/Visualization/TKV3d/V3d/V3d_View.hxx
src/Visualization/TKV3d/V3d/V3d_Viewer.hxx

index 718d0e0389df632fa6b90d5b2781ebf0a1dadf91..4df40341825b7f09a6bc53b547b25bc3c6f2730f 100644 (file)
@@ -36,6 +36,9 @@ UseTab: Never
 # OCCT specific settings
 StatementMacros:
   - Standard_FALLTHROUGH
+  - OCC_CATCH_SIGNALS
+  - DEFINE_STANDARD_RTTIEXT
+  - Draw_Drawable3D_FACTORY
   - Standard_DEPRECATED
 TypenameMacros:
   - Handle
index ca42bf932070a3b2d7fb6df88417afc85c8c3c69..dcee51b5db6169b17b34779a0500865bfddc1372 100644 (file)
@@ -56,6 +56,20 @@ runs:
           clang-format -i -style=file $_
         }
 
+    - name: Remove empty lines after Standard_DEPRECATED
+      if: steps.changed-files.outputs.has_files == 'true'
+      shell: pwsh
+      run: |
+        $files = Get-Content "changed_files.txt" | Where-Object { Test-Path $_ }
+        $files | ForEach-Object {
+          $content = Get-Content $_ -Raw
+          $pattern = '(Standard_DEPRECATED\("[a-z0-9\.,;\s\(\)_-]+"(?:[\s\n]+"[a-z0-9\.,;\s\(\)_-]+")?\)\n)\n+'
+          $newContent = $content -replace $pattern, '$1'
+          if ($content -ne $newContent) {
+            Set-Content -Path $_ -Value $newContent -NoNewline
+          }
+        }
+
     - name: Check git status
       id: git-check
       if: steps.changed-files.outputs.has_files == 'true'
index 7e954a6b0184918c9c22d6a357537e81066d2873..1488bde49b3d32a11c6bd6cd26cedd1e85c31a1c 100644 (file)
@@ -264,7 +264,7 @@ Standard_Boolean IsImported(const Handle(TNaming_NamedShape)& NS)
   it.Next();
   if (!it.More())
     return 0;
-    // plus d un shape.
+  // plus d un shape.
 #ifdef OCCT_DEBUG
   std::cout << "WARNING IMPORTED" << std::endl;
 #endif
index 55a301bfda892580f94b71946c743ce7d1a8dce6..f0fb2777f545d777a51b47a65f1cfed74742a337 100644 (file)
@@ -1498,7 +1498,7 @@ static Standard_Boolean FilterByNeighbourgs(const TDF_Label&                  L,
     TC = TopAbs_VERTEX;
   // clang-format off
   if (ShapeType == TopAbs_VERTEX) TC = TopAbs_VERTEX; // szy 31.03.10 - to process case when Candidate is of type Vertex
-    // clang-format on
+  // clang-format on
 
 #ifdef OCCT_DEBUG_FNB
   i    = 1;
index 5f6ec3118e49e75272531be6e098298c7636e00d..e395e1d1cf0ae56cb25f237489a4c38249162662 100644 (file)
@@ -49,7 +49,8 @@ void PCDM_StorageDriver::Write(const Handle(CDM_Document)&       aDocument,
   {
     try
     {
-      OCC_CATCH_SIGNALS Make(aDocument, thePersistentDocuments);
+      OCC_CATCH_SIGNALS
+      Make(aDocument, thePersistentDocuments);
     }
     catch (Standard_Failure const& anException)
     {
index 50c76cd5f0cac0226de1c31643c4388998b82db0..46befcee3aca1dcc8b9863dfafd5c0d7ad91a81e 100644 (file)
@@ -37,8 +37,7 @@
 //=============================================================================
 GeomToStep_MakeBSplineCurveWithKnots::GeomToStep_MakeBSplineCurveWithKnots(
   const Handle(Geom_BSplineCurve)& BS,
-  const StepData_Factors&          theLocalFactors)
-{
+  const StepData_Factors&          theLocalFactors){
 #define Array1OfPnt_gen TColgp_Array1OfPnt
 #include "GeomToStep_MakeBSplineCurveWithKnots_gen.pxx"
 #undef Array1OfPnt_gen
index 8eeaa0a67ebf88506a7d537e3255bed6d54951b1..6d80b0756facbcbaa29b37b758f7edc0c83abd31 100644 (file)
 GeomToStep_MakeBSplineCurveWithKnotsAndRationalBSplineCurve::
   GeomToStep_MakeBSplineCurveWithKnotsAndRationalBSplineCurve(
     const Handle(Geom_BSplineCurve)& BS,
-    const StepData_Factors&          theLocalFactors)
-{
+    const StepData_Factors&          theLocalFactors){
 #define Array1OfPnt_gen TColgp_Array1OfPnt
 #include "GeomToStep_MakeBSplineCurveWithKnotsAndRationalBSplineCurve_gen.pxx"
 #undef Array1OfPnt_gen
-}
+  }
 
 //=============================================================================
 // Creation d' une bspline_curve_with_knots_and_rational_bspline_curve de
index c59fa96710584f705cdf96ffbe3a5690ca3ab3ab..e60258d449b0fa4c5e0f2f0a257867231cf30d43 100644 (file)
@@ -33,8 +33,7 @@
 //=============================================================================
 // Creation d' une line de prostep a partir d' une Lin de gp
 //=============================================================================
-GeomToStep_MakeLine::GeomToStep_MakeLine(const gp_Lin& L, const StepData_Factors& theLocalFactors)
-{
+GeomToStep_MakeLine::GeomToStep_MakeLine(const gp_Lin& L, const StepData_Factors& theLocalFactors){
 #define Vec_gen gp_Vec
 #include "GeomToStep_MakeLine_gen.pxx"
 #undef Vec_gen
@@ -44,8 +43,8 @@ GeomToStep_MakeLine::GeomToStep_MakeLine(const gp_Lin& L, const StepData_Factors
 // Creation d' une line de prostep a partir d' une Lin2d de gp
 //=============================================================================
 
-GeomToStep_MakeLine::GeomToStep_MakeLine(const gp_Lin2d& L, const StepData_Factors& theLocalFactors)
-{
+GeomToStep_MakeLine::GeomToStep_MakeLine(const gp_Lin2d&         L,
+                                         const StepData_Factors& theLocalFactors){
 #define Vec_gen gp_Vec2d
 #include "GeomToStep_MakeLine_gen.pxx"
 #undef Vec_gen
index 1add5232efa4c0403c0971b74d2b21b32dc7c996..d8b880adeef6c9f77e80c937dca4ecc5a0123d12 100644 (file)
@@ -34,7 +34,7 @@ void RWStepVisual_RWPresentationLayerUsage::ReadStep(
   if (!data->CheckNbParams(num, 2, ach, "presentation_layer_usage"))
     return;
 
-    // --- own fields
+  // --- own fields
 #include <StepVisual_PresentationLayerAssignment.hxx>
 #include <StepVisual_PresentationRepresentation.hxx>
   Handle(StepVisual_PresentationLayerAssignment) pla;
index 3f52ef847b7f6ad0eefd97bc42ff49f2aa0c34f9..4089ca01df5c4145968559ae281c813c9c07fdd6 100644 (file)
@@ -132,7 +132,6 @@ public:
   Standard_EXPORT void SetFaceCulling(Graphic3d_TypeOfBackfacingModel theFaceCulling);
 
   Standard_DEPRECATED("Deprecated method, FaceCulling() should be used instead")
-
   Standard_Boolean IsDoubleSided() const
   {
     return myFaceCulling == Graphic3d_TypeOfBackfacingModel_DoubleSided;
@@ -140,7 +139,6 @@ public:
 
   Standard_DEPRECATED("Deprecated method, SetFaceCulling() should be used "
                       "instead")
-
   void SetDoubleSided(Standard_Boolean theIsDoubleSided)
   {
     SetFaceCulling(theIsDoubleSided ? Graphic3d_TypeOfBackfacingModel_DoubleSided
index 3a920eb9ca963918cab150bc774c699d1f16548b..449268f4a1d623e7da1d474260bedb4a1a7124df 100644 (file)
@@ -214,7 +214,7 @@ static Standard_Boolean IsValidSurfType(const TopoDS_Face& theFace)
   }
 */
 #ifdef OCCT_DEBUG
-    // ModDbgTools_Write(theFace, "Surf");
+  // ModDbgTools_Write(theFace, "Surf");
 #endif
   return Standard_False;
 }
index e8584d76fd52d789e90b11a9a1b48597d44c6e13..4c8186acda03b0b38544841e6fbaecdcc6463072 100644 (file)
@@ -37,17 +37,16 @@ class gp_Trsf;
 class DBRep_DrawableShape : public Draw_Drawable3D
 {
   DEFINE_STANDARD_RTTIEXT(DBRep_DrawableShape, Draw_Drawable3D)
-  Draw_Drawable3D_FACTORY public :
-
-      Standard_EXPORT
-      DBRep_DrawableShape(const TopoDS_Shape&    C,
-                          const Draw_Color&      FreeCol,
-                          const Draw_Color&      ConnCol,
-                          const Draw_Color&      EdgeCol,
-                          const Draw_Color&      IsosCol,
-                          const Standard_Real    size,
-                          const Standard_Integer nbisos,
-                          const Standard_Integer discret);
+  Draw_Drawable3D_FACTORY
+public:
+  Standard_EXPORT DBRep_DrawableShape(const TopoDS_Shape&    C,
+                                      const Draw_Color&      FreeCol,
+                                      const Draw_Color&      ConnCol,
+                                      const Draw_Color&      EdgeCol,
+                                      const Draw_Color&      IsosCol,
+                                      const Standard_Real    size,
+                                      const Standard_Integer nbisos,
+                                      const Standard_Integer discret);
 
   //! Changes the number of isoparametric curves in a shape.
   Standard_EXPORT void ChangeNbIsos(const Standard_Integer NbIsos);
index 184152728eeb2e600963d53d55b7919ac9c76893..6528b65f83de5c0940eb0ab4c46d0963725e73dd 100644 (file)
@@ -384,9 +384,9 @@ void Draw_Appli(int argc, char** argv, const FDraw_InitAppli Draw_InitAppli)
     ::SetErrorMode(0);
 #endif
 
-    // *****************************************************************
-    // init X window and create display
-    // *****************************************************************
+  // *****************************************************************
+  // init X window and create display
+  // *****************************************************************
 #ifdef _WIN32
   HWND hWnd = NULL;
 #endif
index b56c79380a2053acdf17739d4c6e25c84ce6108f..b1419946f814212eacb1e92c807b81aca4e10f7e 100644 (file)
@@ -25,10 +25,9 @@ DEFINE_STANDARD_HANDLE(Draw_Number, Draw_Drawable3D)
 class Draw_Number : public Draw_Drawable3D
 {
   DEFINE_STANDARD_RTTIEXT(Draw_Number, Draw_Drawable3D)
-  Draw_Drawable3D_FACTORY public :
-
-      Standard_EXPORT
-      Draw_Number(const Standard_Real theV);
+  Draw_Drawable3D_FACTORY
+public:
+  Standard_EXPORT Draw_Number(const Standard_Real theV);
 
   Standard_Real Value() const { return myValue; }
 
index 0087a7496aae33055e768fe224ee0c15779955ae..5194ca28879b76dd9a8d7e529f244e1538da522a 100644 (file)
@@ -28,11 +28,10 @@ DEFINE_STANDARD_HANDLE(DrawTrSurf_BSplineCurve, DrawTrSurf_Curve)
 class DrawTrSurf_BSplineCurve : public DrawTrSurf_Curve
 {
   DEFINE_STANDARD_RTTIEXT(DrawTrSurf_BSplineCurve, DrawTrSurf_Curve)
-  Draw_Drawable3D_FACTORY public :
-
-      //! creates a drawable BSpline curve from a BSpline curve of package Geom.
-      Standard_EXPORT
-      DrawTrSurf_BSplineCurve(const Handle(Geom_BSplineCurve)& C);
+  Draw_Drawable3D_FACTORY
+public:
+  //! creates a drawable BSpline curve from a BSpline curve of package Geom.
+  Standard_EXPORT DrawTrSurf_BSplineCurve(const Handle(Geom_BSplineCurve)& C);
 
   //! creates a drawable BSpline curve from a BSpline curve of package Geom.
   Standard_EXPORT DrawTrSurf_BSplineCurve(const Handle(Geom_BSplineCurve)& C,
index 27555984410493bb7363e807b32559eeb1fc608e..8ea41bbb52546edd129b64b1bb6f7e8ad3e0f294 100644 (file)
@@ -28,11 +28,10 @@ DEFINE_STANDARD_HANDLE(DrawTrSurf_BSplineCurve2d, DrawTrSurf_Curve2d)
 class DrawTrSurf_BSplineCurve2d : public DrawTrSurf_Curve2d
 {
   DEFINE_STANDARD_RTTIEXT(DrawTrSurf_BSplineCurve2d, DrawTrSurf_Curve2d)
-  Draw_Drawable3D_FACTORY public :
-
-      //! creates a drawable BSpline curve from a BSpline curve of package Geom2d.
-      Standard_EXPORT
-      DrawTrSurf_BSplineCurve2d(const Handle(Geom2d_BSplineCurve)& C);
+  Draw_Drawable3D_FACTORY
+public:
+  //! creates a drawable BSpline curve from a BSpline curve of package Geom2d.
+  Standard_EXPORT DrawTrSurf_BSplineCurve2d(const Handle(Geom2d_BSplineCurve)& C);
 
   Standard_EXPORT DrawTrSurf_BSplineCurve2d(const Handle(Geom2d_BSplineCurve)& C,
                                             const Draw_Color&                  CurvColor,
index b341e5b8b35f395330f7bb566edca7f2fa3ec20f..0b9410dc59f1f4992d16ab39fc8f0e38c213e851 100644 (file)
@@ -33,15 +33,14 @@ DEFINE_STANDARD_HANDLE(DrawTrSurf_BSplineSurface, DrawTrSurf_Surface)
 class DrawTrSurf_BSplineSurface : public DrawTrSurf_Surface
 {
   DEFINE_STANDARD_RTTIEXT(DrawTrSurf_BSplineSurface, DrawTrSurf_Surface)
-  Draw_Drawable3D_FACTORY public :
-
-      //! default drawing mode.
-      //! The isoparametric curves corresponding to the knots values are drawn.
-      //! The control points and the knots points are drawn.
-      //! The boundaries are yellow, the isoparametric curves are blues.
-      //! For the discretisation 50 points are computed in each parametric direction.
-      Standard_EXPORT
-      DrawTrSurf_BSplineSurface(const Handle(Geom_BSplineSurface)& S);
+  Draw_Drawable3D_FACTORY
+public:
+  //! default drawing mode.
+  //! The isoparametric curves corresponding to the knots values are drawn.
+  //! The control points and the knots points are drawn.
+  //! The boundaries are yellow, the isoparametric curves are blues.
+  //! For the discretisation 50 points are computed in each parametric direction.
+  Standard_EXPORT DrawTrSurf_BSplineSurface(const Handle(Geom_BSplineSurface)& S);
 
   //! The isoparametric curves corresponding to the knots values are drawn.
   Standard_EXPORT DrawTrSurf_BSplineSurface(const Handle(Geom_BSplineSurface)& S,
index 6b97faa8b7f7deea799f5e5ec30693f7b357db6c..96af82cb4e2ce72ed403c6c06088548ffd0ef772 100644 (file)
@@ -27,11 +27,10 @@ DEFINE_STANDARD_HANDLE(DrawTrSurf_BezierCurve, DrawTrSurf_Curve)
 class DrawTrSurf_BezierCurve : public DrawTrSurf_Curve
 {
   DEFINE_STANDARD_RTTIEXT(DrawTrSurf_BezierCurve, DrawTrSurf_Curve)
-  Draw_Drawable3D_FACTORY public :
-
-      //! creates a drawable Bezier curve from a Bezier curve of package Geom.
-      Standard_EXPORT
-      DrawTrSurf_BezierCurve(const Handle(Geom_BezierCurve)& C);
+  Draw_Drawable3D_FACTORY
+public:
+  //! creates a drawable Bezier curve from a Bezier curve of package Geom.
+  Standard_EXPORT DrawTrSurf_BezierCurve(const Handle(Geom_BezierCurve)& C);
 
   Standard_EXPORT DrawTrSurf_BezierCurve(const Handle(Geom_BezierCurve)& C,
                                          const Draw_Color&               CurvColor,
index 81c7b14a22e9c90d005592e559eba41bd5e31d71..a96dcf7ea3c9720084b85ba9c4a10e437fa0dbf8 100644 (file)
@@ -27,11 +27,10 @@ DEFINE_STANDARD_HANDLE(DrawTrSurf_BezierCurve2d, DrawTrSurf_Curve2d)
 class DrawTrSurf_BezierCurve2d : public DrawTrSurf_Curve2d
 {
   DEFINE_STANDARD_RTTIEXT(DrawTrSurf_BezierCurve2d, DrawTrSurf_Curve2d)
-  Draw_Drawable3D_FACTORY public :
-
-      //! creates a drawable Bezier curve from a Bezier curve of package Geom2d.
-      Standard_EXPORT
-      DrawTrSurf_BezierCurve2d(const Handle(Geom2d_BezierCurve)& C);
+  Draw_Drawable3D_FACTORY
+public:
+  //! creates a drawable Bezier curve from a Bezier curve of package Geom2d.
+  Standard_EXPORT DrawTrSurf_BezierCurve2d(const Handle(Geom2d_BezierCurve)& C);
 
   Standard_EXPORT DrawTrSurf_BezierCurve2d(const Handle(Geom2d_BezierCurve)& C,
                                            const Draw_Color&                 CurvColor,
index f888e9b69384fcd32687b2b58f700bc770b1a067..bf4477c903653f02d0e6473e4581175b52af9a88 100644 (file)
@@ -27,11 +27,10 @@ DEFINE_STANDARD_HANDLE(DrawTrSurf_BezierSurface, DrawTrSurf_Surface)
 class DrawTrSurf_BezierSurface : public DrawTrSurf_Surface
 {
   DEFINE_STANDARD_RTTIEXT(DrawTrSurf_BezierSurface, DrawTrSurf_Surface)
-  Draw_Drawable3D_FACTORY public :
-
-      //! creates a drawable Bezier curve from a Bezier curve of package Geom.
-      Standard_EXPORT
-      DrawTrSurf_BezierSurface(const Handle(Geom_BezierSurface)& S);
+  Draw_Drawable3D_FACTORY
+public:
+  //! creates a drawable Bezier curve from a Bezier curve of package Geom.
+  Standard_EXPORT DrawTrSurf_BezierSurface(const Handle(Geom_BezierSurface)& S);
 
   Standard_EXPORT DrawTrSurf_BezierSurface(const Handle(Geom_BezierSurface)& S,
                                            const Standard_Integer            NbUIsos,
index 8bce301995e1b20d2ff36eb9b4083f4abb4bc3be..c2098927faef0193af97b13a960a53c323dfc0ac 100644 (file)
@@ -30,12 +30,11 @@ DEFINE_STANDARD_HANDLE(DrawTrSurf_Curve, DrawTrSurf_Drawable)
 class DrawTrSurf_Curve : public DrawTrSurf_Drawable
 {
   DEFINE_STANDARD_RTTIEXT(DrawTrSurf_Curve, DrawTrSurf_Drawable)
-  Draw_Drawable3D_FACTORY public :
-
-      //! creates a drawable curve from a curve of package Geom.
-      Standard_EXPORT
-      DrawTrSurf_Curve(const Handle(Geom_Curve)& C,
-                       const Standard_Boolean    DispOrigin = Standard_True);
+  Draw_Drawable3D_FACTORY
+public:
+  //! creates a drawable curve from a curve of package Geom.
+  Standard_EXPORT DrawTrSurf_Curve(const Handle(Geom_Curve)& C,
+                                   const Standard_Boolean    DispOrigin = Standard_True);
 
   Standard_EXPORT DrawTrSurf_Curve(const Handle(Geom_Curve)& C,
                                    const Draw_Color&         aColor,
index 9e37ae1f8b941b90b18b050a2d38366af316d055..3f7ecbe6364a8efa259bd4f83f7963ccafff2d20 100644 (file)
@@ -30,12 +30,11 @@ DEFINE_STANDARD_HANDLE(DrawTrSurf_Curve2d, DrawTrSurf_Drawable)
 class DrawTrSurf_Curve2d : public DrawTrSurf_Drawable
 {
   DEFINE_STANDARD_RTTIEXT(DrawTrSurf_Curve2d, DrawTrSurf_Drawable)
-  Draw_Drawable3D_FACTORY public :
-
-      //! creates a drawable curve from a curve of package Geom2d.
-      Standard_EXPORT
-      DrawTrSurf_Curve2d(const Handle(Geom2d_Curve)& C,
-                         const Standard_Boolean      DispOrigin = Standard_True);
+  Draw_Drawable3D_FACTORY
+public:
+  //! creates a drawable curve from a curve of package Geom2d.
+  Standard_EXPORT DrawTrSurf_Curve2d(const Handle(Geom2d_Curve)& C,
+                                     const Standard_Boolean      DispOrigin = Standard_True);
 
   Standard_EXPORT DrawTrSurf_Curve2d(const Handle(Geom2d_Curve)& C,
                                      const Draw_Color&           aColor,
index dfb52409472c49eb1a6b2f2485878bdfde848321..82f2d6757b1e6161e3b7ed1031226aa0d9ef8c74 100644 (file)
@@ -29,10 +29,11 @@ DEFINE_STANDARD_HANDLE(DrawTrSurf_Point, Draw_Drawable3D)
 class DrawTrSurf_Point : public Draw_Drawable3D
 {
   DEFINE_STANDARD_RTTIEXT(DrawTrSurf_Point, Draw_Drawable3D)
-  Draw_Drawable3D_FACTORY public :
-
-      Standard_EXPORT
-      DrawTrSurf_Point(const gp_Pnt& P, const Draw_MarkerShape Shape, const Draw_Color& Col);
+  Draw_Drawable3D_FACTORY
+public:
+  Standard_EXPORT DrawTrSurf_Point(const gp_Pnt&          P,
+                                   const Draw_MarkerShape Shape,
+                                   const Draw_Color&      Col);
 
   Standard_EXPORT DrawTrSurf_Point(const gp_Pnt2d&        P,
                                    const Draw_MarkerShape Shape,
index 0b929c4c8256db1e99ce2ce2dab15d43be241d7e..bb06a91372f36c2c24aec88a330e8624d53b0957 100644 (file)
@@ -29,10 +29,9 @@ DEFINE_STANDARD_HANDLE(DrawTrSurf_Polygon2D, Draw_Drawable2D)
 class DrawTrSurf_Polygon2D : public Draw_Drawable2D
 {
   DEFINE_STANDARD_RTTIEXT(DrawTrSurf_Polygon2D, Draw_Drawable2D)
-  Draw_Drawable3D_FACTORY public :
-
-      Standard_EXPORT
-      DrawTrSurf_Polygon2D(const Handle(Poly_Polygon2D)& P);
+  Draw_Drawable3D_FACTORY
+public:
+  Standard_EXPORT DrawTrSurf_Polygon2D(const Handle(Poly_Polygon2D)& P);
 
   Handle(Poly_Polygon2D) Polygon2D() const { return myPolygon2D; }
 
index 79fc1deef371789b8e3b713a86a811582cf3cd5a..f30b26b0093d0be0f331533e26f6562057c4cd51 100644 (file)
@@ -29,10 +29,9 @@ DEFINE_STANDARD_HANDLE(DrawTrSurf_Polygon3D, Draw_Drawable3D)
 class DrawTrSurf_Polygon3D : public Draw_Drawable3D
 {
   DEFINE_STANDARD_RTTIEXT(DrawTrSurf_Polygon3D, Draw_Drawable3D)
-  Draw_Drawable3D_FACTORY public :
-
-      Standard_EXPORT
-      DrawTrSurf_Polygon3D(const Handle(Poly_Polygon3D)& P);
+  Draw_Drawable3D_FACTORY
+public:
+  Standard_EXPORT DrawTrSurf_Polygon3D(const Handle(Poly_Polygon3D)& P);
 
   Handle(Poly_Polygon3D) Polygon3D() const { return myPolygon3D; }
 
index 85168ab72fdb0e8c069501bf39b0dff7bd1edd5c..e8eaf616c15ec6dbf04250b72afce8a643062c05 100644 (file)
@@ -30,14 +30,13 @@ DEFINE_STANDARD_HANDLE(DrawTrSurf_Surface, DrawTrSurf_Drawable)
 class DrawTrSurf_Surface : public DrawTrSurf_Drawable
 {
   DEFINE_STANDARD_RTTIEXT(DrawTrSurf_Surface, DrawTrSurf_Drawable)
-  Draw_Drawable3D_FACTORY public :
-
-      //! default drawing mode
-      //! Just the middle isoparametric curves are drawn.
-      //! The boundaries are yellow, the isoparametric curves are blues.
-      //! For the discretisation 50 points are computed in each parametric direction.
-      Standard_EXPORT
-      DrawTrSurf_Surface(const Handle(Geom_Surface)& S);
+  Draw_Drawable3D_FACTORY
+public:
+  //! default drawing mode
+  //! Just the middle isoparametric curves are drawn.
+  //! The boundaries are yellow, the isoparametric curves are blues.
+  //! For the discretisation 50 points are computed in each parametric direction.
+  Standard_EXPORT DrawTrSurf_Surface(const Handle(Geom_Surface)& S);
 
   Standard_EXPORT DrawTrSurf_Surface(const Handle(Geom_Surface)& S,
                                      const Standard_Integer      Nu,
index 14de9811957223bcdfe39a37bde9044f8be20e0f..925d6e005233e8517bd20b1d4622e93bcbdb25e9 100644 (file)
@@ -33,10 +33,9 @@ DEFINE_STANDARD_HANDLE(DrawTrSurf_Triangulation, Draw_Drawable3D)
 class DrawTrSurf_Triangulation : public Draw_Drawable3D
 {
   DEFINE_STANDARD_RTTIEXT(DrawTrSurf_Triangulation, Draw_Drawable3D)
-  Draw_Drawable3D_FACTORY public :
-
-      Standard_EXPORT
-      DrawTrSurf_Triangulation(const Handle(Poly_Triangulation)& T);
+  Draw_Drawable3D_FACTORY
+public:
+  Standard_EXPORT DrawTrSurf_Triangulation(const Handle(Poly_Triangulation)& T);
 
   Handle(Poly_Triangulation) Triangulation() const { return myTriangulation; }
 
index 7d9024b103697c285af92fbb41f00f950e7befdc..75bf82673e05ec74b17f22ca72a581f20d10951f 100644 (file)
@@ -27,10 +27,9 @@ DEFINE_STANDARD_HANDLE(HLRTest_Projector, Draw_Drawable3D)
 class HLRTest_Projector : public Draw_Drawable3D
 {
   DEFINE_STANDARD_RTTIEXT(HLRTest_Projector, Draw_Drawable3D)
-  Draw_Drawable3D_FACTORY public :
-
-      Standard_EXPORT
-      HLRTest_Projector(const HLRAlgo_Projector& P);
+  Draw_Drawable3D_FACTORY
+public:
+  Standard_EXPORT HLRTest_Projector(const HLRAlgo_Projector& P);
 
   const HLRAlgo_Projector& Projector() const { return myProjector; }
 
index 3433ebbf0403737388761c3354ba76044ad8a3fb..8a569018f75423842a6878ef93998cc338b800d0 100644 (file)
@@ -127,11 +127,9 @@ public:
   const Handle(TColStd_HArray1OfReal)& Parameters() const { return myParameters; }
 
   Standard_DEPRECATED("Deprecated method, SetNode() should be used instead")
-
   TColStd_Array1OfInteger& ChangeNodes() { return myNodes; }
 
   Standard_DEPRECATED("Deprecated method, SetParameter() should be used instead")
-
   TColStd_Array1OfReal& ChangeParameters() { return myParameters->ChangeArray1(); }
 
 private:
index f02af28ce9257ccbb4378af783c216aee4834582..5645de361a00899f138e3d26395f6bb24f871a5d 100644 (file)
@@ -335,15 +335,12 @@ public:
   Standard_EXPORT void SetNormals(const Handle(TShort_HArray1OfShortReal)& theNormals);
 
   Standard_DEPRECATED("Deprecated method, Triangle() should be used instead")
-
   const Poly_Array1OfTriangle& Triangles() const { return myTriangles; }
 
   Standard_DEPRECATED("Deprecated method, SetTriangle() should be used instead")
-
   Poly_Array1OfTriangle& ChangeTriangles() { return myTriangles; }
 
   Standard_DEPRECATED("Deprecated method, SetTriangle() should be used instead")
-
   Poly_Triangle& ChangeTriangle(const Standard_Integer theIndex)
   {
     return myTriangles.ChangeValue(theIndex);
index 5094f7aac57a76801d068fd2e16795d53b362a9a..00d082a55c6cd736274d837bb41c907bcbc0eea2 100644 (file)
@@ -40,10 +40,7 @@ public:
   }
 
   //! Method Relieve() was replaced by Close() in Message_ProgressScope
-  void Relieve()
-  {
-    Close();
-  }
+  void Relieve() { Close(); }
 
 private:
   //! Message_ProgressRange should be passed to constructor instead of Message_ProgressIndicator.
index d24362d35616df8407a1df4da47cd14da3cc1bf1..89dcb80a18d1124eafdc5513fa5162c4f1ceb15f 100644 (file)
@@ -363,7 +363,6 @@ public:
   //! if they contain exactly the same keys.
   Standard_DEPRECATED("This method will be removed right after 7.9. release. Use methods from "
                       "NCollection_MapAlgo.hxx instead.")
-
   Standard_Boolean IsEqual(const NCollection_Map& theOther) const
   {
     return NCollection_MapAlgo::IsEqual<NCollection_Map>(*this, theOther);
@@ -373,7 +372,6 @@ public:
   //! This function checks if this map contains all keys of another map.
   Standard_DEPRECATED("This method will be removed right after 7.9. release. Use methods from "
                       "NCollection_MapAlgo.hxx instead.")
-
   Standard_Boolean Contains(const NCollection_Map& theOther) const
   {
     return NCollection_MapAlgo::Contains<NCollection_Map>(*this, theOther);
@@ -385,7 +383,6 @@ public:
   //! (result of the boolean operation) can also be passed as one of operands.
   Standard_DEPRECATED("This method will be removed right after 7.9. release. Use methods from "
                       "NCollection_MapAlgo.hxx instead.")
-
   void Union(const NCollection_Map& theLeft, const NCollection_Map& theRight)
   {
     NCollection_MapAlgo::Union<NCollection_Map>(*this, theLeft, theRight);
@@ -397,7 +394,6 @@ public:
   //! True if contents of this map is changed.
   Standard_DEPRECATED("This method will be removed right after 7.9. release. Use methods from "
                       "NCollection_MapAlgo.hxx instead.")
-
   Standard_Boolean Unite(const NCollection_Map& theOther)
   {
     return NCollection_MapAlgo::Unite<NCollection_Map>(*this, theOther);
@@ -406,7 +402,6 @@ public:
   //! Returns true if this and theMap have common elements.
   Standard_DEPRECATED("This method will be removed right after 7.9. release. Use methods from "
                       "NCollection_MapAlgo.hxx instead.")
-
   Standard_Boolean HasIntersection(const NCollection_Map& theMap) const
   {
     return NCollection_MapAlgo::HasIntersection<NCollection_Map>(*this, theMap);
@@ -418,7 +413,6 @@ public:
   //! boolean operation) can also be used as one of operands.
   Standard_DEPRECATED("This method will be removed right after 7.9. release. Use methods from "
                       "NCollection_MapAlgo.hxx instead.")
-
   void Intersection(const NCollection_Map& theLeft, const NCollection_Map& theRight)
   {
     NCollection_MapAlgo::Intersection<NCollection_Map>(*this, theLeft, theRight);
@@ -430,7 +424,6 @@ public:
   //! of this map is changed.
   Standard_DEPRECATED("This method will be removed right after 7.9. release. Use methods from "
                       "NCollection_MapAlgo.hxx instead.")
-
   Standard_Boolean Intersect(const NCollection_Map& theOther)
   {
     return NCollection_MapAlgo::Intersect<NCollection_Map>(*this, theOther);
@@ -442,7 +435,6 @@ public:
   //! one. All previous content of this Map is cleared.
   Standard_DEPRECATED("This method will be removed right after 7.9. release. Use methods from "
                       "NCollection_MapAlgo.hxx instead.")
-
   void Subtraction(const NCollection_Map& theLeft, const NCollection_Map& theRight)
   {
     NCollection_MapAlgo::Subtraction<NCollection_Map>(*this, theLeft, theRight);
@@ -455,7 +447,6 @@ public:
   //! Returns True if contents of this map is changed.
   Standard_DEPRECATED("This method will be removed right after 7.9. release. Use methods from "
                       "NCollection_MapAlgo.hxx instead.")
-
   Standard_Boolean Subtract(const NCollection_Map& theOther)
   {
     return NCollection_MapAlgo::Subtract<NCollection_Map>(*this, theOther);
@@ -467,7 +458,6 @@ public:
   //! cleared. This map (result of the boolean operation) can also be used as one of operands.
   Standard_DEPRECATED("This method will be removed right after 7.9. release. Use methods from "
                       "NCollection_MapAlgo.hxx instead.")
-
   void Difference(const NCollection_Map& theLeft, const NCollection_Map& theRight)
   {
     NCollection_MapAlgo::Difference<NCollection_Map>(*this, theLeft, theRight);
@@ -479,7 +469,6 @@ public:
   //! True if contents of this map is changed.
   Standard_DEPRECATED("This method will be removed right after 7.9. release. Use methods from "
                       "NCollection_MapAlgo.hxx instead.")
-
   Standard_Boolean Differ(const NCollection_Map& theOther)
   {
     return NCollection_MapAlgo::Differ<NCollection_Map>(*this, theOther);
index 21bc8d518b832d91475b56f06f029c8295577341..fd843782ba2621dd4a05ae0bbf632c285f2d15b6 100644 (file)
@@ -63,21 +63,18 @@ inline bool Standard_Atomic_CompareAndSwap(volatile int* theValue,
 // enforced.
 
 Standard_DEPRECATED("Standard_Atomic_Increment will be removed in OCCT 8.0.0")
-
 int Standard_Atomic_Increment(volatile int* theValue)
 {
   return __sync_add_and_fetch(theValue, 1);
 }
 
 Standard_DEPRECATED("Standard_Atomic_Decrement will be removed in OCCT 8.0.0")
-
 int Standard_Atomic_Decrement(volatile int* theValue)
 {
   return __sync_sub_and_fetch(theValue, 1);
 }
 
 Standard_DEPRECATED("Standard_Atomic_CompareAndSwap will be removed in OCCT 8.0.0")
-
 bool Standard_Atomic_CompareAndSwap(volatile int* theValue, int theOldValue, int theNewValue)
 {
   return __sync_val_compare_and_swap(theValue, theOldValue, theNewValue) == theOldValue;
@@ -102,21 +99,18 @@ extern "C"
 // Note that we safely cast int* to long*, as they have same size and endian-ness
 
 Standard_DEPRECATED("Standard_Atomic_Increment will be removed in OCCT 8.0.0")
-
 int Standard_Atomic_Increment(volatile int* theValue)
 {
   return _InterlockedIncrement(reinterpret_cast<volatile long*>(theValue));
 }
 
 Standard_DEPRECATED("Standard_Atomic_Decrement will be removed in OCCT 8.0.0")
-
 int Standard_Atomic_Decrement(volatile int* theValue)
 {
   return _InterlockedDecrement(reinterpret_cast<volatile long*>(theValue));
 }
 
 Standard_DEPRECATED("Standard_Atomic_CompareAndSwap will be removed in OCCT 8.0.0")
-
 bool Standard_Atomic_CompareAndSwap(volatile int* theValue, int theOldValue, int theNewValue)
 {
   return _InterlockedCompareExchange(reinterpret_cast<volatile long*>(theValue),
@@ -131,21 +125,18 @@ bool Standard_Atomic_CompareAndSwap(volatile int* theValue, int theOldValue, int
   #include <libkern/OSAtomic.h>
 
 Standard_DEPRECATED("Standard_Atomic_Increment will be removed in OCCT 8.0.0")
-
 int Standard_Atomic_Increment(volatile int* theValue)
 {
   return OSAtomicIncrement32Barrier(theValue);
 }
 
 Standard_DEPRECATED("Standard_Atomic_Decrement will be removed in OCCT 8.0.0")
-
 int Standard_Atomic_Decrement(volatile int* theValue)
 {
   return OSAtomicDecrement32Barrier(theValue);
 }
 
 Standard_DEPRECATED("Standard_Atomic_CompareAndSwap will be removed in OCCT 8.0.0")
-
 bool Standard_Atomic_CompareAndSwap(volatile int* theValue, int theOldValue, int theNewValue)
 {
   return OSAtomicCompareAndSwapInt(theOldValue, theNewValue, theValue);
@@ -161,21 +152,18 @@ bool Standard_Atomic_CompareAndSwap(volatile int* theValue, int theOldValue, int
   #include <sys/atomics.h>
 
 Standard_DEPRECATED("Standard_Atomic_Increment will be removed in OCCT 8.0.0")
-
 int Standard_Atomic_Increment(volatile int* theValue)
 {
   return __atomic_inc(theValue) + 1; // analog of __sync_fetch_and_add
 }
 
 Standard_DEPRECATED("Standard_Atomic_Decrement will be removed in OCCT 8.0.0")
-
 int Standard_Atomic_Decrement(volatile int* theValue)
 {
   return __atomic_dec(theValue) - 1; // analog of __sync_fetch_and_sub
 }
 
 Standard_DEPRECATED("Standard_Atomic_CompareAndSwap will be removed in OCCT 8.0.0")
-
 bool Standard_Atomic_CompareAndSwap(volatile int* theValue, int theOldValue, int theNewValue)
 {
   return __atomic_cmpxchg(theOldValue, theNewValue, theValue) == 0;
@@ -187,21 +175,18 @@ bool Standard_Atomic_CompareAndSwap(volatile int* theValue, int theOldValue, int
     #error "Atomic operation isn't implemented for current platform!"
   #endif
 Standard_DEPRECATED("Standard_Atomic_Increment will be removed in OCCT 8.0.0")
-
 int Standard_Atomic_Increment(volatile int* theValue)
 {
   return ++(*theValue);
 }
 
 Standard_DEPRECATED("Standard_Atomic_Decrement will be removed in OCCT 8.0.0")
-
 int Standard_Atomic_Decrement(volatile int* theValue)
 {
   return --(*theValue);
 }
 
 Standard_DEPRECATED("Standard_Atomic_CompareAndSwap will be removed in OCCT 8.0.0")
-
 bool Standard_Atomic_CompareAndSwap(volatile int* theValue, int theOldValue, int theNewValue)
 {
   if (*theValue == theOldValue)
index 42fb9dd4688fd129a0f7fa291a41256ea81e1dd6..26523cdde62a954a18fb1a1c86edd0a54e637382 100644 (file)
@@ -189,7 +189,6 @@ public:
   //! For compatibility, define down casting operator from non-base type, as deprecated
   template <class T2>
   Standard_DEPRECATED("down-casting from object of the same or unrelated type is meaningless")
-
   static handle DownCast(
     const handle<T2>& theObject,
     typename opencascade::std::enable_if<!is_base_but_not_same<T2, T>::value, void*>::type = 0)
@@ -200,7 +199,6 @@ public:
   //! For compatibility, define down casting operator from non-base type, as deprecated
   template <class T2>
   Standard_DEPRECATED("down-casting from object of the same or unrelated type is meaningless")
-
   static handle DownCast(
     const T2* thePtr,
     typename opencascade::std::enable_if<!is_base_but_not_same<T2, T>::value, void*>::type = 0)
@@ -350,7 +348,6 @@ public:
   template <class T2>
   Standard_DEPRECATED("Passing non-const reference to handle of base type in function is unsafe; "
                       "use variable of exact type")
-
   operator handle<T2>&()
   {
     // error "type is not a member of enable_if" will be generated if T2 is not sub-type of T
index b90e2ff6fa5650d1d5f5c3643ae19100b30e2699..1ed2bf5e4897884011cb784fa545aa5d3b57fed4 100644 (file)
@@ -188,7 +188,7 @@ void Standard_MMgrOpt::Initialize()
   if (myNbPages < 100)
     myNbPages = 1000;
 
-    // get system-dependent page size
+  // get system-dependent page size
 #ifndef _WIN32
   myPageSize = getpagesize();
   if (!myPageSize)
index 391ff38b66f7710803ea31d3b6c03e0f7e0a9d7d..75b1c320c3d09eaae4b259ae36337129b286cb91 100644 (file)
@@ -6216,7 +6216,7 @@ Fast_failed1:
       b = multadd(b, 10, 0 MTb);
     }
 
-    /* Round off last digit */
+  /* Round off last digit */
 
   #ifdef Honor_FLT_ROUNDS
   if (mode > 1)
index bd02dfef1049adce2b7e27a7ed8f068f9a3f7165..0b6d1a2fec82ad12c85b24315a021b12b3d1d461 100644 (file)
 //! The package <TCollection> provides the services for the
 //! transient basic data structures.
 class Standard_DEPRECATED(
-  "Deprecated since OCCT 7.9, NCollection_Primes should be used instead of TCollection")
-TCollection{public :
+  "Deprecated since OCCT 7.9, NCollection_Primes should be used instead of TCollection") TCollection
+{
+public:
+  DEFINE_STANDARD_ALLOC
 
-              DEFINE_STANDARD_ALLOC
-
-            //! Returns a  prime number greater than  <I> suitable
-            //! to dimension a Map.  When  <I> becomes great there
-            //! is  a  limit on  the  result (today  the  limit is
-            //! around 1 000 000). This is not a limit of the number of
-            //! items but a limit in the number  of buckets.  i.e.
-            //! there will be more collisions  in  the map.
-            static Standard_Integer NextPrimeForMap(const Standard_Integer I){
-              return NCollection_Primes::NextPrimeForMap(I);
-}
-}
-;
+  //! Returns a  prime number greater than  <I> suitable
+  //! to dimension a Map.  When  <I> becomes great there
+  //! is  a  limit on  the  result (today  the  limit is
+  //! around 1 000 000). This is not a limit of the number of
+  //! items but a limit in the number  of buckets.  i.e.
+  //! there will be more collisions  in  the map.
+  static Standard_Integer NextPrimeForMap(const Standard_Integer I)
+  {
+    return NCollection_Primes::NextPrimeForMap(I);
+  }
+};
 
 #endif // _TCollection_HeaderFile
index a23a0ec7790ceb7b191232002312696a538987e8..c2c087ff95945e7b594ddf299cc38fb98f781894 100644 (file)
@@ -2269,7 +2269,7 @@ void TopOpeBRepBuild_BuilderON::GFillONPartsWES2(const Handle(TopOpeBRepDS_Inter
             gp_Vec ntOOFOR = FUN_tool_nggeomF(uv, OOFOR);
             if (OOFOR.Orientation() == TopAbs_REVERSED)
               ntOOFOR.Reverse();
-              // xxFCX :
+            // xxFCX :
 #ifdef OCCT_DEBUG
 //         Standard_Real t1 =factor*BRep_Tool::Tolerance(Esd);
 #endif
index c345f10a43c859aa796094247d3da45ce6211c53..06c84f7673a7ed357b24dc3e16c97d299c155a89 100644 (file)
@@ -388,7 +388,7 @@ Standard_Boolean GeomFill_NSections::D1(const Standard_Real   V,
   if (NullWeight)
     return Standard_False;
 
-    // verif par diff finies sous debug sauf pour les surfaces periodiques
+  // verif par diff finies sous debug sauf pour les surfaces periodiques
 #ifdef OCCT_DEBUG
   if (!mySurface->IsVPeriodic())
   {
@@ -498,7 +498,7 @@ Standard_Boolean GeomFill_NSections::D2(const Standard_Real   V,
   if (NullWeight)
     return Standard_False;
 
-    // verif par diff finies sous debug sauf pour les surfaces periodiques
+  // verif par diff finies sous debug sauf pour les surfaces periodiques
 #ifdef OCCT_DEBUG
   if (!mySurface->IsVPeriodic())
   {
index ab456debe0ef9912fe377f69736e563116ad458e..1a8309bbf159c742af8136803f477da921b9922c 100644 (file)
@@ -146,7 +146,6 @@ public:
 
 public:
   Standard_DEPRECATED("ModifyOffsetSurfaceMode() should be used instead")
-
   Standard_Boolean& ModifyOffestSurfaceMode() { return myOffsetSurfaceMode; }
 
 private:
index a59f750badc76a22506bb494d2bba706cbee626a..d0cb919dad40739617765beeb59ee1f810c0969b 100644 (file)
@@ -309,7 +309,8 @@ TopoDS_Shell ShapeFix_FaceConnect::Build(const TopoDS_Shell& shell,
               {
                 try
                 {
-                  OCC_CATCH_SIGNALS theSewer.Perform();
+                  OCC_CATCH_SIGNALS
+                  theSewer.Perform();
                 }
                 catch (Standard_Failure const&)
                 {
index de882c16240cf5414142eafe0c618cfedf3ffba0..5b043cc7599c3a7aba0a6243cdc25eb9220ee7ec 100644 (file)
@@ -1503,8 +1503,8 @@ void MAT2d_DrawCurve(const Handle(Geom2d_Curve)& aCurve, const Standard_Integer
   else
     dr = new DrawTrSurf_Curve2d(CurveDraw, Couleur, 500);
 
-      // dout << dr;
-      // dout.Flush();
+    // dout << dr;
+    // dout.Flush();
   #endif
 }
 
index 61fefdd5647496d7564daa47b90a1b47aaac4735..787707dd85a1d4dff16c061164a5487015595d76 100644 (file)
@@ -93,7 +93,7 @@ public:
   //! Exceptions StdFail_NotDone if no arc of circle is constructed.
   Standard_EXPORT const Handle(Geom_TrimmedCurve)& Value() const;
 
-  operator const Handle(Geom_TrimmedCurve) & () const { return Value(); }
+  operator const Handle(Geom_TrimmedCurve)&() const { return Value(); }
 
 private:
   Handle(Geom_TrimmedCurve) TheArc;
index a27fdc5b6949b52c43a1a881635d13ab2eb87587..d6d7bcc1062afa52558b7fb9b809e59bee39ea6a 100644 (file)
@@ -70,7 +70,7 @@ public:
   //! Returns the constructed arc of ellipse.
   Standard_EXPORT const Handle(Geom_TrimmedCurve)& Value() const;
 
-  operator const Handle(Geom_TrimmedCurve) & () const { return Value(); }
+  operator const Handle(Geom_TrimmedCurve)&() const { return Value(); }
 
 private:
   Handle(Geom_TrimmedCurve) TheArc;
index b11eb605b231ad290752a6c0296e48a09026a9ff..bb73e27c17d01d3835d8d58a408ef898410b9806 100644 (file)
@@ -68,7 +68,7 @@ public:
   //! Returns the constructed arc of hyperbola.
   Standard_EXPORT const Handle(Geom_TrimmedCurve)& Value() const;
 
-  operator const Handle(Geom_TrimmedCurve) & () const { return Value(); }
+  operator const Handle(Geom_TrimmedCurve)&() const { return Value(); }
 
 private:
   Handle(Geom_TrimmedCurve) TheArc;
index 982ccd6fda4e60126531d1193fae6e15f7f107e9..5e5f4f59304b04683ddb219923cc5dfe3a4e21ca 100644 (file)
@@ -65,7 +65,7 @@ public:
   //! Returns the constructed arc of parabola.
   Standard_EXPORT const Handle(Geom_TrimmedCurve)& Value() const;
 
-  operator const Handle(Geom_TrimmedCurve) & () const { return Value(); }
+  operator const Handle(Geom_TrimmedCurve)&() const { return Value(); }
 
 private:
   Handle(Geom_TrimmedCurve) TheArc;
index fb3c86cd0c3fa585564ccbb70db6e39009f68db7..1cd9e530f56d8c2da350df8558d4db6d98abbaeb 100644 (file)
@@ -98,7 +98,7 @@ public:
   //! StdFail_NotDone if no circle is constructed.
   Standard_EXPORT const Handle(Geom_Circle)& Value() const;
 
-  operator const Handle(Geom_Circle) & () const { return Value(); }
+  operator const Handle(Geom_Circle)&() const { return Value(); }
 
 private:
   Handle(Geom_Circle) TheCircle;
index 78a2b10a18d149555550f36219660468b01d7319..044a7b540b6b3a6429c607da972525225a6efd19 100644 (file)
@@ -110,7 +110,7 @@ public:
   //! StdFail_NotDone if no cone is constructed.
   Standard_EXPORT const Handle(Geom_ConicalSurface)& Value() const;
 
-  operator const Handle(Geom_ConicalSurface) & () const { return Value(); }
+  operator const Handle(Geom_ConicalSurface)&() const { return Value(); }
 
 private:
   Handle(Geom_ConicalSurface) TheCone;
index 936016b33bbebcb6ea983d107117a1b4b87d6a50..729f8cf40005f163f9a30cb89a7352de8a8ac148 100644 (file)
@@ -106,7 +106,7 @@ public:
   //! Exceptions StdFail_NotDone if no cylinder is constructed.
   Standard_EXPORT const Handle(Geom_CylindricalSurface)& Value() const;
 
-  operator const Handle(Geom_CylindricalSurface) & () const { return Value(); }
+  operator const Handle(Geom_CylindricalSurface)&() const { return Value(); }
 
 private:
   Handle(Geom_CylindricalSurface) TheCylinder;
index 497afec3d35b7b600d0a7ad7402bacec6261d9b2..fc7b43b24068c3f68ae78af71122b3926a77b78c 100644 (file)
@@ -75,7 +75,7 @@ public:
   //! Exceptions StdFail_NotDone if no ellipse is constructed.
   Standard_EXPORT const Handle(Geom_Ellipse)& Value() const;
 
-  operator const Handle(Geom_Ellipse) & () const { return Value(); }
+  operator const Handle(Geom_Ellipse)&() const { return Value(); }
 
 private:
   Handle(Geom_Ellipse) TheEllipse;
index c2d113ef8d7e6ac6af7c5883b92317b72ba5f17c..f68dc7bdf257ae87a1fab129f3ecf0e2c7a6ad38 100644 (file)
@@ -85,7 +85,7 @@ public:
   //! Exceptions StdFail_NotDone if no hyperbola is constructed.
   Standard_EXPORT const Handle(Geom_Hyperbola)& Value() const;
 
-  operator const Handle(Geom_Hyperbola) & () const { return Value(); }
+  operator const Handle(Geom_Hyperbola)&() const { return Value(); }
 
 private:
   Handle(Geom_Hyperbola) TheHyperbola;
index 4c3130edf3a568a76c15b118d6c75b4fe6675934..3d18377972897acfc9c06c93f07830081bfaba2a 100644 (file)
@@ -70,7 +70,7 @@ public:
   //! Exceptions StdFail_NotDone if no line is constructed.
   Standard_EXPORT const Handle(Geom_Line)& Value() const;
 
-  operator const Handle(Geom_Line) & () const { return Value(); }
+  operator const Handle(Geom_Line)&() const { return Value(); }
 
 private:
   Handle(Geom_Line) TheLine;
index 8991e595b3b9c71458cc2bd386d9f275b8c52e18..9c7ba6c0901b052f9a10319e471c6e8d572bce5d 100644 (file)
@@ -60,7 +60,7 @@ public:
   //! Returns the constructed transformation.
   Standard_EXPORT const Handle(Geom_Transformation)& Value() const;
 
-  operator const Handle(Geom_Transformation) & () const { return Value(); }
+  operator const Handle(Geom_Transformation)&() const { return Value(); }
 
 protected:
 private:
index c62097311c2c32ff8f520cc785f85cdcc498a46e..2a0d8ad740f892ef8754004cb7ebe524bcef0518 100644 (file)
@@ -87,7 +87,7 @@ public:
   //! Exceptions StdFail_NotDone if no plane is constructed.
   Standard_EXPORT const Handle(Geom_Plane)& Value() const;
 
-  operator const Handle(Geom_Plane) & () const { return Value(); }
+  operator const Handle(Geom_Plane)&() const { return Value(); }
 
 private:
   Handle(Geom_Plane) ThePlane;
index 3110d6dcd59b9686bf71ed24405451395d5ed685..80177f8ac8d2693cc381b49320eea4de6ecd46ef 100644 (file)
@@ -55,7 +55,7 @@ public:
   //! Returns the constructed transformation.
   Standard_EXPORT const Handle(Geom_Transformation)& Value() const;
 
-  operator const Handle(Geom_Transformation) & () const { return Value(); }
+  operator const Handle(Geom_Transformation)&() const { return Value(); }
 
 protected:
 private:
index 4328e8d1b33d55b45f6b786f85a6fa60e3934ee8..66558b5d7ba0f270c53baeed18c7eb1ea460446b 100644 (file)
@@ -46,7 +46,7 @@ public:
   //! Returns the constructed transformation.
   Standard_EXPORT const Handle(Geom_Transformation)& Value() const;
 
-  operator const Handle(Geom_Transformation) & () const { return Value(); }
+  operator const Handle(Geom_Transformation)&() const { return Value(); }
 
 protected:
 private:
index 83742012dce5f63268af4cceab04d8794dcdf917..335cb29cfa9c0db550b500adbc96510f3e3c2caf 100644 (file)
@@ -67,7 +67,7 @@ public:
   //! Returns the constructed line segment.
   Standard_EXPORT const Handle(Geom_TrimmedCurve)& Value() const;
 
-  operator const Handle(Geom_TrimmedCurve) & () const { return Value(); }
+  operator const Handle(Geom_TrimmedCurve)&() const { return Value(); }
 
 private:
   Handle(Geom_TrimmedCurve) TheSegment;
index 5e7b470515ecba1fd7684a46fb3a898e8fe57114..c9420b8ef2cbc91b538d2f82ce59c5ad0bfb6816 100644 (file)
@@ -47,7 +47,7 @@ public:
   //! Returns the constructed transformation.
   Standard_EXPORT const Handle(Geom_Transformation)& Value() const;
 
-  operator const Handle(Geom_Transformation) & () const { return Value(); }
+  operator const Handle(Geom_Transformation)&() const { return Value(); }
 
 protected:
 private:
index f0f324e55ae289f3d0cd39ba9c4f3a55f0de8135..4c276f99febda6df574abfda573334dc514897e5 100644 (file)
@@ -78,7 +78,7 @@ public:
   //! StdFail_NotDone if no trimmed cone is constructed.
   Standard_EXPORT const Handle(Geom_RectangularTrimmedSurface)& Value() const;
 
-  operator const Handle(Geom_RectangularTrimmedSurface) & () const { return Value(); }
+  operator const Handle(Geom_RectangularTrimmedSurface)&() const { return Value(); }
 
 private:
   Handle(Geom_RectangularTrimmedSurface) TheCone;
index 40b24c00399f59cd35de6f07b2968978c6ff84bf..bc8a4eead80c2f6445ccd84aff9250058a71d91e 100644 (file)
@@ -71,7 +71,7 @@ public:
   //! StdFail_NotDone if no trimmed cylinder is constructed.
   Standard_EXPORT const Handle(Geom_RectangularTrimmedSurface)& Value() const;
 
-  operator const Handle(Geom_RectangularTrimmedSurface) & () const { return Value(); }
+  operator const Handle(Geom_RectangularTrimmedSurface)&() const { return Value(); }
 
 private:
   Handle(Geom_RectangularTrimmedSurface) TheCyl;
index 1ebdee1d2e45cc55d23b53cf0363e25d7c58f4bc..b9b91c6d4b6e1d73ee3223fb668c2f14b006b03b 100644 (file)
@@ -78,7 +78,7 @@ public:
   //! Exceptions StdFail_NotDone if no arc of circle is constructed.
   Standard_EXPORT const Handle(Geom2d_TrimmedCurve)& Value() const;
 
-  operator const Handle(Geom2d_TrimmedCurve) & () const { return Value(); }
+  operator const Handle(Geom2d_TrimmedCurve)&() const { return Value(); }
 
 private:
   Handle(Geom2d_TrimmedCurve) TheArc;
index e18f077beacafbb81035a0eeea7398f90c1d6bf0..43960c2af7f2378f58880e6e51151e52a68c448f 100644 (file)
@@ -70,7 +70,7 @@ public:
   //! Returns the constructed arc of ellipse.
   Standard_EXPORT const Handle(Geom2d_TrimmedCurve)& Value() const;
 
-  operator const Handle(Geom2d_TrimmedCurve) & () const { return Value(); }
+  operator const Handle(Geom2d_TrimmedCurve)&() const { return Value(); }
 
 private:
   Handle(Geom2d_TrimmedCurve) TheArc;
index 8aa0cdcf9e9934e69e45308aaace6a348ffb9da2..50e473a6fa64a367590439e5131307527b58c998 100644 (file)
@@ -69,7 +69,7 @@ public:
   //! Returns the constructed arc of hyperbola.
   Standard_EXPORT const Handle(Geom2d_TrimmedCurve)& Value() const;
 
-  operator const Handle(Geom2d_TrimmedCurve) & () const { return Value(); }
+  operator const Handle(Geom2d_TrimmedCurve)&() const { return Value(); }
 
 private:
   Handle(Geom2d_TrimmedCurve) TheArc;
index 06b098d859923c5c93296775937a7f75cd75681e..802742dd1a6fd39c621247cf7a81c95bf54f2de0 100644 (file)
@@ -69,7 +69,7 @@ public:
   //! Returns the constructed arc of parabola.
   Standard_EXPORT const Handle(Geom2d_TrimmedCurve)& Value() const;
 
-  operator const Handle(Geom2d_TrimmedCurve) & () const { return Value(); }
+  operator const Handle(Geom2d_TrimmedCurve)&() const { return Value(); }
 
 private:
   Handle(Geom2d_TrimmedCurve) TheArc;
index 1f4ff358248be6502365ae78e83b7ab637cd197d..544c14a5e278116c95735d794d7829b0a58cb419 100644 (file)
@@ -102,7 +102,7 @@ public:
   //! Exceptions StdFail_NotDone if no circle is constructed.
   Standard_EXPORT const Handle(Geom2d_Circle)& Value() const;
 
-  operator const Handle(Geom2d_Circle) & () const { return Value(); }
+  operator const Handle(Geom2d_Circle)&() const { return Value(); }
 
 private:
   Handle(Geom2d_Circle) TheCircle;
index 8f69139cfd8ca525356793eadb605fa82cf0ce84..aca7852aff827e873162311aa614272e554bd97f 100644 (file)
@@ -85,7 +85,7 @@ public:
   //! Exceptions StdFail_NotDone if no ellipse is constructed.
   Standard_EXPORT const Handle(Geom2d_Ellipse)& Value() const;
 
-  operator const Handle(Geom2d_Ellipse) & () const { return Value(); }
+  operator const Handle(Geom2d_Ellipse)&() const { return Value(); }
 
 private:
   Handle(Geom2d_Ellipse) TheEllipse;
index da2ddaa12aa618cd8c4326725949881aedf0056b..aba24738dbc17204e384b3ee9b481f0dd8e16adb 100644 (file)
@@ -107,7 +107,7 @@ public:
   //! Exceptions: StdFail_NotDone if no hyperbola is constructed.
   Standard_EXPORT const Handle(Geom2d_Hyperbola)& Value() const;
 
-  operator const Handle(Geom2d_Hyperbola) & () const { return Value(); }
+  operator const Handle(Geom2d_Hyperbola)&() const { return Value(); }
 
 private:
   Handle(Geom2d_Hyperbola) TheHyperbola;
index 8b49bdcf846d8b7bd8063ecde5af7d3c8ae40fda..474cfcd1acba8cc4b1c417062dbb73ad46c94c58 100644 (file)
@@ -69,7 +69,7 @@ public:
   //! Exceptions StdFail_NotDone if no line is constructed.
   Standard_EXPORT const Handle(Geom2d_Line)& Value() const;
 
-  operator const Handle(Geom2d_Line) & () const { return Value(); }
+  operator const Handle(Geom2d_Line)&() const { return Value(); }
 
 private:
   Handle(Geom2d_Line) TheLine;
index d4bfa1e1bd28e4d2d5a7bb7deee47cd7151c611e..d70055a72d01608632d5ceab42132929cd6acb30 100644 (file)
@@ -52,7 +52,7 @@ public:
   //! Returns the constructed transformation.
   Standard_EXPORT const Handle(Geom2d_Transformation)& Value() const;
 
-  operator const Handle(Geom2d_Transformation) & () const { return Value(); }
+  operator const Handle(Geom2d_Transformation)&() const { return Value(); }
 
 protected:
 private:
index fad4979a60ae775465244779e4052100fae86033..be98177e9cbc2d64263da0acad0a4ca22f8d8a70 100644 (file)
@@ -100,7 +100,7 @@ public:
   //! Exceptions StdFail_NotDone if no parabola is constructed.
   Standard_EXPORT const Handle(Geom2d_Parabola)& Value() const;
 
-  operator const Handle(Geom2d_Parabola) & () const { return Value(); }
+  operator const Handle(Geom2d_Parabola)&() const { return Value(); }
 
 private:
   Handle(Geom2d_Parabola) TheParabola;
index ba3ec71166c9effc1e550c0ff672ef9994e1e911..4db383234387cb2ffabdde83864e24c56a938bd0 100644 (file)
@@ -42,7 +42,7 @@ public:
   //! Returns the constructed transformation.
   Standard_EXPORT const Handle(Geom2d_Transformation)& Value() const;
 
-  operator const Handle(Geom2d_Transformation) & () const { return Value(); }
+  operator const Handle(Geom2d_Transformation)&() const { return Value(); }
 
 protected:
 private:
index 0dc785aef623bafab94e1b74a512705be1793368..13898bad56faca449c0cb349b293e4fb739c36bf 100644 (file)
@@ -45,7 +45,7 @@ public:
   //! Returns the constructed transformation.
   Standard_EXPORT const Handle(Geom2d_Transformation)& Value() const;
 
-  operator const Handle(Geom2d_Transformation) & () const { return Value(); }
+  operator const Handle(Geom2d_Transformation)&() const { return Value(); }
 
 protected:
 private:
index 36574c81f6908f80e7d64d0059472e0ac69479b0..644e3d23e364a9913083e288f3134825fa5e3917 100644 (file)
@@ -81,7 +81,7 @@ public:
   //! Exceptions StdFail_NotDone if no line segment is constructed.
   Standard_EXPORT const Handle(Geom2d_TrimmedCurve)& Value() const;
 
-  operator const Handle(Geom2d_TrimmedCurve) & () const { return Value(); }
+  operator const Handle(Geom2d_TrimmedCurve)&() const { return Value(); }
 
 private:
   Handle(Geom2d_TrimmedCurve) TheSegment;
index b6262c98879691847f379cdaf13bff9ca356b6f1..97bbb120b1c66892c9511c7b53993094b22dd7e5 100644 (file)
@@ -47,7 +47,7 @@ public:
   //! Returns the constructed transformation.
   Standard_EXPORT const Handle(Geom2d_Transformation)& Value() const;
 
-  operator const Handle(Geom2d_Transformation) & () const { return Value(); }
+  operator const Handle(Geom2d_Transformation)&() const { return Value(); }
 
 protected:
 private:
index 9876407edd92d6cf2aa910d72fc2ac8579ffd493..e110ceed3552b85c9e3083c993a43ddd6d493336 100644 (file)
@@ -930,10 +930,10 @@ void MeshVS_Mesh::HilightSelected(const Handle(PrsMgr_PresentationManager)& theP
 
   if (HasPresentation())
     aSelectionPrs->SetTransformPersistence(Presentation()->TransformPersistence());
-    //----------------
+  //----------------
 
-    //   It is very important to call this parent method, because it check whether
-    // mySelectionPrs is created and if not, create it.
+  //   It is very important to call this parent method, because it check whether
+  // mySelectionPrs is created and if not, create it.
 
 #ifdef OCCT_DEBUG
   OSD_Timer gTimer;
index 75b94c1426b641eeb29a42270092f18c9a828345..8f60484203046fdda7e6612e4b1a05c2f9d1ab2d 100644 (file)
@@ -851,7 +851,6 @@ public: //! @name methods to alter or retrieve current state
 
   //! Bind specified texture set to current context taking into account active GLSL program.
   Standard_DEPRECATED("BindTextures() with explicit GLSL program should be used instead")
-
   Handle(OpenGl_TextureSet) BindTextures(const Handle(OpenGl_TextureSet)& theTextures)
   {
     return BindTextures(theTextures, myActiveProgram);
index 2e265ca74a6bf3357d326adb16b21c971787db2c..eb8399471c5a5827c11746580ae20556d21f236d 100644 (file)
@@ -282,7 +282,6 @@ public:
 
   //! Initialize FBO for rendering into single/multiple color buffer and depth textures.
   Standard_DEPRECATED("Obsolete method, use Init() taking Graphic3d_Vec2i")
-
   bool Init(const Handle(OpenGl_Context)& theGlCtx,
             const Standard_Integer        theSizeX,
             const Standard_Integer        theSizeY,
@@ -299,7 +298,6 @@ public:
 
   //! Initialize FBO for rendering into textures.
   Standard_DEPRECATED("Obsolete method, use Init() taking Graphic3d_Vec2i")
-
   bool Init(const Handle(OpenGl_Context)& theGlCtx,
             const Standard_Integer        theSizeX,
             const Standard_Integer        theSizeY,
@@ -316,7 +314,6 @@ public:
 
   //! Initialize FBO for rendering into single/multiple color buffer and depth textures.
   Standard_DEPRECATED("Obsolete method, use Init() taking Graphic3d_Vec2i")
-
   bool Init(const Handle(OpenGl_Context)& theGlCtx,
             const Standard_Integer        theSizeX,
             const Standard_Integer        theSizeY,
@@ -333,7 +330,6 @@ public:
 
   //! (Re-)initialize FBO with specified dimensions.
   Standard_DEPRECATED("Obsolete method, use InitLazy() taking Graphic3d_Vec2i")
-
   bool InitLazy(const Handle(OpenGl_Context)& theGlCtx,
                 const Standard_Integer        theViewportSizeX,
                 const Standard_Integer        theViewportSizeY,
@@ -350,7 +346,6 @@ public:
 
   //! (Re-)initialize FBO with specified dimensions.
   Standard_DEPRECATED("Obsolete method, use InitLazy() taking Graphic3d_Vec2i")
-
   bool InitLazy(const Handle(OpenGl_Context)& theGlCtx,
                 const Standard_Integer        theViewportSizeX,
                 const Standard_Integer        theViewportSizeY,
@@ -369,7 +364,6 @@ public:
   //! The Render Buffer Objects will be used for Color, Depth and Stencil attachments (as opposite
   //! to textures).
   Standard_DEPRECATED("Obsolete method, use InitWithRB() taking Graphic3d_Vec2i")
-
   bool InitWithRB(const Handle(OpenGl_Context)& theGlCtx,
                   const Standard_Integer        theSizeX,
                   const Standard_Integer        theSizeY,
index 416d76404811f2915d491c3798955a2388bd66da..37caf3fdecea3310ec660e2838070c10d8e7dd2c 100644 (file)
@@ -259,7 +259,6 @@ public:
 
   Standard_DEPRECATED("Deprecated method, OpenGl_TextureFormat should be passed instead of "
                       "separate parameters")
-
   bool Init(const Handle(OpenGl_Context)& theCtx,
             const Standard_Integer        theTextFormat,
             const unsigned int            thePixelFormat,
@@ -278,7 +277,6 @@ public:
 
   Standard_DEPRECATED("Deprecated method, theIsColorMap parameter should be explicitly "
                       "specified")
-
   bool Init(const Handle(OpenGl_Context)& theCtx,
             const Image_PixMap&           theImage,
             const Graphic3d_TypeOfTexture theType)
@@ -288,7 +286,6 @@ public:
 
   Standard_DEPRECATED("Deprecated method, OpenGl_TextureFormat should be passed instead of "
                       "separate parameters")
-
   bool Init3D(const Handle(OpenGl_Context)& theCtx,
               const Standard_Integer        theTextFormat,
               const unsigned int            thePixelFormat,
index cf25d7b351b06f54b0e887f2654f3687d897932b..6e05dac5c4a17818f9337cc654b9dd2a33506ce5 100644 (file)
@@ -31,9 +31,9 @@ public:
     Handle(OpenGl_Texture) Texture;
     Graphic3d_TextureUnit  Unit;
 
-    operator const Handle(OpenGl_Texture) & () const { return Texture; }
+    operator const Handle(OpenGl_Texture)&() const { return Texture; }
 
-    operator Handle(OpenGl_Texture) & () { return Texture; }
+    operator Handle(OpenGl_Texture)&() { return Texture; }
 
     TextureSlot()
         : Unit(Graphic3d_TextureUnit_0)
index 0bfb8e6fa1852f11791510be2a1c5b575894c209..7c325dd72411babcac93a69f80f550b3706c54dc 100755 (executable)
@@ -308,7 +308,6 @@ public:
   //! @return true on success
   Standard_DEPRECATED("Deprecated method, Font_FTFontParams should be used for passing "
                       "parameters")
-
   bool Init(const NCollection_String& theFontPath,
             unsigned int              thePointSize,
             unsigned int              theResolution)
@@ -327,7 +326,6 @@ public:
   //! @return true on success
   Standard_DEPRECATED("Deprecated method, Font_FTFontParams should be used for passing "
                       "parameters")
-
   bool Init(const NCollection_String& theFontName,
             Font_FontAspect           theFontAspect,
             unsigned int              thePointSize,
index 3c61ecb2c1354fdeaa998be5a03ff3668310b701..0be56c2c6395203bc2ea492a403184913042ab20 100755 (executable)
@@ -162,7 +162,6 @@ public:
   Standard_EXPORT void Format();
 
   Standard_DEPRECATED("BottomLeft should be used instead")
-
   const NCollection_Vec2<Standard_ShortReal>& TopLeft(const Standard_Integer theIndex) const
   {
     return BottomLeft(theIndex);
index 1d0573586d3494498c79444ab1854f400486ce71..33a79a8a0d81d7486c40a1eb122252a8aec5b1cf 100644 (file)
@@ -57,7 +57,6 @@ public:
 
 public:
   Standard_DEPRECATED("Deprecated method, ToDrawEdges() should be used instead")
-
   bool Edge() const { return ToDrawEdges(); }
 };
 
index 0093853e42e03e70b5b8bcd73e6bcf18587dc1f6..85cc1ba0b71617a084e08e809ad8ca762bf6fa88 100644 (file)
@@ -548,7 +548,6 @@ public:
 
 public:
   Standard_DEPRECATED("Deprecated method, FaceCulling() should be used instead")
-
   bool ToSuppressBackFaces() const
   {
     return myFaceCulling == Graphic3d_TypeOfBackfacingModel_BackCulled
@@ -557,7 +556,6 @@ public:
 
   Standard_DEPRECATED("Deprecated method, SetFaceCulling() should be used "
                       "instead")
-
   void SetSuppressBackFaces(bool theToSuppress)
   {
     myFaceCulling = theToSuppress ? Graphic3d_TypeOfBackfacingModel_Auto
@@ -565,7 +563,6 @@ public:
   }
 
   Standard_DEPRECATED("Deprecated method, FaceCulling() should be used instead")
-
   bool BackFace() const
   {
     return myFaceCulling == Graphic3d_TypeOfBackfacingModel_BackCulled
@@ -573,11 +570,9 @@ public:
   }
 
   Standard_DEPRECATED("Deprecated method, SetFaceCulling() should be used instead")
-
   void AllowBackFace() { myFaceCulling = Graphic3d_TypeOfBackfacingModel_DoubleSided; }
 
   Standard_DEPRECATED("Deprecated method, SetFaceCulling() should be used instead")
-
   void SuppressBackFace() { myFaceCulling = Graphic3d_TypeOfBackfacingModel_Auto; }
 
 protected:
index f65f3ae0b98e5aa49abb68af2892ce7cf9fe291d..872b14d7df4e671e7d2d4688ed3e4b253b14b92b 100644 (file)
@@ -241,7 +241,6 @@ public:
   //! Deactivates the reflective properties of the surface with specified reflection type.
   Standard_DEPRECATED("Deprecated method, specific material component should be zerroed "
                       "instead")
-
   void SetReflectionModeOff(const Graphic3d_TypeOfReflection theType)
   {
     if (!ReflectionMode(theType))
index 2ae8fcbad14bc4bcf1372b43dc9027e6a7e650ca..5516579dd30a38fcc208a5eb8c4efa187972f742 100644 (file)
@@ -88,7 +88,6 @@ public:
 
   Standard_DEPRECATED("Deprecated since OCCT7.7, Graphic3d_DisplayPriority should be passed "
                       "instead of integer number to SetDisplayPriority()")
-
   void SetDisplayPriority(const Standard_Integer thePriority)
   {
     SetDisplayPriority((Graphic3d_DisplayPriority)thePriority);
@@ -328,7 +327,6 @@ public:
                                Standard_Boolean           theWithCheck = Standard_False);
 
   Standard_DEPRECATED("Deprecated short-cut")
-
   void Connect(const Handle(Graphic3d_Structure)& thePrs)
   {
     Connect(thePrs.get(), Graphic3d_TOC_DESCENDANT);
@@ -341,7 +339,6 @@ public:
   Standard_EXPORT void Disconnect(Graphic3d_Structure* theStructure);
 
   Standard_DEPRECATED("Deprecated alias for Disconnect()")
-
   void Remove(const Handle(Graphic3d_Structure)& thePrs) { Disconnect(thePrs.get()); }
 
   //! If Atype is TOC_DESCENDANT then suppress all
@@ -351,7 +348,6 @@ public:
   Standard_EXPORT void DisconnectAll(const Graphic3d_TypeOfConnection AType);
 
   Standard_DEPRECATED("Deprecated alias for DisconnectAll()")
-
   void RemoveAll() { DisconnectAll(Graphic3d_TOC_DESCENDANT); }
 
   //! Returns <ASet> the group of structures :
index 5581ef45b6eace5b38e2c4ab2cce6145c0623bc1..d6c44640bdefa7b161a1eda1e3794e0bd303a62a 100644 (file)
@@ -314,7 +314,6 @@ public: //! @name object presence management (View affinity, Layer, Priority)
 
   Standard_DEPRECATED("Deprecated since OCCT7.7, Graphic3d_DisplayPriority should be passed "
                       "instead of integer number to SetDisplayPriority()")
-
   void SetDisplayPriority(const Handle(AIS_InteractiveObject)& theIObj,
                           const Standard_Integer               thePriority)
   {
@@ -574,7 +573,6 @@ public: //! @name Selection management
   Standard_EXPORT Bnd_Box BoundingBoxOfSelection(const Handle(V3d_View)& theView) const;
 
   Standard_DEPRECATED("BoundingBoxOfSelection() should be called with View argument")
-
   Bnd_Box BoundingBoxOfSelection() const { return BoundingBoxOfSelection(Handle(V3d_View)()); }
 
   //! Sets list of owner selected/deselected using specified selection scheme.
@@ -1230,7 +1228,6 @@ public: //! @name iso-line display attributes
 public:
   Standard_DEPRECATED("Deprecated method Display() with obsolete argument "
                       "theToAllowDecomposition")
-
   void Display(const Handle(AIS_InteractiveObject)& theIObj,
                const Standard_Integer               theDispMode,
                const Standard_Integer               theSelectionMode,
@@ -1244,7 +1241,6 @@ public:
 
   Standard_DEPRECATED("Deprecated method Load() with obsolete last argument "
                       "theToAllowDecomposition")
-
   void Load(const Handle(AIS_InteractiveObject)& theObj,
             Standard_Integer                     theSelectionMode,
             Standard_Boolean)
@@ -1256,7 +1252,6 @@ public:
   //! On dynamic detection by the mouse cursor, sensitive primitives are highlighted.
   //! The highlight color of entities detected by mouse movement is white by default.
   Standard_DEPRECATED("Deprecated method Hilight()")
-
   void Hilight(const Handle(AIS_InteractiveObject)& theObj,
                const Standard_Boolean               theIsToUpdateViewer)
   {
@@ -1326,7 +1321,6 @@ public:
   //! selected in open local context, selected objects.
   Standard_DEPRECATED("Local Context is deprecated - local selection should be used without Local "
                       "Context")
-
   void SetCurrentObject(const Handle(AIS_InteractiveObject)& theIObj,
                         const Standard_Boolean               theToUpdateViewer)
   {
@@ -1339,7 +1333,6 @@ public:
   //! object, if 0 selection of the object is empty this method simply does nothing.
   Standard_DEPRECATED("Local Context is deprecated - local selection should be used without Local "
                       "Context")
-
   void AddOrRemoveCurrentObject(const Handle(AIS_InteractiveObject)& theObj,
                                 const Standard_Boolean               theIsToUpdateViewer)
   {
@@ -1351,7 +1344,6 @@ public:
   //! current objects; those selected in open local context, selected objects.
   Standard_DEPRECATED("Local Context is deprecated - local selection should be used without Local "
                       "Context")
-
   void UpdateCurrent() { UpdateSelected(Standard_True); }
 
   //! Returns true if there is a non-null interactive object in Neutral Point.
@@ -1370,7 +1362,6 @@ public:
   //! selected in open local context, selected objects.
   Standard_DEPRECATED("Local Context is deprecated - local selection should be used without Local "
                       "Context")
-
   void InitCurrent() { InitSelected(); }
 
   //! Returns true if there is another object found by the scan of the list of current objects.
@@ -1386,7 +1377,6 @@ public:
   //! selected in open local context, selected objects.
   Standard_DEPRECATED("Local Context is deprecated - local selection should be used without Local "
                       "Context")
-
   void NextCurrent() { NextSelected(); }
 
   //! Returns the current interactive object.
@@ -1407,7 +1397,6 @@ public:
   //! selected in open local context, selected objects.
   Standard_DEPRECATED("Local Context is deprecated - local selection should be used without Local "
                       "Context")
-
   void HilightCurrents(const Standard_Boolean theToUpdateViewer)
   {
     HilightSelected(theToUpdateViewer);
@@ -1418,7 +1407,6 @@ public:
   //! selected in open local context, selected objects.
   Standard_DEPRECATED("Local Context is deprecated - local selection should be used without Local "
                       "Context")
-
   void UnhilightCurrents(const Standard_Boolean theToUpdateViewer)
   {
     UnhilightSelected(theToUpdateViewer);
@@ -1429,7 +1417,6 @@ public:
   //! objects; those selected in open local context, selected objects.
   Standard_DEPRECATED("Local Context is deprecated - local selection should be used without Local "
                       "Context")
-
   void ClearCurrents(const Standard_Boolean theToUpdateViewer) { ClearSelected(theToUpdateViewer); }
 
   //! @return current mouse-detected shape or empty (null) shape, if current interactive object
index a548b4bc61508efee664bf7fd326f28c4491711d..ea4c0937a2fd3c85aa92e971ea430527ab1a8eb9 100644 (file)
@@ -883,23 +883,18 @@ public:
 
 public: //! @name deprecated methods
   Standard_DEPRECATED("SetDeviationAngle() should be used instead")
-
   void SetHLRAngle(const Standard_Real theAngle) { SetDeviationAngle(theAngle); }
 
   Standard_DEPRECATED("DeviationAngle() should be used instead")
-
   Standard_Real HLRAngle() const { return DeviationAngle(); }
 
   Standard_DEPRECATED("SetDeviationAngle() should be used instead")
-
   void SetHLRAngle() { SetDeviationAngle(); }
 
   Standard_DEPRECATED("HasOwnDeviationAngle() should be used instead")
-
   Standard_Boolean HasOwnHLRDeviationAngle() const { return HasOwnDeviationAngle(); }
 
   Standard_DEPRECATED("PreviousDeviationAngle() should be used instead")
-
   Standard_Real PreviousHLRDeviationAngle() const { return PreviousDeviationAngle(); }
 
 protected:
index 792f1c689098d91acf3bbd1b5a188fa8c07553c6..10b6e673681bd87611ffe315f8780263993abe04 100644 (file)
@@ -37,7 +37,6 @@ public:
   Standard_EXPORT ~PrsMgr_Presentation();
 
   Standard_DEPRECATED("Dummy to simplify porting - returns self")
-
   Prs3d_Presentation* Presentation() { return this; }
 
   //! returns the PresentationManager in which the presentation has been created.
index a1b93746c85baf22e4e8364ea44f47b9a73b24fc..691c121e401bc8fdfe0f4ed4f9dac6fb70d20af1 100644 (file)
@@ -36,7 +36,6 @@ public:
   //! owner theOwnerId, the circle theCircle, the boolean
   //! theIsFilled and the number of points theNbPnts.
   Standard_DEPRECATED("Deprecated constructor, theNbPnts parameter will be ignored")
-
   Select3D_SensitiveCircle(const Handle(SelectMgr_EntityOwner)& theOwnerId,
                            const gp_Circ&                       theCircle,
                            const Standard_Boolean               theIsFilled,
index 3c58dbfa617ea59b6ec6df351227350198dc763b..924b1d790d93af4c6b5377f9874854ccc70a39c2 100644 (file)
@@ -180,7 +180,6 @@ public:
 
 public:
   Standard_DEPRECATED("Deprecated alias for OverlapsBox()")
-
   Standard_Boolean Overlaps(const NCollection_Vec3<Standard_Real>& theBoxMin,
                             const NCollection_Vec3<Standard_Real>& theBoxMax,
                             SelectBasics_PickResult&               thePickResult) const
@@ -189,7 +188,6 @@ public:
   }
 
   Standard_DEPRECATED("Deprecated alias for OverlapsBox()")
-
   Standard_Boolean Overlaps(const NCollection_Vec3<Standard_Real>& theBoxMin,
                             const NCollection_Vec3<Standard_Real>& theBoxMax,
                             Standard_Boolean*                      theInside = NULL) const
@@ -198,14 +196,12 @@ public:
   }
 
   Standard_DEPRECATED("Deprecated alias for OverlapsPoint()")
-
   Standard_Boolean Overlaps(const gp_Pnt& thePnt, SelectBasics_PickResult& thePickResult) const
   {
     return OverlapsPoint(thePnt, thePickResult);
   }
 
   Standard_DEPRECATED("Deprecated alias for OverlapsPoint()")
-
   Standard_Boolean Overlaps(const gp_Pnt& thePnt) const { return OverlapsPoint(thePnt); }
 
   Standard_DEPRECATED("Deprecated alias for OverlapsPolygon()")
@@ -214,7 +210,6 @@ public:
                                             SelectBasics_PickResult&           thePickResult) const;
 
   Standard_DEPRECATED("Deprecated alias for OverlapsPolygon()")
-
   Standard_Boolean Overlaps(const TColgp_Array1OfPnt& theArrayOfPts,
                             Standard_Integer          theSensType,
                             SelectBasics_PickResult&  thePickResult) const
@@ -223,7 +218,6 @@ public:
   }
 
   Standard_DEPRECATED("Deprecated alias for OverlapsSegment()")
-
   Standard_Boolean Overlaps(const gp_Pnt&            thePnt1,
                             const gp_Pnt&            thePnt2,
                             SelectBasics_PickResult& thePickResult) const
@@ -232,7 +226,6 @@ public:
   }
 
   Standard_DEPRECATED("Deprecated alias for OverlapsTriangle()")
-
   Standard_Boolean Overlaps(const gp_Pnt&            thePnt1,
                             const gp_Pnt&            thePnt2,
                             const gp_Pnt&            thePnt3,
index dfd94e757ed2a5845c568ef22c127f8a9c5650e7..cfc33d8892c8f9df6d33ffbf203944ad12992bcd 100644 (file)
@@ -160,7 +160,6 @@ public:
 
   //! Returns selection state.
   Standard_DEPRECATED("Deprecated method - IsSelected() should be used instead")
-
   Standard_Integer State() const { return myIsSelected ? 1 : 0; }
 
   //! Set the state of the owner.
@@ -215,12 +214,10 @@ public:
 public:
   //! Sets the selectable object.
   Standard_DEPRECATED("Deprecated method - SetSelectable() should be used instead")
-
   void Set(const Handle(SelectMgr_SelectableObject)& theSelObj) { SetSelectable(theSelObj); }
 
   //! sets the selectable priority of the owner
   Standard_DEPRECATED("Deprecated method - SetPriority() should be used instead")
-
   void Set(const Standard_Integer thePriority) { SetPriority(thePriority); }
 
 protected:
index 3b65325efd31197ef437b808dba90e46ee390a19..367acccddff886d67c93a491c9a987e702838ee9 100644 (file)
@@ -1129,21 +1129,17 @@ public: //! @name deprecated methods
 
   //! initializes an iteration on the active Lights.
   Standard_DEPRECATED("Deprecated method - ActiveLights() should be used instead")
-
   void InitActiveLights() { myActiveLightsIterator.Initialize(myActiveLights); }
 
   //! returns true if there are more active Light(s) to return.
   Standard_DEPRECATED("Deprecated method - ActiveLights() should be used instead")
-
   Standard_Boolean MoreActiveLights() const { return myActiveLightsIterator.More(); }
 
   //! Go to the next active Light (if there is not, ActiveLight will raise an exception)
   Standard_DEPRECATED("Deprecated method - ActiveLights() should be used instead")
-
   void NextActiveLights() { myActiveLightsIterator.Next(); }
 
   Standard_DEPRECATED("Deprecated method - ActiveLights() should be used instead")
-
   const Handle(V3d_Light)& ActiveLight() const { return myActiveLightsIterator.Value(); }
 
 protected:
index 1cbadfb1c6939c36d3f4b4e6e5c973184603e461..8b946addee2447164195ff5edad596e026f6ba67 100644 (file)
@@ -453,22 +453,18 @@ public: //! @name grid management
 public: //! @name deprecated methods
   //! Returns Standard_True if a grid is activated in <me>.
   Standard_DEPRECATED("Deprecated method - IsGridActive() should be used instead")
-
   Standard_Boolean IsActive() { return IsGridActive(); }
 
   //! Initializes an internal iterator on the active views.
   Standard_DEPRECATED("Deprecated method - ActiveViews() should be used instead")
-
   void InitActiveViews() { myActiveViewsIterator.Initialize(myActiveViews); }
 
   //! Returns true if there are more active view(s) to return.
   Standard_DEPRECATED("Deprecated method - ActiveViews() should be used instead")
-
   Standard_Boolean MoreActiveViews() const { return myActiveViewsIterator.More(); }
 
   //! Go to the next active view (if there is not, ActiveView will raise an exception)
   Standard_DEPRECATED("Deprecated method - ActiveViews() should be used instead")
-
   void NextActiveViews()
   {
     if (!myActiveViews.IsEmpty())
@@ -476,22 +472,18 @@ public: //! @name deprecated methods
   }
 
   Standard_DEPRECATED("Deprecated method - ActiveViews() should be used instead")
-
   const Handle(V3d_View)& ActiveView() const { return myActiveViewsIterator.Value(); }
 
   //! Initializes an internal iterator on the Defined views.
   Standard_DEPRECATED("Deprecated method - DefinedViews() should be used instead")
-
   void InitDefinedViews() { myDefinedViewsIterator.Initialize(myDefinedViews); }
 
   //! returns true if there are more Defined view(s) to return.
   Standard_DEPRECATED("Deprecated method - DefinedViews() should be used instead")
-
   Standard_Boolean MoreDefinedViews() const { return myDefinedViewsIterator.More(); }
 
   //! Go to the next Defined view (if there is not, DefinedView will raise an exception)
   Standard_DEPRECATED("Deprecated method - DefinedViews() should be used instead")
-
   void NextDefinedViews()
   {
     if (!myDefinedViews.IsEmpty())
@@ -499,41 +491,33 @@ public: //! @name deprecated methods
   }
 
   Standard_DEPRECATED("Deprecated method - DefinedViews() should be used instead")
-
   const Handle(V3d_View)& DefinedView() const { return myDefinedViewsIterator.Value(); }
 
   //! Initializes an internal iteratator on the active Lights.
   Standard_DEPRECATED("Deprecated method - ActiveLights() should be used instead")
-
   void InitActiveLights() { myActiveLightsIterator.Initialize(myActiveLights); }
 
   //! returns true if there are more active Light(s) to return.
   Standard_DEPRECATED("Deprecated method - ActiveLights() should be used instead")
-
   Standard_Boolean MoreActiveLights() const { return myActiveLightsIterator.More(); }
 
   //! Go to the next active Light (if there is not, ActiveLight() will raise an exception)
   Standard_DEPRECATED("Deprecated method - ActiveLights() should be used instead")
-
   void NextActiveLights() { myActiveLightsIterator.Next(); }
 
   Standard_DEPRECATED("Deprecated method - ActiveLights() should be used instead")
-
   const Handle(V3d_Light)& ActiveLight() const { return myActiveLightsIterator.Value(); }
 
   //! Initializes an internal iterattor on the Defined Lights.
   Standard_DEPRECATED("Deprecated method - DefinedLights() should be used instead")
-
   void InitDefinedLights() { myDefinedLightsIterator.Initialize(myDefinedLights); }
 
   //! Returns true if there are more Defined Light(s) to return.
   Standard_DEPRECATED("Deprecated method - DefinedLights() should be used instead")
-
   Standard_Boolean MoreDefinedLights() const { return myDefinedLightsIterator.More(); }
 
   //! Go to the next Defined Light (if there is not, DefinedLight() will raise an exception)
   Standard_DEPRECATED("Deprecated method - DefinedLights() should be used instead")
-
   void NextDefinedLights()
   {
     if (!myDefinedLights.IsEmpty())
@@ -541,7 +525,6 @@ public: //! @name deprecated methods
   }
 
   Standard_DEPRECATED("Deprecated method - DefinedLights() should be used instead")
-
   const Handle(V3d_Light)& DefinedLight() const { return myDefinedLightsIterator.Value(); }
 
   //! Dumps the content of me into the stream