mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-24 16:30:35 +05:00
Porting to the new version of the OCCT.
This commit is contained in:
parent
b5758e0f9c
commit
3d2da7c28f
@ -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 );
|
||||
|
||||
|
@ -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 );
|
||||
|
||||
|
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user