]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Added two methods to access the myObjects member of SOCC_Prs : Prepend() and RemoveFi...
authorrnc <rnc@opencascade.com>
Wed, 1 Aug 2012 13:57:18 +0000 (13:57 +0000)
committerrnc <rnc@opencascade.com>
Wed, 1 Aug 2012 13:57:18 +0000 (13:57 +0000)
src/SOCC/SOCC_Prs.cxx
src/SOCC/SOCC_Prs.h

index eccabc168463971f5e55831b239479beb9fdbaeb..70e4b0657d65a8388f938720373a54cd4adecf95 100644 (file)
@@ -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
 */
index 739b960f9a27f0e4ed613b176804e518b2053b49..eedcf619f535c43afead461bf0af303cb0e04bf1 100644 (file)
@@ -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