0031909: Visualization, AIS_Trihedron - replace maps with arrays
[occt.git] / src / AIS / AIS_Plane.cxx
index 0c63024..169a59f 100644 (file)
@@ -405,9 +405,9 @@ void AIS_Plane::UnsetSize()
                                                                new Prs3d_DatumAspect();
 
     myDrawer->PlaneAspect()->SetPlaneLength(PA->PlaneXLength(),PA->PlaneYLength());
-    myDrawer->DatumAspect()->SetAxisLength(DA->AxisLength(Prs3d_DP_XAxis),
-                                          DA->AxisLength(Prs3d_DP_YAxis),
-                                          DA->AxisLength(Prs3d_DP_ZAxis));
+    myDrawer->DatumAspect()->SetAxisLength(DA->AxisLength(Prs3d_DatumParts_XAxis),
+                                          DA->AxisLength(Prs3d_DatumParts_YAxis),
+                                          DA->AxisLength(Prs3d_DatumParts_ZAxis));
   }
   
   myHasOwnSize = Standard_False;
@@ -453,9 +453,9 @@ void AIS_Plane::SetColor(const Quantity_Color &aCol)
   }
   
   PA->EdgesAspect()->SetColor(aCol);
-  DA->LineAspect(Prs3d_DP_XAxis)->SetColor(aCol);
-  DA->LineAspect(Prs3d_DP_YAxis)->SetColor(aCol);
-  DA->LineAspect(Prs3d_DP_ZAxis)->SetColor(aCol);
+  DA->LineAspect(Prs3d_DatumParts_XAxis)->SetColor(aCol);
+  DA->LineAspect(Prs3d_DatumParts_YAxis)->SetColor(aCol);
+  DA->LineAspect(Prs3d_DatumParts_ZAxis)->SetColor(aCol);
 
   if(!yenavaitPA)
     myDrawer->SetPlaneAspect(PA);
@@ -485,9 +485,9 @@ void AIS_Plane::UnsetColor()
     Quantity_Color Col = PA->EdgesAspect()->Aspect()->Color();
     myDrawer->PlaneAspect()->EdgesAspect()->SetColor(Col);
     
-    myDrawer->DatumAspect()->LineAspect(Prs3d_DP_XAxis)->SetColor(Col);
-    myDrawer->DatumAspect()->LineAspect(Prs3d_DP_YAxis)->SetColor(Col);
-    myDrawer->DatumAspect()->LineAspect(Prs3d_DP_ZAxis)->SetColor(Col);
+    myDrawer->DatumAspect()->LineAspect(Prs3d_DatumParts_XAxis)->SetColor(Col);
+    myDrawer->DatumAspect()->LineAspect(Prs3d_DatumParts_YAxis)->SetColor(Col);
+    myDrawer->DatumAspect()->LineAspect(Prs3d_DatumParts_ZAxis)->SetColor(Col);
   }
  
  
@@ -542,9 +542,9 @@ void AIS_Plane::ComputeFields()
     oX.Coord(x1,y1,z1);
     oY.Coord(x2,y2,z2);
     oZ.Coord(x3,y3,z3);
-    Standard_Real DS1 = DA->AxisLength(Prs3d_DP_XAxis);
-    Standard_Real DS2 = DA->AxisLength(Prs3d_DP_YAxis);
-    Standard_Real DS3 = DA->AxisLength(Prs3d_DP_ZAxis);
+    Standard_Real DS1 = DA->AxisLength(Prs3d_DatumParts_XAxis);
+    Standard_Real DS2 = DA->AxisLength(Prs3d_DatumParts_YAxis);
+    Standard_Real DS3 = DA->AxisLength(Prs3d_DatumParts_ZAxis);
 //    gp_Pnt aPt2,aPt3;
 
     switch (myTypeOfPlane) {