From 32f86ef5a3c707dad35ba0f1b9898493d617eeca Mon Sep 17 00:00:00 2001 From: kgv Date: Fri, 30 Jul 2021 22:35:28 +0300 Subject: [PATCH] 0032506: Visualization - add AIS_InteractiveContext::ObjectIterator() for iterating over objects in context --- src/AIS/AIS_InteractiveContext.hxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/AIS/AIS_InteractiveContext.hxx b/src/AIS/AIS_InteractiveContext.hxx index 4262be3d13..222d5d390c 100644 --- a/src/AIS/AIS_InteractiveContext.hxx +++ b/src/AIS/AIS_InteractiveContext.hxx @@ -824,6 +824,12 @@ public: //! @name common properties const AIS_KindOfInteractive WhichKind = AIS_KindOfInteractive_None, const Standard_Integer WhichSignature = -1) const; + //! Create iterator through all objects registered in context. + AIS_DataMapIteratorOfDataMapOfIOStatus ObjectIterator() const + { + return AIS_DataMapIteratorOfDataMapOfIOStatus (myObjects); + } + //! Rebuilds 1st level of BVH selection forcibly Standard_EXPORT void RebuildSelectionStructs(); -- 2.39.5