mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-29 14:00:49 +03:00
0028799: Coding Rules - elimilate confusing Quantity aliases of Standard_Real type
Aliases to Standard_Real within Quantity package have been marked as deprecated.
This commit is contained in:
@@ -46,12 +46,12 @@ Aspect_TypeOfDeflection VrmlConverter_Drawer::TypeOfDeflection() const
|
||||
return myTypeOfDeflection;
|
||||
}
|
||||
|
||||
void VrmlConverter_Drawer::SetMaximalChordialDeviation(const Quantity_Length aChordialDeviation)
|
||||
void VrmlConverter_Drawer::SetMaximalChordialDeviation(const Standard_Real aChordialDeviation)
|
||||
{
|
||||
myChordialDeviation = aChordialDeviation;
|
||||
}
|
||||
|
||||
Quantity_Length VrmlConverter_Drawer::MaximalChordialDeviation() const
|
||||
Standard_Real VrmlConverter_Drawer::MaximalChordialDeviation() const
|
||||
{
|
||||
return myChordialDeviation;
|
||||
}
|
||||
|
@@ -22,7 +22,6 @@
|
||||
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
#include <Quantity_Length.hxx>
|
||||
#include <Aspect_TypeOfDeflection.hxx>
|
||||
#include <Standard_Real.hxx>
|
||||
#include <MMgt_TShared.hxx>
|
||||
@@ -60,11 +59,11 @@ public:
|
||||
//! VrmlConverter_DeflectionCurve
|
||||
//! VrmlConverter_WFDeflectionRestrictedFace
|
||||
//! VrmlConverter_WFDeflectionShape
|
||||
Standard_EXPORT void SetMaximalChordialDeviation (const Quantity_Length aChordialDeviation);
|
||||
Standard_EXPORT void SetMaximalChordialDeviation (const Standard_Real aChordialDeviation);
|
||||
|
||||
//! returns the maximal chordial deviation.
|
||||
//! Default value: 0.1
|
||||
Standard_EXPORT Quantity_Length MaximalChordialDeviation() const;
|
||||
Standard_EXPORT Standard_Real MaximalChordialDeviation() const;
|
||||
|
||||
//! default 0.001
|
||||
Standard_EXPORT void SetDeviationCoefficient (const Standard_Real aCoefficient);
|
||||
@@ -213,19 +212,10 @@ public:
|
||||
//! sets LineAspect for the seen lines.
|
||||
Standard_EXPORT void SetSeenLineAspect (const Handle(VrmlConverter_LineAspect)& anAspect);
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTIEXT(VrmlConverter_Drawer,MMgt_TShared)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Handle(VrmlConverter_IsoAspect) myUIsoAspect;
|
||||
Handle(VrmlConverter_IsoAspect) myVIsoAspect;
|
||||
Standard_Integer myNbPoints;
|
||||
@@ -238,7 +228,7 @@ private:
|
||||
Standard_Boolean myWireDraw;
|
||||
Handle(VrmlConverter_LineAspect) myLineAspect;
|
||||
Handle(VrmlConverter_ShadingAspect) myShadingAspect;
|
||||
Quantity_Length myChordialDeviation;
|
||||
Standard_Real myChordialDeviation;
|
||||
Aspect_TypeOfDeflection myTypeOfDeflection;
|
||||
Standard_Real myMaximalParameterValue;
|
||||
Standard_Real myDeviationCoefficient;
|
||||
@@ -247,13 +237,6 @@ private:
|
||||
Handle(VrmlConverter_LineAspect) myHiddenLineAspect;
|
||||
Handle(VrmlConverter_LineAspect) mySeenLineAspect;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _VrmlConverter_Drawer_HeaderFile
|
||||
|
@@ -33,13 +33,13 @@
|
||||
IMPLEMENT_STANDARD_RTTIEXT(VrmlConverter_Projector,MMgt_TShared)
|
||||
|
||||
VrmlConverter_Projector::VrmlConverter_Projector (const TopTools_Array1OfShape& Shapes,
|
||||
const Quantity_Length Focus,
|
||||
const Quantity_Length DX,
|
||||
const Quantity_Length DY,
|
||||
const Quantity_Length DZ,
|
||||
const Quantity_Length XUp,
|
||||
const Quantity_Length YUp,
|
||||
const Quantity_Length ZUp,
|
||||
const Standard_Real Focus,
|
||||
const Standard_Real DX,
|
||||
const Standard_Real DY,
|
||||
const Standard_Real DZ,
|
||||
const Standard_Real XUp,
|
||||
const Standard_Real YUp,
|
||||
const Standard_Real ZUp,
|
||||
const VrmlConverter_TypeOfCamera Camera,
|
||||
const VrmlConverter_TypeOfLight Light)
|
||||
|
||||
|
@@ -31,7 +31,6 @@
|
||||
#include <Vrml_MatrixTransform.hxx>
|
||||
#include <MMgt_TShared.hxx>
|
||||
#include <TopTools_Array1OfShape.hxx>
|
||||
#include <Quantity_Length.hxx>
|
||||
#include <Standard_OStream.hxx>
|
||||
class HLRAlgo_Projector;
|
||||
|
||||
@@ -51,7 +50,7 @@ class VrmlConverter_Projector : public MMgt_TShared
|
||||
public:
|
||||
|
||||
|
||||
Standard_EXPORT VrmlConverter_Projector(const TopTools_Array1OfShape& Shapes, const Quantity_Length Focus, const Quantity_Length DX, const Quantity_Length DY, const Quantity_Length DZ, const Quantity_Length XUp, const Quantity_Length YUp, const Quantity_Length ZUp, const VrmlConverter_TypeOfCamera Camera = VrmlConverter_NoCamera, const VrmlConverter_TypeOfLight Light = VrmlConverter_NoLight);
|
||||
Standard_EXPORT VrmlConverter_Projector(const TopTools_Array1OfShape& Shapes, const Standard_Real Focus, const Standard_Real DX, const Standard_Real DY, const Standard_Real DZ, const Standard_Real XUp, const Standard_Real YUp, const Standard_Real ZUp, const VrmlConverter_TypeOfCamera Camera = VrmlConverter_NoCamera, const VrmlConverter_TypeOfLight Light = VrmlConverter_NoLight);
|
||||
|
||||
Standard_EXPORT void SetCamera (const VrmlConverter_TypeOfCamera aCamera);
|
||||
|
||||
@@ -73,16 +72,8 @@ public:
|
||||
|
||||
Standard_EXPORT HLRAlgo_Projector Projector() const;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTIEXT(VrmlConverter_Projector,MMgt_TShared)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
@@ -99,10 +90,4 @@ private:
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _VrmlConverter_Projector_HeaderFile
|
||||
|
@@ -79,7 +79,7 @@ void VrmlConverter_WFDeflectionRestrictedFace::Add
|
||||
const Handle(BRepAdaptor_HSurface)& aFace,
|
||||
const Standard_Boolean DrawUIso,
|
||||
const Standard_Boolean DrawVIso,
|
||||
const Quantity_Length Deflection,
|
||||
const Standard_Real Deflection,
|
||||
const Standard_Integer NBUiso,
|
||||
const Standard_Integer NBViso,
|
||||
const Handle(VrmlConverter_Drawer)& aDrawer)
|
||||
@@ -317,7 +317,7 @@ void VrmlConverter_WFDeflectionRestrictedFace::Add
|
||||
const Handle(BRepAdaptor_HSurface)& aFace,
|
||||
const Handle (VrmlConverter_Drawer)& aDrawer){
|
||||
|
||||
Quantity_Length Deflection = GetDeflection(aFace, aDrawer);
|
||||
Standard_Real Deflection = GetDeflection(aFace, aDrawer);
|
||||
|
||||
Standard_Integer finu = aDrawer->UIsoAspect()->Number();
|
||||
Standard_Integer finv = aDrawer->VIsoAspect()->Number();
|
||||
@@ -344,7 +344,7 @@ void VrmlConverter_WFDeflectionRestrictedFace::AddUIso
|
||||
const Handle(BRepAdaptor_HSurface)& aFace,
|
||||
const Handle (VrmlConverter_Drawer)& aDrawer) {
|
||||
|
||||
Quantity_Length Deflection = GetDeflection(aFace, aDrawer);
|
||||
Standard_Real Deflection = GetDeflection(aFace, aDrawer);
|
||||
|
||||
Standard_Integer finu = aDrawer->UIsoAspect()->Number();
|
||||
Standard_Integer finv = aDrawer->VIsoAspect()->Number();
|
||||
@@ -369,7 +369,7 @@ void VrmlConverter_WFDeflectionRestrictedFace::AddVIso
|
||||
const Handle(BRepAdaptor_HSurface)& aFace,
|
||||
const Handle (VrmlConverter_Drawer)& aDrawer) {
|
||||
|
||||
Quantity_Length Deflection = GetDeflection(aFace, aDrawer);
|
||||
Standard_Real Deflection = GetDeflection(aFace, aDrawer);
|
||||
|
||||
Standard_Integer finu = aDrawer->UIsoAspect()->Number();
|
||||
Standard_Integer finv = aDrawer->VIsoAspect()->Number();
|
||||
|
@@ -23,7 +23,6 @@
|
||||
|
||||
#include <Standard_OStream.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
#include <Quantity_Length.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
class BRepAdaptor_HSurface;
|
||||
class VrmlConverter_Drawer;
|
||||
@@ -52,29 +51,8 @@ public:
|
||||
|
||||
Standard_EXPORT static void AddVIso (Standard_OStream& anOStream, const Handle(BRepAdaptor_HSurface)& aFace, const Handle(VrmlConverter_Drawer)& aDrawer);
|
||||
|
||||
Standard_EXPORT static void Add (Standard_OStream& anOStream, const Handle(BRepAdaptor_HSurface)& aFace, const Standard_Boolean DrawUIso, const Standard_Boolean DrawVIso, const Quantity_Length Deflection, const Standard_Integer NBUiso, const Standard_Integer NBViso, const Handle(VrmlConverter_Drawer)& aDrawer);
|
||||
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
Standard_EXPORT static void Add (Standard_OStream& anOStream, const Handle(BRepAdaptor_HSurface)& aFace, const Standard_Boolean DrawUIso, const Standard_Boolean DrawVIso, const Standard_Real Deflection, const Standard_Integer NBUiso, const Standard_Integer NBViso, const Handle(VrmlConverter_Drawer)& aDrawer);
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _VrmlConverter_WFDeflectionRestrictedFace_HeaderFile
|
||||
|
Reference in New Issue
Block a user