mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +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:
@@ -164,7 +164,7 @@ public:
|
||||
/// <param name="theZoomFactor">Current zoom</param>
|
||||
void Place(int theX, int theY, float theZoomFactor)
|
||||
{
|
||||
Quantity_Factor aZoomFactor = theZoomFactor;
|
||||
Standard_Real aZoomFactor = theZoomFactor;
|
||||
if (!myView().IsNull())
|
||||
{
|
||||
myView()->Place(theX, theY, aZoomFactor);
|
||||
@@ -537,7 +537,7 @@ public:
|
||||
{
|
||||
Quantity_Color anObjCol;
|
||||
myAISContext()->Color (aCurrent, anObjCol);
|
||||
Quantity_Parameter r1, r2, r3;
|
||||
Standard_Real r1, r2, r3;
|
||||
anObjCol.Values(r1, r2, r3, Quantity_TOC_RGB);
|
||||
theRed=(int)r1*255;
|
||||
theGreen=(int)r2*255;
|
||||
|
@@ -180,7 +180,7 @@ public:
|
||||
/// <param name="theZoomFactor">Current zoom</param>
|
||||
void Place (int theX, int theY, float theZoomFactor)
|
||||
{
|
||||
Quantity_Factor aZoomFactor = theZoomFactor;
|
||||
Standard_Real aZoomFactor = theZoomFactor;
|
||||
if (!myView().IsNull())
|
||||
{
|
||||
myView()->Place (theX, theY, aZoomFactor);
|
||||
|
@@ -71,7 +71,7 @@ namespace IE_WPF_D3D
|
||||
public bool IsMaterialEnabled { get; private set; }
|
||||
public bool IsDeleteEnabled { get; private set; }
|
||||
|
||||
private float myCurZoom;// ~ Quantity_Factor
|
||||
private float myCurZoom;
|
||||
private int myXmin;
|
||||
private int myYmin;
|
||||
private int myXmax;
|
||||
|
@@ -70,7 +70,7 @@ namespace IE_WPF_WinForms
|
||||
public bool IsMaterialEnabled { get; private set; }
|
||||
public bool IsDeleteEnabled { get; private set; }
|
||||
|
||||
private float myCurZoom;// ~ Quantity_Factor
|
||||
private float myCurZoom;
|
||||
private int myXmin;
|
||||
private int myYmin;
|
||||
private int myXmax;
|
||||
|
@@ -286,7 +286,7 @@ namespace IE_WinForms
|
||||
|
||||
protected CurrentAction3d myCurrentMode;
|
||||
protected CurrentPressedKey myCurrentPressedKey;
|
||||
protected float myCurZoom;// ~ Quantity_Factor
|
||||
protected float myCurZoom;
|
||||
protected bool myDegenerateModeIsOn;
|
||||
protected int myXmin;
|
||||
protected int myYmin;
|
||||
|
Reference in New Issue
Block a user