From: rnc Date: Wed, 1 Aug 2012 13:57:18 +0000 (+0000) Subject: Added two methods to access the myObjects member of SOCC_Prs : Prepend() and RemoveFi... X-Git-Tag: V6_6_0a1~56 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a5447e8da1e75fe046bc025a51f1bed1dc8bf34f;p=modules%2Fgui.git Added two methods to access the myObjects member of SOCC_Prs : Prepend() and RemoveFirst() that use the corresponding methods of AIS_ListOfInteractive. --- diff --git a/src/SOCC/SOCC_Prs.cxx b/src/SOCC/SOCC_Prs.cxx index eccabc168..70e4b0657 100644 --- a/src/SOCC/SOCC_Prs.cxx +++ b/src/SOCC/SOCC_Prs.cxx @@ -68,6 +68,22 @@ void SOCC_Prs::AddObject( const Handle(AIS_InteractiveObject)& obj ) myObjects.Append( obj ); } +/*! + Prepend interactive object +*/ +void SOCC_Prs::PrependObject( const Handle(AIS_InteractiveObject)& obj ) +{ + myObjects.Prepend( obj ); +} + +/*! + Remove first interactive object +*/ +void SOCC_Prs::RemoveFirst() +{ + myObjects.RemoveFirst(); +} + /*! Remove all interactive objects */ diff --git a/src/SOCC/SOCC_Prs.h b/src/SOCC/SOCC_Prs.h index 739b960f9..eedcf619f 100644 --- a/src/SOCC/SOCC_Prs.h +++ b/src/SOCC/SOCC_Prs.h @@ -49,7 +49,11 @@ public: // Get interactive objects list void AddObject( const Handle(AIS_InteractiveObject)& obj ); // Add interactive object + void PrependObject( const Handle(AIS_InteractiveObject)& obj ); + // Prepend interactive object + void RemoveFirst(); + // Remove first interactive object void Clear(); // Remove all interactive objects