mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-21 10:13:43 +03:00
0032001: Visualization - moving dump of selection owner from sensitive to selection manager
This commit is contained in:
parent
e529b67d19
commit
983aaaeb03
@ -39,7 +39,7 @@ void Select3D_SensitiveEntity::DumpJson (Standard_OStream& theOStream, Standard_
|
|||||||
{
|
{
|
||||||
OCCT_DUMP_TRANSIENT_CLASS_BEGIN (theOStream)
|
OCCT_DUMP_TRANSIENT_CLASS_BEGIN (theOStream)
|
||||||
|
|
||||||
OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, myOwnerId.get())
|
OCCT_DUMP_FIELD_VALUE_POINTER (theOStream, myOwnerId.get())
|
||||||
OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, mySFactor)
|
OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, mySFactor)
|
||||||
|
|
||||||
OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, NbSubElements());
|
OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, NbSubElements());
|
||||||
|
@ -124,6 +124,21 @@ void SelectMgr_Selection::DumpJson (Standard_OStream& theOStream, Standard_Integ
|
|||||||
{
|
{
|
||||||
OCCT_DUMP_TRANSIENT_CLASS_BEGIN (theOStream)
|
OCCT_DUMP_TRANSIENT_CLASS_BEGIN (theOStream)
|
||||||
|
|
||||||
|
NCollection_Map<Handle(SelectMgr_EntityOwner)> anOwners;
|
||||||
|
for (NCollection_Vector<Handle(SelectMgr_SensitiveEntity)>::Iterator anIterator (myEntities); anIterator.More(); anIterator.Next())
|
||||||
|
{
|
||||||
|
const Handle(SelectMgr_SensitiveEntity)& anEntity = anIterator.Value();
|
||||||
|
if (anEntity.IsNull() || anEntity->BaseSensitive().IsNull())
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
const Handle(SelectMgr_EntityOwner)& anOwner = anEntity->BaseSensitive()->OwnerId();
|
||||||
|
if (anOwners.Add (anOwner))
|
||||||
|
{
|
||||||
|
OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, anOwner.get())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
for (NCollection_Vector<Handle(SelectMgr_SensitiveEntity)>::Iterator anIterator (myEntities); anIterator.More(); anIterator.Next())
|
for (NCollection_Vector<Handle(SelectMgr_SensitiveEntity)>::Iterator anIterator (myEntities); anIterator.More(); anIterator.Next())
|
||||||
{
|
{
|
||||||
const Handle(SelectMgr_SensitiveEntity)& anEntity = anIterator.Value();
|
const Handle(SelectMgr_SensitiveEntity)& anEntity = anIterator.Value();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user