mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-04-25 06:22:04 +05:00
Update for OCC6.2
This commit is contained in:
parent
ae2f3f9d44
commit
68ca1b3ea8
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user