]> OCCT Git - occt.git/commitdiff
0032953: Coding - add missing references where applicable
authoraml <aml@opencascade.com>
Fri, 29 Apr 2022 12:21:24 +0000 (15:21 +0300)
committersmoskvin <smoskvin@opencascade.com>
Wed, 4 May 2022 18:08:16 +0000 (21:08 +0300)
39 files changed:
src/Adaptor3d/Adaptor3d_CurveOnSurface.cxx
src/Approx/Approx_SameParameter.cxx
src/BOPAlgo/BOPAlgo_PaveFiller.hxx
src/BOPAlgo/BOPAlgo_PaveFiller_6.cxx
src/BRepLib/BRepLib_FindSurface.cxx
src/BRepPrimAPI/BRepPrimAPI_MakeRevolution.cxx
src/BinTools/BinTools_ShapeSetBase.cxx
src/BinTools/BinTools_ShapeSetBase.hxx
src/Bnd/Bnd_Box.cxx
src/Bnd/Bnd_Box.hxx
src/BndLib/BndLib_AddSurface.cxx
src/ChFi3d/ChFi3d_Builder_C1.cxx
src/ChFi3d/ChFi3d_ChBuilder_C3.cxx
src/GeomTools/GeomTools_CurveSet.cxx
src/GeomTools/GeomTools_SurfaceSet.cxx
src/IntAna2d/IntAna2d_Outils.cxx
src/IntAna2d/IntAna2d_Outils.hxx
src/IntCurve/IntCurve_IntConicConic.cxx
src/ProjLib/ProjLib_Plane.cxx
src/ProjLib/ProjLib_Sphere.cxx
src/STEPCAFControl/STEPCAFControl_GDTProperty.cxx
src/STEPCAFControl/STEPCAFControl_GDTProperty.hxx
src/STEPCAFControl/STEPCAFControl_Writer.cxx
src/STEPCAFControl/STEPCAFControl_Writer.hxx
src/ShapeAnalysis/ShapeAnalysis_BoxBndTree.hxx
src/ShapeAnalysis/ShapeAnalysis_Curve.cxx
src/ShapeAnalysis/ShapeAnalysis_Wire.cxx
src/ShapeFix/ShapeFix.cxx
src/ShapeFix/ShapeFix_ComposeShell.cxx
src/TopOpeBRep/TopOpeBRep_FacesFiller.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_GridSS.cxx
src/ViewerTest/ViewerTest_ObjectCommands.cxx
src/XCAFDimTolObjects/XCAFDimTolObjects_DimensionObject.hxx
src/XCAFDimTolObjects/XCAFDimTolObjects_GeomToleranceObject.cxx
src/XCAFDimTolObjects/XCAFDimTolObjects_GeomToleranceObject.hxx
src/XCAFDoc/XCAFDoc_ClippingPlaneTool.cxx
src/XCAFDoc/XCAFDoc_ClippingPlaneTool.hxx
src/XCAFView/XCAFView_Object.hxx
src/XDEDRAW/XDEDRAW_Props.cxx

index 787af3564ec30352781014a0fa0203d857b1ac5b..9bf807c22778fff8e7f3c3e39ad670b4072211ef 100644 (file)
@@ -99,10 +99,10 @@ static gp_Parab to3d(const gp_Pln& Pl, const gp_Parab2d& P)
   return gp_Parab(to3d(Pl,P.Axis()),P.Focal());
 }
 
-static gp_Vec SetLinearForm(const gp_Vec2d DW, const gp_Vec2d D2W,const gp_Vec2d D3W,
-                           const gp_Vec D1U,  const gp_Vec D1V,  const gp_Vec D2U,
-                           const gp_Vec D2V,  const gp_Vec D2UV, const gp_Vec D3U,
-                           const gp_Vec D3V,  const gp_Vec D3UUV,const gp_Vec D3UVV)
+static gp_Vec SetLinearForm(const gp_Vec2d& DW,  const gp_Vec2d& D2W,  const gp_Vec2d& D3W,
+                            const gp_Vec&   D1U, const gp_Vec&   D1V,  const gp_Vec&   D2U,
+                            const gp_Vec&   D2V, const gp_Vec&   D2UV, const gp_Vec&   D3U,
+                            const gp_Vec&   D3V, const gp_Vec&   D3UUV,const gp_Vec&   D3UVV)
 {gp_Vec V31, V32, V33, V34,V3 ;
  V31.SetLinearForm(DW.X(),D1U,
                   D2W.X()*DW.X(),D2U,
index 3a13047f2cad1d96c2ff1698be828176ef8a9de0..a4e467e611082625b651f2d2bc2703476846f253 100644 (file)
@@ -108,7 +108,7 @@ void Approx_SameParameter_Evaluator::Evaluate (Standard_Integer *,/*Dimension*/
 //purpose  : 
 //=======================================================================
 static void ProjectPointOnCurve(const Standard_Real      InitValue,
-                                const gp_Pnt             APoint,
+                                const gp_Pnt&            APoint,
                                 const Standard_Real      Tolerance,
                                 const Standard_Integer   NumIteration,
                                 const Adaptor3d_Curve&   Curve,
index 431accaa9e293fd75d5d69d9a12e2925503cbad7..cd2275d994bf6b3c7c5e7c8b14869ca2aa060a64 100644 (file)
@@ -525,7 +525,7 @@ protected:
   Standard_EXPORT void UpdateEdgeTolerance(const Standard_Integer nE,
                                            const Standard_Real aTolNew);
 
-  Standard_EXPORT void RemovePaveBlocks(const TColStd_MapOfInteger theEdges);
+  Standard_EXPORT void RemovePaveBlocks(const TColStd_MapOfInteger& theEdges);
 
   Standard_EXPORT void CorrectToleranceOfSE();
 
index a1c7d2b0e51626c61668069157e761507e09f385..a4e454665d9e8b669996a0256582c697efc0b425 100644 (file)
@@ -3394,7 +3394,7 @@ void BOPAlgo_PaveFiller::UpdatePaveBlocks
 //function : RemovePaveBlocks
 //purpose  : 
 //=======================================================================
-void BOPAlgo_PaveFiller::RemovePaveBlocks(const TColStd_MapOfInteger theEdges)
+void BOPAlgo_PaveFiller::RemovePaveBlocks(const TColStd_MapOfInteger& theEdges)
 {
   // Remove all pave blocks referring to input edges:
   //
index 5b3cbf38b25a6d1efece75cfd97f3a34425f55e3..15ae27de86affe478f8fead62da429e2a0b814a2 100644 (file)
@@ -205,10 +205,10 @@ static void fillParams (const TColStd_Array1OfReal& theKnots,
   theParams.Append (theParMax);
 }
 
-static void fillPoints (const BRepAdaptor_Curve& theCurve,
-                        const NCollection_Vector<Standard_Real> theParams,
-                        TColgp_SequenceOfPnt& thePoints,
-                        TColStd_SequenceOfReal& theWeights)
+static void fillPoints (const BRepAdaptor_Curve&                 theCurve,
+                        const NCollection_Vector<Standard_Real>& theParams,
+                        TColgp_SequenceOfPnt&                    thePoints,
+                        TColStd_SequenceOfReal&                  theWeights)
 {
   Standard_Real aDistPrev = 0., aDistNext;
   gp_Pnt aPPrev (theCurve.Value (theParams (0))), aPNext;
index 5c5efecb45523b5eedd3eaf5834277cad6888fd4..b22ae54c3978c9f37e8a0c4bc29339e6774a96f6 100644 (file)
@@ -29,7 +29,7 @@
 //purpose  : 
 //=======================================================================
 static Handle(Geom2d_Curve) Project(const Handle(Geom_Curve)& M,
-                                   const gp_Ax3 Axis)
+                                    const gp_Ax3&             Axis)
 {
   Handle(Geom2d_Curve) C;
   C = GeomProjLib::Curve2d(M,new Geom_Plane(Axis));
index dcc9b4268d553281b28d3401f3d9a5b9cf7c30d0..048676076876aa9f32a1b2cd1171a25d3e2b7423 100644 (file)
@@ -28,7 +28,7 @@ const Standard_CString BinTools_ShapeSetBase::THE_ASCII_VERSIONS[BinTools_Format
 //function : operator << (gp_Pnt)
 //purpose  : 
 //=======================================================================
-Standard_OStream& operator << (Standard_OStream& OS, const gp_Pnt P)
+Standard_OStream& operator << (Standard_OStream& OS, const gp_Pnt& P)
 {
   BinTools::PutReal (OS, P.X());
   BinTools::PutReal (OS, P.Y());
index 551218a9b1c7805abc631d86abbd3676901a9fb6..9782195bbabf9a40afced191bac13f617d2a8887 100644 (file)
@@ -27,7 +27,7 @@ class TopoDS_Shape;
 class gp_Pnt;
 
 //! Writes to the stream a gp_Pnt data
-Standard_OStream& operator << (Standard_OStream& OS, const gp_Pnt P);
+Standard_OStream& operator << (Standard_OStream& OS, const gp_Pnt& P);
 
 //! Computes a hash code for the given value of the uint64_t type, in range [1, theUpperBound]
 inline Standard_Integer HashCode (const uint64_t theValue, const Standard_Integer theUpperBound)
index fb0c1495fa04955c5e6cbde0c4f745eb252d4522..eba846a5f54a6595e5804f133ec321c7d6ffee17 100644 (file)
@@ -46,7 +46,7 @@ Bnd_Box::Bnd_Box()
 //function : Bnd_Box
 //purpose  : 
 //=======================================================================
-Bnd_Box::Bnd_Box (const gp_Pnt theMin, const gp_Pnt theMax)
+Bnd_Box::Bnd_Box (const gp_Pnt& theMin, const gp_Pnt& theMax)
 : Gap (0.0)
 {
   SetVoid();
index 9080207e0f2f5f992a35a7a78d0920f92e587e2e..f9390cb87fbf1f8935369729b73991bd2d135836 100644 (file)
@@ -71,7 +71,7 @@ public:
   //! Creates a bounding box, it contains:
   //! -   minimum/maximum point of bounding box,
   //! The constructed box is qualified Void. Its gap is null.
-  Standard_EXPORT Bnd_Box (const gp_Pnt theMin, const gp_Pnt theMax);
+  Standard_EXPORT Bnd_Box (const gp_Pnt& theMin, const gp_Pnt& theMax);
 
   //! Sets this bounding box so that it covers the whole of 3D space.
   //! It is infinitely long in all directions.
index fa219167fbcd693cbd1f7877e3c30f2765dad505..b1ba162eac8164e91a94d180b479deb99b6da6ff 100644 (file)
@@ -798,7 +798,7 @@ public:
 private:
   SurfMaxMinCoord & operator = (const SurfMaxMinCoord & theOther);
 
-  Standard_Boolean CheckInputData(const math_Vector theParams)
+  Standard_Boolean CheckInputData(const math_Vector& theParams)
   {
     if (theParams(1) < myUMin || 
         theParams(1) > myUMax || 
index d4e48a4c909b384555bd8b637384c9be7c49f9f3..93f20646acb2c44ed29b68964d71f48d0a7c714f 100644 (file)
@@ -1502,12 +1502,12 @@ static Standard_Boolean  containE(const TopoDS_Face & F1,
 //           <tol> from <Param>, check points between <Pf> and <Pl>
 //=======================================================================
 
-static Standard_Boolean IsShrink(const Geom2dAdaptor_Curve PC,
-                                 const Standard_Real       Pf,
-                                 const Standard_Real       Pl,
-                                 const Standard_Real       Param,
-                                 const Standard_Boolean    isU,
-                                 const Standard_Real       tol)
+static Standard_Boolean IsShrink(const Geom2dAdaptor_Curve& PC,
+                                 const Standard_Real        Pf,
+                                 const Standard_Real        Pl,
+                                 const Standard_Real        Param,
+                                 const Standard_Boolean     isU,
+                                 const Standard_Real        tol)
 {
   switch (PC.GetType()) {
   case GeomAbs_Line: {
index 8167011f3062470331c795a45027e690ceeddea7..9bd677069d40870dff233f212efef2fe06e195c1 100644 (file)
 //           la distance de PntD par rapport au plan passant par les trois 
 //           points PntA, PntB, PntC
 //=======================================================================
-static Standard_Boolean CoPlanar(const gp_Pnt  PntA,
-                   const gp_Pnt  PntB,
-                   const gp_Pnt  PntC,
-                   const gp_Pnt  PntD)
+static Standard_Boolean CoPlanar(const gp_Pnt& PntA,
+                                 const gp_Pnt& PntB,
+                                 const gp_Pnt& PntC,
+                                 const gp_Pnt& PntD)
 {
   gp_Vec vecAB(PntA, PntB);
   gp_Vec vecAC(PntA, PntC);
index a6e8a3e8da2a9050b96d94866f0b3ca4095675d6..76f053cfb9b6ca13203d963a0eb4c4a17c1e5ac5 100644 (file)
@@ -114,9 +114,9 @@ Standard_Integer  GeomTools_CurveSet::Index
 //purpose  : 
 //=======================================================================
 
-static void Print(const gp_Pnt P,
-                 Standard_OStream& OS,
-                 const Standard_Boolean compact)
+static void Print(const gp_Pnt&          P,
+                  Standard_OStream&      OS,
+                  const Standard_Boolean compact)
 {
   OS << P.X();
   if (!compact) OS << ",";
@@ -133,9 +133,9 @@ static void Print(const gp_Pnt P,
 //purpose  : 
 //=======================================================================
 
-static void Print(const gp_Dir D,
-                 Standard_OStream& OS,
-                 const Standard_Boolean compact)
+static void Print(const gp_Dir&          D,
+                  Standard_OStream&      OS,
+                  const Standard_Boolean compact)
 {
   OS << D.X();
   if (!compact) OS << ",";
index 2dcc11cbd12ae7e98994132256988198583ac5a8..707cfde1d914b6a82aee69fcf89e7030c08cba30 100644 (file)
@@ -118,9 +118,9 @@ Standard_Integer  GeomTools_SurfaceSet::Index
 //purpose  : 
 //=======================================================================
 
-static void Print(const gp_Pnt P,
-                 Standard_OStream& OS,
-                 const Standard_Boolean compact)
+static void Print(const gp_Pnt&          P,
+                  Standard_OStream&      OS,
+                  const Standard_Boolean compact)
 {
   OS << P.X();
   if (!compact) OS << ",";
@@ -137,9 +137,9 @@ static void Print(const gp_Pnt P,
 //purpose  : 
 //=======================================================================
 
-static void Print(const gp_Dir D,
-                 Standard_OStream& OS,
-                 const Standard_Boolean compact)
+static void Print(const gp_Dir&          D,
+                  Standard_OStream&      OS,
+                  const Standard_Boolean compact)
 {
   OS << D.X();
   if (!compact) OS << ",";
index 8216bc3f3b40657cd047e899fae7d070aa77b948..d5b960ad247a5d256cea44db491c17d860bb2ca8 100644 (file)
@@ -267,7 +267,10 @@ void Traitement_Points_Confondus(Standard_Integer& nb_pts,
 }
 
 //-----------------------------------------------------------------------------
-void Coord_Ancien_Repere(Standard_Real& x1,Standard_Real& y1,const gp_Ax2d Dir1) {
+void Coord_Ancien_Repere(Standard_Real& x1,
+                         Standard_Real& y1,
+                         const gp_Ax2d& Dir1)
+{
   Standard_Real t11,t12,t21,t22,t13,t23;
   Standard_Real x0,y0;  
 
index 43ef3cef2d6893495a0e53415fc6dbf9d2ed6a17..6d11e2c0a7a78caec104973564f155813c444e0f 100644 (file)
@@ -55,8 +55,9 @@ Standard_Boolean Points_Confondus(const Standard_Real xa,const Standard_Real ya,
 void Traitement_Points_Confondus(Standard_Integer& nb_pts
                                 ,IntAna2d_IntPoint *pts);
 
-void Coord_Ancien_Repere(Standard_Real& Ancien_X,Standard_Real& Ancien_Y
-                        ,const gp_Ax2d Axe_Nouveau_Repere);
+void Coord_Ancien_Repere(Standard_Real& Ancien_X,
+                         Standard_Real& Ancien_Y,
+                         const gp_Ax2d& Axe_Nouveau_Repere);
 
 
 #endif
index 0d7ac3a7593ac0e5514654c96eb1b696eb8ce933..97796b007d0b2637356b0a83f4ee5e1122833ff1 100644 (file)
@@ -56,13 +56,13 @@ static inline Standard_Boolean BOUNDED_DOMAIN(const IntRes2d_Domain& domain)
   return (domain.HasFirstPoint() && domain.HasLastPoint());
 }
 
-static Standard_Boolean SET_BOUNDED_DOMAIN(const IntRes2d_Domain domain,
-                                          Standard_Real&        binf,
-                                          Standard_Real&        tolinf,
-                                          gp_Pnt2d&             Pntinf,
-                                          Standard_Real&        bsup,
-                                          Standard_Real&        tolsup,
-                                          gp_Pnt2d&             Pntsup)
+static Standard_Boolean SET_BOUNDED_DOMAIN(const IntRes2d_Domain& domain,
+                                           Standard_Real&         binf,
+                                           Standard_Real&         tolinf,
+                                           gp_Pnt2d&              Pntinf,
+                                           Standard_Real&         bsup,
+                                           Standard_Real&         tolsup,
+                                           gp_Pnt2d&              Pntsup)
 { 
   if(domain.HasFirstPoint()) { 
     if(binf<domain.FirstParameter()) {
index babc84e1448f0bd96a8ba23cdd7835fa07754405..f1a2ab87d7850523d6226fb623926dc2d9c40143 100644 (file)
@@ -124,7 +124,8 @@ void  ProjLib_Plane::Init(const gp_Pln& Pl)
 //           of myPlane.
 //=======================================================================
 
-static gp_Pnt2d EvalPnt2d( const gp_Pnt P, const gp_Pln& Pl)
+static gp_Pnt2d EvalPnt2d(const gp_Pnt& P,
+                          const gp_Pln& Pl)
 {
   gp_Vec OP( Pl.Location(),P);
   return gp_Pnt2d( OP.Dot(gp_Vec(Pl.Position().XDirection())),
index 1b5ba538168604d4fa658570d4540fd54f87f144..9b04d754070ff80f12d500083813f5cb451964bb 100644 (file)
@@ -91,7 +91,8 @@ void  ProjLib_Sphere::Init(const gp_Sphere& Sp)
 //                \ Z = sinV             V = ASin( Z)
 //=======================================================================
 
-static gp_Pnt2d EvalPnt2d( const gp_Vec P, const gp_Sphere& Sp)
+static gp_Pnt2d EvalPnt2d(const gp_Vec&    P,
+                          const gp_Sphere& Sp)
 {
   Standard_Real X = P.Dot(gp_Vec(Sp.Position().XDirection()));
   Standard_Real Y = P.Dot(gp_Vec(Sp.Position().YDirection()));
index 6800a448a5c34400900d29077c2b2f4a9d7e4711..2287cee59a881d714c4f2025c557d3357b35f120 100644 (file)
@@ -1165,8 +1165,8 @@ StepDimTol_GeometricToleranceModifier STEPCAFControl_GDTProperty::
 //purpose  : Note: this function does not add anything to model
 //=======================================================================
 Handle(StepDimTol_HArray1OfDatumReferenceModifier) STEPCAFControl_GDTProperty::
-  GetDatumRefModifiers(const XCAFDimTolObjects_DatumModifiersSequence theModifiers,
-                       const XCAFDimTolObjects_DatumModifWithValue theModifWithVal,
+  GetDatumRefModifiers(const XCAFDimTolObjects_DatumModifiersSequence& theModifiers,
+                       const XCAFDimTolObjects_DatumModifWithValue& theModifWithVal,
                        const Standard_Real theValue,
                        const StepBasic_Unit theUnit)
 {
index 985e311eec949b41ac402a18dc66732487b329f3..cb05d846fd23320c7b0846d22c7ddabdd79eeb7f 100644 (file)
@@ -100,8 +100,8 @@ public:
 
   Standard_EXPORT static StepDimTol_GeometricToleranceModifier GetGeomToleranceModifier(const XCAFDimTolObjects_GeomToleranceModif theModifier);
 
-  Standard_EXPORT static Handle(StepDimTol_HArray1OfDatumReferenceModifier) GetDatumRefModifiers(const XCAFDimTolObjects_DatumModifiersSequence theModifiers,
-                                                                                                 const XCAFDimTolObjects_DatumModifWithValue theModifWithVal,
+  Standard_EXPORT static Handle(StepDimTol_HArray1OfDatumReferenceModifier) GetDatumRefModifiers(const XCAFDimTolObjects_DatumModifiersSequence& theModifiers,
+                                                                                                 const XCAFDimTolObjects_DatumModifWithValue& theModifWithVal,
                                                                                                  const Standard_Real theValue,
                                                                                                  const StepBasic_Unit theUnit);
 
index aadce19df2e8a9850624baf7d15bdbb735f94ea4..cf5b51d1499a90a58f65800cc82f048f302cda22 100644 (file)
@@ -2442,13 +2442,13 @@ Handle(StepRepr_ShapeAspect) STEPCAFControl_Writer::WriteShapeAspect (const Hand
 //function : WritePresentation
 //purpose  : auxiliary (write annotation plane and presentation)
 //======================================================================
-void STEPCAFControl_Writer::WritePresentation(const Handle(XSControl_WorkSession) &WS,
-                                              const TopoDS_Shape thePresentation,
+void STEPCAFControl_Writer::WritePresentation(const Handle(XSControl_WorkSession)WS,
+                                              const TopoDS_Shape& thePresentation,
                                               const Handle(TCollection_HAsciiString)& thePrsName,
                                               const Standard_Boolean hasSemantic,
                                               const Standard_Boolean hasPlane,
-                                              const gp_Ax2 theAnnotationPlane,
-                                              const gp_Pnt theTextPosition,
+                                              const gp_Ax2& theAnnotationPlane,
+                                              const gp_Pnt& theTextPosition,
                                               const Handle(Standard_Transient) theDimension)
 {
   if (thePresentation.IsNull())
@@ -2528,9 +2528,9 @@ void STEPCAFControl_Writer::WritePresentation(const Handle(XSControl_WorkSession
 //           necessary entities and link them to already written datum 
 //           in case of multiple features association)
 //=======================================================================
-Handle(StepDimTol_Datum) STEPCAFControl_Writer::WriteDatumAP242(const Handle(XSControl_WorkSession) &WS,
-                                                                const TDF_LabelSequence theShapeL,
-                                                                const TDF_Label theDatumL,
+Handle(StepDimTol_Datum) STEPCAFControl_Writer::WriteDatumAP242(const Handle(XSControl_WorkSession)WS,
+                                                                const TDF_LabelSequence& theShapeL,
+                                                                const TDF_Label& theDatumL,
                                                                 const Standard_Boolean isFirstDTarget,
                                                                 const Handle(StepDimTol_Datum) theWrittenDatum)
 {
@@ -3252,8 +3252,8 @@ void STEPCAFControl_Writer::WriteToleranceZone (const Handle(XSControl_WorkSessi
 //           label and datum system)
 //======================================================================
 void STEPCAFControl_Writer::WriteGeomTolerance (const Handle(XSControl_WorkSession) &WS,
-                                                const TDF_LabelSequence theShapeSeqL,
-                                                const TDF_Label theGeomTolL,
+                                                const TDF_LabelSequence& theShapeSeqL,
+                                                const TDF_Label& theGeomTolL,
                                                 const Handle(StepDimTol_HArray1OfDatumSystemOrReference)& theDatumSystem,
                                                 const Handle(StepRepr_RepresentationContext)& theRC)
 {
index b021e05af1bb2b62316cb420876bc22d059c4f3a..30ebc1179ae99c770edac1f17dec3a423b26c269 100644 (file)
@@ -224,19 +224,29 @@ private:
     const TDF_Label theLabel, const TopoDS_Shape theShape, Handle(StepRepr_RepresentationContext)& theRC,
     Handle(StepAP242_GeometricItemSpecificUsage)& theGISU);
 
-  Standard_EXPORT void WritePresentation(const Handle(XSControl_WorkSession) &WS, const TopoDS_Shape thePresentation,
-    const Handle(TCollection_HAsciiString)& thePrsName, const Standard_Boolean hasSemantic, const Standard_Boolean hasPlane,
-    const gp_Ax2 theAnnotationPlane, const gp_Pnt theTextPosition, const Handle(Standard_Transient) theDimension);
+  Standard_EXPORT void WritePresentation(const Handle(XSControl_WorkSession)&    WS,
+                                         const TopoDS_Shape&                     thePresentation,
+                                         const Handle(TCollection_HAsciiString)& thePrsName,
+                                         const Standard_Boolean                  hasSemantic,
+                                         const Standard_Boolean                  hasPlane,
+                                         const gp_Ax2&                           theAnnotationPlane,
+                                         const gp_Pnt&                           theTextPosition,
+                                         const Handle(Standard_Transient)        theDimension);
 
-  Standard_EXPORT Handle(StepDimTol_Datum) WriteDatumAP242(const Handle(XSControl_WorkSession) &WS, const TDF_LabelSequence theShapeL,
-    const TDF_Label theDatumL, const Standard_Boolean isFirstDTarget, const Handle(StepDimTol_Datum) theWrittenDatum);
+  Standard_EXPORT Handle(StepDimTol_Datum) WriteDatumAP242(const Handle(XSControl_WorkSession)& WS,
+                                                           const TDF_LabelSequence&             theShapeL,
+                                                           const TDF_Label&                     theDatumL,
+                                                           const Standard_Boolean               isFirstDTarget,
+                                                           const Handle(StepDimTol_Datum)       theWrittenDatum);
 
   Standard_EXPORT void WriteToleranceZone(const Handle(XSControl_WorkSession) &WS, const Handle(XCAFDimTolObjects_GeomToleranceObject)& theObject,
     const Handle(StepDimTol_GeometricTolerance)& theEntity, const Handle(StepRepr_RepresentationContext)& theRC);
 
-  Standard_EXPORT void WriteGeomTolerance(const Handle(XSControl_WorkSession) &WS, const TDF_LabelSequence theShapeSeqL,
-    const TDF_Label theGeomTolL, const Handle(StepDimTol_HArray1OfDatumSystemOrReference)& theDatumSystem,
-    const Handle(StepRepr_RepresentationContext)& theRC);
+  Standard_EXPORT void WriteGeomTolerance(const Handle(XSControl_WorkSession)&                      WS,
+                                          const TDF_LabelSequence&                                  theShapeSeqL,
+                                          const TDF_Label&                                          theGeomTolL,
+                                          const Handle(StepDimTol_HArray1OfDatumSystemOrReference)& theDatumSystem,
+                                          const Handle(StepRepr_RepresentationContext)&             theRC);
 
 private:
 
index 4ae43731fbe9b85103f6d0345fe676a459897a35..a59cfa7ff4a460fc84dd619f3d8068f699c65d5c 100644 (file)
@@ -56,7 +56,7 @@ class ShapeAnalysis_BoxBndTreeSelector
        myStatus=ShapeExtend::EncodeStatus (ShapeExtend_OK);
     }
     
-  void DefinePnt (gp_Pnt theFPnt, gp_Pnt theLPnt)
+  void DefinePnt (const gp_Pnt& theFPnt, const gp_Pnt& theLPnt)
     { myFPnt = theFPnt;
       myLPnt = theLPnt; 
        myStatus =ShapeExtend::EncodeStatus (ShapeExtend_OK);
index 9813fb2b7c7fe3c03d44e029004fbeb434cbf28b..26ae1e828662d6198e36c71af995864d47488736 100644 (file)
@@ -795,7 +795,7 @@ Standard_Integer ShapeAnalysis_Curve::SelectForwardSeam(const Handle(Geom2d_Curv
 // IsPlanar
 //=============================================================================
 
-static gp_XYZ GetAnyNormal ( gp_XYZ orig )
+static gp_XYZ GetAnyNormal (const gp_XYZ& orig)
 {
   gp_XYZ Norm;
   if ( Abs ( orig.Z() ) < Precision::Confusion() )
index 2500521779d7e1ca4bbfa7e4340a4ffb38d18b56..d7fc1edba239f4198cd948386197709247b6eaa7 100644 (file)
@@ -1572,12 +1572,12 @@ Standard_Boolean ShapeAnalysis_Wire::CheckLacking (const Standard_Integer num,
 //purpose  : 
 //=======================================================================
 
-static Standard_Real ProjectInside(const Adaptor3d_CurveOnSurface AD,
-                                  const gp_Pnt pnt,
-                                  const Standard_Real preci,
-                                  gp_Pnt& proj,
-                                  Standard_Real& param,
-                                  const Standard_Boolean adjustToEnds = Standard_True)
+static Standard_Real ProjectInside(const Adaptor3d_CurveOnSurface& AD,
+                                   const gp_Pnt&                   pnt,
+                                   const Standard_Real             preci,
+                                   gp_Pnt&                         proj,
+                                   Standard_Real&                  param,
+                                   const Standard_Boolean          adjustToEnds = Standard_True)
 {
   ShapeAnalysis_Curve sac;
   Standard_Real dist = sac.Project(AD,pnt,preci,proj,param,adjustToEnds);
index cb1485254830a9101a24b8303fbe59c03393f34e..2edf3bee3240513ce1f5397eff85683231fa789d 100644 (file)
@@ -299,8 +299,8 @@ TopoDS_Shape ShapeFix::RemoveSmallEdges (TopoDS_Shape& Shape,
 //function : ReplaceVertex
 //purpose  : auxiliary for FixVertexPosition
 //=======================================================================
-static TopoDS_Edge ReplaceVertex(const TopoDS_Edge& theEdge,
-                                 const gp_Pnt theP,
+static TopoDS_Edge ReplaceVertex(const TopoDS_Edge&     theEdge,
+                                 const gp_Pnt&          theP,
                                  const Standard_Boolean theFwd)
 {
   TopoDS_Vertex aNewVertex;
index 7feb87e3d35fb129364cbdc5dbaf6e34f94a5d07..c518101b8d88a21ac2c5047f06e740b97ecb2c20 100644 (file)
@@ -1978,14 +1978,14 @@ static Standard_Integer IsShortSegment (const ShapeFix_WireSegment &seg,
 //function : IsSamePatch
 //purpose  : auxiliary
 //=======================================================================
-static Standard_Boolean IsSamePatch (const ShapeFix_WireSegment wire,
-                                     const Standard_Integer NU,
-                                     const Standard_Integer NV,
-                                     Standard_Integer &iumin,
-                                     Standard_Integer &iumax,
-                                     Standard_Integer &ivmin,
-                                     Standard_Integer &ivmax,
-                                     const Standard_Boolean extend=Standard_False)
+static Standard_Boolean IsSamePatch (const ShapeFix_WireSegment& wire,
+                                     const Standard_Integer      NU,
+                                     const Standard_Integer      NV,
+                                     Standard_Integer&           iumin,
+                                     Standard_Integer&           iumax,
+                                     Standard_Integer&           ivmin,
+                                     Standard_Integer&           ivmax,
+                                     const Standard_Boolean      extend=Standard_False)
 {
   // get patch indices for current segment
   Standard_Integer jumin, jumax, jvmin, jvmax;
@@ -2333,8 +2333,8 @@ void ShapeFix_ComposeShell::CollectWires (ShapeFix_SequenceOfWireSegment &wires,
 //purpose  : 
 //=======================================================================
 
-static gp_Pnt2d GetMiddlePoint (const ShapeFix_WireSegment wire,
-                                const TopoDS_Face face)
+static gp_Pnt2d GetMiddlePoint (const ShapeFix_WireSegment& wire,
+                                const TopoDS_Face&          face)
 {
   if(wire.IsVertex()) {
     TopoDS_Vertex aV = wire.GetVertex();
index 340de14e9e7a4d1f14ac823fb68764ab8836ee84..ac4cd524f46b5fd136407d79845bd0e7b5710b54 100644 (file)
@@ -49,7 +49,7 @@
 #include <TopOpeBRepTool_SC.hxx>
 
 //#include <BRepAdaptor_Curve2d.hxx>
-Standard_EXPORT Standard_Boolean FUN_projPonL(const gp_Pnt& P,const TopOpeBRep_LineInter L,const TopOpeBRep_FacesFiller& FF,
+Standard_EXPORT Standard_Boolean FUN_projPonL(const gp_Pnt& P,const TopOpeBRep_LineInter& L,const TopOpeBRep_FacesFiller& FF,
                                 Standard_Real& paramL)
 {
   Standard_Boolean paramLdef = Standard_False;
index 5442620774c8dfe3af8ffc6747a9497dcdab9f33..315117e45cd784045af4e0f7f79f2206dc6389d3 100644 (file)
@@ -99,7 +99,7 @@ Standard_EXPORT void TopOpeBRepDS_SetThePCurve
 //(const TopoDS_Face& fF,const TopoDS_Edge& E,Standard_Real& splitpar);
 
 //---------------------------------------------
-static Standard_Integer FUN_getG(const gp_Pnt P,const TopOpeBRepDS_ListOfInterference& LI,const Handle(TopOpeBRepDS_HDataStructure) HDS,Standard_Integer& iEinterf)
+static Standard_Integer FUN_getG(const gp_Pnt& P,const TopOpeBRepDS_ListOfInterference& LI,const Handle(TopOpeBRepDS_HDataStructure) HDS,Standard_Integer& iEinterf)
 //---------------------------------------------
 {
   TopOpeBRepDS_ListIteratorOfListOfInterference ILI(LI);
index 63c000d5a9ed1711b60608e8b6e9801558391918..d2f9763539fb7f31f7f5b983c9cb7baa13f1e15a 100644 (file)
@@ -1965,7 +1965,7 @@ public:
   // CASCADE RTTI
   DEFINE_STANDARD_RTTI_INLINE(FilledCircle, AIS_InteractiveObject);
 
-  FilledCircle (gp_Pnt theCenter, Standard_Real theRadius);
+  FilledCircle (const gp_Pnt& theCenter, Standard_Real theRadius);
   FilledCircle (Handle(Geom_Circle) theCircle);
 
 private:
@@ -1987,7 +1987,7 @@ protected:
 }; 
 
 
-FilledCircle::FilledCircle(gp_Pnt theCenter, Standard_Real theRadius) 
+FilledCircle::FilledCircle(const gp_Pnt& theCenter, Standard_Real theRadius) 
 {
   myCircle = CreateCircle(theCenter, theRadius);
   myFilledStatus = Standard_True;
index e9783f7b0533f15a21146c967c267b32ebfad58d..cccfdc3bc48426a675403162d708ebcdcf01ebb1 100644 (file)
@@ -222,13 +222,13 @@ public:
 
   //! Set connection point (for dimesional_size),
   //! Set connection point for the first shape (for dimensional_location).
-  void SetPoint(const gp_Pnt thePnt) {
+  void SetPoint(const gp_Pnt& thePnt) {
     myPnt1 = thePnt;
     myHasPoint1 = Standard_True;
   }
 
   // Set connection point for the second shape (for dimensional_location only).
-  void SetPoint2(const gp_Pnt thePnt) {
+  void SetPoint2(const gp_Pnt& thePnt) {
     myPnt2 = thePnt;
     myHasPoint2 = Standard_True;
   }
index 14d7207cf3640a2596d2bd594c65722039646526..c405b343d73474bdd142ed9fb8d6a8181662e8b0 100644 (file)
@@ -254,7 +254,7 @@ Standard_Real XCAFDimTolObjects_GeomToleranceObject::GetMaxValueModifier()  cons
 //purpose  : 
 //=======================================================================
 
-void XCAFDimTolObjects_GeomToleranceObject::SetAxis (const gp_Ax2 theAxis) 
+void XCAFDimTolObjects_GeomToleranceObject::SetAxis(const gp_Ax2& theAxis)
 {
   myAxis = theAxis;
   myHasAxis = Standard_True;
index 8bb6e1effa12d320afa2ae1727d751b420083f04..15e746518c4e38d63a6941ccb147a6614c1add60 100644 (file)
@@ -105,7 +105,7 @@ public:
   //! Returns the maximal upper tolerance.
   Standard_EXPORT Standard_Real GetMaxValueModifier() const;
 
-  Standard_EXPORT void SetAxis (const gp_Ax2 theAxis);
+  Standard_EXPORT void SetAxis (const gp_Ax2& theAxis);
   
   Standard_EXPORT gp_Ax2 GetAxis() const;
    
index 7d009481de919808ebf0ad4f178afe8fa4612d6e..e0a23ed09faa660a4fae78142a639453789a0da0 100644 (file)
@@ -100,7 +100,7 @@ Standard_Boolean XCAFDoc_ClippingPlaneTool::GetClippingPlane(const TDF_Label& th
 //purpose  : 
 //=======================================================================
 
-TDF_Label XCAFDoc_ClippingPlaneTool::AddClippingPlane(const gp_Pln thePlane, const TCollection_ExtendedString theName) const
+TDF_Label XCAFDoc_ClippingPlaneTool::AddClippingPlane(const gp_Pln& thePlane, const TCollection_ExtendedString theName) const
 {
   TDF_Label aLabel;
   TDF_LabelSequence aClippingPlanes;
@@ -137,7 +137,7 @@ TDF_Label XCAFDoc_ClippingPlaneTool::AddClippingPlane(const gp_Pln thePlane, con
 //purpose  : 
 //=======================================================================
 
-TDF_Label XCAFDoc_ClippingPlaneTool::AddClippingPlane(const gp_Pln thePlane, const Handle(TCollection_HAsciiString)& theName) const
+TDF_Label XCAFDoc_ClippingPlaneTool::AddClippingPlane(const gp_Pln& thePlane, const Handle(TCollection_HAsciiString)& theName) const
 {
   TCollection_ExtendedString anExtName = TCollection_ExtendedString(theName->String());
   return AddClippingPlane(thePlane, anExtName);
@@ -149,7 +149,7 @@ TDF_Label XCAFDoc_ClippingPlaneTool::AddClippingPlane(const gp_Pln thePlane, con
 //purpose  : 
 //=======================================================================
 
-TDF_Label XCAFDoc_ClippingPlaneTool::AddClippingPlane(const gp_Pln thePlane, const TCollection_ExtendedString theName, const Standard_Boolean theCapping) const
+TDF_Label XCAFDoc_ClippingPlaneTool::AddClippingPlane(const gp_Pln& thePlane, const TCollection_ExtendedString theName, const Standard_Boolean theCapping) const
 {
   TDF_Label aLabel = AddClippingPlane(thePlane, theName);
   Standard_Integer aCappingVal = (theCapping) ? 1 : 0;
@@ -163,7 +163,7 @@ TDF_Label XCAFDoc_ClippingPlaneTool::AddClippingPlane(const gp_Pln thePlane, con
 //purpose  : 
 //=======================================================================
 
-TDF_Label XCAFDoc_ClippingPlaneTool::AddClippingPlane(const gp_Pln thePlane, const Handle(TCollection_HAsciiString)& theName, const Standard_Boolean theCapping) const
+TDF_Label XCAFDoc_ClippingPlaneTool::AddClippingPlane(const gp_Pln& thePlane, const Handle(TCollection_HAsciiString)& theName, const Standard_Boolean theCapping) const
 {
   TCollection_ExtendedString anExtName = TCollection_ExtendedString(theName->String());
   return AddClippingPlane(thePlane, anExtName, theCapping);
@@ -206,7 +206,7 @@ void XCAFDoc_ClippingPlaneTool::GetClippingPlanes(TDF_LabelSequence& theLabels)
 //=======================================================================
 
 void XCAFDoc_ClippingPlaneTool::UpdateClippingPlane(const TDF_Label& theLabel,
-  const gp_Pln thePlane, const TCollection_ExtendedString theName) const
+  const gp_Pln& thePlane, const TCollection_ExtendedString theName) const
 {
   if (theLabel.Father() != Label())
     return;
index c4d19dfe884b86ff48c936d7afe8522b3630d952..980fec6346d55e5c7d79ed65d2037230119bdb2b 100644 (file)
@@ -60,22 +60,22 @@ public:
   //! Adds a clipping plane definition to a ClippingPlane table and returns
   //! its label (returns existing label if the same clipping plane
   //! is already defined)
-  Standard_EXPORT TDF_Label AddClippingPlane(const gp_Pln thePlane, const TCollection_ExtendedString theName, const Standard_Boolean theCapping) const;
+  Standard_EXPORT TDF_Label AddClippingPlane(const gp_Pln& thePlane, const TCollection_ExtendedString theName, const Standard_Boolean theCapping) const;
 
   //! Adds a clipping plane definition to a ClippingPlane table and returns
   //! its label (returns existing label if the same clipping plane
   //! is already defined)
-  Standard_EXPORT TDF_Label AddClippingPlane(const gp_Pln thePlane, const Handle(TCollection_HAsciiString)& theName, const Standard_Boolean theCapping) const;
+  Standard_EXPORT TDF_Label AddClippingPlane(const gp_Pln& thePlane, const Handle(TCollection_HAsciiString)& theName, const Standard_Boolean theCapping) const;
 
   //! Adds a clipping plane definition to a ClippingPlane table and returns
   //! its label (returns existing label if the same clipping plane
   //! is already defined)
-  Standard_EXPORT TDF_Label AddClippingPlane(const gp_Pln thePlane, const TCollection_ExtendedString theName) const;
+  Standard_EXPORT TDF_Label AddClippingPlane(const gp_Pln& thePlane, const TCollection_ExtendedString theName) const;
 
   //! Adds a clipping plane definition to a ClippingPlane table and returns
   //! its label (returns existing label if the same clipping plane
   //! is already defined)
-  Standard_EXPORT TDF_Label AddClippingPlane(const gp_Pln thePlane, const Handle(TCollection_HAsciiString)& theName) const;
+  Standard_EXPORT TDF_Label AddClippingPlane(const gp_Pln& thePlane, const Handle(TCollection_HAsciiString)& theName) const;
   
   //! Removes clipping plane from the ClippingPlane table
   //! Return false and do nothing if clipping plane is referenced in at least one View
@@ -87,7 +87,7 @@ public:
   
   //! Sets new value of plane and name to the given clipping plane label
   //! or do nothing, if the given label is not a clipping plane label
-  Standard_EXPORT void UpdateClippingPlane(const TDF_Label& theLabelL, const gp_Pln thePlane, const TCollection_ExtendedString theName) const;
+  Standard_EXPORT void UpdateClippingPlane(const TDF_Label& theLabelL, const gp_Pln& thePlane, const TCollection_ExtendedString theName) const;
 
   //! Set new value of capping for given clipping plane label
   Standard_EXPORT void SetCapping(const TDF_Label& theClippingPlaneL, const Standard_Boolean theCapping);
index 5085da4f873a093d6c1fc4a025ea77db4d025cd0..5a94e918840cd43d64b9884639750e1cf5e396ff 100644 (file)
@@ -60,7 +60,7 @@ public:
     return myType;
   }
 
-  void SetProjectionPoint(gp_Pnt thePoint)
+  void SetProjectionPoint(const gp_Pnt& thePoint)
   {
     myProjectionPoint = thePoint;
   }
@@ -70,7 +70,7 @@ public:
     return myProjectionPoint;
   }
 
-  void SetViewDirection(gp_Dir theDirection)
+  void SetViewDirection(const gp_Dir& theDirection)
   {
     myViewDirection = theDirection;
   }
@@ -80,7 +80,7 @@ public:
     return myViewDirection;
   }
 
-  void SetUpDirection(gp_Dir theDirection)
+  void SetUpDirection(const gp_Dir& theDirection)
   {
     myUpDirection = theDirection;
   }
@@ -200,7 +200,7 @@ public:
     return myGDTPoints->Length();
   }
 
-  void SetGDTPoint(const Standard_Integer theIndex, const gp_Pnt thePoint)
+  void SetGDTPoint(const Standard_Integer theIndex, const gp_Pnt& thePoint)
   {
     if (myGDTPoints.IsNull())
       return;
index f8d674d141f1ba7c1f1d07082fcdcdee69d30ddf..3e87e312b1c50eae15ba2338cd588d15caba2655 100644 (file)
@@ -101,7 +101,10 @@ static double TetraVol(gp_Pnt RefPoint, gp_Pnt Som1, gp_Pnt Som2, gp_Pnt Som3)
 //function : TetraCen
 //purpose  : auxiliary
 //=======================================================================
-static gp_XYZ TetraCen(gp_Pnt RefPoint, gp_Pnt Som1, gp_Pnt Som2, gp_Pnt Som3)
+static gp_XYZ TetraCen(const gp_Pnt& RefPoint,
+                       const gp_Pnt& Som1,
+                       const gp_Pnt& Som2,
+                       const gp_Pnt& Som3)
 {
   gp_XYZ curCentr, plnPnt;
   plnPnt = ( Som1.XYZ() + Som2.XYZ() + Som3.XYZ() )/3;