1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0024830: Remove redundant keyword 'mutable' in CDL declarations

Redundant keyword 'mutable' removed in CDL files.
In IGESConvGeom_GeomBuilder, unused methods MakeXY() and MakeXYZ() removed.
Method StepAP214_AutoDesignGroupAssignment::Init() replicating same method of the base class is removed as it causes CDL extraction error after above (seemingly irrelevant) changes.
This commit is contained in:
abv
2014-04-15 08:50:00 +04:00
committed by apn
parent 99c68ea35f
commit 6e33d3ced2
2421 changed files with 6557 additions and 6604 deletions

View File

@@ -33,7 +33,7 @@ is
SplineCurveFromIGES
(igesent : SplineCurve from IGESGeom;
epscoef, epsgeom : Real;
result : out mutable BSplineCurve from Geom)
result : out BSplineCurve from Geom)
returns Integer;
---Purpose : Converts a SplineCurve from IGES to a BSplineCurve from CasCade
-- <epscoef> gives tolerance to consider coefficient to be nul
@@ -49,7 +49,7 @@ is
-- - 5 less than one segment (no result produced)
IncreaseCurveContinuity
(curve : mutable BSplineCurve from Geom;
(curve : BSplineCurve from Geom;
epsgeom : Real;
continuity : Integer = 2) returns Integer;
---Purpose : Tries to increase curve continuity with tolerance <epsgeom>
@@ -60,14 +60,14 @@ is
-- all the knots can be passed to C2, all knots which can be are.
IncreaseCurveContinuity
(curve : mutable BSplineCurve from Geom2d;
(curve : BSplineCurve from Geom2d;
epsgeom : Real;
continuity : Integer = 2) returns Integer;
SplineSurfaceFromIGES
(igesent : SplineSurface from IGESGeom;
epscoef, epsgeom : Real;
result : out mutable BSplineSurface from Geom)
result : out BSplineSurface from Geom)
returns Integer;
---Purpose : Converts a SplineSurface from IGES to a BSplineSurface from CasCade
-- <epscoef> gives tolerance to consider coefficient to be nul
@@ -83,7 +83,7 @@ is
-- - 5 less than one segment in U or V (no result produced)
IncreaseSurfaceContinuity
(surface : mutable BSplineSurface from Geom;
(surface : BSplineSurface from Geom;
epsgeom : Real;
continuity : Integer = 2) returns Integer;
---Purpose : Tries to increase Surface continuity with tolerance <epsgeom>

View File

@@ -23,7 +23,7 @@ class GeomBuilder from IGESConvGeom
-- make a CopiousData from a list of points/vectors
uses XY from gp, XYZ from gp, Trsf, Ax1, Ax2, Ax3,
HSequenceOfXYZ, HArray1OfXY, HArray1OfXYZ,
HSequenceOfXYZ,
TransformationMatrix, CopiousData
raises DomainError
@@ -55,7 +55,7 @@ is
---Purpose : Returns a point given its rank (if added as XY, Z will be 0)
MakeCopiousData (me; datatype : Integer; polyline : Boolean = Standard_False)
returns mutable CopiousData
returns CopiousData
---Purpose : Makes a CopiousData with the list of recorded Points/Vectors
-- according to <datatype>, which must be 1,2 or 3
-- If <polyline> is given True, the CopiousData is coded as a
@@ -65,13 +65,6 @@ is
raises DomainError;
-- Error if : <datatype> is not 1,2 or 3; or NbPoints is 0
MakeXY (me) returns mutable HArray1OfXY is static;
---Purpose : Returns the list of points as a HArray1OfXY. Z are ignored.
MakeXYZ (me) returns mutable HArray1OfXYZ is static;
---Purpose : Returns the list of points as a HArray1OfXYZ
Position (me) returns Trsf from gp is static;
---Purpose : Returns the Position in which the method EvalXYZ will
-- evaluate a XYZ. It can be regarded as defining a local system.
@@ -110,7 +103,7 @@ is
-- Z will be regarded as a Z Displacement (can be ignored)
MakeTransformation (me; unit : Real = 1)
returns mutable TransformationMatrix is static;
returns TransformationMatrix is static;
---Purpose : Returns the IGES Transformation which corresponds to the
-- Position. Even if it is an Identity : IsIdentity should be
-- tested first.

View File

@@ -89,35 +89,6 @@ static Standard_Real epsa = 1.E-10;
return res;
}
Handle(TColgp_HArray1OfXY) IGESConvGeom_GeomBuilder::MakeXY () const
{
Handle(TColgp_HArray1OfXY) res;
Standard_Integer num, nb = theXYZ->Length();
if (nb == 0) return res;
res = new TColgp_HArray1OfXY (1,nb);
for (num = 1; num <= nb; num ++) {
const gp_XYZ& pnt = theXYZ->Value(num);
res->SetValue (num , gp_XY (pnt.X(),pnt.Y()) );
}
return res;
}
Handle(TColgp_HArray1OfXYZ) IGESConvGeom_GeomBuilder::MakeXYZ () const
{
Handle(TColgp_HArray1OfXYZ) res;
/*
Standard_Integer num, nb = theXYZ->Length();
if (nb == 0) return res;
res = new TColgp_HArray1OfXYZ (1,nb);
for (num = 1; num <= nb; num ++) {
res->SetValue (num , theXYZ->Value(num) );
}
*/
SeqToArray(theXYZ,res,TColgp_HArray1OfXYZ);
return res;
}
gp_Trsf IGESConvGeom_GeomBuilder::Position () const
{ return thepos; }