From a5447e8da1e75fe046bc025a51f1bed1dc8bf34f Mon Sep 17 00:00:00 2001 From: rnc Date: Wed, 1 Aug 2012 13:57:18 +0000 Subject: [PATCH] Added two methods to access the myObjects member of SOCC_Prs : Prepend() and RemoveFirst() that use the corresponding methods of AIS_ListOfInteractive. --- src/SOCC/SOCC_Prs.cxx | 16 ++++++++++++++++ src/SOCC/SOCC_Prs.h | 4 ++++ 2 files changed, 20 insertions(+) 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 -- 2.39.2