1
0
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:
kgv
2017-05-30 13:43:59 +03:00
committed by bugmaster
parent 3f5aa017e7
commit ee2be2a881
130 changed files with 891 additions and 1218 deletions

View File

@@ -56,7 +56,7 @@ void GeomSources::PreProcess(CGeometryDoc* aDoc,DisplayType aDisplayType)
}
void GeomSources::PostProcess (CGeometryDoc* aDoc, UINT anID, DisplayType aDisplayType,
const TCollection_AsciiString& theString, Standard_Boolean UpdateViewer, Quantity_Coefficient Coef)
const TCollection_AsciiString& theString, Standard_Boolean UpdateViewer, Standard_Real Coef)
{
Standard_CString aString = theString.ToCString();
if (UpdateViewer)
@@ -3808,7 +3808,7 @@ void GeomSources::gpTest47(CGeometryDoc* aDoc)
GeomAPI_PointsToBSplineSurface(array3).Surface();
GeomAPI_ExtremaSurfaceSurface ESS(aSurf1,aSurf2);
//Quantity_Length dist = ESS.LowerDistance();
//Standard_Real dist = ESS.LowerDistance();
gp_Pnt P1,P2;
ESS.NearestPoints(P1,P2);
@@ -3833,7 +3833,7 @@ Handle(Geom_BSplineSurface) aSurf2 = \n\
GeomAPI_PointsToBSplineSurface(array3).Surface(); \n\
\n\
GeomAPI_ExtremaSurfaceSurface ESS(aSurf1,aSurf2); \n\
Quantity_Length dist = ESS.LowerDistance(); \n\
Standard_Real dist = ESS.LowerDistance(); \n\
gp_Pnt P1,P2; \n\
ESS.NearestPoints(P1,P2); \n\
\n");

View File

@@ -82,7 +82,7 @@ private:
DisplayType aDisplayType,
const TCollection_AsciiString& aString,
Standard_Boolean UpdateViewer = Standard_True,
Quantity_Coefficient Coef = -1);
Standard_Real Coef = -1);
static void DisplayPoint(CGeometryDoc* aDoc,
const gp_Pnt2d& aPoint,
const char* aText,

View File

@@ -256,7 +256,7 @@ void CGeometryDoc::MoveEvent2D(const Standard_Integer x,
{
if(aView->Viewer()->Grid()->IsActive())
{
Quantity_Length aGridX=0,aGridY=0,aGridZ=0;
Standard_Real aGridX=0,aGridY=0,aGridZ=0;
aView->ConvertToGrid(x,y,aGridX,aGridY,aGridZ);
//View is not updated automatically in ConvertToGrid
aView->Update();
@@ -470,7 +470,7 @@ void CGeometryDoc::Minimize3D()
//-----------------------------------------------------------------------------------------
//
//-----------------------------------------------------------------------------------------
void CGeometryDoc::Fit3DViews(Quantity_Coefficient Coef)
void CGeometryDoc::Fit3DViews(Standard_Real Coef)
{
POSITION position = GetFirstViewPosition();
while (position != (POSITION)NULL)
@@ -488,7 +488,7 @@ void CGeometryDoc::Fit3DViews(Quantity_Coefficient Coef)
//-----------------------------------------------------------------------------------------
//
//-----------------------------------------------------------------------------------------
void CGeometryDoc::Set3DViewsZoom(const Quantity_Factor& Coef)
void CGeometryDoc::Set3DViewsZoom(const Standard_Real& Coef)
{
POSITION position = GetFirstViewPosition();
while (position != (POSITION)NULL)

View File

@@ -20,8 +20,8 @@ public:
void Put2DOnTop(bool isMax = true);
void Put3DOnTop(bool isMax = true);
void Fit2DViews();
void Set3DViewsZoom(const Quantity_Factor& Coef );
void Fit3DViews(Quantity_Coefficient Coef);
void Set3DViewsZoom(const Standard_Real& Coef );
void Fit3DViews(Standard_Real Coef);
void simplify(const TopoDS_Shape& aShape);

View File

@@ -34,7 +34,7 @@ public:
// Implementation
public:
virtual ~CGeometryView();
void FitAll(Quantity_Coefficient Coef)
void FitAll(Standard_Real Coef)
{
if (Coef != -1)
myView->FitAll(Coef);

View File

@@ -4,8 +4,6 @@
#include <Standard_Macro.hxx>
#include <Standard_DefineHandle.hxx>
#include <Quantity_Length.hxx>
#include <Aspect_TypeOfline.hxx>
#include <Aspect_WidthOfline.hxx>
#include <Standard_Integer.hxx>

View File

@@ -40,7 +40,7 @@ private:
gp_Pnt myPnt;
gp_Dir myDir;
Standard_Real myLength;
Quantity_Length myArrowLength;
Standard_Real myArrowLength;
};
#endif // !defined(AFX_ISession_Direction_H__767C0DB3_A3B0_11D1_8DA3_0800369C8A03__INCLUDED_)