]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Porting to the new version of the OCCT.
authorrnv <rnv@opencascade.com>
Mon, 25 Nov 2013 08:43:52 +0000 (08:43 +0000)
committerrnv <rnv@opencascade.com>
Mon, 25 Nov 2013 08:43:52 +0000 (08:43 +0000)
src/EntityGUI/EntityGUI_3DSketcherDlg.cxx
src/MeasureGUI/MeasureGUI_AngleDlg.cxx
src/MeasureGUI/MeasureGUI_DistanceDlg.cxx

index 343ee093943b5b073717745f754b9ad09f391c2c..64e1e5e12c2594b49ac9bbc075674acc0bb91339 100755 (executable)
@@ -1669,7 +1669,10 @@ Handle(AIS_LengthDimension) EntityGUI_3DSketcherDlg::createAISLengthDimension(do
 
   aDimensionStyle->ArrowAspect()->SetLength( theLength / 20.0 );
   aDimensionStyle->LineAspect()->SetWidth( w );
-  aDimensionStyle->SetHorizontalTextAlignment( Prs3d_HTA_Center );
+  aDimensionStyle->MakeText3d( Standard_False );
+  aDimensionStyle->SetTextHorizontalPosition( Prs3d_DTHP_Center );
+  aDimensionStyle->SetTextVerticalPosition( Prs3d_DTVP_Center );
+  aDimensionStyle->MakeArrows3d( Standard_True );
   anIO->SetFlyout( 0.0 );
   anIO->SetDimensionAspect( aDimensionStyle );
 
@@ -1733,6 +1736,10 @@ Handle(AIS_AngleDimension) EntityGUI_3DSketcherDlg::createAISAngleDimension(doub
 
   aDimensionStyle->ArrowAspect()->SetLength( (theAngle * M_PI / 180.0) * (aLength / 20.0) );
   aDimensionStyle->LineAspect()->SetWidth( w );
+  aDimensionStyle->SetTextHorizontalPosition( Prs3d_DTHP_Center );
+  aDimensionStyle->SetTextVerticalPosition( Prs3d_DTVP_Center );
+  aDimensionStyle->MakeText3d( Standard_False );
+  aDimensionStyle->MakeArrows3d( Standard_True );
 
   anIO->SetDimensionAspect( aDimensionStyle );
 
index 574b53c19c2276c8bd0cfe5fef4ccd3d6e899771..afb373a9d76f78d624f6fb8d7872865115e8e126 100644 (file)
@@ -380,7 +380,10 @@ SALOME_Prs* MeasureGUI_AngleDlg::buildPrs()
         int w = resMgr->integerValue( "Geometry", "measures_line_width", 1 );
 
         aDimensionStyle->LineAspect()->SetWidth( w );
-        aDimensionStyle->SetHorizontalTextAlignment( Prs3d_HTA_Center );
+        aDimensionStyle->SetTextHorizontalPosition( Prs3d_DTHP_Center );
+        aDimensionStyle->SetTextVerticalPosition( Prs3d_DTVP_Center );
+        aDimensionStyle->MakeText3d( Standard_False );
+        aDimensionStyle->MakeArrows3d( Standard_True );
 
         anIO->SetDimensionAspect( aDimensionStyle );
 
index af2085805229a0763499affef658d6e12d74bf83..d9adbc4b73d7d7aa5360b5bf65830108afc5d060 100644 (file)
@@ -388,7 +388,10 @@ SALOME_Prs* MeasureGUI_DistanceDlg::buildPrs()
 
       aDimensionStyle->ArrowAspect()->SetLength( aDist / 20.0 );
       aDimensionStyle->LineAspect()->SetWidth( w );
-      aDimensionStyle->SetHorizontalTextAlignment( Prs3d_HTA_Center );
+      aDimensionStyle->SetTextHorizontalPosition( Prs3d_DTHP_Center );
+      aDimensionStyle->SetTextVerticalPosition( Prs3d_DTVP_Center );
+      aDimensionStyle->MakeText3d( Standard_False );
+      aDimensionStyle->MakeArrows3d( Standard_True );
 
       anIO->SetFlyout( 0.0 );
       anIO->SetDimensionAspect( aDimensionStyle );