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:
@@ -270,16 +270,16 @@ Aspect_TypeOfResize WNT_Window::DoResize() const
|
||||
// function : Ratio
|
||||
// purpose :
|
||||
// =======================================================================
|
||||
Quantity_Ratio WNT_Window::Ratio() const
|
||||
Standard_Real WNT_Window::Ratio() const
|
||||
{
|
||||
if (IsVirtual())
|
||||
{
|
||||
return Quantity_Ratio(aXRight - aXLeft)/ Quantity_Ratio(aYBottom - aYTop);
|
||||
return Standard_Real(aXRight - aXLeft)/ Standard_Real(aYBottom - aYTop);
|
||||
}
|
||||
|
||||
RECT aRect;
|
||||
GetClientRect ((HWND )myHWindow, &aRect);
|
||||
return Quantity_Ratio(aRect.right - aRect.left) / Quantity_Ratio(aRect.bottom - aRect.top);
|
||||
return Standard_Real(aRect.right - aRect.left) / Standard_Real(aRect.bottom - aRect.top);
|
||||
}
|
||||
|
||||
// =======================================================================
|
||||
|
Reference in New Issue
Block a user