From: nds Date: Thu, 13 Feb 2020 04:31:44 +0000 (+0300) Subject: 0031354: Visualization - Dump improvement for V3d, Graphic3d, Aspect X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=2f171c2c8fbfb7ed8a7a536c0bf0b2b9abc9a254;p=occt-copy.git 0031354: Visualization - Dump improvement for V3d, Graphic3d, Aspect # warnings, virtual corrections (cherry picked from commit 1cf2847de7a03aee6b169be1c7b9b37c0979e2a8) --- diff --git a/src/Aspect/Aspect_CircularGrid.hxx b/src/Aspect/Aspect_CircularGrid.hxx index a915bcaa94..b8bb709ef9 100644 --- a/src/Aspect/Aspect_CircularGrid.hxx +++ b/src/Aspect/Aspect_CircularGrid.hxx @@ -57,7 +57,7 @@ public: Standard_EXPORT virtual void Init() Standard_OVERRIDE; //! Dumps the content of me into the stream - Standard_EXPORT void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const; + Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const Standard_OVERRIDE; private: diff --git a/src/Aspect/Aspect_GenId.cxx b/src/Aspect/Aspect_GenId.cxx index 85069e0b25..ea4937551d 100644 --- a/src/Aspect/Aspect_GenId.cxx +++ b/src/Aspect/Aspect_GenId.cxx @@ -121,7 +121,7 @@ Standard_Boolean Aspect_GenId::Next (Standard_Integer& theId) // function : DumpJson // purpose : // ======================================================================= -void Aspect_GenId::DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth) const +void Aspect_GenId::DumpJson (Standard_OStream& theOStream, Standard_Integer) const { OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myFreeCount) OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myLength) diff --git a/src/Aspect/Aspect_GradientBackground.hxx b/src/Aspect/Aspect_GradientBackground.hxx index 2bc111e731..049e2a9a0b 100644 --- a/src/Aspect/Aspect_GradientBackground.hxx +++ b/src/Aspect/Aspect_GradientBackground.hxx @@ -53,7 +53,7 @@ public: Standard_EXPORT Aspect_GradientFillMethod BgGradientFillMethod() const; //! Dumps the content of me into the stream - Standard_EXPORT void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const; + Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const Standard_OVERRIDE; diff --git a/src/Aspect/Aspect_RectangularGrid.hxx b/src/Aspect/Aspect_RectangularGrid.hxx index 79513d35d5..8e4146e95d 100644 --- a/src/Aspect/Aspect_RectangularGrid.hxx +++ b/src/Aspect/Aspect_RectangularGrid.hxx @@ -69,7 +69,7 @@ public: Standard_EXPORT virtual void Init() Standard_OVERRIDE; //! Dumps the content of me into the stream - Standard_EXPORT void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const; + Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const Standard_OVERRIDE; private: diff --git a/src/Graphic3d/Graphic3d_AspectText3d.cxx b/src/Graphic3d/Graphic3d_AspectText3d.cxx index c2d7312ca9..22ace08ffb 100644 --- a/src/Graphic3d/Graphic3d_AspectText3d.cxx +++ b/src/Graphic3d/Graphic3d_AspectText3d.cxx @@ -56,6 +56,10 @@ Graphic3d_AspectText3d::Graphic3d_AspectText3d (const Quantity_Color& theColor, } } +// ======================================================================= +// function : DumpJson +// purpose : +// ======================================================================= void Graphic3d_AspectText3d::DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth) const { OCCT_DUMP_TRANSIENT_CLASS_BEGIN (theOStream) diff --git a/src/Graphic3d/Graphic3d_AspectText3d.hxx b/src/Graphic3d/Graphic3d_AspectText3d.hxx index f2e09c02f0..70a558123f 100644 --- a/src/Graphic3d/Graphic3d_AspectText3d.hxx +++ b/src/Graphic3d/Graphic3d_AspectText3d.hxx @@ -112,7 +112,7 @@ public: Font_FontAspect GetTextFontAspect() const { return myTextFontAspect; } //! Dumps the content of me into the stream - Standard_EXPORT void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const; + Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const Standard_OVERRIDE; }; diff --git a/src/Graphic3d/Graphic3d_Aspects.hxx b/src/Graphic3d/Graphic3d_Aspects.hxx index fc519efb0d..a058eb5ee6 100644 --- a/src/Graphic3d/Graphic3d_Aspects.hxx +++ b/src/Graphic3d/Graphic3d_Aspects.hxx @@ -523,7 +523,7 @@ public: } //! Dumps the content of me into the stream - Standard_EXPORT void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const; + Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const; protected: diff --git a/src/Graphic3d/Graphic3d_CView.hxx b/src/Graphic3d/Graphic3d_CView.hxx index a9c06b9a0f..420c9b0a7d 100644 --- a/src/Graphic3d/Graphic3d_CView.hxx +++ b/src/Graphic3d/Graphic3d_CView.hxx @@ -457,7 +457,7 @@ public: //! @name obsolete Graduated Trihedron functionality } //! Dumps the content of me into the stream - Standard_EXPORT void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const; + Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const Standard_OVERRIDE; private: diff --git a/src/Graphic3d/Graphic3d_Vertex.cxx b/src/Graphic3d/Graphic3d_Vertex.cxx index b810225902..c8e6a6f81b 100644 --- a/src/Graphic3d/Graphic3d_Vertex.cxx +++ b/src/Graphic3d/Graphic3d_Vertex.cxx @@ -28,7 +28,7 @@ Standard_ShortReal Graphic3d_Vertex::Distance(const Graphic3d_Vertex& AOther) co // function : DumpJson // purpose : // ======================================================================= -void Graphic3d_Vertex::DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth) const +void Graphic3d_Vertex::DumpJson (Standard_OStream& theOStream, Standard_Integer) const { OCCT_DUMP_VECTOR_CLASS (theOStream, "Graphic3d_Vertex", 3, xyz[0], xyz[1], xyz[2]) } diff --git a/src/Graphic3d/Graphic3d_Vertex.hxx b/src/Graphic3d/Graphic3d_Vertex.hxx index 85d2b221b2..f48c419ca4 100644 --- a/src/Graphic3d/Graphic3d_Vertex.hxx +++ b/src/Graphic3d/Graphic3d_Vertex.hxx @@ -110,7 +110,7 @@ public: Standard_EXPORT Standard_ShortReal Distance (const Graphic3d_Vertex& theOther) const; //! Dumps the content of me into the stream - Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const; + Standard_EXPORT void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const; float xyz[3]; diff --git a/src/V3d/V3d_CircularGrid.hxx b/src/V3d/V3d_CircularGrid.hxx index f797d0a69a..b18b414d37 100644 --- a/src/V3d/V3d_CircularGrid.hxx +++ b/src/V3d/V3d_CircularGrid.hxx @@ -52,7 +52,7 @@ public: Standard_EXPORT void SetGraphicValues (const Standard_Real Radius, const Standard_Real OffSet); //! Dumps the content of me into the stream - Standard_EXPORT void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const; + Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const Standard_OVERRIDE; protected: diff --git a/src/V3d/V3d_RectangularGrid.hxx b/src/V3d/V3d_RectangularGrid.hxx index f75f8305c9..33594bb43d 100644 --- a/src/V3d/V3d_RectangularGrid.hxx +++ b/src/V3d/V3d_RectangularGrid.hxx @@ -51,7 +51,7 @@ public: Standard_EXPORT void SetGraphicValues (const Standard_Real XSize, const Standard_Real YSize, const Standard_Real OffSet); //! Dumps the content of me into the stream - Standard_EXPORT void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const; + Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const Standard_OVERRIDE; protected: diff --git a/src/gp/gp_Vec.cxx b/src/gp/gp_Vec.cxx index ab42126d3e..5b6d0662f2 100644 --- a/src/gp/gp_Vec.cxx +++ b/src/gp/gp_Vec.cxx @@ -132,7 +132,7 @@ gp_Vec gp_Vec::Mirrored (const gp_Ax2& A2) const // function : DumpJson // purpose : // ======================================================================= -void gp_Vec::DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth) const +void gp_Vec::DumpJson (Standard_OStream& theOStream, Standard_Integer) const { OCCT_DUMP_VECTOR_CLASS (theOStream, "gp_Vec", 3, coord.X(), coord.Y(), coord.Z()) } diff --git a/src/gp/gp_Vec.hxx b/src/gp/gp_Vec.hxx index 5d5df609c4..b537f560b0 100644 --- a/src/gp/gp_Vec.hxx +++ b/src/gp/gp_Vec.hxx @@ -356,7 +356,7 @@ public: Standard_NODISCARD gp_Vec Transformed (const gp_Trsf& T) const; //! Dumps the content of me into the stream - Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const; + Standard_EXPORT void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const;