mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-11 16:19:17 +05:00
Adapting for OCCT dev (7.5)
This commit is contained in:
parent
43c219aae9
commit
54a5d9072f
@ -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();
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user