OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, aStructToCompute.get())
}
- for (Graphic3d_SequenceOfStructure::Iterator anIter (myStructsToCompute); anIter.More(); anIter.Next())
+ for (Graphic3d_SequenceOfStructure::Iterator anIter (myStructsComputed); anIter.More(); anIter.Next())
{
Handle(Graphic3d_Structure) aStructComputed = anIter.Value();
OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, aStructComputed.get())
}
- for (Graphic3d_MapOfStructure::Iterator anIter (myStructsDisplayed); anIter.More(); anIter.Next())
- {
- Handle(Graphic3d_Structure) aStructDisplayed = anIter.Value();
- }
-
OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myIsInComputedMode)
OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myIsActive)
OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myIsRemoved)
//function : DumpJson
//purpose :
//=======================================================================
-void Graphic3d_CameraTile::DumpJson (Standard_OStream& theOStream, Standard_Integer /*theDepth*/) const
+void Graphic3d_CameraTile::DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth) const
{
- OCCT_DUMP_VECTOR_CLASS (theOStream, "TotalSize", 2, TotalSize.x(), TotalSize.y())
- OCCT_DUMP_VECTOR_CLASS (theOStream, "TileSize", 2, TileSize.x(), TileSize.y())
- OCCT_DUMP_VECTOR_CLASS (theOStream, "Offset", 2, Offset.x(), Offset.y())
+ OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &TotalSize)
+ OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &TileSize)
+ OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &Offset)
OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, IsTopDown)
}
//function : DumpJson
//purpose :
//=======================================================================
-void Graphic3d_DataStructureManager::DumpJson (Standard_OStream& theOStream, Standard_Integer /*theDepth*/) const
+void Graphic3d_DataStructureManager::DumpJson (Standard_OStream& theOStream, Standard_Integer) const
{
OCCT_DUMP_TRANSIENT_CLASS_BEGIN (theOStream)
}
OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, StatsPosition.get())
OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, ChartPosition.get())
- OCCT_DUMP_VECTOR_CLASS (theOStream, "ChartSize", 2, ChartSize.x(), ChartSize.y())
+ OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &ChartSize)
OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, StatsTextAspect.get())
OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, StatsUpdateInterval)
void Graphic3d_Structure::DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth) const
{
OCCT_DUMP_TRANSIENT_CLASS_BEGIN (theOStream)
-
+
OCCT_DUMP_FIELD_VALUE_POINTER (theOStream, myStructureManager)
OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, myCStructure.get())
#include <Graphic3d_Vertex.hxx>
+#include <gp_XYZ.hxx>
#include <Standard_Dump.hxx>
Standard_ShortReal Graphic3d_Vertex::Distance(const Graphic3d_Vertex& AOther) const
// function : DumpJson
// purpose :
// =======================================================================
-void Graphic3d_Vertex::DumpJson (Standard_OStream& theOStream, Standard_Integer) const
+void Graphic3d_Vertex::DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth) const
{
- OCCT_DUMP_VECTOR_CLASS (theOStream, "Graphic3d_Vertex", 3, xyz[0], xyz[1], xyz[2])
+ gp_XYZ aCoord (xyz[0], xyz[1], xyz[2]);
+ OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &aCoord)
}
myWorldViewState = theOther.myWorldViewState;
}
- void DumpJson (Standard_OStream& theOStream, Standard_Integer /*theDepth*/) const
+ void DumpJson (Standard_OStream& theOStream, Standard_Integer) const
{
OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myIsValid)
OCCT_DUMP_FIELD_VALUE_POINTER (theOStream, myCamera)
#include <cmath> // std::sqrt()
+#include <Standard_Dump.hxx>
+
//! Auxiliary macros to define couple of similar access components as vector methods.
//! @return 2 components by their names in specified order
#define NCOLLECTION_VEC_COMPONENTS_2D(theX, theY) \
return NCollection_Vec2 (Element_t(0), Element_t(1));
}
+ //! Dumps the content of me into the stream
+ void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const
+ {
+ (void)theDepth;
+ OCCT_DUMP_FIELD_VALUES_NUMERICAL (theOStream, "Vec2", 2, v[0], v[1])
+ }
+
private:
Element_t v[2];
OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, myDriver.get())
OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, myStructureManager.get())
- //TColStd_MapOfInteger myLayerIds;
OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &myZLayerGenId)
for (V3d_ListOfView::Iterator anIter (myDefinedViews); anIter.More(); anIter.Next())
Handle(Graphic3d_CLight) anActiveLight = anIter.Value();
OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, anActiveLight.get())
}
+
OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &myBackground)
OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &myGradientBackground)
void MessageView_Window::updateVisibleColumns()
{
MessageModel_TreeModel* aViewModel = dynamic_cast<MessageModel_TreeModel*> (myTreeView->model());
- const NCollection_List<MessageModel_ReportInformation>& aReports = aViewModel->Reports();
NCollection_Map<Message_MetricType> anActiveMetrics;
for (NCollection_List<MessageModel_ReportInformation>::Iterator anIterator (aViewModel->Reports()); anIterator.More(); anIterator.Next())
#include <inspector/VInspector_ItemContext.hxx>
#include <inspector/VInspector_ItemV3dViewer.hxx>
-// =======================================================================
-// function : Init
-// purpose :
-// =======================================================================
-void VInspector_ItemContextProperties::Init()
-{
- TreeModel_ItemBase::Init(); // to use getIO() without circling initialization
-}
-
// =======================================================================
// function : initValue
// purpose :
//! Destructor
virtual ~VInspector_ItemContextProperties() Standard_OVERRIDE {};
- //! Inits the item, fills internal containers
- Standard_EXPORT virtual void Init() Standard_OVERRIDE;
-
protected:
//! Initializes the current item. It is empty because Reset() is also empty.
virtual void initItem() const Standard_OVERRIDE;