From 68ca1b3ea88b5d394a8278c22794ebfe25368fe8 Mon Sep 17 00:00:00 2001 From: maintenance team Date: Wed, 28 Feb 2007 11:10:17 +0000 Subject: [PATCH] Update for OCC6.2 --- src/GEOMGUI/GEOMGUI_OCCSelector.cxx | 7 +++++-- src/OBJECT/GEOM_AISShape.cxx | 3 ++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/GEOMGUI/GEOMGUI_OCCSelector.cxx b/src/GEOMGUI/GEOMGUI_OCCSelector.cxx index dd3eeb378..e332acbde 100644 --- a/src/GEOMGUI/GEOMGUI_OCCSelector.cxx +++ b/src/GEOMGUI/GEOMGUI_OCCSelector.cxx @@ -35,6 +35,7 @@ #include #include #include +#include #include #include #include @@ -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; diff --git a/src/OBJECT/GEOM_AISShape.cxx b/src/OBJECT/GEOM_AISShape.cxx index 0a29599c5..4a3f6e0e9 100644 --- a/src/OBJECT/GEOM_AISShape.cxx +++ b/src/OBJECT/GEOM_AISShape.cxx @@ -46,6 +46,7 @@ #include #include #include +#include #include #include #include @@ -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; -- 2.39.2