From: ouv Date: Mon, 29 Jun 2015 15:04:36 +0000 (+0300) Subject: 0002780: External 20736 Order level X-Git-Tag: CTH_2_1_a~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4c24d7cfecfdaa68498d3c2a869760e1ba9db8f6;p=modules%2Fgui.git 0002780: External 20736 Order level --- diff --git a/src/GLViewer/GLViewer_Context.h b/src/GLViewer/GLViewer_Context.h index 3ec2ecfed..c3d2c6270 100644 --- a/src/GLViewer/GLViewer_Context.h +++ b/src/GLViewer/GLViewer_Context.h @@ -129,6 +129,13 @@ public: const ObjList& getObjects( bool isActive = true ) { return isActive ? myActiveObjects : myInactiveObjects; } + //! Returns mutable list of context objects + /*! + * \return active objects if isActive = true, else inactive objects + */ + ObjList& modifyObjects( bool isActive = true ) + { return isActive ? myActiveObjects : myInactiveObjects; } + //! Returns first active object GLViewer_Object* getFirstObject() { return *( myActiveObjects.begin() ); }