Adapting for OCCT dev (7.5)

This commit is contained in:
vsr 2020-03-19 14:25:13 +03:00
parent 43c219aae9
commit 54a5d9072f
3 changed files with 12 additions and 8 deletions

View File

@ -620,15 +620,17 @@ void CurveCreator_Utils::setSelectedPoints( Handle(AIS_InteractiveContext) theCo
theContext->SetAutomaticHilight( Standard_False );
Handle(SelectMgr_Selection) aSelection = anAISShape->Selection( AIS_Shape::SelectionMode( TopAbs_VERTEX ) );
const NCollection_Vector<Handle(SelectMgr_SensitiveEntity)>& selected = aSelection->Entities();
CurveCreator_ICurve::SectionToPointList::const_iterator anIt = thePoints.begin(),
aLast = thePoints.end();
bool isFound = false;
for( int i=0; i<aSize; i++ )
{
for( aSelection->Init(); aSelection->More(); aSelection->Next() )
for ( NCollection_Vector<Handle(SelectMgr_SensitiveEntity)>::Iterator selIter( selected );
selIter.More(); selIter.Next() )
{
const Handle(SelectMgr_SensitiveEntity) aHSenEntity = aSelection->Sensitive();
const Handle(SelectMgr_SensitiveEntity) aHSenEntity = selIter.Value();
if( aHSenEntity.IsNull() )
continue;
Handle(SelectBasics_SensitiveEntity) aSenEntity = aHSenEntity->BaseSensitive();

View File

@ -178,9 +178,10 @@ static void getEntityOwners( const Handle(AIS_InteractiveObject)& theObj,
continue;
Handle(SelectMgr_Selection) sel = theObj->Selection( m );
for ( sel->Init(); sel->More(); sel->Next() ) {
const Handle(SelectMgr_SensitiveEntity) aHSenEntity = sel->Sensitive();
const NCollection_Vector<Handle(SelectMgr_SensitiveEntity)>& selected = sel->Entities();
for ( NCollection_Vector<Handle(SelectMgr_SensitiveEntity)>::Iterator selIter( selected );
selIter.More(); selIter.Next() ) {
const Handle(SelectMgr_SensitiveEntity) aHSenEntity = selIter.Value();
if( aHSenEntity.IsNull() )
continue;

View File

@ -99,9 +99,10 @@ static void getEntityOwners( const Handle(AIS_InteractiveObject)& theObj,
continue;
Handle(SelectMgr_Selection) sel = theObj->Selection( m );
for ( sel->Init(); sel->More(); sel->Next() ) {
const Handle(SelectMgr_SensitiveEntity) aHSenEntity = sel->Sensitive();
const NCollection_Vector<Handle(SelectMgr_SensitiveEntity)>& selected = sel->Entities();
for ( NCollection_Vector<Handle(SelectMgr_SensitiveEntity)>::Iterator selIter( selected );
selIter.More(); selIter.Next() ) {
const Handle(SelectMgr_SensitiveEntity) aHSenEntity = selIter.Value();
if( aHSenEntity.IsNull() )
continue;