mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-08-03 03:26:03 +08: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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user