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

0031501: Foundation Classes, Message_Printer - remove theToPutEndl argument -- preparation

Operators << for Handle(Message_Messenger) are removed; their use is replaced by use of Message_Messenger::StreamBuffer
Message_Messenger has been replaced by Standard_OStream within Interface_InterfaceModel,IFSelect,IGES,STEP dump interfaces.
This commit is contained in:
abv
2020-04-30 15:45:31 +03:00
committed by bugmaster
parent 39c8dc708f
commit 0ebe5b0a7f
382 changed files with 3109 additions and 3576 deletions

View File

@@ -57,7 +57,7 @@ IGESGraph_SpecificModule::IGESGraph_SpecificModule() { }
void IGESGraph_SpecificModule::OwnDump
(const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent,
const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S,
const IGESData_IGESDumper& dumper, Standard_OStream& S,
const Standard_Integer own) const
{
switch (CN) {

View File

@@ -25,8 +25,6 @@
#include <Standard_Boolean.hxx>
class IGESData_IGESEntity;
class IGESData_IGESDumper;
class Message_Messenger;
class IGESGraph_SpecificModule;
DEFINE_STANDARD_HANDLE(IGESGraph_SpecificModule, IGESData_SpecificModule)
@@ -43,7 +41,7 @@ public:
Standard_EXPORT IGESGraph_SpecificModule();
//! Specific Dump (own parameters) for IGESGraph
Standard_EXPORT void OwnDump (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const Standard_OVERRIDE;
Standard_EXPORT void OwnDump (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const Standard_OVERRIDE;
//! Performs non-ambiguous Corrections on Entities which support
//! them (DrawingSize,DrawingUnits,HighLight,IntercharacterSpacing,

View File

@@ -118,16 +118,16 @@ void IGESGraph_ToolColor::OwnCheck
void IGESGraph_ToolColor::OwnDump
(const Handle(IGESGraph_Color)& ent, const IGESData_IGESDumper& /*dumper*/,
const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
Standard_OStream& S, const Standard_Integer /*level*/) const
{
S << "IGESGraph_Color" << Message_EndLine;
S << "IGESGraph_Color\n";
Standard_Real Red,Green,Blue;
ent->RGBIntensity(Red,Green,Blue);
S << "Red (in % Of Full Intensity) : " << Red << Message_EndLine;
S << "Green (in % Of Full Intensity) : " << Green << Message_EndLine;
S << "Blue (in % Of Full Intensity) : " << Blue << Message_EndLine;
S << "Color Name : ";
S << "Red (in % Of Full Intensity) : " << Red << "\n"
<< "Green (in % Of Full Intensity) : " << Green << "\n"
<< "Blue (in % Of Full Intensity) : " << Blue << "\n"
<< "Color Name : ";
IGESData_DumpString(S,ent->ColorName());
S << Message_EndLine;
S << std::endl;
}

View File

@@ -33,8 +33,6 @@ class Interface_ShareTool;
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
class Message_Messenger;
//! Tool to work on a Color. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
Standard_EXPORT void OwnCopy (const Handle(IGESGraph_Color)& entfrom, const Handle(IGESGraph_Color)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
Standard_EXPORT void OwnDump (const Handle(IGESGraph_Color)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
Standard_EXPORT void OwnDump (const Handle(IGESGraph_Color)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;

View File

@@ -112,12 +112,11 @@ void IGESGraph_ToolDefinitionLevel::OwnCheck
void IGESGraph_ToolDefinitionLevel::OwnDump
(const Handle(IGESGraph_DefinitionLevel)& ent, const IGESData_IGESDumper& /*dumper*/,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
Standard_OStream& S, const Standard_Integer level) const
{
S << "IGESGraph_DefinitionLevel" << Message_EndLine;
S << "Level Numbers : ";
IGESData_DumpVals(S ,level,1, ent->NbPropertyValues(),ent->LevelNumber);
S << Message_EndLine;
S << "IGESGraph_DefinitionLevel\n"
<< "Level Numbers : ";
IGESData_DumpVals(S,level,1, ent->NbPropertyValues(),ent->LevelNumber);
S << std::endl;
}

View File

@@ -33,8 +33,6 @@ class Interface_ShareTool;
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
class Message_Messenger;
//! Tool to work on a DefinitionLevel. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
Standard_EXPORT void OwnCopy (const Handle(IGESGraph_DefinitionLevel)& entfrom, const Handle(IGESGraph_DefinitionLevel)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
Standard_EXPORT void OwnDump (const Handle(IGESGraph_DefinitionLevel)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
Standard_EXPORT void OwnDump (const Handle(IGESGraph_DefinitionLevel)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;

View File

@@ -111,12 +111,11 @@ void IGESGraph_ToolDrawingSize::OwnCheck
void IGESGraph_ToolDrawingSize::OwnDump
(const Handle(IGESGraph_DrawingSize)& ent, const IGESData_IGESDumper& /*dumper*/,
const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
Standard_OStream& S, const Standard_Integer /*level*/) const
{
S << "IGESGraph_DrawingSize" << Message_EndLine;
S << "No. of property values : " << ent->NbPropertyValues() << Message_EndLine;
S << "Drawing extent along positive X-axis : " << ent->XSize() << Message_EndLine;
S << "Drawing extent along positive Y-axis : " << ent->YSize() << Message_EndLine;
S << Message_EndLine;
S << "IGESGraph_DrawingSize\n"
<< "No. of property values : " << ent->NbPropertyValues() << "\n"
<< "Drawing extent along positive X-axis : " << ent->XSize() << "\n"
<< "Drawing extent along positive Y-axis : " << ent->YSize() << "\n"
<< std::endl;
}

View File

@@ -34,8 +34,6 @@ class Interface_ShareTool;
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
class Message_Messenger;
//! Tool to work on a DrawingSize. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -74,7 +72,7 @@ public:
Standard_EXPORT void OwnCopy (const Handle(IGESGraph_DrawingSize)& entfrom, const Handle(IGESGraph_DrawingSize)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
Standard_EXPORT void OwnDump (const Handle(IGESGraph_DrawingSize)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
Standard_EXPORT void OwnDump (const Handle(IGESGraph_DrawingSize)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;

View File

@@ -221,14 +221,13 @@ void IGESGraph_ToolDrawingUnits::OwnCheck
void IGESGraph_ToolDrawingUnits::OwnDump
(const Handle(IGESGraph_DrawingUnits)& ent, const IGESData_IGESDumper& /*dumper*/,
const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
Standard_OStream& S, const Standard_Integer /*level*/) const
{
S << "IGESGraph_DrawingUnits" << Message_EndLine;
S << "No. of property values : " << ent->NbPropertyValues() << Message_EndLine;
S << " Units Flag : " << ent->Flag();
S << " Units Name : ";
S << "IGESGraph_DrawingUnits\n"
<< "No. of property values : " << ent->NbPropertyValues() << "\n"
<< " Units Flag : " << ent->Flag()
<< " Units Name : ";
IGESData_DumpString(S,ent->Unit());
S << " computed Value (in meters) : " << ent->UnitValue();
S << Message_EndLine;
S << " computed Value (in meters) : " << ent->UnitValue()
<< std::endl;
}

View File

@@ -34,8 +34,6 @@ class Interface_ShareTool;
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
class Message_Messenger;
//! Tool to work on a DrawingUnits. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -74,7 +72,7 @@ public:
Standard_EXPORT void OwnCopy (const Handle(IGESGraph_DrawingUnits)& entfrom, const Handle(IGESGraph_DrawingUnits)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
Standard_EXPORT void OwnDump (const Handle(IGESGraph_DrawingUnits)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
Standard_EXPORT void OwnDump (const Handle(IGESGraph_DrawingUnits)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;

View File

@@ -107,11 +107,10 @@ void IGESGraph_ToolHighLight::OwnCheck
void IGESGraph_ToolHighLight::OwnDump
(const Handle(IGESGraph_HighLight)& ent, const IGESData_IGESDumper& /*dumper*/,
const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
Standard_OStream& S, const Standard_Integer /*level*/) const
{
S << "IGESGraph_HighLight" << Message_EndLine;
S << "No. of property values : " << ent->NbPropertyValues() << Message_EndLine;
S << "Highlight Status : " << ent->HighLightStatus() << Message_EndLine;
S << Message_EndLine;
S << "IGESGraph_HighLight\n"
<< "No. of property values : " << ent->NbPropertyValues() << "\n"
<< "Highlight Status : " << ent->HighLightStatus() << "\n"
<< std::endl;
}

View File

@@ -34,8 +34,6 @@ class Interface_ShareTool;
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
class Message_Messenger;
//! Tool to work on a HighLight. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -74,7 +72,7 @@ public:
Standard_EXPORT void OwnCopy (const Handle(IGESGraph_HighLight)& entfrom, const Handle(IGESGraph_HighLight)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
Standard_EXPORT void OwnDump (const Handle(IGESGraph_HighLight)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
Standard_EXPORT void OwnDump (const Handle(IGESGraph_HighLight)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;

View File

@@ -109,11 +109,10 @@ void IGESGraph_ToolIntercharacterSpacing::OwnCheck
void IGESGraph_ToolIntercharacterSpacing::OwnDump
(const Handle(IGESGraph_IntercharacterSpacing)& ent, const IGESData_IGESDumper& /*dumper*/,
const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
Standard_OStream& S, const Standard_Integer /*level*/) const
{
S << "IGESGraph_IntercharacterSpacing" << Message_EndLine;
S << "No. of property values : " << ent->NbPropertyValues() << Message_EndLine;
S << "Intercharacter space in % of text height : " << ent->ISpace() << Message_EndLine;
S << Message_EndLine;
S << "IGESGraph_IntercharacterSpacing\n"
<< "No. of property values : " << ent->NbPropertyValues() << "\n"
<< "Intercharacter space in % of text height : " << ent->ISpace() << "\n"
<< std::endl;
}

View File

@@ -34,8 +34,6 @@ class Interface_ShareTool;
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
class Message_Messenger;
//! Tool to work on a IntercharacterSpacing. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -74,7 +72,7 @@ public:
Standard_EXPORT void OwnCopy (const Handle(IGESGraph_IntercharacterSpacing)& entfrom, const Handle(IGESGraph_IntercharacterSpacing)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
Standard_EXPORT void OwnDump (const Handle(IGESGraph_IntercharacterSpacing)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
Standard_EXPORT void OwnDump (const Handle(IGESGraph_IntercharacterSpacing)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;

View File

@@ -30,7 +30,6 @@
#include <Interface_EntityIterator.hxx>
#include <Interface_Macros.hxx>
#include <Interface_ShareTool.hxx>
#include <Message_Messenger.hxx>
#include <Standard_DomainError.hxx>
#include <TCollection_HAsciiString.hxx>
#include <TColStd_HArray1OfReal.hxx>
@@ -130,21 +129,20 @@ void IGESGraph_ToolLineFontDefPattern::OwnCheck
void IGESGraph_ToolLineFontDefPattern::OwnDump
(const Handle(IGESGraph_LineFontDefPattern)& ent, const IGESData_IGESDumper& /*dumper*/,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
Standard_OStream& S, const Standard_Integer level) const
{
S << "IGESGraph_LineFontDefPattern" << Message_EndLine;
S << "Visible-Blank Segments : ";
S << "IGESGraph_LineFontDefPattern\n"
<< "Visible-Blank Segments : ";
Standard_Integer nb = ent->NbSegments();
IGESData_DumpVals(S ,level,1, nb,ent->Length);
S <<Message_EndLine << "Display Pattern : ";
IGESData_DumpVals(S,level,1, nb,ent->Length);
S << "\nDisplay Pattern : ";
IGESData_DumpString(S,ent->DisplayPattern());
S << Message_EndLine;
S << "\n";
if (level > 4) {
S << " -> Which Segments are Visible (the others are Blank) : " << Message_EndLine;
S << " -> Which Segments are Visible (the others are Blank) :\n";
for (Standard_Integer I = 1; I <= nb; I ++) {
if (ent->IsVisible(I)) S << " " << I;
}
S << Message_EndLine;
S << std::endl;
}
}

View File

@@ -33,8 +33,6 @@ class Interface_ShareTool;
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
class Message_Messenger;
//! Tool to work on a LineFontDefPattern. Called by various
//! Modules (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
Standard_EXPORT void OwnCopy (const Handle(IGESGraph_LineFontDefPattern)& entfrom, const Handle(IGESGraph_LineFontDefPattern)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
Standard_EXPORT void OwnDump (const Handle(IGESGraph_LineFontDefPattern)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
Standard_EXPORT void OwnDump (const Handle(IGESGraph_LineFontDefPattern)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;

View File

@@ -117,18 +117,17 @@ void IGESGraph_ToolLineFontDefTemplate::OwnCheck
void IGESGraph_ToolLineFontDefTemplate::OwnDump
(const Handle(IGESGraph_LineFontDefTemplate)& ent, const IGESData_IGESDumper& dumper,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
Standard_OStream& S, const Standard_Integer level) const
{
Standard_Integer tempSubLevel = (level <= 4) ? 0 : 1;
S << "IGESGraph_LineFontDefTemplate" << Message_EndLine;
S << "Orientation : " << ent->Orientation() << Message_EndLine;
S << "Subfigure Display Entity For Template Display : ";
S << "IGESGraph_LineFontDefTemplate\n"
<< "Orientation : " << ent->Orientation() << "\n"
<< "Subfigure Display Entity For Template Display : ";
dumper.Dump(ent->TemplateEntity(),S, tempSubLevel);
S << Message_EndLine;
S << "Length Between Successive Template Figure : " << ent->Distance()<<Message_EndLine;
S << "Scale Factor for Subfigure : " << ent->Scale() << Message_EndLine;
S << Message_EndLine;
S << "\n"
<< "Length Between Successive Template Figure : " << ent->Distance()<< "\n"
<< "Scale Factor for Subfigure : " << ent->Scale() << "\n"
<< std::endl;
}

View File

@@ -33,8 +33,6 @@ class Interface_ShareTool;
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
class Message_Messenger;
//! Tool to work on a LineFontDefTemplate. Called by various
//! Modules (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
Standard_EXPORT void OwnCopy (const Handle(IGESGraph_LineFontDefTemplate)& entfrom, const Handle(IGESGraph_LineFontDefTemplate)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
Standard_EXPORT void OwnDump (const Handle(IGESGraph_LineFontDefTemplate)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
Standard_EXPORT void OwnDump (const Handle(IGESGraph_LineFontDefTemplate)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;

View File

@@ -106,11 +106,10 @@ void IGESGraph_ToolLineFontPredefined::OwnCheck
void IGESGraph_ToolLineFontPredefined::OwnDump
(const Handle(IGESGraph_LineFontPredefined)& ent, const IGESData_IGESDumper& /*dumper*/,
const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
Standard_OStream& S, const Standard_Integer /*level*/) const
{
S << "IGESGraph_LineFontPredefined" << Message_EndLine;
S << "No. of property values : " << ent->NbPropertyValues() << Message_EndLine;
S << "Line font pattern code : " << ent->LineFontPatternCode() << Message_EndLine;
S << Message_EndLine;
S << "IGESGraph_LineFontPredefined\n"
<< "No. of property values : " << ent->NbPropertyValues() << "\n"
<< "Line font pattern code : " << ent->LineFontPatternCode() << "\n"
<< std::endl;
}

View File

@@ -34,8 +34,6 @@ class Interface_ShareTool;
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
class Message_Messenger;
//! Tool to work on a LineFontPredefined. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -74,7 +72,7 @@ public:
Standard_EXPORT void OwnCopy (const Handle(IGESGraph_LineFontPredefined)& entfrom, const Handle(IGESGraph_LineFontPredefined)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
Standard_EXPORT void OwnDump (const Handle(IGESGraph_LineFontPredefined)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
Standard_EXPORT void OwnDump (const Handle(IGESGraph_LineFontPredefined)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;

View File

@@ -144,16 +144,15 @@ void IGESGraph_ToolNominalSize::OwnCheck
void IGESGraph_ToolNominalSize::OwnDump
(const Handle(IGESGraph_NominalSize)& ent, const IGESData_IGESDumper& /*dumper*/,
const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
Standard_OStream& S, const Standard_Integer /*level*/) const
{
S << "IGESGraph_NominalSize" << Message_EndLine;
S << "No. of property values : " << ent->NbPropertyValues() << Message_EndLine;
S << "Nominal size value : " << ent->NominalSizeValue() << Message_EndLine;
S << "Nominal size name : ";
S << "IGESGraph_NominalSize\n"
<< "No. of property values : " << ent->NbPropertyValues() << "\n"
<< "Nominal size value : " << ent->NominalSizeValue() << "\n"
<< "Nominal size name : ";
IGESData_DumpString(S,ent->NominalSizeName());
S << Message_EndLine;
S << "Name of relevant engineering standard : ";
S << "\n"
<< "Name of relevant engineering standard : ";
IGESData_DumpString(S,ent->StandardName());
S << Message_EndLine;
S << std::endl;
}

View File

@@ -34,8 +34,6 @@ class Interface_ShareTool;
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
class Message_Messenger;
//! Tool to work on a NominalSize. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -74,7 +72,7 @@ public:
Standard_EXPORT void OwnCopy (const Handle(IGESGraph_NominalSize)& entfrom, const Handle(IGESGraph_NominalSize)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
Standard_EXPORT void OwnDump (const Handle(IGESGraph_NominalSize)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
Standard_EXPORT void OwnDump (const Handle(IGESGraph_NominalSize)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;

View File

@@ -109,12 +109,11 @@ void IGESGraph_ToolPick::OwnCheck
void IGESGraph_ToolPick::OwnDump
(const Handle(IGESGraph_Pick)& ent, const IGESData_IGESDumper& /*dumper*/,
const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
Standard_OStream& S, const Standard_Integer /*level*/) const
{
S << "IGESGraph_Pick" << Message_EndLine;
S << "No. of property values : " << ent->NbPropertyValues() << Message_EndLine;
S << "Pick flag : " << ent->PickFlag();
S << (ent->PickFlag() == 0 ? " NO" : " YES" );
S << Message_EndLine;
S << "IGESGraph_Pick\n"
<< "No. of property values : " << ent->NbPropertyValues() << "\n"
<< "Pick flag : " << ent->PickFlag()
<< (ent->PickFlag() == 0 ? " NO" : " YES" )
<< std::endl;
}

View File

@@ -34,8 +34,6 @@ class Interface_ShareTool;
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
class Message_Messenger;
//! Tool to work on a Pick. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -74,7 +72,7 @@ public:
Standard_EXPORT void OwnCopy (const Handle(IGESGraph_Pick)& entfrom, const Handle(IGESGraph_Pick)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
Standard_EXPORT void OwnDump (const Handle(IGESGraph_Pick)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
Standard_EXPORT void OwnDump (const Handle(IGESGraph_Pick)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;

View File

@@ -182,14 +182,13 @@ void IGESGraph_ToolTextDisplayTemplate::OwnCheck
void IGESGraph_ToolTextDisplayTemplate::OwnDump
(const Handle(IGESGraph_TextDisplayTemplate)& ent, const IGESData_IGESDumper& dumper,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
Standard_OStream& S, const Standard_Integer level) const
{
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
S << "IGESGraph_TextDisplayTemplate" << Message_EndLine;
S << "Character box width : " << ent->BoxWidth() << " ";
S << "Character box height : " << ent->BoxHeight() << Message_EndLine;
S << "IGESGraph_TextDisplayTemplate\n"
<< "Character box width : " << ent->BoxWidth() << " "
<< "Character box height : " << ent->BoxHeight() << "\n";
if ( ent->IsFontEntity() )
{
S << "Font Entity : ";
@@ -197,15 +196,16 @@ void IGESGraph_ToolTextDisplayTemplate::OwnDump
}
else
S << "Font code : " << ent->FontCode();
S << Message_EndLine;
S << "Slant angle : " << ent->SlantAngle() << " ";
S << "Rotation angle : " << ent->RotationAngle() << Message_EndLine;
S << "Mirror flag : " << ent->MirrorFlag() << " ";
S << "Rotate flag : " << ent->RotateFlag() << Message_EndLine;
S << "\n"
<< "Slant angle : " << ent->SlantAngle() << " "
<< "Rotation angle : " << ent->RotationAngle() << "\n"
<< "Mirror flag : " << ent->MirrorFlag() << " "
<< "Rotate flag : " << ent->RotateFlag() << "\n";
if ( ent->FormNumber() == 0 )
S << "Lower Left Corner coordinates : ";
else
S << "Increments from coordinates : ";
IGESData_DumpXYZL(S,level, ent->StartingCorner(), ent->Location());
S << Message_EndLine;
S << std::endl;
}

View File

@@ -33,8 +33,6 @@ class Interface_ShareTool;
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
class Message_Messenger;
//! Tool to work on a TextDisplayTemplate. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
Standard_EXPORT void OwnCopy (const Handle(IGESGraph_TextDisplayTemplate)& entfrom, const Handle(IGESGraph_TextDisplayTemplate)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
Standard_EXPORT void OwnDump (const Handle(IGESGraph_TextDisplayTemplate)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
Standard_EXPORT void OwnDump (const Handle(IGESGraph_TextDisplayTemplate)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;

View File

@@ -288,32 +288,31 @@ void IGESGraph_ToolTextFontDef::OwnCheck
void IGESGraph_ToolTextFontDef::OwnDump
(const Handle(IGESGraph_TextFontDef)& ent, const IGESData_IGESDumper& dumper,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
Standard_OStream& S, const Standard_Integer level) const
{
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
Standard_Integer nbchars = ent->NbCharacters();
S << "IGESGraph_TextFontDef" << Message_EndLine;
S << "Font Code : " << ent->FontCode() << Message_EndLine;
S << "Font Name : ";
S << "IGESGraph_TextFontDef\n"
<< "Font Code : " << ent->FontCode() << "\n"
<< "Font Name : ";
IGESData_DumpString(S,ent->FontName());
S << Message_EndLine;
S << "\n";
if ( ent->IsSupersededFontEntity() ) {
S << "Text Definition Entity : ";
dumper.Dump(ent->SupersededFontEntity(),S, sublevel);
}
else S << "Superseding Font Number : " << ent->SupersededFontCode();
S << Message_EndLine;
S << "No. of Grid Units eqvt to 1 Text Height : " << ent->Scale() << Message_EndLine;
S << "ASCII Codes : " << Message_EndLine
<< "Grid Locations of next character origins : " << Message_EndLine
<< "Pen Motions : " << Message_EndLine
<< "Pen Positions : " << Message_EndLine
<< "Grid Locations the pen moves to : ";
S << "Count = " << nbchars << Message_EndLine;
S << "\n"
<< "No. of Grid Units eqvt to 1 Text Height : " << ent->Scale() << "\n"
<< "ASCII Codes :\n"
<< "Grid Locations of next character origins :\n"
<< "Pen Motions :\n"
<< "Pen Positions :\n"
<< "Grid Locations the pen moves to : "
<< "Count = " << nbchars << "\n";
IGESData_DumpVals(S,-level,1,nbchars,ent->ASCIICode);
S << Message_EndLine;
S << "\n";
if (level > 4 )
{
Handle(TColgp_HArray1OfXY) arrXY;
@@ -321,26 +320,25 @@ void IGESGraph_ToolTextFontDef::OwnDump
for (I = 1; I <= nbchars; I++)
{
Standard_Integer IX,IY;
S << "[" << I << "]: ";
S << "ASCII Code : " << ent->ASCIICode(I) << Message_EndLine;
S << "Grid Location of next character's origin : ";
S << "[" << I << "]: "
<< "ASCII Code : " << ent->ASCIICode(I) << "\n"
<< "Grid Location of next character's origin : ";
ent->NextCharOrigin(I,IX,IY);
S << "X=" << IX << " Y=" << IY;
nbmotions = ent->NbPenMotions(I);
S << " No. of Pen Motions : " << nbmotions;
if (level <= 5) S << " [ ask level > 5 for Details ]" << Message_EndLine;
if (level <= 5) S << " [ ask level > 5 for Details ]\n";
else {
S << Message_EndLine;
S << "\n";
for (J = 1; J <= nbmotions; J++)
{
S << "Pen up(1) / down(0) flag : " << (Standard_Integer)ent->IsPenUp(I,J);
S << " Next Pen Position : ";
S << "Pen up(1) / down(0) flag : " << (Standard_Integer)ent->IsPenUp(I,J)
<< " Next Pen Position : ";
ent->NextPenPosition(I,J, IX,IY);
S << " X="<<IX<<" Y="<<IY;
S << Message_EndLine;
S << " X="<<IX<<" Y="<<IY << "\n";
}
}
}
}
S << Message_EndLine;
S << std::endl;
}

View File

@@ -33,8 +33,6 @@ class Interface_ShareTool;
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
class Message_Messenger;
//! Tool to work on a TextFontDef. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
Standard_EXPORT void OwnCopy (const Handle(IGESGraph_TextFontDef)& entfrom, const Handle(IGESGraph_TextFontDef)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
Standard_EXPORT void OwnDump (const Handle(IGESGraph_TextFontDef)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
Standard_EXPORT void OwnDump (const Handle(IGESGraph_TextFontDef)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;

View File

@@ -32,7 +32,6 @@
#include <Interface_CopyTool.hxx>
#include <Interface_EntityIterator.hxx>
#include <Interface_ShareTool.hxx>
#include <Message_Messenger.hxx>
#include <Standard_DomainError.hxx>
IGESGraph_ToolUniformRectGrid::IGESGraph_ToolUniformRectGrid () { }
@@ -159,19 +158,18 @@ void IGESGraph_ToolUniformRectGrid::OwnCheck
void IGESGraph_ToolUniformRectGrid::OwnDump
(const Handle(IGESGraph_UniformRectGrid)& ent, const IGESData_IGESDumper& /*dumper*/,
const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
Standard_OStream& S, const Standard_Integer /*level*/) const
{
S << "IGESGraph_UniformRectGrid" << Message_EndLine;
S << "No. of property values : " << ent->NbPropertyValues() << Message_EndLine;
S << "Grid : " << ( ent->IsFinite() ? "Finite" : "Infinite");
S << " - Composed of " << ( ent->IsLine() ? "Lines" : "Points");
S << " - " << ( ent->IsWeighted() ? "Weighted" : "Unweighted") << Message_EndLine;
S << "Grid Point : ";
S << "IGESGraph_UniformRectGrid\n"
<< "No. of property values : " << ent->NbPropertyValues() << "\n"
<< "Grid : " << ( ent->IsFinite() ? "Finite" : "Infinite")
<< " - Composed of " << ( ent->IsLine() ? "Lines" : "Points")
<< " - " << ( ent->IsWeighted() ? "Weighted" : "Unweighted") << "\n"
<< "Grid Point : ";
IGESData_DumpXY(S, ent->GridPoint());
S << " Grid Spacing : ";
IGESData_DumpXY(S, ent->GridSpacing()); S << Message_EndLine;
IGESData_DumpXY(S, ent->GridSpacing()); S << "\n";
if (ent->IsFinite())
S << "No. of points/lines in direction : X : " << ent->NbPointsX()
<< " - Y : " << ent->NbPointsY() << Message_EndLine;
<< " - Y : " << ent->NbPointsY() << std::endl;
}

View File

@@ -34,8 +34,6 @@ class Interface_ShareTool;
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
class Message_Messenger;
//! Tool to work on a UniformRectGrid. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -74,7 +72,7 @@ public:
Standard_EXPORT void OwnCopy (const Handle(IGESGraph_UniformRectGrid)& entfrom, const Handle(IGESGraph_UniformRectGrid)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
Standard_EXPORT void OwnDump (const Handle(IGESGraph_UniformRectGrid)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
Standard_EXPORT void OwnDump (const Handle(IGESGraph_UniformRectGrid)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;