mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0031354: Visualization - Dump improvement for V3d, Graphic3d, Aspect
- do not dump light in view as it's dumped in the viewer
This commit is contained in:
@@ -17,6 +17,8 @@
|
||||
|
||||
#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) \
|
||||
@@ -289,6 +291,13 @@ public:
|
||||
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];
|
||||
|
@@ -18,7 +18,6 @@
|
||||
#include <cstring>
|
||||
#include <cmath>
|
||||
#include <NCollection_Vec2.hxx>
|
||||
#include <Standard_Dump.hxx>
|
||||
|
||||
//! Auxiliary macros to define couple of similar access components as vector methods
|
||||
#define NCOLLECTION_VEC_COMPONENTS_3D(theX, theY, theZ) \
|
||||
|
@@ -16,7 +16,6 @@
|
||||
#define _NCollection_Vec4_H__
|
||||
|
||||
#include <NCollection_Vec3.hxx>
|
||||
#include <Standard_Dump.hxx>
|
||||
|
||||
//! Generic 4-components vector.
|
||||
//! To be used as RGBA color vector or XYZW 3D-point with special W-component
|
||||
|
Reference in New Issue
Block a user