mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0028316: Coding Rules - Elimilate confusing aliases of Standard_Real type in V3d_View
Quantity_Factor, Quantity_Parameter, Quantity_Ratio, Quantity_Coefficient, Quantity_PlaneAngle, Quantity_Length, V3d_Parameter and V3d_Coordinate have been replaced by Standard_Real in visualization classes.
This commit is contained in:
@@ -1132,7 +1132,7 @@ Standard_Boolean AIS::InitAngleBetweenCurvilinearFaces (const TopoDS_Face&
|
||||
{
|
||||
return Standard_False;
|
||||
}
|
||||
Quantity_Parameter anU, aV;
|
||||
Standard_Real anU, aV;
|
||||
aProjector.LowerDistanceParameters (anU, aV);
|
||||
theSecondAttach = aSecondSurf->Value (anU, aV);
|
||||
}
|
||||
@@ -1158,7 +1158,7 @@ void AIS::InitLengthBetweenCurvilinearFaces (const TopoDS_Face& theFirstFace,
|
||||
gp_Dir& theDirOnPlane)
|
||||
{
|
||||
GeomAPI_ProjectPointOnSurf aProjector;
|
||||
Quantity_Parameter aPU, aPV;
|
||||
Standard_Real aPU, aPV;
|
||||
|
||||
TopExp_Explorer anExplorer (theFirstFace, TopAbs_VERTEX);
|
||||
|
||||
@@ -1189,7 +1189,7 @@ void AIS::InitLengthBetweenCurvilinearFaces (const TopoDS_Face& theFirstFace,
|
||||
aProjector.Init (theFirstAttach, theSecondSurf);
|
||||
|
||||
Standard_Integer aBestPointIndex = 0;
|
||||
Quantity_Length aMinDist = RealLast();
|
||||
Standard_Real aMinDist = RealLast();
|
||||
gp_Dir aLocalDir;
|
||||
|
||||
for (Standard_Integer aPointIt = 1; aPointIt <= aProjector.NbPoints(); aPointIt++)
|
||||
|
@@ -641,7 +641,7 @@ void AIS_AngleDimension::Compute (const Handle(PrsMgr_PresentationManager3d)& /*
|
||||
|
||||
Prs3d_Root::CurrentGroup(thePresentation)->SetPrimitivesAspect (aDimensionAspect->LineAspect()->Aspect());
|
||||
|
||||
Quantity_Length anArrowLength = aDimensionAspect->ArrowAspect()->Length();
|
||||
Standard_Real anArrowLength = aDimensionAspect->ArrowAspect()->Length();
|
||||
|
||||
// prepare label string and compute its geometrical width
|
||||
Standard_Real aLabelWidth;
|
||||
@@ -1414,7 +1414,7 @@ void AIS_AngleDimension::FitTextAlignment (const Prs3d_DimensionTextHorizontalPo
|
||||
{
|
||||
Handle(Prs3d_DimensionAspect) aDimensionAspect = myDrawer->DimensionAspect();
|
||||
|
||||
Quantity_Length anArrowLength = aDimensionAspect->ArrowAspect()->Length();
|
||||
Standard_Real anArrowLength = aDimensionAspect->ArrowAspect()->Length();
|
||||
|
||||
// Prepare label string and compute its geometrical width
|
||||
Standard_Real aLabelWidth;
|
||||
|
@@ -266,7 +266,7 @@ void AIS_Axis::ComputeFields()
|
||||
const gp_Dir& oX = anAxis.XDirection();
|
||||
const gp_Dir& oY = anAxis.YDirection();
|
||||
const gp_Dir& oZ = anAxis.Direction();
|
||||
Quantity_Length xo,yo,zo,x = 0.,y = 0.,z = 0.;
|
||||
Standard_Real xo,yo,zo,x = 0.,y = 0.,z = 0.;
|
||||
Orig.Coord(xo,yo,zo);
|
||||
myPfirst.SetCoord(xo,yo,zo);
|
||||
|
||||
|
@@ -376,8 +376,8 @@ void AIS_Dimension::DrawArrow (const Handle(Prs3d_Presentation)& thePresentation
|
||||
{
|
||||
Handle(Graphic3d_Group) aGroup = Prs3d_Root::NewGroup (thePresentation);
|
||||
|
||||
Quantity_Length aLength = myDrawer->DimensionAspect()->ArrowAspect()->Length();
|
||||
Standard_Real anAngle = myDrawer->DimensionAspect()->ArrowAspect()->Angle();
|
||||
Standard_Real aLength = myDrawer->DimensionAspect()->ArrowAspect()->Length();
|
||||
Standard_Real anAngle = myDrawer->DimensionAspect()->ArrowAspect()->Angle();
|
||||
|
||||
if (myDrawer->DimensionAspect()->IsArrows3d())
|
||||
{
|
||||
@@ -662,8 +662,8 @@ void AIS_Dimension::DrawLinearDimension (const Handle(Prs3d_Presentation)& thePr
|
||||
Handle(Prs3d_DimensionAspect) aDimensionAspect = myDrawer->DimensionAspect();
|
||||
|
||||
// For extensions we need to know arrow size, text size and extension size: get it from aspect
|
||||
Quantity_Length anArrowLength = aDimensionAspect->ArrowAspect()->Length();
|
||||
Standard_Real anExtensionSize = aDimensionAspect->ExtensionSize();
|
||||
Standard_Real anArrowLength = aDimensionAspect->ArrowAspect()->Length();
|
||||
Standard_Real anExtensionSize = aDimensionAspect->ExtensionSize();
|
||||
// prepare label string and compute its geometrical width
|
||||
Standard_Real aLabelWidth;
|
||||
TCollection_ExtendedString aLabelString = GetValueString (aLabelWidth);
|
||||
@@ -1308,8 +1308,8 @@ void AIS_Dimension::ComputeSelection (const Handle(SelectMgr_Selection)& theSele
|
||||
aGroupOfSensitives->Add (new Select3D_SensitiveCurve (aSensitiveOwner, aSensitivePnts));
|
||||
}
|
||||
|
||||
Quantity_Length anArrowLength = myDrawer->DimensionAspect()->ArrowAspect()->Length();
|
||||
Standard_Real anArrowAngle = myDrawer->DimensionAspect()->ArrowAspect()->Angle();
|
||||
Standard_Real anArrowLength = myDrawer->DimensionAspect()->ArrowAspect()->Length();
|
||||
Standard_Real anArrowAngle = myDrawer->DimensionAspect()->ArrowAspect()->Angle();
|
||||
|
||||
// sensitives for arrows
|
||||
SelectionGeometry::SeqOfArrows::Iterator anArrowIt (mySelectionGeom.Arrows);
|
||||
@@ -1610,7 +1610,7 @@ void AIS_Dimension::FitTextAlignmentForLinear (const gp_Pnt& theFirstPoint,
|
||||
Handle(Prs3d_DimensionAspect) aDimensionAspect = myDrawer->DimensionAspect();
|
||||
|
||||
// For extensions we need to know arrow size, text size and extension size: get it from aspect
|
||||
Quantity_Length anArrowLength = aDimensionAspect->ArrowAspect()->Length();
|
||||
Standard_Real anArrowLength = aDimensionAspect->ArrowAspect()->Length();
|
||||
|
||||
// prepare label string and compute its geometrical width
|
||||
Standard_Real aLabelWidth;
|
||||
|
@@ -547,7 +547,7 @@ Standard_Boolean AIS_LengthDimension::InitTwoShapesPoints (const TopoDS_Shape& t
|
||||
|
||||
mySecondPoint = AIS::ProjectPointOnPlane (myFirstPoint, aSecondPlane);
|
||||
|
||||
Quantity_Parameter anU, aV;
|
||||
Standard_Real anU, aV;
|
||||
ElSLib::Parameters (aSecondPlane, mySecondPoint, anU, aV);
|
||||
|
||||
BRepTopAdaptor_FClass2d aClassifier (aSecondFace, Precision::Confusion());
|
||||
|
@@ -162,7 +162,7 @@ void AIS_PlaneTrihedron::Compute(const Handle(PrsMgr_PresentationManager3d)&,
|
||||
gp_Dir xDir = myPlane->Position().Ax2().XDirection();
|
||||
|
||||
gp_Pnt orig = myPlane->Position().Ax2().Location();
|
||||
Quantity_Length xo,yo,zo,x,y,z;
|
||||
Standard_Real xo,yo,zo,x,y,z;
|
||||
orig.Coord( xo, yo, zo );
|
||||
xDir.Coord( x, y, z );
|
||||
first.SetCoord( xo, yo, zo );
|
||||
|
Reference in New Issue
Block a user