1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0022312: Translation of french commentaries in OCCT files

This commit is contained in:
YSN
2011-10-27 07:50:55 +00:00
committed by bugmaster
parent b2342827fa
commit 0d9695538c
214 changed files with 8746 additions and 10449 deletions

View File

@@ -461,11 +461,11 @@ Standard_Boolean AIS::ComputeGeometry(const TopoDS_Edge& anEdge1,
if (isOnPlanC1 && isOnPlanC2) return Standard_True;
if (!isOnPlanC1 && isOnPlanC2) {// courbe 2 seulement dans le plan
if (!isOnPlanC1 && isOnPlanC2) {// curve 2 only in the plane
indexExt = 1;
extCurve = aSov1;
}
else if (isOnPlanC1 && !isOnPlanC2) {// courbe 1 seulement dans le plan
else if (isOnPlanC1 && !isOnPlanC2) {// curve 1 only in the plane
indexExt = 2;
extCurve = aSov2;
}
@@ -742,7 +742,7 @@ void AIS::ComputeLengthBetweenPlanarFaces( const TopoDS_Face & FirstFace,
gp_Pnt & Position )
{
TopExp_Explorer aExp( FirstFace, TopAbs_VERTEX );
// cas des plans infinis . SMO.
// case of infinite planes. SMO.
if (!aExp.More())
FirstAttach = Plane1.Location();
else
@@ -808,7 +808,7 @@ static gp_Pnt FindFarPoint (const gp_Ax1 & anAxis,
TopExp_Explorer Explo (aFace, TopAbs_VERTEX);
if (!Explo.More()) {
// Cas des plans infinis (pas de Vertex, pas d'arete)
// Case of infinite planes (no Vertex, no edge)
gp_Pln plane;
Handle( Geom_Surface ) aSurf;
AIS_KindOfSurface KOS;
@@ -1370,7 +1370,7 @@ void AIS::ComputeProjEdgePresentation( const Handle( Prs3d_Presentation )& aPres
TopoDS_Edge E;
// Calcul de la presentation de l'edge
// Calculate presentation of the edge
if (ProjCurve->IsInstance(STANDARD_TYPE(Geom_Line)) ) {
// CLE
// const Handle(Geom_Line) & gl = (Handle(Geom_Line)&) ProjCurve;
@@ -1399,7 +1399,7 @@ void AIS::ComputeProjEdgePresentation( const Handle( Prs3d_Presentation )& aPres
}
StdPrs_WFDeflectionShape::Add(aPresentation, E, aDrawer);
//Calcul de la presentation des lignes de raccord
//Calculate the presentation of line connections
aDrawer->WireAspect()->SetTypeOfLine(aCallTOL);
if (!isInfinite) {
gp_Pnt ppf(0.0,0.0,0.0), ppl(0.0,0.0,0.0);
@@ -1461,7 +1461,7 @@ void AIS::ComputeProjVertexPresentation( const Handle( Prs3d_Presentation )& aPr
pa->SetTypeOfMarker(aProjTOM);
}
// calcul du projete
// calculate the projection
StdPrs_Point::Add(aPresentation, new Geom_CartesianPoint(ProjPoint), aDrawer);
if (!aDrawer->HasWireAspect()){
@@ -1476,9 +1476,9 @@ void AIS::ComputeProjVertexPresentation( const Handle( Prs3d_Presentation )& aPr
li->SetWidth(aWidth);
}
// Si les points ne sont pas confondus...
// If the points are not mixed...
if (!ProjPoint.IsEqual (BRep_Tool::Pnt(aVertex),Precision::Confusion())) {
// calcul des lignes de rappel
// calculate the lines of recall
BRepBuilderAPI_MakeEdge MakEd(ProjPoint,BRep_Tool::Pnt(aVertex));
StdPrs_WFDeflectionShape::Add(aPresentation, MakEd.Edge(), aDrawer);
}

View File

@@ -70,7 +70,7 @@
// 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
@@ -226,7 +226,7 @@ void AIS_InteractiveContext::UpdateCurrentViewer()
void AIS_InteractiveContext::OpenCollector()
{
myIsCollClosed =Standard_True;
// a completer....
// to be completed....
}
@@ -263,7 +263,7 @@ void AIS_InteractiveContext::DisplayedObjects(AIS_ListOfInteractive& aListOfIO,
}
else{
TColStd_MapOfTransient theMap;
// point neutre
// neutral point
for(;It.More();It.Next()){
if(It.Value()->GraphicStatus()==AIS_DS_Displayed)
theMap.Add(It.Key());
@@ -272,7 +272,7 @@ void AIS_InteractiveContext::DisplayedObjects(AIS_ListOfInteractive& aListOfIO,
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();
@@ -457,7 +457,7 @@ void AIS_InteractiveContext::Display(const Handle(AIS_InteractiveObject)& anIObj
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...
@@ -465,7 +465,7 @@ void AIS_InteractiveContext::Display(const Handle(AIS_InteractiveObject)& anIObj
#endif
Standard_Boolean updcol = Standard_False;
// il n'existait pas encore
// it did not yet exist
if(!myObjects.IsBound(anIObj)){
Handle(AIS_GlobalStatus) STATUS=
@@ -485,7 +485,7 @@ void AIS_InteractiveContext::Display(const Handle(AIS_InteractiveObject)& anIObj
if(updateviewer) myMainVwr->Update();
}
// il est quelque part ailleurs....
// it is somewhere else...
else {
// CLE
// const Handle(AIS_GlobalStatus)& STATUS = myObjects(anIObj);
@@ -498,7 +498,7 @@ void AIS_InteractiveContext::Display(const Handle(AIS_InteractiveObject)& 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()){
@@ -565,7 +565,7 @@ void AIS_InteractiveContext::Display(const Handle(AIS_InteractiveObject)& anIObj
if(updcol && !myCollectorVwr.IsNull()) myCollectorVwr->Update();
}
// CONTEXTE LOCAL OUVERT
// LOCAL CONTEXT OPEN
else
{
myLocalContexts(myCurLocalIndex)->Display(anIObj,DispMode,anIObj->AcceptShapeDecomposition(),SelMode);
@@ -593,7 +593,7 @@ void AIS_InteractiveContext::Display(const Handle(AIS_InteractiveObject)& anIObj
if(!anIObj->HasInteractiveContext()) anIObj->SetContext(this);
// si aucun contexte local...
// if no local context...
if(!HasOpenedContext()) {
// if(!anIObj->HasDisplayMode())
// anIObj->SetDisplayMode(aDisplayMode);
@@ -685,9 +685,8 @@ void AIS_InteractiveContext::Erase(const Handle(AIS_InteractiveObject)& anIObj,
}
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) {
@@ -1488,7 +1487,7 @@ void AIS_InteractiveContext::RecomputeSelectionOnly(const Handle(AIS_Interactive
mgrSelector->RecomputeSelection(anIObj);
// A VOIR SI ENCORE UTILE...
TColStd_ListOfInteger LI;
TColStd_ListIteratorOfListOfInteger Lit;
ActivatedModes(anIObj,LI);
@@ -1576,7 +1575,7 @@ void AIS_InteractiveContext::SetLocation(const Handle(AIS_InteractiveObject)& an
}
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();
@@ -1950,7 +1949,7 @@ void AIS_InteractiveContext::SetColor(const Handle(AIS_InteractiveObject)& anIOb
}
anIObj->SetRecomputeOk();
#ifdef DEB
cout<<"nb de modes a recalculer : "<<NbDisp<<endl;
cout<<"nb of modes to recalculate : "<<NbDisp<<endl;
#endif
}
@@ -2025,7 +2024,7 @@ void AIS_InteractiveContext::SetDeviationCoefficient(
}
anIObj->SetRecomputeOk();
#ifdef DEB
cout<<"nb de modes a recalculer : "<<NbDisp<<endl;
cout<<"nb of modes to recalculate : "<<NbDisp<<endl;
#endif
}
if(updateviewer) UpdateCurrentViewer();
@@ -2069,7 +2068,7 @@ void AIS_InteractiveContext::SetHLRDeviationCoefficient(
}
anIObj->SetRecomputeOk();
#ifdef DEB
cout<<"nb de modes a recalculer : "<<NbDisp<<endl;
cout<<"nb of modes to recalculate : "<<NbDisp<<endl;
#endif
}
if(updateviewer) UpdateCurrentViewer();
@@ -2112,7 +2111,7 @@ void AIS_InteractiveContext::SetDeviationAngle(
}
anIObj->SetRecomputeOk();
#ifdef DEB
cout<<"nb de modes a recalculer : "<<NbDisp<<endl;
cout<<"nb of modes to recalculate : "<<NbDisp<<endl;
#endif
}
if(updateviewer) UpdateCurrentViewer();
@@ -2183,7 +2182,7 @@ void AIS_InteractiveContext::SetHLRAngleAndDeviation(
}
anIObj->SetRecomputeOk();
#ifdef DEB
cout<<"nb de modes a recalculer : "<<NbDisp<<endl;
cout<<"nb of modes to recalculate : "<<NbDisp<<endl;
#endif
}
if(updateviewer) UpdateCurrentViewer();
@@ -2225,7 +2224,7 @@ void AIS_InteractiveContext::SetHLRDeviationAngle(
}
anIObj->SetRecomputeOk();
#ifdef DEB
cout<<"nb de modes a recalculer : "<<NbDisp<<endl;
cout<<"nb of modes to recalculate : "<<NbDisp<<endl;
#endif
}
if(updateviewer) UpdateCurrentViewer();
@@ -2253,7 +2252,7 @@ void AIS_InteractiveContext::UnsetColor(const Handle(AIS_InteractiveObject)& anI
NbDisp++;
}
#ifdef DEB
cout<<"nb de modes a recalculer : "<<NbDisp<<endl;
cout<<"nb of modes to recalculate : "<<NbDisp<<endl;
#endif
anIObj->SetRecomputeOk();
}
@@ -2326,7 +2325,7 @@ void AIS_InteractiveContext::SetWidth(const Handle(AIS_InteractiveObject)& anIOb
NbDisp++;
}
#ifdef DEB
cout<<"nb de modes a recalculer : "<<NbDisp<<endl;
cout<<"nb of modes to recalculate : "<<NbDisp<<endl;
#endif
anIObj->SetRecomputeOk();
}

View File

@@ -868,14 +868,13 @@ void AIS_LengthDimension::ComputeOneEdgeOneVertexLength( const Handle( Prs3d_Pre
Position,
SymbolPrs);
//Display des morceaux de raccordement vers la curve si elle
// n'est pas dans le WP
//Display the pieces connecting to the curve if it is not in the WP
if (ExtShape != 0) {
if (!extCurv.IsNull()) { // c'est l'edge qui n'est pas dans le WP
if (!extCurv.IsNull()) { // this is the edge that is not in the WP
AIS::ComputeProjEdgePresentation(aPresentation,aDrawer,theedge,geom_lin,ptonedge1,ptonedge2);
}
else { // c'est le point qui n'est pas dans le WP
else { // this is the point that is not in the WP
AIS::ComputeProjVertexPresentation(aPresentation,aDrawer,thevertex,FirstAttach);
}
}

View File

@@ -297,7 +297,7 @@ void AIS_TangentRelation::ComputeTwoEdgesTangent(const Handle(Prs3d_Presentation
}
else return;
//On cherche d'abord le vertex de tangence s'il existe
//First find the tangengy vector if exists
TopoDS_Vertex VCom;
TopExp_Explorer expF(TopoDS::Edge(myFShape),TopAbs_VERTEX);
TopExp_Explorer expS(TopoDS::Edge(mySShape),TopAbs_VERTEX);

View File

@@ -399,7 +399,7 @@ void AIS_TexturedShape::Compute(const Handle(PrsMgr_PresentationManager3d)& /*aP
TopLoc_Location aLocation = myFace.Location();
#ifdef DEBUG
cout << "J\'explore actuellement la face " << NumFace << "\n" << endl;
cout << "The face is being processed" << NumFace << "\n" << endl;
#endif
Handle(Poly_Triangulation) myT = BRep_Tool::Triangulation(myFace, aLocation);
// Returns the Triangulation of the face. It is a null handle if there is no triangulation.
@@ -429,7 +429,7 @@ void AIS_TexturedShape::Compute(const Handle(PrsMgr_PresentationManager3d)& /*aP
for (nt = 1; nt <= nnn; nt++)
{
#ifdef DEBUG
cout << "On traite actuellement le triangle : "<< nt <<"\n";
cout << "The triangle is being processed: "<< nt <<"\n";
#endif
if (SST.Orientation(myFace) == TopAbs_REVERSED) // if the face is "reversed"
triangles(nt).Get(n1,n3,n2); // the triangle is n1,n3,n2
@@ -437,7 +437,7 @@ void AIS_TexturedShape::Compute(const Handle(PrsMgr_PresentationManager3d)& /*aP
triangles(nt).Get(n1,n2,n3); // the triangle is n1,n2,n3
if (TriangleIsValid (Nodes(n1),Nodes(n2),Nodes(n3)) )
{ // Associates vertexNT to each node
{ // vertexNT associated to each node
Graphic3d_Array1OfVertexNT Points(1,3);
Aspect_Array1OfEdge aretes(1,3);