mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0031350: Foundation Classes - Dump improvement for OCAF classes
- do not dump document in CDM_MetaData, just pointer text; - move ID dump in to TDF_Attribute; - extend TDF_Attribute with other important states(obtained by methods); - extend TDocStd_Document with other important states; - avoid dumping of shapes in TNaming_UsedShapes (it takes much time); - extend XCAFDoc, XCAFDimTolObjects dump to json; - correct XCAFDoc_ColorTool, XCAFDoc_MaterialTool, XCAFDoc_LayerTool to dump only connected to the object information; - correct XCAFDoc_Material to dump name and density value only if it exists; - add check on correct direction in gp_Ax3.
This commit is contained in:
@@ -414,7 +414,7 @@ void TDF_Attribute::ExtendedDump
|
||||
//function : DumpJson
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
void TDF_Attribute::DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth) const
|
||||
void TDF_Attribute::DumpJson (Standard_OStream& theOStream, Standard_Integer) const
|
||||
{
|
||||
OCCT_DUMP_TRANSIENT_CLASS_BEGIN (theOStream)
|
||||
|
||||
@@ -422,10 +422,14 @@ void TDF_Attribute::DumpJson (Standard_OStream& theOStream, Standard_Integer the
|
||||
TDF_Tool::Entry (Label(), aLabel);
|
||||
OCCT_DUMP_FIELD_VALUE_STRING (theOStream, aLabel)
|
||||
|
||||
OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myTransaction)
|
||||
OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, mySavedTransaction)
|
||||
OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myFlags)
|
||||
OCCT_DUMP_FIELD_VALUE_GUID (theOStream, ID())
|
||||
OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, Transaction())
|
||||
OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, UntilTransaction())
|
||||
|
||||
OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, myNext.get())
|
||||
OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, myBackup.get())
|
||||
OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, IsValid())
|
||||
OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, IsNew())
|
||||
OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, IsBackuped())
|
||||
OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, IsForgotten())
|
||||
|
||||
OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myFlags)
|
||||
}
|
||||
|
Reference in New Issue
Block a user