mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-24 13:50:49 +03:00
0030895: Coding Rules - specify std namespace explicitly for std::cout and streams
"endl" manipulator for Message_Messenger is renamed to "Message_EndLine". The following entities from std namespace are now used with std:: explicitly specified (from Standard_Stream.hxx): std::istream,std::ostream,std::ofstream,std::ifstream,std::fstream, std::filebuf,std::streambuf,std::streampos,std::ios,std::cout,std::cerr, std::cin,std::endl,std::ends,std::flush,std::setw,std::setprecision, std::hex,std::dec.
This commit is contained in:
@@ -405,23 +405,23 @@ void IGESGeom_ToolBSplineCurve::OwnDump(const Handle(IGESGeom_BSplineCurve)& ent
|
||||
const Standard_Integer level) const
|
||||
{
|
||||
Standard_Integer upind = ent->UpperIndex();
|
||||
S << "BSplineCurve from IGESGeom" << endl;
|
||||
S << "BSplineCurve from IGESGeom" << Message_EndLine;
|
||||
S << "Sum UpperIndex : " << upind;
|
||||
S << " Degree : " << ent->Degree() << " ";
|
||||
S << (ent->IsPlanar() ? "Planar" : "NonPlanar") << endl;
|
||||
S << (ent->IsPlanar() ? "Planar" : "NonPlanar") << Message_EndLine;
|
||||
S << (ent->IsClosed() ? "Closed" : "Open") << " ";
|
||||
S << (ent->IsPeriodic() ? "Periodic" : "NonPeriodic") << " ";//#54 rln 24.12.98 CCI60005
|
||||
S << (ent->IsPolynomial(Standard_True) ? "Polynomial" : "Rational");
|
||||
|
||||
S << endl << "Knots : ";
|
||||
S << Message_EndLine << "Knots : ";
|
||||
IGESData_DumpVals(S ,level,-ent->Degree(), upind+1,ent->Knot);
|
||||
S << endl << "Weights : ";
|
||||
S << Message_EndLine << "Weights : ";
|
||||
IGESData_DumpVals(S ,level,0, upind,ent->Weight);
|
||||
S << endl << "Control Points (Poles) : ";
|
||||
S << Message_EndLine << "Control Points (Poles) : ";
|
||||
IGESData_DumpListXYZL(S ,level,0, upind, ent->Pole, ent->Location());
|
||||
S << endl << "Starting Parameter Value : " << ent->UMin();
|
||||
S << " Ending Parameter Value : " << ent->UMax() << endl;
|
||||
S << Message_EndLine << "Starting Parameter Value : " << ent->UMin();
|
||||
S << " Ending Parameter Value : " << ent->UMax() << Message_EndLine;
|
||||
S << "Unit Normal : ";
|
||||
IGESData_DumpXYZL(S,level, ent->Normal(), ent->Location());
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
}
|
||||
|
@@ -469,7 +469,7 @@ void IGESGeom_ToolBSplineSurface::OwnDump(const Handle(IGESGeom_BSplineSurface)&
|
||||
const Handle(Message_Messenger)& S,
|
||||
const Standard_Integer level) const
|
||||
{
|
||||
S << "BSplineSurface from IGESGeom" << endl << endl;
|
||||
S << "BSplineSurface from IGESGeom" << Message_EndLine << Message_EndLine;
|
||||
|
||||
Standard_Integer indU = ent->UpperIndexU();
|
||||
Standard_Integer indV = ent->UpperIndexV();
|
||||
@@ -480,36 +480,36 @@ void IGESGeom_ToolBSplineSurface::OwnDump(const Handle(IGESGeom_BSplineSurface)&
|
||||
S << " Degree : " << degU << " ";
|
||||
S << (ent->IsClosedU() ? "Closed" : "Open") << " ";
|
||||
S << (ent->IsPeriodicU() ? "Periodic" : "Non Periodic");
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
S << "In V : Upper Knot Index : " << indV;
|
||||
S << " Degree : " << degV << " ";
|
||||
S << (ent->IsClosedV() ? "Closed" : "Open") << " ";
|
||||
S << (ent->IsPeriodicV() ? "Periodic" : "Non Periodic") << " ";
|
||||
S << (ent->IsPolynomial(Standard_True) ? "Polynomial" : "Rational") << endl;
|
||||
S << (ent->IsPolynomial(Standard_True) ? "Polynomial" : "Rational") << Message_EndLine;
|
||||
|
||||
S << "Starting Parameter for U direction : " << ent->UMin() << endl;
|
||||
S << "Ending Parameter for U direction : " << ent->UMax() << endl;
|
||||
S << "Starting Parameter for V direction : " << ent->VMin() << endl;
|
||||
S << "Ending Parameter for V direction : " << ent->VMax() << endl;
|
||||
S << "Starting Parameter for U direction : " << ent->UMin() << Message_EndLine;
|
||||
S << "Ending Parameter for U direction : " << ent->UMax() << Message_EndLine;
|
||||
S << "Starting Parameter for V direction : " << ent->VMin() << Message_EndLine;
|
||||
S << "Ending Parameter for V direction : " << ent->VMax() << Message_EndLine;
|
||||
|
||||
S << " Knots in U : ";
|
||||
IGESData_DumpVals(S ,level,-degU, indU+1,ent->KnotU);
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
S << " Knots in V : ";
|
||||
IGESData_DumpVals(S ,level,-degV, indV+1,ent->KnotV);
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
S << "Weights : (Row -> IndexU, Col -> IndexV)";
|
||||
IGESData_DumpRectVals(S ,level,0, indU,0,indV,ent->Weight);
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
S << "Control Points (Poles) : ";
|
||||
//IGESData_DumpRectXYZL(S,level,1, ent->NbPoles(),ent->Pole, ent->Location());
|
||||
if (level < 5) { S << " [ content : ask level > 4 ]" << endl; return; }
|
||||
if (level < 5) { S << " [ content : ask level > 4 ]" << Message_EndLine; return; }
|
||||
gp_GTrsf loca = ent->Location();
|
||||
for (Standard_Integer JP = 0; JP <= indV; JP ++)
|
||||
for (Standard_Integer IP = 0; IP <= indU; IP ++) {
|
||||
if (IP == 0) S << endl;
|
||||
if (IP == 0) S << Message_EndLine;
|
||||
S <<" - ["<<IP<<","<<JP<<"]: ";
|
||||
IGESData_DumpXYZL(S,level,ent->Pole(IP,JP),loca);
|
||||
}
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
}
|
||||
|
@@ -434,32 +434,32 @@ void IGESGeom_ToolBoundary::OwnDump(const Handle(IGESGeom_Boundary)& ent,
|
||||
const Standard_Integer level) const
|
||||
{
|
||||
Standard_Integer i, num, sublevel = (level > 4) ? 1 : 0;
|
||||
S << "IGESGeom_Boundary" << endl;
|
||||
S << "Bounded Surface Representation Type : " << ent->BoundaryType() << endl;
|
||||
S << "Trimming Curves Representation : " << ent->PreferenceType() << endl;
|
||||
S << "IGESGeom_Boundary" << Message_EndLine;
|
||||
S << "Bounded Surface Representation Type : " << ent->BoundaryType() << Message_EndLine;
|
||||
S << "Trimming Curves Representation : " << ent->PreferenceType() << Message_EndLine;
|
||||
S << "Bounded Surface : ";
|
||||
dumper.Dump(ent->Surface(),S, sublevel);
|
||||
S << endl;
|
||||
S << "Model Space Curves : " << endl;
|
||||
S << "Orientation Flags : " << endl;
|
||||
S << Message_EndLine;
|
||||
S << "Model Space Curves : " << Message_EndLine;
|
||||
S << "Orientation Flags : " << Message_EndLine;
|
||||
S << "Parameter Curves Set : ";
|
||||
IGESData_DumpEntities
|
||||
(S,dumper,-level,1,ent->NbModelSpaceCurves(),ent->ModelSpaceCurve);
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
if (level > 4)
|
||||
for ( num = ent->NbModelSpaceCurves(), i = 1; i <= num; i++ )
|
||||
{
|
||||
S << "[" << i << "]: ";
|
||||
S << "Model Space Curve : ";
|
||||
dumper.Dump (ent->ModelSpaceCurve(i),S, 1);
|
||||
S << " Orientation Flags : " << ent->Sense(i) << endl;
|
||||
S << " Orientation Flags : " << ent->Sense(i) << Message_EndLine;
|
||||
S << " Parameter Curves : ";
|
||||
Handle(IGESData_HArray1OfIGESEntity) curves = ent->ParameterCurves(i);
|
||||
if (!curves.IsNull()) {
|
||||
IGESData_DumpEntities(S,dumper, level,1,curves->Length(),curves->Value);
|
||||
}
|
||||
else S << " List Empty";
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
}
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
}
|
||||
|
@@ -254,12 +254,12 @@ void IGESGeom_ToolBoundedSurface::OwnDump(const Handle(IGESGeom_BoundedSurface)&
|
||||
const Standard_Integer level) const
|
||||
{
|
||||
Standard_Integer sublevel = (level > 4) ? 1 : 0;
|
||||
S << "IGESGeom_BoundedSurface" << endl;
|
||||
S << "Representation Type : " << ent->RepresentationType() << endl;
|
||||
S << "IGESGeom_BoundedSurface" << Message_EndLine;
|
||||
S << "Representation Type : " << ent->RepresentationType() << Message_EndLine;
|
||||
S << "Surface to be Bounded : ";
|
||||
dumper.Dump(ent->Surface(),S, sublevel);
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
S << "Boundary Entities : ";
|
||||
IGESData_DumpEntities(S,dumper ,level,1, ent->NbBoundaries(),ent->Boundary);
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
}
|
||||
|
@@ -143,18 +143,18 @@ void IGESGeom_ToolCircularArc::OwnDump
|
||||
(const Handle(IGESGeom_CircularArc)& ent, const IGESData_IGESDumper& /* dumper */,
|
||||
const Handle(Message_Messenger)& S, const Standard_Integer level) const
|
||||
{
|
||||
S << "CircularArc from IGESGeom" << endl;
|
||||
S << "Z-Plane Displacement : " << ent->ZPlane() << endl;
|
||||
S << "CircularArc from IGESGeom" << Message_EndLine;
|
||||
S << "Z-Plane Displacement : " << ent->ZPlane() << Message_EndLine;
|
||||
S << "Center : ";
|
||||
IGESData_DumpXYLZ(S,level, ent->Center(), ent->Location(), ent->ZPlane());
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
S << "Start Point : ";
|
||||
IGESData_DumpXYLZ(S,level, ent->StartPoint(), ent->Location(),ent->ZPlane());
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
S << "End Point : ";
|
||||
IGESData_DumpXYLZ(S,level, ent->EndPoint(), ent->Location(), ent->ZPlane());
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
if (level <= 5) return;
|
||||
S<< " Normal Axis : "; IGESData_DumpXYZL(S,level,ent->Axis(),ent->VectorLocation());
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
}
|
||||
|
@@ -123,8 +123,8 @@ void IGESGeom_ToolCompositeCurve::OwnDump
|
||||
(const Handle(IGESGeom_CompositeCurve)& ent, const IGESData_IGESDumper& dumper,
|
||||
const Handle(Message_Messenger)& S, const Standard_Integer level) const
|
||||
{
|
||||
S << "IGESGeom_CompositeCurve" << endl;
|
||||
S << "Curve Entities : " << endl;
|
||||
S << "IGESGeom_CompositeCurve" << Message_EndLine;
|
||||
S << "Curve Entities : " << Message_EndLine;
|
||||
IGESData_DumpEntities(S,dumper ,level,1, ent->NbCurves(),ent->Curve);
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
}
|
||||
|
@@ -283,42 +283,42 @@ void IGESGeom_ToolConicArc::OwnDump(const Handle(IGESGeom_ConicArc)& ent,
|
||||
{
|
||||
Standard_Real A,B,C,D,E,F;
|
||||
ent->Equation(A,B,C,D,E,F);
|
||||
S << "IGESGeom_ConicArc" << endl;
|
||||
S << "IGESGeom_ConicArc" << Message_EndLine;
|
||||
Standard_Integer cf = ent->FormNumber();
|
||||
if (cf == 0) cf = ent->ComputedFormNumber();
|
||||
if (cf == 1) S << " -- Ellipse --" << endl;
|
||||
else if (cf == 2) S << " -- Hyperbola --" << endl;
|
||||
else if (cf == 3) S << " -- Parabola --" << endl;
|
||||
else S << " -- (Undetermined type of Conic) --" << endl;
|
||||
S << "Conic Coefficient A : " << A << endl;
|
||||
S << "Conic Coefficient B : " << B << endl;
|
||||
S << "Conic Coefficient C : " << C << endl;
|
||||
S << "Conic Coefficient D : " << D << endl;
|
||||
S << "Conic Coefficient E : " << E << endl;
|
||||
S << "Conic Coefficient F : " << F << endl;
|
||||
S << "Z-Plane shift : " << ent->ZPlane() << endl;
|
||||
if (cf == 1) S << " -- Ellipse --" << Message_EndLine;
|
||||
else if (cf == 2) S << " -- Hyperbola --" << Message_EndLine;
|
||||
else if (cf == 3) S << " -- Parabola --" << Message_EndLine;
|
||||
else S << " -- (Undetermined type of Conic) --" << Message_EndLine;
|
||||
S << "Conic Coefficient A : " << A << Message_EndLine;
|
||||
S << "Conic Coefficient B : " << B << Message_EndLine;
|
||||
S << "Conic Coefficient C : " << C << Message_EndLine;
|
||||
S << "Conic Coefficient D : " << D << Message_EndLine;
|
||||
S << "Conic Coefficient E : " << E << Message_EndLine;
|
||||
S << "Conic Coefficient F : " << F << Message_EndLine;
|
||||
S << "Z-Plane shift : " << ent->ZPlane() << Message_EndLine;
|
||||
S << "Start Point : ";
|
||||
IGESData_DumpXYLZ(S,level, ent->StartPoint(), ent->Location(),ent->ZPlane());
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
S << "End Point : ";
|
||||
IGESData_DumpXYLZ(S,level, ent->EndPoint(), ent->Location(), ent->ZPlane());
|
||||
S << endl;
|
||||
if (level <= 4) S<<" -- Computed Definition : ask level > 4" << endl;
|
||||
S << Message_EndLine;
|
||||
if (level <= 4) S<<" -- Computed Definition : ask level > 4" << Message_EndLine;
|
||||
else {
|
||||
gp_Pnt Cen; gp_Dir Ax; Standard_Real Rmin,Rmax;
|
||||
ent->Definition (Cen,Ax,Rmin,Rmax);
|
||||
S << " -- Computed Definition (and Transformed if level > 5)" << endl;
|
||||
S << " -- Computed Definition (and Transformed if level > 5)" << Message_EndLine;
|
||||
|
||||
if (cf != 3) {
|
||||
S<<" Center : "; IGESData_DumpXYZL(S,level,Cen,ent->Location());
|
||||
S<<endl;
|
||||
S<<Message_EndLine;
|
||||
}
|
||||
S << " Main Axis : "; IGESData_DumpXYZL(S,level,Ax,ent->VectorLocation());
|
||||
S<<endl;
|
||||
if (cf == 3) S << " Focal : " << Rmin << endl;
|
||||
else if (Rmin == Rmax) S << " Radius (Major = Minor) : " << Rmin << endl;
|
||||
else S << " Major Radius : " << Rmax << " Minor Radius : " << Rmin <<endl;
|
||||
S<<Message_EndLine;
|
||||
if (cf == 3) S << " Focal : " << Rmin << Message_EndLine;
|
||||
else if (Rmin == Rmax) S << " Radius (Major = Minor) : " << Rmin << Message_EndLine;
|
||||
else S << " Major Radius : " << Rmax << " Minor Radius : " << Rmin <<Message_EndLine;
|
||||
S<< " Normal Axis : "; IGESData_DumpXYZL(S,level,ent->Axis(),ent->VectorLocation());
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
}
|
||||
}
|
||||
|
@@ -272,7 +272,7 @@ void IGESGeom_ToolCopiousData::OwnDump(const Handle(IGESGeom_CopiousData)& ent,
|
||||
gp_GTrsf locv = ent->VectorLocation();
|
||||
Standard_Boolean yatr = (level > 5 && ent->HasTransf());
|
||||
|
||||
S << "IGESGeom_CopiousData" << endl;
|
||||
S << "IGESGeom_CopiousData" << Message_EndLine;
|
||||
|
||||
if (ent->IsPointSet()) S << "Point Set ";
|
||||
else if (ent->IsPolyline()) S << "Polyline ";
|
||||
@@ -281,12 +281,12 @@ void IGESGeom_ToolCopiousData::OwnDump(const Handle(IGESGeom_CopiousData)& ent,
|
||||
S << "Number of T-uples = " << nbPnts << " ";
|
||||
if (dtype == 1) {
|
||||
S << "(Points 2D) ";
|
||||
S << "ZPlane = " << ent->ZPlane() << endl;
|
||||
S << "ZPlane = " << ent->ZPlane() << Message_EndLine;
|
||||
}
|
||||
else if (dtype == 2)
|
||||
S << "(Points 3D)" << endl;
|
||||
S << "(Points 3D)" << Message_EndLine;
|
||||
else if (dtype == 3)
|
||||
S << "(Points 3D + Vectors 3D)" << endl;
|
||||
S << "(Points 3D + Vectors 3D)" << Message_EndLine;
|
||||
|
||||
if (level > 4) {
|
||||
for (i = 1; i <= nbPnts; i ++) {
|
||||
@@ -309,9 +309,9 @@ void IGESGeom_ToolCopiousData::OwnDump(const Handle(IGESGeom_CopiousData)& ent,
|
||||
S << " Transformed ("<< T.X() << "," << T.Y() << "," << T.Z() << ")";
|
||||
}
|
||||
}
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
}
|
||||
}
|
||||
else S << " [ for content, ask level > 4 ]";
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
}
|
||||
|
@@ -268,30 +268,30 @@ void IGESGeom_ToolCurveOnSurface::OwnDump(const Handle(IGESGeom_CurveOnSurface)&
|
||||
const Handle(Message_Messenger)& S,
|
||||
const Standard_Integer level) const
|
||||
{
|
||||
S << "IGESGeom_CurveOnSurface" << endl << endl;
|
||||
S << "IGESGeom_CurveOnSurface" << Message_EndLine << Message_EndLine;
|
||||
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
|
||||
|
||||
Standard_Integer crem = ent->CreationMode();
|
||||
S << "Creation Mode : " << crem << " i.e. ";
|
||||
if (crem == 0) S << " <Unspecified>" << endl;
|
||||
else if (crem == 1) S << " Projection of a Curve on a Surface" << endl;
|
||||
else if (crem == 2) S << " Intersection of two Surfaces" << endl;
|
||||
else if (crem == 3) S << " Isoparametric Curve (either U or V)" << endl;
|
||||
else S << " <Incorrect Value>" << endl;
|
||||
if (crem == 0) S << " <Unspecified>" << Message_EndLine;
|
||||
else if (crem == 1) S << " Projection of a Curve on a Surface" << Message_EndLine;
|
||||
else if (crem == 2) S << " Intersection of two Surfaces" << Message_EndLine;
|
||||
else if (crem == 3) S << " Isoparametric Curve (either U or V)" << Message_EndLine;
|
||||
else S << " <Incorrect Value>" << Message_EndLine;
|
||||
S << "The Surface on which the curve lies : ";
|
||||
dumper.Dump(ent->Surface(),S, sublevel);
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
S << "The curve B (in the parametric space (u, v)) : ";
|
||||
dumper.Dump(ent->CurveUV(),S, sublevel);
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
S << "The curve C (in the 3D Space) : ";
|
||||
dumper.Dump(ent->Curve3D(),S, sublevel);
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
Standard_Integer pref = ent->PreferenceMode();
|
||||
S << "Preferred representation mode : " << pref << " i.e. ";
|
||||
if (pref == 0) S << " <Unspecified>" << endl;
|
||||
else if (pref == 1) S << " Curve B on Surface" << endl;
|
||||
else if (pref == 2) S << " Curve C in 3D Space" << endl;
|
||||
else if (pref == 3) S << " Curves B & C equally preferred" << endl;
|
||||
else S << " <Incorrect Value>" << endl;
|
||||
if (pref == 0) S << " <Unspecified>" << Message_EndLine;
|
||||
else if (pref == 1) S << " Curve B on Surface" << Message_EndLine;
|
||||
else if (pref == 2) S << " Curve C in 3D Space" << Message_EndLine;
|
||||
else if (pref == 3) S << " Curves B & C equally preferred" << Message_EndLine;
|
||||
else S << " <Incorrect Value>" << Message_EndLine;
|
||||
}
|
||||
|
@@ -117,9 +117,9 @@ void IGESGeom_ToolDirection::OwnDump
|
||||
(const Handle(IGESGeom_Direction)& ent, const IGESData_IGESDumper& /* dumper */,
|
||||
const Handle(Message_Messenger)& S, const Standard_Integer level) const
|
||||
{
|
||||
S << "IGESGeom_Direction" << endl << endl;
|
||||
S << "IGESGeom_Direction" << Message_EndLine << Message_EndLine;
|
||||
|
||||
S << "Value : ";
|
||||
IGESData_DumpXYZL(S,level, ent->Value(), ent->VectorLocation());
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
}
|
||||
|
@@ -178,9 +178,9 @@ void IGESGeom_ToolFlash::OwnDump
|
||||
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
|
||||
Standard_Integer fn = ent->FormNumber();
|
||||
|
||||
S << "IGESGeom_Flash" << endl;
|
||||
S << "IGESGeom_Flash" << Message_EndLine;
|
||||
switch (fn) {
|
||||
case 0 : S << " -- Form defined by reference entity --" << endl; break;
|
||||
case 0 : S << " -- Form defined by reference entity --" << Message_EndLine; break;
|
||||
case 1 : S << " -- Circular -- "; break;
|
||||
case 2 : S << " -- Rectangle -- "; break;
|
||||
case 3 : S << " -- Donut -- "; break;
|
||||
@@ -191,9 +191,9 @@ void IGESGeom_ToolFlash::OwnDump
|
||||
S << "Flash reference point : ";
|
||||
IGESData_DumpXYL(S,level, ent->ReferencePoint(), ent->Location());
|
||||
S << " First sizing parameter : " << ent->Dimension1() << " ";
|
||||
S << " Second sizing parameter : " << ent->Dimension2() << endl;
|
||||
S << " Rotation about reference entity : " << ent->Rotation() << endl;
|
||||
S << " Second sizing parameter : " << ent->Dimension2() << Message_EndLine;
|
||||
S << " Rotation about reference entity : " << ent->Rotation() << Message_EndLine;
|
||||
S << "Reference Entity : ";
|
||||
dumper.Dump(ent->ReferenceEntity(),S, sublevel);
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
}
|
||||
|
@@ -112,16 +112,16 @@ void IGESGeom_ToolLine::OwnDump
|
||||
{
|
||||
Standard_Integer infin = ent->Infinite();
|
||||
switch (infin) {
|
||||
case 1 : S << "Semi-Infinite Line"<<endl; break;
|
||||
case 2 : S << "Infinite Line"<<endl; break;
|
||||
default : S << "Bounded Line"<<endl; break;
|
||||
case 1 : S << "Semi-Infinite Line"<<Message_EndLine; break;
|
||||
case 2 : S << "Infinite Line"<<Message_EndLine; break;
|
||||
default : S << "Bounded Line"<<Message_EndLine; break;
|
||||
}
|
||||
|
||||
S << "Line from IGESGeom" << endl;
|
||||
S << "Line from IGESGeom" << Message_EndLine;
|
||||
S << "Starting Point : ";
|
||||
IGESData_DumpXYZL(S,level, ent->StartPoint(), ent->Location());
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
S << "End Point : ";
|
||||
IGESData_DumpXYZL(S,level, ent->EndPoint(), ent->Location());
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
}
|
||||
|
@@ -356,22 +356,22 @@ void IGESGeom_ToolOffsetCurve::OwnDump(const Handle(IGESGeom_OffsetCurve)& ent,
|
||||
{
|
||||
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
|
||||
|
||||
S << "IGESGeom_OffsetCurve" << endl;
|
||||
S << "IGESGeom_OffsetCurve" << Message_EndLine;
|
||||
|
||||
S << "The curve to be offset : " << endl;
|
||||
S << "The curve to be offset : " << Message_EndLine;
|
||||
dumper.Dump(ent->BaseCurve(),S, sublevel);
|
||||
S << "Offset Distance Flag : " << ent->OffsetType() << endl;
|
||||
S << "Offset Distance Flag : " << ent->OffsetType() << Message_EndLine;
|
||||
S << "Curve entity whose coordinate defines the offset : ";
|
||||
dumper.Dump(ent->Function(),S, sublevel);
|
||||
S << endl;
|
||||
S << "In which Coordinate to use : " << ent->FunctionParameter() << endl;
|
||||
S << "Tapered Offset Type Flag : " << ent->TaperedOffsetType() << endl;
|
||||
S << Message_EndLine;
|
||||
S << "In which Coordinate to use : " << ent->FunctionParameter() << Message_EndLine;
|
||||
S << "Tapered Offset Type Flag : " << ent->TaperedOffsetType() << Message_EndLine;
|
||||
S << "First Offset Distance : " << ent->FirstOffsetDistance() << " ";
|
||||
S << "Arc Length : " << ent->ArcLength1() << endl;
|
||||
S << "Arc Length : " << ent->ArcLength1() << Message_EndLine;
|
||||
S << "Second Offset Distance : " << ent->SecondOffsetDistance() << " ";
|
||||
S << "Arc Length : " << ent->ArcLength2() << endl;
|
||||
S << "Arc Length : " << ent->ArcLength2() << Message_EndLine;
|
||||
S << "Normal Vector : ";
|
||||
IGESData_DumpXYZL(S,level, ent->NormalVector(), ent->VectorLocation()); S<<endl;
|
||||
IGESData_DumpXYZL(S,level, ent->NormalVector(), ent->VectorLocation()); S<<Message_EndLine;
|
||||
S << "Offset curve Parameters. Starting : " << ent->StartParameter() << " ";
|
||||
S << "Ending : " << ent->EndParameter() << endl;
|
||||
S << "Ending : " << ent->EndParameter() << Message_EndLine;
|
||||
}
|
||||
|
@@ -151,13 +151,13 @@ void IGESGeom_ToolOffsetSurface::OwnDump
|
||||
{
|
||||
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
|
||||
|
||||
S << "IGESGeom_OffsetSurface" << endl;
|
||||
S << "IGESGeom_OffsetSurface" << Message_EndLine;
|
||||
|
||||
S << "Offset Indicator : ";
|
||||
IGESData_DumpXYZL(S,level, ent->OffsetIndicator(), ent->VectorLocation());
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
S << "Offset Distance : " << ent->Distance() << " ";
|
||||
S << "Surface to be offset : ";
|
||||
dumper.Dump(ent->Surface(),S, sublevel);
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
}
|
||||
|
@@ -269,18 +269,18 @@ void IGESGeom_ToolPlane::OwnDump(const Handle(IGESGeom_Plane)& ent,
|
||||
const Handle(Message_Messenger)& S,
|
||||
const Standard_Integer level) const
|
||||
{
|
||||
S << "IGESGeom_Plane" << endl;
|
||||
S << "IGESGeom_Plane" << Message_EndLine;
|
||||
Standard_Real A,B,C,D;
|
||||
ent->Equation(A,B,C,D);
|
||||
|
||||
S << "Plane Coefficient A : " << A << endl;
|
||||
S << "Plane Coefficient B : " << B << endl;
|
||||
S << "Plane Coefficient C : " << C << endl;
|
||||
S << "Plane Coefficient D : " << D << endl;
|
||||
S << "Plane Coefficient A : " << A << Message_EndLine;
|
||||
S << "Plane Coefficient B : " << B << Message_EndLine;
|
||||
S << "Plane Coefficient C : " << C << Message_EndLine;
|
||||
S << "Plane Coefficient D : " << D << Message_EndLine;
|
||||
S << "The Bounding Curve : " ;
|
||||
dumper.Dump(ent->BoundingCurve(),S, (level <= 4) ? 0 : 1);
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
S << "Display Symbol Location : ";
|
||||
IGESData_DumpXYZL(S,level, ent->SymbolAttach(), ent->Location());
|
||||
S << " Size : " << ent->SymbolSize() << endl;
|
||||
S << " Size : " << ent->SymbolSize() << Message_EndLine;
|
||||
}
|
||||
|
@@ -144,12 +144,12 @@ void IGESGeom_ToolPoint::OwnDump
|
||||
(const Handle(IGESGeom_Point)& ent, const IGESData_IGESDumper& dumper,
|
||||
const Handle(Message_Messenger)& S, const Standard_Integer level) const
|
||||
{
|
||||
S << "IGESGeom_Point" << endl;
|
||||
S << "IGESGeom_Point" << Message_EndLine;
|
||||
|
||||
S << " Value : ";
|
||||
IGESData_DumpXYZL(S,level, ent->Value(), ent->Location());
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
S << " Display Symbol : ";
|
||||
dumper.Dump(ent->DisplaySymbol(),S, (level <= 4) ? 0 : 1);
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
}
|
||||
|
@@ -157,17 +157,17 @@ void IGESGeom_ToolRuledSurface::OwnDump
|
||||
{
|
||||
Standard_Integer tempSubLevel = (level <= 4) ? 0 : 1;
|
||||
|
||||
S << "IGESGeom_RuledSurface" << endl;
|
||||
S << "IGESGeom_RuledSurface" << Message_EndLine;
|
||||
|
||||
S << "First Curve : ";
|
||||
dumper.Dump(ent->FirstCurve(),S, tempSubLevel);
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
S << "Second Curve : ";
|
||||
dumper.Dump(ent->SecondCurve(),S, tempSubLevel);
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
S << "Direction Flag : " << ent->DirectionFlag() << " i.e.";
|
||||
if (ent->DirectionFlag() == 0) S<< "Join First to First, Last to Last"<<endl;
|
||||
else S<< "Join First to Last, Last to First"<<endl;
|
||||
if (ent->IsDevelopable()) S << " .. Is Developable" << endl;
|
||||
else S << " .. Is possibly not developable .." << endl;
|
||||
if (ent->DirectionFlag() == 0) S<< "Join First to First, Last to Last"<<Message_EndLine;
|
||||
else S<< "Join First to Last, Last to First"<<Message_EndLine;
|
||||
if (ent->IsDevelopable()) S << " .. Is Developable" << Message_EndLine;
|
||||
else S << " .. Is possibly not developable .." << Message_EndLine;
|
||||
}
|
||||
|
@@ -322,7 +322,7 @@ void IGESGeom_ToolSplineCurve::OwnDump
|
||||
(const Handle(IGESGeom_SplineCurve)& ent, const IGESData_IGESDumper& /* dumper */,
|
||||
const Handle(Message_Messenger)& S, const Standard_Integer level) const
|
||||
{
|
||||
S << "IGESGeom_SplineCurve" << endl;
|
||||
S << "IGESGeom_SplineCurve" << Message_EndLine;
|
||||
|
||||
Standard_Integer nbSegments = ent->NbSegments();
|
||||
S << "Spline Type : " << ent->SplineType() << " ";
|
||||
@@ -336,17 +336,17 @@ void IGESGeom_ToolSplineCurve::OwnDump
|
||||
case 6 : S << "(B-Spline)"; break;
|
||||
default : S << "(Invalid value)"; break;
|
||||
}
|
||||
S << endl;
|
||||
S << "Degree Of Continuity : " << ent->Degree() << endl;
|
||||
S << "Number Of Dimensions : " << ent->NbDimensions() << endl;
|
||||
S << "Number Of Segments : " << ent->NbSegments() << endl;
|
||||
S << Message_EndLine;
|
||||
S << "Degree Of Continuity : " << ent->Degree() << Message_EndLine;
|
||||
S << "Number Of Dimensions : " << ent->NbDimensions() << Message_EndLine;
|
||||
S << "Number Of Segments : " << ent->NbSegments() << Message_EndLine;
|
||||
S << "Segment Break Points : ";
|
||||
IGESData_DumpVals(S ,level,1, nbSegments+1,ent->BreakPoint);
|
||||
if (level <= 4) {
|
||||
S << " [ also ask level > 4 for X-Y-Z Polynomials ]" << endl;
|
||||
S << " [ also ask level > 4 for X-Y-Z Polynomials ]" << Message_EndLine;
|
||||
return;
|
||||
}
|
||||
S << " -- Polynomial Values --" << endl;
|
||||
S << " -- Polynomial Values --" << Message_EndLine;
|
||||
Standard_Real AX,BX,CX,DX, AY,BY,CY,DY, AZ,BZ,CZ,DZ;
|
||||
for (Standard_Integer I = 1; I <= nbSegments; I++) {
|
||||
//no need to declare (hides the same name in an outer scope)
|
||||
@@ -354,18 +354,18 @@ void IGESGeom_ToolSplineCurve::OwnDump
|
||||
ent->XCoordPolynomial(I,AX,BX,CX,DX);
|
||||
ent->YCoordPolynomial(I,AY,BY,CY,DY);
|
||||
ent->ZCoordPolynomial(I,AZ,BZ,CZ,DZ);
|
||||
S << "Segment "<<I<<" : X Y Z"<<endl;
|
||||
S << " A ... "<<AX<<" "<<AY<<" "<<AZ<<endl;
|
||||
S << " B ... "<<BX<<" "<<BY<<" "<<BZ<<endl;
|
||||
S << " C ... "<<CX<<" "<<CY<<" "<<CZ<<endl;
|
||||
S << " D ... "<<DX<<" "<<DY<<" "<<DZ<<endl;
|
||||
S << "Segment "<<I<<" : X Y Z"<<Message_EndLine;
|
||||
S << " A ... "<<AX<<" "<<AY<<" "<<AZ<<Message_EndLine;
|
||||
S << " B ... "<<BX<<" "<<BY<<" "<<BZ<<Message_EndLine;
|
||||
S << " C ... "<<CX<<" "<<CY<<" "<<CZ<<Message_EndLine;
|
||||
S << " D ... "<<DX<<" "<<DY<<" "<<DZ<<Message_EndLine;
|
||||
}
|
||||
ent->XValues(AX,BX,CX,DX);
|
||||
ent->YValues(AY,BY,CY,DY);
|
||||
ent->ZValues(AZ,BZ,CZ,DZ);
|
||||
S << "Terminate Point : X Y Z"<<endl;
|
||||
S << " Value "<<AX<<" "<<AY<<" "<<AZ<<endl;
|
||||
S << " 1st Derivative "<<BX<<" "<<BY<<" "<<BZ<<endl;
|
||||
S << " 2nd Der./2! "<<CX<<" "<<CY<<" "<<CZ<<endl;
|
||||
S << " 3rd Der./3! "<<DX<<" "<<DY<<" "<<DZ<<endl;
|
||||
S << "Terminate Point : X Y Z"<<Message_EndLine;
|
||||
S << " Value "<<AX<<" "<<AY<<" "<<AZ<<Message_EndLine;
|
||||
S << " 1st Derivative "<<BX<<" "<<BY<<" "<<BZ<<Message_EndLine;
|
||||
S << " 2nd Der./2! "<<CX<<" "<<CY<<" "<<CZ<<Message_EndLine;
|
||||
S << " 3rd Der./3! "<<DX<<" "<<DY<<" "<<DZ<<Message_EndLine;
|
||||
}
|
||||
|
@@ -312,7 +312,7 @@ void IGESGeom_ToolSplineSurface::OwnDump
|
||||
(const Handle(IGESGeom_SplineSurface)& ent, const IGESData_IGESDumper& /* dumper */,
|
||||
const Handle(Message_Messenger)& S, const Standard_Integer level) const
|
||||
{
|
||||
S << "IGESGeom_SplineSurface" << endl;
|
||||
S << "IGESGeom_SplineSurface" << Message_EndLine;
|
||||
|
||||
Standard_Integer I, J;
|
||||
Standard_Integer nbUSegs = ent->NbUSegments();
|
||||
@@ -330,39 +330,39 @@ void IGESGeom_ToolSplineSurface::OwnDump
|
||||
case 6 : S << " (B-Spline)"; break;
|
||||
default : S << " (Invalid value)"; break;
|
||||
}
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
S << "The Patch Type : " << ent->PatchType();
|
||||
if (ent->PatchType() == 1) S << " (Cartesian Product)";
|
||||
else S << " (Unspecified)";
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
S << "Number Of Segments. In U : "
|
||||
<< nbUSegs << " In V : " << nbVSegs << endl;
|
||||
<< nbUSegs << " In V : " << nbVSegs << Message_EndLine;
|
||||
S << "The U Break Points : ";
|
||||
IGESData_DumpVals(S ,level,1, nbUSegs+1,ent->UBreakPoint);
|
||||
S <<endl<< "The V Break Points : ";
|
||||
S <<Message_EndLine<< "The V Break Points : ";
|
||||
IGESData_DumpVals(S ,level,1, nbVSegs+1,ent->VBreakPoint);
|
||||
|
||||
S <<endl<< " X-Y-Z Polynomials Of Segments : ";
|
||||
S << endl;
|
||||
S <<Message_EndLine<< " X-Y-Z Polynomials Of Segments : ";
|
||||
S << Message_EndLine;
|
||||
if (level > 4)
|
||||
{
|
||||
for (I = 1; I <= nbUSegs; I++)
|
||||
for (J = 1; J <= nbVSegs; J++)
|
||||
{
|
||||
S << "[" << I <<"," << J << "]: " << endl;
|
||||
S << "[" << I <<"," << J << "]: " << Message_EndLine;
|
||||
S << "X Polynomial : ";
|
||||
temp = ent->XPolynomial(I,J);
|
||||
IGESData_DumpVals(S,level,1, temp->Length(),temp->Value);
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
S << "Y Polynomial : ";
|
||||
temp = ent->YPolynomial(I,J);
|
||||
IGESData_DumpVals(S,level,1, temp->Length(),temp->Value);
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
S << "Z Polynomial : ";
|
||||
temp = ent->ZPolynomial(I,J);
|
||||
IGESData_DumpVals(S,level,1, temp->Length(),temp->Value);
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
}
|
||||
}
|
||||
else S << endl;
|
||||
else S << Message_EndLine;
|
||||
}
|
||||
|
@@ -167,15 +167,15 @@ void IGESGeom_ToolSurfaceOfRevolution::OwnDump
|
||||
const Handle(Message_Messenger)& S, const Standard_Integer level) const
|
||||
{
|
||||
|
||||
S << "IGESGeom_SurfaceOfRevolution" << endl << endl;
|
||||
S << "IGESGeom_SurfaceOfRevolution" << Message_EndLine << Message_EndLine;
|
||||
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
|
||||
|
||||
S << "Axis Of Revolution : ";
|
||||
dumper.Dump(ent->AxisOfRevolution(),S, sublevel);
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
S << "Generatrix : ";
|
||||
dumper.Dump(ent->Generatrix(),S, sublevel);
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
S << "Start Angle : " << ent->StartAngle() << " ";
|
||||
S << "End Angle : " << ent->EndAngle() << endl;
|
||||
S << "End Angle : " << ent->EndAngle() << Message_EndLine;
|
||||
}
|
||||
|
@@ -137,12 +137,12 @@ void IGESGeom_ToolTabulatedCylinder::OwnDump
|
||||
{
|
||||
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
|
||||
|
||||
S << "IGESGeom_TabulatedCylinder" << endl;
|
||||
S << "IGESGeom_TabulatedCylinder" << Message_EndLine;
|
||||
|
||||
S << "Directrix : ";
|
||||
dumper.Dump(ent->Directrix(),S, sublevel);
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
S << "Terminate Point : ";
|
||||
IGESData_DumpXYZL(S,level, ent->EndPoint(), ent->Location());
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
}
|
||||
|
@@ -214,26 +214,26 @@ void IGESGeom_ToolTransformationMatrix::OwnDump
|
||||
(const Handle(IGESGeom_TransformationMatrix)& ent, const IGESData_IGESDumper& /*dumper*/,
|
||||
const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
|
||||
{
|
||||
S << "IGESGeom_TransformationMatrix" << endl;
|
||||
S << "IGESGeom_TransformationMatrix" << Message_EndLine;
|
||||
|
||||
S << "| R11, R12, R13, T1 | "
|
||||
<< ent->Data(1, 1) << ", " << ent->Data(1, 2) << ", "
|
||||
<< ent->Data(1, 3) << ", " << ent->Data(1, 4) << endl;
|
||||
<< ent->Data(1, 3) << ", " << ent->Data(1, 4) << Message_EndLine;
|
||||
|
||||
S << "| R21, R22, R23, T2 | "
|
||||
<< ent->Data(2, 1) << ", " << ent->Data(2, 2) << ", "
|
||||
<< ent->Data(2, 3) << ", " << ent->Data(2, 4) << endl;
|
||||
<< ent->Data(2, 3) << ", " << ent->Data(2, 4) << Message_EndLine;
|
||||
|
||||
S << "| R31, R32, R33, T3 | "
|
||||
<< ent->Data(3, 1) << ", " << ent->Data(3, 2) << ", "
|
||||
<< ent->Data(3, 3) << ", " << ent->Data(3, 4) << endl;
|
||||
<< ent->Data(3, 3) << ", " << ent->Data(3, 4) << Message_EndLine;
|
||||
|
||||
switch (ent->FormNumber()) {
|
||||
case 0 : S << "-- Direct Orthogonal Matrix" << endl; break;
|
||||
case 1 : S << "-- Reverse Orthogonal Matrix" << endl; break;
|
||||
case 10 : S << "-- Cartesien Coordinate System" << endl; break;
|
||||
case 11 : S << "-- Cylindrical Coordinate System" << endl; break;
|
||||
case 12 : S << "-- Spherical Coordinate System" << endl; break;
|
||||
default : S << "-- (Incorrect Form Number)" << endl; break;
|
||||
case 0 : S << "-- Direct Orthogonal Matrix" << Message_EndLine; break;
|
||||
case 1 : S << "-- Reverse Orthogonal Matrix" << Message_EndLine; break;
|
||||
case 10 : S << "-- Cartesien Coordinate System" << Message_EndLine; break;
|
||||
case 11 : S << "-- Cylindrical Coordinate System" << Message_EndLine; break;
|
||||
case 12 : S << "-- Spherical Coordinate System" << Message_EndLine; break;
|
||||
default : S << "-- (Incorrect Form Number)" << Message_EndLine; break;
|
||||
}
|
||||
}
|
||||
|
@@ -304,16 +304,16 @@ void IGESGeom_ToolTrimmedSurface::OwnDump(const Handle(IGESGeom_TrimmedSurface)&
|
||||
{
|
||||
Standard_Integer tempSubLevel = (level <= 4) ? 0 : 1;
|
||||
|
||||
S << "IGESGeom_TrimmedSurface" << endl;
|
||||
S << "IGESGeom_TrimmedSurface" << Message_EndLine;
|
||||
|
||||
S << "Surface to be trimmed : ";
|
||||
dumper.Dump(ent->Surface(),S, tempSubLevel);
|
||||
S << endl;
|
||||
S << "Boundary type : " << ent->OuterBoundaryType() << endl;
|
||||
S << Message_EndLine;
|
||||
S << "Boundary type : " << ent->OuterBoundaryType() << Message_EndLine;
|
||||
S << "Outer Boundary : ";
|
||||
dumper.Dump(ent->OuterContour(),S, tempSubLevel);
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
S << "Inner Boundaries : ";
|
||||
IGESData_DumpEntities(S,dumper ,level,1, ent->NbInnerContours(),ent->InnerContour);
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
}
|
||||
|
@@ -53,7 +53,7 @@ IGESGeom_TransformationMatrix::IGESGeom_TransformationMatrix () { }
|
||||
void IGESGeom_TransformationMatrix::SetFormNumber (const Standard_Integer fm)
|
||||
{
|
||||
if(theData.IsNull())
|
||||
cout<<"Inavalid Transformation Data"<<endl;
|
||||
std::cout<<"Inavalid Transformation Data"<<std::endl;
|
||||
if ((fm < 0 || fm > 1) && (fm < 10 || fm > 12)) throw Standard_OutOfRange("IGESGeom_TransformationMatrix : SetFormNumber");
|
||||
InitTypeAndForm(124,fm);
|
||||
}
|
||||
|
Reference in New Issue
Block a user