1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0030268: Inspectors - improvements in VInspector plugin

# Dump for OCCT objects

(cherry picked from commit ac3d1e7de29f5ffed15e6445ef0694b63524b3dd)
This commit is contained in:
nds
2019-10-04 09:33:45 +03:00
parent 6ad25e3a28
commit 22f35b2166
269 changed files with 16172 additions and 883 deletions

View File

@@ -361,3 +361,27 @@ Standard_Real Select3D_SensitiveGroup::distanceToCOG (SelectBasics_SelectingVolu
{
return theMgr.DistToGeometryCenter (CenterOfGeometry());
}
// =======================================================================
// function : DumpJson
// purpose :
// =======================================================================
void Select3D_SensitiveGroup::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
{
OCCT_DUMP_CLASS_BEGIN (theOStream, Select3D_SensitiveGroup);
OCCT_DUMP_BASE_CLASS (theOStream, theDepth, Select3D_SensitiveSet);
for (Select3D_IndexedMapOfEntity::Iterator anIterator (myEntities); anIterator.More(); anIterator.Next())
{
Handle(Select3D_SensitiveEntity) anEntity = anIterator.Value();
OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, anEntity.get());
}
OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myMustMatchAll);
OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myToCheckOverlapAll);
OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &myCenter);
OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &myBndBox);
//NCollection_Vector<Standard_Integer> myBVHPrimIndexes; //!< Vector of sub-entities indexes for BVH tree build
}