]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Update for OCC6.2
authormaintenance team <salome-mnt@opencascade.com>
Wed, 28 Feb 2007 11:10:17 +0000 (11:10 +0000)
committermaintenance team <salome-mnt@opencascade.com>
Wed, 28 Feb 2007 11:10:17 +0000 (11:10 +0000)
src/GEOMGUI/GEOMGUI_OCCSelector.cxx
src/OBJECT/GEOM_AISShape.cxx

index dd3eeb3787f50dd3bccabfebd1fd7b1639c0ed91..e332acbded242f8f722176a16901f3d59cfa329d 100644 (file)
@@ -35,6 +35,7 @@
 #include <TColStd_ListIteratorOfListOfInteger.hxx>
 #include <SelectMgr_Selection.hxx>
 #include <SelectBasics_SensitiveEntity.hxx>
+#include <StdSelect_BRepOwner.hxx>
 #include <TColStd_IndexedMapOfInteger.hxx>
 #include <SelectMgr_IndexedMapOfOwner.hxx>
 #include <NCollection_DataMap.hxx>
@@ -76,7 +77,7 @@ void GEOMGUI_OCCSelector::getSelection( SUIT_DataOwnerPtrList& aList ) const
     {
       for ( ic->InitSelected(); ic->MoreSelected(); ic->NextSelected() )
        {
-         Handle(SelectMgr_EntityOwner) anOwner = ic->SelectedOwner();
+         Handle(StdSelect_BRepOwner) anOwner = Handle(StdSelect_BRepOwner)::DownCast(ic->SelectedOwner());
          if ( anOwner.IsNull() )
            continue;
          
@@ -243,7 +244,9 @@ void GEOMGUI_OCCSelector::setSelection( const SUIT_DataOwnerPtrList& aList )
 
       for  ( int i = 1, n = owners.Extent(); i <= n; i++ ) 
       {
-       Handle(SelectMgr_EntityOwner) anOwner = owners( i );
+
+       Handle(StdSelect_BRepOwner) anOwner = Handle(StdSelect_BRepOwner)::DownCast(owners( i ));
+
        if ( anOwner.IsNull() || !anOwner->HasShape() )
          continue;
 
index 0a29599c5b079b6d193959aaba4887856c225358..4a3f6e0e9ab23d9af89a4499838e6d189a33bf2d 100644 (file)
@@ -46,6 +46,7 @@
 #include <Prs3d_ShadingAspect.hxx>
 #include <SelectBasics_SensitiveEntity.hxx>
 #include <SelectMgr_EntityOwner.hxx>
+#include <StdSelect_BRepOwner.hxx>
 #include <SelectMgr_IndexedMapOfOwner.hxx>
 #include <SelectMgr_Selection.hxx>
 #include <StdSelect_DisplayMode.hxx>
@@ -100,7 +101,7 @@ static void indicesToOwners( const TColStd_IndexedMapOfInteger& aIndexMap,
   TopExp::MapShapes(aMainShape, aMapOfShapes);
 
   for  ( Standard_Integer i = 1, n = anAllMap.Extent(); i <= n; i++ ) {
-    Handle(SelectMgr_EntityOwner) anOwner = anAllMap( i );
+    Handle(StdSelect_BRepOwner) anOwner = Handle(StdSelect_BRepOwner)::DownCast(anAllMap( i ));
     if ( anOwner.IsNull() || !anOwner->HasShape() )
       continue;