//function : DumpJson
//purpose :
//=======================================================================
-void CDM_MetaData::DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth) const
+void CDM_MetaData::DumpJson (Standard_OStream& theOStream, Standard_Integer) const
{
OCCT_DUMP_TRANSIENT_CLASS_BEGIN (theOStream)
OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myIsRetrieved)
- OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, myDocument)
+ OCCT_DUMP_FIELD_VALUE_POINTER (theOStream, myDocument)
OCCT_DUMP_FIELD_VALUE_STRING (theOStream, myFolder)
OCCT_DUMP_FIELD_VALUE_STRING (theOStream, myName)
//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)
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_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_VALUES_DUMPED (theOStream, theDepth, myNext.get())
- OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, myBackup.get())
+ OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myFlags)
}
OCCT_DUMP_BASE_CLASS (theOStream, theDepth, TDF_Attribute)
OCCT_DUMP_FIELD_VALUE_STRING (theOStream, myString)
- OCCT_DUMP_FIELD_VALUE_GUID (theOStream, myID)
}
}
OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myLower)
OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myUpper)
- OCCT_DUMP_FIELD_VALUE_GUID (theOStream, myID)
}
const Standard_Byte& aValue = aListIt.Value();
OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, aValue)
}
- OCCT_DUMP_FIELD_VALUE_GUID (theOStream, myID)
}
OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, aValue)
}
OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myIsDelta)
- OCCT_DUMP_FIELD_VALUE_GUID (theOStream, myID)
}
//function : DumpJson
//purpose :
//=======================================================================
-void TDataStd_ExtStringArray::DumpJson (Standard_OStream& theOStream, Standard_Integer /*theDepth*/) const
+void TDataStd_ExtStringArray::DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth) const
{
OCCT_DUMP_TRANSIENT_CLASS_BEGIN (theOStream)
+ OCCT_DUMP_BASE_CLASS (theOStream, theDepth, TDF_Attribute)
+
for (TColStd_Array1OfExtendedString::Iterator aValueIt (myValue->Array1()); aValueIt.More(); aValueIt.Next())
{
const TCollection_ExtendedString& aValue = aValueIt.Value();
}
OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myIsDelta)
- OCCT_DUMP_FIELD_VALUE_GUID (theOStream, myID)
}
//function : DumpJson
//purpose :
//=======================================================================
-void TDataStd_ExtStringList::DumpJson (Standard_OStream& theOStream, Standard_Integer /*theDepth*/) const
+void TDataStd_ExtStringList::DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth) const
{
OCCT_DUMP_TRANSIENT_CLASS_BEGIN (theOStream)
+ OCCT_DUMP_BASE_CLASS (theOStream, theDepth, TDF_Attribute)
+
for (TDataStd_ListOfExtendedString::Iterator aListIt (myList); aListIt.More(); aListIt.Next())
{
const TCollection_ExtendedString& aValue = aListIt.Value();
OCCT_DUMP_FIELD_VALUE_STRING (theOStream, aValue);
}
-
- OCCT_DUMP_FIELD_VALUE_GUID (theOStream, myID)
}
OCCT_DUMP_BASE_CLASS (theOStream, theDepth, TDF_Attribute)
OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myValue)
- OCCT_DUMP_FIELD_VALUE_GUID (theOStream, myID)
}
}
OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myIsDelta)
- OCCT_DUMP_FIELD_VALUE_GUID (theOStream, myID)
}
const Standard_Integer& aValue = aListIt.Value();
OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, aValue)
}
- OCCT_DUMP_FIELD_VALUE_GUID (theOStream, myID)
}
OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myValue)
OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myDimension)
- OCCT_DUMP_FIELD_VALUE_GUID (theOStream, myID)
}
}
OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myIsDelta)
- OCCT_DUMP_FIELD_VALUE_GUID (theOStream, myID)
}
const Standard_Real& aValue = aListIt.Value();
OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, aValue)
}
-
- OCCT_DUMP_FIELD_VALUE_GUID (theOStream, myID)
}
TDF_Tool::Entry (anArrayIt.Value(), aLabel);
OCCT_DUMP_FIELD_VALUE_STRING (theOStream, aLabel)
}
-
- OCCT_DUMP_FIELD_VALUE_GUID (theOStream, myID)
}
TDF_Tool::Entry (aListIt.Value(), aLabel);
OCCT_DUMP_FIELD_VALUE_STRING (theOStream, aLabel)
}
-
- OCCT_DUMP_FIELD_VALUE_GUID (theOStream, myID)
}
TDF_Tool::Entry (myLast->Label(), aLast);
OCCT_DUMP_FIELD_VALUE_STRING (theOStream, aLast)
}
-
- OCCT_DUMP_FIELD_VALUE_GUID (theOStream, myTreeID)
}
OCCT_DUMP_TRANSIENT_CLASS_BEGIN (theOStream)
OCCT_DUMP_BASE_CLASS (theOStream, theDepth, TDF_Attribute)
-
- OCCT_DUMP_FIELD_VALUE_GUID (theOStream, myID)
}
OCCT_DUMP_BASE_CLASS (theOStream, theDepth, CDM_Document)
OCCT_DUMP_FIELD_VALUE_STRING (theOStream, myStorageFormat)
+ OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, IsSaved())
+ OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, IsChanged())
+ OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, IsEmpty())
+ OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, IsValid())
+ OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, GetAvailableUndos())
+ OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, GetAvailableRedos())
+ OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, HasOpenCommand())
for (TDF_DeltaList::Iterator anUndoIt (myUndos); anUndoIt.More(); anUndoIt.Next())
{
OCCT_DUMP_TRANSIENT_CLASS_BEGIN (theOStream)
OCCT_DUMP_BASE_CLASS (theOStream, theDepth, TDF_Attribute)
-
- for (TNaming_DataMapOfShapePtrRefShape::Iterator aMapIt (myMap); aMapIt.More(); aMapIt.Next())
- {
- const TopoDS_Shape& aShape = aMapIt.Key();
- OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &aShape)
-
- TCollection_AsciiString aLabel;
- TDF_Tool::Entry (aMapIt.Value()->Label(), aLabel);
- OCCT_DUMP_FIELD_VALUE_STRING (theOStream, aLabel)
-
- const TopoDS_Shape& aRefShape = aMapIt.Value()->Shape();
-
- OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &aRefShape)
- }
}
{
myDatumTargetNumber = theNumber;
}
+
+//=======================================================================
+//function : DumpJson
+//purpose :
+//=======================================================================
+void XCAFDimTolObjects_DatumObject::DumpJson (Standard_OStream& theOStream,
+ Standard_Integer theDepth) const
+{
+ OCCT_DUMP_TRANSIENT_CLASS_BEGIN (theOStream)
+
+ if (!myName.IsNull())
+ {
+ Standard_CString aDatumName = myName->ToCString();
+ OCCT_DUMP_FIELD_VALUE_STRING (theOStream, aDatumName)
+ }
+ OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myModifierWithValue)
+ OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myValueOfModifier)
+
+ if (!myDatumTarget.IsNull())
+ {
+ OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &myDatumTarget)
+ }
+
+
+ OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myPosition)
+ OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myIsDTarget)
+ OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myIsValidDT)
+
+ OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myDTargetType)
+ OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &myAxis)
+
+ OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myLength)
+ OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myWidth)
+ OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myDatumTargetNumber)
+
+ if (myHasPlane)
+ {
+ OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &myPlane)
+ }
+
+ if (myHasPnt)
+ {
+ OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &myPnt)
+ }
+
+ if (myHasPntText)
+ {
+ OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &myPntText)
+ }
+
+ if (!myPresentation.IsNull())
+ {
+ OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &myPresentation)
+ }
+
+ if (!mySemanticName.IsNull())
+ {
+ Standard_CString aSemanticName = mySemanticName->ToCString();
+ OCCT_DUMP_FIELD_VALUE_STRING (theOStream, aSemanticName)
+ }
+ if (!myPresentationName.IsNull())
+ {
+ Standard_CString aPresentationName = myPresentationName->ToCString();
+ OCCT_DUMP_FIELD_VALUE_STRING (theOStream, aPresentationName)
+ }
+
+ for (XCAFDimTolObjects_DatumModifiersSequence::Iterator aModifIt (myModifiers); aModifIt.More(); aModifIt.Next())
+ {
+ XCAFDimTolObjects_DatumSingleModif aModifier = aModifIt.Value();
+ OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, aModifier)
+ }
+}
return myIsValidDT;
}
+ //! Dumps the content of me into the stream
+ Standard_EXPORT void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const;
+
DEFINE_STANDARD_RTTIEXT(XCAFDimTolObjects_DatumObject,Standard_Transient)
private:
myDescriptions = aDescriptions;
myDescriptionNames = aDescriptionNames;
}
+
+//=======================================================================
+//function : DumpJson
+//purpose :
+//=======================================================================
+void XCAFDimTolObjects_DimensionObject::DumpJson (Standard_OStream& theOStream,
+ Standard_Integer theDepth) const
+{
+ OCCT_DUMP_TRANSIENT_CLASS_BEGIN (theOStream)
+
+ OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myType)
+
+ if (!myVal.IsNull())
+ {
+ for (Standard_Integer anId = myVal->Lower(); anId <= myVal->Upper(); anId++)
+ {
+ Standard_Real aValue = myVal->Value (anId);
+ OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, aValue)
+ }
+ }
+
+ OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myQualifier)
+ OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myIsHole)
+ OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myFormVariance)
+
+ OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myGrade)
+ OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myL)
+ OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myR)
+
+ if (!myPath.IsNull())
+ {
+ OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &myPath)
+ }
+
+ OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &myDir)
+ if (myHasPoint1)
+ {
+ OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &myPnt1)
+ }
+
+ if (myHasPoint2)
+ {
+ OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &myPnt2)
+ }
+
+ if (myHasPlane)
+ {
+ OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &myPlane)
+ }
+
+ if (myHasPntText)
+ {
+ OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &myPntText)
+ }
+
+ if (!myPresentation.IsNull())
+ {
+ OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &myPresentation)
+ }
+
+ if (!mySemanticName.IsNull())
+ {
+ Standard_CString aSemanticName = mySemanticName->ToCString();
+ OCCT_DUMP_FIELD_VALUE_STRING (theOStream, aSemanticName)
+ }
+ if (!myPresentationName.IsNull())
+ {
+ Standard_CString aPresentationName = myPresentationName->ToCString();
+ OCCT_DUMP_FIELD_VALUE_STRING (theOStream, aPresentationName)
+ }
+
+ for (NCollection_Vector<Handle(TCollection_HAsciiString)>::Iterator aDescIt (myDescriptions); aDescIt.More(); aDescIt.Next())
+ {
+ if (aDescIt.Value().IsNull())
+ continue;
+ Standard_CString aDescription = aDescIt.Value()->ToCString();
+ OCCT_DUMP_FIELD_VALUE_STRING (theOStream, aDescription)
+ }
+
+ for (NCollection_Vector<Handle(TCollection_HAsciiString)>::Iterator aDescNameIt (myDescriptionNames); aDescNameIt.More(); aDescNameIt.Next())
+ {
+ if (aDescNameIt.Value().IsNull())
+ continue;
+ Standard_CString aDescriptionName = aDescNameIt.Value()->ToCString();
+ OCCT_DUMP_FIELD_VALUE_STRING (theOStream, aDescriptionName)
+ }
+
+ for (XCAFDimTolObjects_DimensionModifiersSequence::Iterator aModifIt (myModifiers); aModifIt.More(); aModifIt.Next())
+ {
+ XCAFDimTolObjects_DimensionModif aModifier = aModifIt.Value();
+ OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, aModifier)
+ }
+}
myDescriptionNames.Append(theName);
}
+ //! Dumps the content of me into the stream
+ Standard_EXPORT void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const;
+
DEFINE_STANDARD_RTTIEXT(XCAFDimTolObjects_DimensionObject,Standard_Transient)
private:
{
return myHasAxis;
}
+
+//=======================================================================
+//function : DumpJson
+//purpose :
+//=======================================================================
+void XCAFDimTolObjects_GeomToleranceObject::DumpJson (Standard_OStream& theOStream,
+ Standard_Integer theDepth) const
+{
+ OCCT_DUMP_TRANSIENT_CLASS_BEGIN (theOStream)
+
+ OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myType)
+ OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myTypeOfValue)
+ OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myValue)
+
+ OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myMatReqModif)
+ OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myZoneModif)
+ OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myValueOfZoneModif)
+
+ OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myMaxValueModif)
+ if (myHasAxis)
+ {
+ OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &myAxis)
+ }
+
+ if (myHasPlane)
+ {
+ OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &myPlane)
+ }
+
+ if (myHasPnt)
+ {
+ OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &myPnt)
+ }
+
+ if (myHasPntText)
+ {
+ OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &myPntText)
+ }
+
+ if (!myPresentation.IsNull())
+ {
+ OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &myPresentation)
+ }
+
+ if (!mySemanticName.IsNull())
+ {
+ Standard_CString aSemanticName = mySemanticName->ToCString();
+ OCCT_DUMP_FIELD_VALUE_STRING (theOStream, aSemanticName)
+ }
+ if (!myPresentationName.IsNull())
+ {
+ Standard_CString aPresentationName = myPresentationName->ToCString();
+ OCCT_DUMP_FIELD_VALUE_STRING (theOStream, aPresentationName)
+ }
+
+ OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &myAffectedPlane)
+
+ for (XCAFDimTolObjects_GeomToleranceModifiersSequence::Iterator aModifIt (myModifiers); aModifIt.More(); aModifIt.Next())
+ {
+ XCAFDimTolObjects_GeomToleranceModif aModifier = aModifIt.Value();
+ OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, aModifier)
+ }
+}
return myAffectedPlane;
}
+ //! Dumps the content of me into the stream
+ Standard_EXPORT void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const;
DEFINE_STANDARD_RTTIEXT(XCAFDimTolObjects_GeomToleranceObject,Standard_Transient)
#include <TDF_ChildIDIterator.hxx>
#include <TDF_Label.hxx>
#include <TDF_RelocationTable.hxx>
+#include <TDF_Tool.hxx>
#include <TNaming_NamedShape.hxx>
#include <TopoDS_Shape.hxx>
#include <XCAFDoc.hxx>
OCCT_DUMP_BASE_CLASS (theOStream, theDepth, TDF_Attribute)
- OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, myShapeTool.get())
+ TDF_LabelSequence aLabels;
+ GetColors (aLabels);
+ for (TDF_LabelSequence::Iterator aColorLabelIt (aLabels); aColorLabelIt.More(); aColorLabelIt.Next())
+ {
+ TCollection_AsciiString aColorLabel;
+ TDF_Tool::Entry (aColorLabelIt.Value(), aColorLabel);
+ OCCT_DUMP_FIELD_VALUE_STRING (theOStream, aColorLabel)
+ }
}
OCCT_DUMP_FIELD_VALUE_STRING (theOStream, myName.get())
OCCT_DUMP_FIELD_VALUE_STRING (theOStream, myDescription.get())
OCCT_DUMP_FIELD_VALUE_STRING (theOStream, myIdentification.get())
+
+ Handle(XCAFDimTolObjects_DatumObject) anObject = GetObject();
+ OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, anObject.get())
}
#include <TDF_ChildIDIterator.hxx>
#include <TDF_Label.hxx>
#include <TDF_RelocationTable.hxx>
+#include <TDF_Tool.hxx>
#include <XCAFDimTolObjects_DatumObject.hxx>
#include <XCAFDimTolObjects_DimensionObject.hxx>
#include <XCAFDimTolObjects_GeomToleranceObject.hxx>
OCCT_DUMP_BASE_CLASS (theOStream, theDepth, TDF_Attribute)
- OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, myShapeTool.get())
+ TDF_LabelSequence aLabels;
+ GetDimensionLabels (aLabels);
+ for (TDF_LabelSequence::Iterator aDimLabelIt (aLabels); aDimLabelIt.More(); aDimLabelIt.Next())
+ {
+ TCollection_AsciiString aDimensionLabel;
+ TDF_Tool::Entry (aDimLabelIt.Value(), aDimensionLabel);
+ OCCT_DUMP_FIELD_VALUE_STRING (theOStream, aDimensionLabel)
+ }
+
+ aLabels.Clear();
+ GetGeomToleranceLabels (aLabels);
+ for (TDF_LabelSequence::Iterator aGeomToleranceLabelIt (aLabels); aGeomToleranceLabelIt.More(); aGeomToleranceLabelIt.Next())
+ {
+ TCollection_AsciiString aGeomToleranceLabel;
+ TDF_Tool::Entry (aGeomToleranceLabelIt.Value(), aGeomToleranceLabel);
+ OCCT_DUMP_FIELD_VALUE_STRING (theOStream, aGeomToleranceLabel)
+ }
+
+ aLabels.Clear();
+ GetDimTolLabels (aLabels);
+ for (TDF_LabelSequence::Iterator aDimTolLabelIt (aLabels); aDimTolLabelIt.More(); aDimTolLabelIt.Next())
+ {
+ TCollection_AsciiString aDimTolLabelLabel;
+ TDF_Tool::Entry (aDimTolLabelIt.Value(), aDimTolLabelLabel);
+ OCCT_DUMP_FIELD_VALUE_STRING (theOStream, aDimTolLabelLabel)
+ }
+
+ aLabels.Clear();
+ GetDatumLabels (aLabels);
+ for (TDF_LabelSequence::Iterator aDatumLabelIt (aLabels); aDatumLabelIt.More(); aDatumLabelIt.Next())
+ {
+ TCollection_AsciiString aDatumLabel;
+ TDF_Tool::Entry (aDatumLabelIt.Value(), aDatumLabel);
+ OCCT_DUMP_FIELD_VALUE_STRING (theOStream, aDatumLabel)
+ }
}
{
return GetID();
}
+
+//=======================================================================
+//function : DumpJson
+//purpose :
+//=======================================================================
+void XCAFDoc_Dimension::DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth) const
+{
+ OCCT_DUMP_TRANSIENT_CLASS_BEGIN (theOStream)
+
+ OCCT_DUMP_BASE_CLASS (theOStream, theDepth, TDataStd_GenericEmpty)
+
+ Handle(XCAFDimTolObjects_DimensionObject) anObject = GetObject();
+ OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, anObject.get())
+}
//! Returns dimension object data taken from the parent's label and its sub-labels.
Standard_EXPORT Handle(XCAFDimTolObjects_DimensionObject) GetObject() const;
+ //! Dumps the content of me into the stream
+ Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const Standard_OVERRIDE;
DEFINE_DERIVED_ATTRIBUTE(XCAFDoc_Dimension,TDataStd_GenericEmpty)
{
return GetID();
}
+
+//=======================================================================
+//function : DumpJson
+//purpose :
+//=======================================================================
+void XCAFDoc_GeomTolerance::DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth) const
+{
+ OCCT_DUMP_TRANSIENT_CLASS_BEGIN (theOStream)
+
+ OCCT_DUMP_BASE_CLASS (theOStream, theDepth, TDataStd_GenericEmpty)
+
+ Handle(XCAFDimTolObjects_GeomToleranceObject) anObject = GetObject();
+ OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, anObject.get())
+}
Standard_EXPORT const Standard_GUID& ID() const Standard_OVERRIDE;
+ //! Dumps the content of me into the stream
+ Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const Standard_OVERRIDE;
DEFINE_DERIVED_ATTRIBUTE(XCAFDoc_GeomTolerance,TDataStd_GenericEmpty)
};
for (XCAFDoc_GraphNodeSequence::Iterator anIteratorFather (myFathers); anIteratorFather.More(); anIteratorFather.Next())
{
const Handle(XCAFDoc_GraphNode)& aFather = anIteratorFather.Value();
- OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, aFather.get())
+ OCCT_DUMP_FIELD_VALUE_POINTER (theOStream, aFather)
}
for (XCAFDoc_GraphNodeSequence::Iterator anIteratorChild (myChildren); anIteratorChild.More(); anIteratorChild.Next())
const Handle(XCAFDoc_GraphNode)& aChild = anIteratorChild.Value();
OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, aChild.get())
}
-
- OCCT_DUMP_FIELD_VALUE_GUID (theOStream, myGraphID)
}
#include <TDF_ChildIterator.hxx>
#include <TDF_Label.hxx>
#include <TDF_RelocationTable.hxx>
+#include <TDF_Tool.hxx>
#include <TopoDS_Shape.hxx>
#include <XCAFDoc.hxx>
#include <XCAFDoc_DocumentTool.hxx>
OCCT_DUMP_BASE_CLASS (theOStream, theDepth, TDF_Attribute)
- OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, myShapeTool.get())
+ TDF_LabelSequence aLabels;
+ GetLayerLabels (aLabels);
+ for (TDF_LabelSequence::Iterator aLayerLabelIt (aLabels); aLayerLabelIt.More(); aLayerLabelIt.Next())
+ {
+ TCollection_AsciiString aLayerLabel;
+ TDF_Tool::Entry (aLayerLabelIt.Value(), aLayerLabel);
+ OCCT_DUMP_FIELD_VALUE_STRING (theOStream, aLayerLabel)
+ }
}
\ No newline at end of file
OCCT_DUMP_BASE_CLASS (theOStream, theDepth, TDF_Attribute)
- OCCT_DUMP_FIELD_VALUE_STRING (theOStream, myName.get())
- OCCT_DUMP_FIELD_VALUE_STRING (theOStream, myDescription.get())
+ if (!myName.IsNull())
+ {
+ Standard_CString aMaterialName = myName->ToCString();
+ OCCT_DUMP_FIELD_VALUE_STRING (theOStream, aMaterialName)
+ }
+ if (!myDescription.IsNull())
+ {
+ Standard_CString aDescriptionName = myDescription->ToCString();
+ OCCT_DUMP_FIELD_VALUE_STRING (theOStream, aDescriptionName)
+ }
+
OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myDensity)
- OCCT_DUMP_FIELD_VALUE_STRING (theOStream, myDensName.get())
- OCCT_DUMP_FIELD_VALUE_STRING (theOStream, myDensValType.get())
+
+ if (!myDensName.IsNull())
+ {
+ Standard_CString aDensName = myDensName->ToCString();
+ OCCT_DUMP_FIELD_VALUE_STRING (theOStream, aDensName)
+ }
+ if (!myDensValType.IsNull())
+ {
+ Standard_CString aDensValType = myDensValType->ToCString();
+ OCCT_DUMP_FIELD_VALUE_STRING (theOStream, aDensValType)
+ }
}
#include <TDF_ChildIDIterator.hxx>
#include <TDF_Label.hxx>
#include <TDF_RelocationTable.hxx>
+#include <TDF_Tool.hxx>
#include <XCAFDoc.hxx>
#include <XCAFDoc_DocumentTool.hxx>
#include <XCAFDoc_Material.hxx>
OCCT_DUMP_BASE_CLASS (theOStream, theDepth, TDF_Attribute)
- OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, myShapeTool.get())
+ TDF_LabelSequence aLabels;
+ GetMaterialLabels (aLabels);
+ for (TDF_LabelSequence::Iterator aMaterialLabelIt (aLabels); aMaterialLabelIt.More(); aMaterialLabelIt.Next())
+ {
+ TCollection_AsciiString aMaterialLabel;
+ TDF_Tool::Entry (aMaterialLabelIt.Value(), aMaterialLabel);
+ OCCT_DUMP_FIELD_VALUE_STRING (theOStream, aMaterialLabel)
+ }
}
vxdir = gp_Dir (aXDir);
vydir = gp_Dir (anYDir);
+ if (!Direction().IsEqual (aDir, Precision::Angular()))
+ return Standard_False;
+
theStreamPos = aPos;
return Standard_True;
}