#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>
{
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;
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;
#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>
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;