MantisBT
Mantis Bug Tracker Workflow

View Revisions: Issue #28316 All Revisions ] Back to Issue ]
Summary 0028316: Coding Rules - Elimilate confusing aliases of Standard_Real type in V3d_View
Revision 2016-12-29 10:38 by Vico Liang
Description In clas V3d_View, it used several kinds of typedef of Standard_Real, it's inconvinient and confused when calling methods with these arguments. It would be more clear to replace it with their raw type Standard_Real.

Quantity_Factor
Quantity_Coefficient
V3d_Coordinate
Quantity_Parameter

List several method as below:

  Standard_EXPORT void SetSize (const Quantity_Length theSize);
  Standard_EXPORT void SetZoom (const Quantity_Factor Coef, const Standard_Boolean Start = Standard_True);
  Standard_EXPORT void SetScale (const Quantity_Factor Coef);
  Standard_EXPORT void FitAll (const Quantity_Coefficient theMargin = 0.01, const Standard_Boolean theToUpdate = Standard_True);
  Standard_EXPORT void Convert (const V3d_Coordinate X, const V3d_Coordinate Y, const V3d_Coordinate Z, Standard_Integer& Xp, Standard_Integer& Yp) const;
  Standard_EXPORT void Proj (Quantity_Parameter& Vx, Quantity_Parameter& Vy, Quantity_Parameter& Vz) const;
Revision 2016-12-29 10:36 by Vico Liang
Description In clas V3d_View, it used several kinds of typedef of Standard_Real, it's inconvinient and confused when calling methods with these arguments. It would be more clear to replace it the their raw type Standard_Real.

Quantity_Factor
Quantity_Coefficient
V3d_Coordinate
Quantity_Parameter

List several method as below:

  Standard_EXPORT void SetSize (const Quantity_Length theSize);
  Standard_EXPORT void SetZoom (const Quantity_Factor Coef, const Standard_Boolean Start = Standard_True);
  Standard_EXPORT void SetScale (const Quantity_Factor Coef);
  Standard_EXPORT void FitAll (const Quantity_Coefficient theMargin = 0.01, const Standard_Boolean theToUpdate = Standard_True);
  Standard_EXPORT void Convert (const V3d_Coordinate X, const V3d_Coordinate Y, const V3d_Coordinate Z, Standard_Integer& Xp, Standard_Integer& Yp) const;
  Standard_EXPORT void Proj (Quantity_Parameter& Vx, Quantity_Parameter& Vy, Quantity_Parameter& Vz) const;
Revision 2016-12-29 10:34 by Vico Liang
Description In clas V3d_View, it used several kinds of typedef of Standard_Real, it's inconvinient and confused when calling the mesh with these arguments. It would be more clear to replace it the their raw type Standard_Real.

Quantity_Factor
Quantity_Coefficient
V3d_Coordinate
Quantity_Parameter

List several method as below:

  Standard_EXPORT void SetSize (const Quantity_Length theSize);
  Standard_EXPORT void SetZoom (const Quantity_Factor Coef, const Standard_Boolean Start = Standard_True);
  Standard_EXPORT void SetScale (const Quantity_Factor Coef);
  Standard_EXPORT void FitAll (const Quantity_Coefficient theMargin = 0.01, const Standard_Boolean theToUpdate = Standard_True);
  Standard_EXPORT void Convert (const V3d_Coordinate X, const V3d_Coordinate Y, const V3d_Coordinate Z, Standard_Integer& Xp, Standard_Integer& Yp) const;
  Standard_EXPORT void Proj (Quantity_Parameter& Vx, Quantity_Parameter& Vy, Quantity_Parameter& Vz) const;


Copyright © 2000 - 2021 MantisBT Team
Powered by Mantis Bugtracker