// is always equal to 0 if it is -1.
#define BUC61051
-// On close the local context the method ::ResetOriginalState() sets the selection mode equal to 0
+// The local context is closed the method ::ResetOriginalState() sets the selection mode equal to 0
// in spite of the selection mode of the interactive object in Natural Point.
#define OCC166
void AIS_InteractiveContext::OpenCollector()
{
myIsCollClosed =Standard_True;
- // a completer....
+ // to be completed....
}
}
else{
TColStd_MapOfTransient theMap;
- // point neutre
+ // neutral point
for(;It.More();It.Next()){
if(It.Value()->GraphicStatus()==AIS_DS_Displayed)
theMap.Add(It.Key());
cout<<"\tFrom Neutral Point : "<<theMap.Extent()<<endl;
#endif
- //balayons tous les contextes locaux...
+ //parse all local contexts...
Standard_Integer NbDisp;
for(AIS_DataMapIteratorOfDataMapOfILC it1(myLocalContexts);it1.More();it1.Next()){
const Handle(AIS_LocalContext)& LC = it1.Value();
if(!anIObj->HasInteractiveContext())
anIObj->SetContext(aThis);
- //PAS DE CONTEXTE LOCAL OUVERT
+ //NO LOCAL CONTEXT OPEN
if(!HasOpenedContext()) {
#ifndef OCC4373
// SAN : Do not return here. Perform advanced display mode analysis a bit later...
#endif
Standard_Boolean updcol = Standard_False;
- // il n'existait pas encore
+ // it did not yet exist
if(!myObjects.IsBound(anIObj)){
Handle(AIS_GlobalStatus) STATUS=
if(updateviewer) myMainVwr->Update();
}
- // il est quelque part ailleurs....
+ // it is somewhere else...
else {
// CLE
// const Handle(AIS_GlobalStatus)& STATUS = myObjects(anIObj);
myCollectorPM->Erase(anIObj,HiMod);
mgrSelector->Deactivate(anIObj,myCollectorSel);
updcol = updateviewer;
- }// attention on fait expres de ne pas mettre de break..
+ }// attention the break is not set on purpose...
case AIS_DS_FullErased:{
TColStd_ListIteratorOfListOfInteger ItL (STATUS->DisplayedModes());
for (;ItL.More();ItL.Next()){
if(updcol && !myCollectorVwr.IsNull()) myCollectorVwr->Update();
}
- // CONTEXTE LOCAL OUVERT
+ // LOCAL CONTEXT OPEN
else
{
myLocalContexts(myCurLocalIndex)->Display(anIObj,DispMode,anIObj->AcceptShapeDecomposition(),SelMode);
if(!anIObj->HasInteractiveContext()) anIObj->SetContext(this);
- // si aucun contexte local...
+ // if no local context...
if(!HasOpenedContext()) {
// if(!anIObj->HasDisplayMode())
// anIObj->SetDisplayMode(aDisplayMode);
}
else
{
- // d'abors on regarde si on peut effacer dans le contexte local courant
- // ensuite, on essaye d'effacer dans les autres contextes locaux,
- // s'ils le permettent...
+ // First it is checked if it is possible to remove in the current local context
+ // then one tries to remove in other local contexts, if they allow it...
Standard_Boolean WasInCtx = myLocalContexts(myCurLocalIndex)->Erase(anIObj);
// if(!WasInCtx) {
mgrSelector->RecomputeSelection(anIObj);
- // A VOIR SI ENCORE UTILE...
+
TColStd_ListOfInteger LI;
TColStd_ListIteratorOfListOfInteger Lit;
ActivatedModes(anIObj,LI);
}
if(aLoc.IsIdentity()) return ;
- // d'abord faire un reset de la precedente location pour tout nettoyer proprement...
+ // first reset the previous location to properly clean everything...
if(anIObj->HasLocation())
anIObj->ResetLocation();
}
anIObj->SetRecomputeOk();
#ifdef DEB
- cout<<"nb de modes a recalculer : "<<NbDisp<<endl;
+ cout<<"nb of modes to recalculate : "<<NbDisp<<endl;
#endif
}
}
anIObj->SetRecomputeOk();
#ifdef DEB
- cout<<"nb de modes a recalculer : "<<NbDisp<<endl;
+ cout<<"nb of modes to recalculate : "<<NbDisp<<endl;
#endif
}
if(updateviewer) UpdateCurrentViewer();
}
anIObj->SetRecomputeOk();
#ifdef DEB
- cout<<"nb de modes a recalculer : "<<NbDisp<<endl;
+ cout<<"nb of modes to recalculate : "<<NbDisp<<endl;
#endif
}
if(updateviewer) UpdateCurrentViewer();
}
anIObj->SetRecomputeOk();
#ifdef DEB
- cout<<"nb de modes a recalculer : "<<NbDisp<<endl;
+ cout<<"nb of modes to recalculate : "<<NbDisp<<endl;
#endif
}
if(updateviewer) UpdateCurrentViewer();
}
anIObj->SetRecomputeOk();
#ifdef DEB
- cout<<"nb de modes a recalculer : "<<NbDisp<<endl;
+ cout<<"nb of modes to recalculate : "<<NbDisp<<endl;
#endif
}
if(updateviewer) UpdateCurrentViewer();
}
anIObj->SetRecomputeOk();
#ifdef DEB
- cout<<"nb de modes a recalculer : "<<NbDisp<<endl;
+ cout<<"nb of modes to recalculate : "<<NbDisp<<endl;
#endif
}
if(updateviewer) UpdateCurrentViewer();
NbDisp++;
}
#ifdef DEB
- cout<<"nb de modes a recalculer : "<<NbDisp<<endl;
+ cout<<"nb of modes to recalculate : "<<NbDisp<<endl;
#endif
anIObj->SetRecomputeOk();
}
NbDisp++;
}
#ifdef DEB
- cout<<"nb de modes a recalculer : "<<NbDisp<<endl;
+ cout<<"nb of modes to recalculate : "<<NbDisp<<endl;
#endif
anIObj->SetRecomputeOk();
}