Porting to the new version of the OCCT.

This commit is contained in:
rnv 2013-11-25 08:43:52 +00:00
parent b5758e0f9c
commit 3d2da7c28f
3 changed files with 16 additions and 3 deletions

View File

@ -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 );

View 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 );

View 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 );