mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-08 14:17:06 +03:00
0024355: Compiler Warning level 4 for MFC samples
Some warnings were removed from MFC samples All warnings of sample projects with warning level 4 were fixed on VC9 Warnings level increased to -W4 in projects of MFC samples; sample ReadMe files added to documentation Changes in Viewer2dDoc.cpp and OcafDoc.cpp were restored. Minor corrections in documentation
This commit is contained in:
@@ -29,9 +29,9 @@ ISession2D_Curve::ISession2D_Curve(const Handle_Geom2d_Curve aGeom2dCurve,
|
||||
myradiusratio = 1;
|
||||
}
|
||||
|
||||
void ISession2D_Curve::Compute(const Handle(PrsMgr_PresentationManager3d)& aPresentationManager,
|
||||
void ISession2D_Curve::Compute(const Handle(PrsMgr_PresentationManager3d)& /*aPresentationManager*/,
|
||||
const Handle(Prs3d_Presentation)& aPresentation,
|
||||
const Standard_Integer aMode)
|
||||
const Standard_Integer /*aMode*/)
|
||||
{
|
||||
|
||||
Geom2dAdaptor_Curve anAdaptor(myGeom2dCurve);
|
||||
@@ -118,8 +118,8 @@ void ISession2D_Curve::Compute(const Handle(PrsMgr_PresentationManager3d)& aPres
|
||||
}
|
||||
}
|
||||
|
||||
void ISession2D_Curve::ComputeSelection(const Handle(SelectMgr_Selection)& aSelection,
|
||||
const Standard_Integer aMode)
|
||||
void ISession2D_Curve::ComputeSelection(const Handle(SelectMgr_Selection)& /*aSelection*/,
|
||||
const Standard_Integer /*aMode*/)
|
||||
{
|
||||
}
|
||||
|
||||
|
@@ -30,7 +30,7 @@ ISession_Curve::~ISession_Curve()
|
||||
{
|
||||
|
||||
}
|
||||
void ISession_Curve::Compute(const Handle(PrsMgr_PresentationManager3d)& aPresentationManager,
|
||||
void ISession_Curve::Compute(const Handle(PrsMgr_PresentationManager3d)& /*aPresentationManager*/,
|
||||
const Handle(Prs3d_Presentation)& aPresentation,
|
||||
const Standard_Integer aMode)
|
||||
{
|
||||
@@ -48,14 +48,14 @@ void ISession_Curve::Compute(const Handle(PrsMgr_PresentationManager3d)& aPresen
|
||||
}
|
||||
}
|
||||
|
||||
void ISession_Curve::Compute(const Handle(Prs3d_Projector)& aProjector,
|
||||
const Handle(Prs3d_Presentation)& aPresentation)
|
||||
void ISession_Curve::Compute(const Handle(Prs3d_Projector)& /*aProjector*/,
|
||||
const Handle(Prs3d_Presentation)& /*aPresentation*/)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void ISession_Curve::ComputeSelection(const Handle(SelectMgr_Selection)& aSelection,
|
||||
const Standard_Integer aMode)
|
||||
void ISession_Curve::ComputeSelection(const Handle(SelectMgr_Selection)& /*aSelection*/,
|
||||
const Standard_Integer /*aMode*/)
|
||||
{
|
||||
}
|
||||
|
||||
|
@@ -25,24 +25,24 @@ ISession_Direction::ISession_Direction()
|
||||
|
||||
}
|
||||
|
||||
ISession_Direction::ISession_Direction(gp_Pnt& aPnt,gp_Dir& aDir,Standard_Real aLength,Standard_Real anArrowLength)
|
||||
ISession_Direction::ISession_Direction(const gp_Pnt& aPnt,const gp_Dir& aDir,Standard_Real aLength,Standard_Real anArrowLength)
|
||||
:myPnt(aPnt),myDir(aDir),myLength(aLength),myArrowLength(anArrowLength)
|
||||
{}
|
||||
|
||||
ISession_Direction::ISession_Direction(gp_Pnt& aPnt,gp_Vec& aVec,Standard_Real anArrowLength)
|
||||
ISession_Direction::ISession_Direction(const gp_Pnt& aPnt,const gp_Vec& aVec,Standard_Real anArrowLength)
|
||||
:myPnt(aPnt),myDir(aVec),myArrowLength(anArrowLength)
|
||||
{
|
||||
myLength = aVec.Magnitude();
|
||||
}
|
||||
|
||||
ISession_Direction::ISession_Direction(gp_Pnt2d& aPnt2d,
|
||||
gp_Dir2d& aDir2d,
|
||||
ISession_Direction::ISession_Direction(const gp_Pnt2d& aPnt2d,
|
||||
const gp_Dir2d& aDir2d,
|
||||
Standard_Real aLength)
|
||||
:myPnt(gp_Pnt(aPnt2d.X(),aPnt2d.Y(),0)),myDir(gp_Dir(aDir2d.X(),aDir2d.Y(),0)),myLength(aLength)
|
||||
{}
|
||||
|
||||
ISession_Direction::ISession_Direction(gp_Pnt2d& aPnt2d,
|
||||
gp_Vec2d& aVec2d)
|
||||
ISession_Direction::ISession_Direction(const gp_Pnt2d& aPnt2d,
|
||||
const gp_Vec2d& aVec2d)
|
||||
:myPnt(gp_Pnt(aPnt2d.X(),aPnt2d.Y(),0)),myDir(gp_Dir(aVec2d.X(),aVec2d.Y(),0))
|
||||
{
|
||||
myLength = aVec2d.Magnitude();
|
||||
@@ -54,9 +54,9 @@ ISession_Direction::~ISession_Direction()
|
||||
|
||||
}
|
||||
|
||||
void ISession_Direction::Compute(const Handle(PrsMgr_PresentationManager3d)& aPresentationManager,
|
||||
void ISession_Direction::Compute(const Handle(PrsMgr_PresentationManager3d)& /*aPresentationManager*/,
|
||||
const Handle(Prs3d_Presentation)& aPresentation,
|
||||
const Standard_Integer aMode)
|
||||
const Standard_Integer /*aMode*/)
|
||||
{
|
||||
Handle(Prs3d_ArrowAspect) anArrowAspect = myDrawer->ArrowAspect();
|
||||
anArrowAspect->SetLength(myArrowLength);
|
||||
@@ -76,13 +76,13 @@ void ISession_Direction::Compute(const Handle(PrsMgr_PresentationManager3d)& aPr
|
||||
}
|
||||
|
||||
|
||||
void ISession_Direction::Compute(const Handle(Prs3d_Projector)& aProjector,
|
||||
const Handle(Prs3d_Presentation)& aPresentation)
|
||||
void ISession_Direction::Compute(const Handle(Prs3d_Projector)& /*aProjector*/,
|
||||
const Handle(Prs3d_Presentation)& /*aPresentation*/)
|
||||
{
|
||||
}
|
||||
|
||||
void ISession_Direction::ComputeSelection(const Handle(SelectMgr_Selection)& aSelection,
|
||||
const Standard_Integer aMode)
|
||||
void ISession_Direction::ComputeSelection(const Handle(SelectMgr_Selection)& /*aSelection*/,
|
||||
const Standard_Integer /*aMode*/)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -90,3 +90,8 @@ void ISession_Direction::SetText(TCollection_ExtendedString & aText)
|
||||
{
|
||||
myText = aText;
|
||||
}
|
||||
|
||||
void ISession_Direction::SetText(Standard_CString aText)
|
||||
{
|
||||
myText = aText;
|
||||
}
|
||||
|
@@ -16,12 +16,13 @@ class ISession_Direction : public AIS_InteractiveObject
|
||||
public:
|
||||
TCollection_ExtendedString myText;
|
||||
void SetText(TCollection_ExtendedString& aText);
|
||||
void SetText(Standard_CString aText);
|
||||
ISession_Direction();
|
||||
ISession_Direction(gp_Pnt& aPnt,gp_Dir& aDir,Standard_Real aLength=1,Standard_Real anArrowLength=1);
|
||||
ISession_Direction(gp_Pnt& aPnt,gp_Vec& aVec,Standard_Real anArrowLength=1);
|
||||
ISession_Direction(const gp_Pnt& aPnt,const gp_Dir& aDir,Standard_Real aLength=1,Standard_Real anArrowLength=1);
|
||||
ISession_Direction(const gp_Pnt& aPnt,const gp_Vec& aVec,Standard_Real anArrowLength=1);
|
||||
|
||||
ISession_Direction(gp_Pnt2d& aPnt2d,gp_Dir2d& aDir2d,Standard_Real aLength=1);
|
||||
ISession_Direction(gp_Pnt2d& aPnt2d,gp_Vec2d& aVec2d);
|
||||
ISession_Direction(const gp_Pnt2d& aPnt2d,const gp_Dir2d& aDir2d,Standard_Real aLength=1);
|
||||
ISession_Direction(const gp_Pnt2d& aPnt2d,const gp_Vec2d& aVec2d);
|
||||
|
||||
virtual ~ISession_Direction();
|
||||
DEFINE_STANDARD_RTTI(ISession_Direction)
|
||||
|
@@ -24,13 +24,13 @@ ISession_Point::ISession_Point(Standard_Real X,Standard_Real Y ,Standard_Real Z)
|
||||
|
||||
}
|
||||
|
||||
ISession_Point::ISession_Point(gp_Pnt2d& aPoint,Standard_Real Elevation)
|
||||
ISession_Point::ISession_Point(const gp_Pnt2d& aPoint,Standard_Real Elevation)
|
||||
:myPoint(gp_Pnt(aPoint.X(),aPoint.Y(),Elevation))
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
ISession_Point::ISession_Point(gp_Pnt& aPoint)
|
||||
ISession_Point::ISession_Point(const gp_Pnt& aPoint)
|
||||
:myPoint(aPoint)
|
||||
{
|
||||
|
||||
@@ -41,9 +41,9 @@ ISession_Point::~ISession_Point()
|
||||
|
||||
}
|
||||
|
||||
void ISession_Point::Compute(const Handle(PrsMgr_PresentationManager3d)& aPresentationManager,
|
||||
void ISession_Point::Compute(const Handle(PrsMgr_PresentationManager3d)& /*aPresentationManager*/,
|
||||
const Handle(Prs3d_Presentation)& aPresentation,
|
||||
const Standard_Integer aMode)
|
||||
const Standard_Integer /*aMode*/)
|
||||
{
|
||||
Handle(Geom_CartesianPoint) aGeomPoint = new Geom_CartesianPoint(myPoint);
|
||||
|
||||
@@ -51,13 +51,13 @@ void ISession_Point::Compute(const Handle(PrsMgr_PresentationManager3d)& aPresen
|
||||
}
|
||||
|
||||
|
||||
void ISession_Point::Compute(const Handle(Prs3d_Projector)& aProjector,
|
||||
const Handle(Prs3d_Presentation)& aPresentation)
|
||||
void ISession_Point::Compute(const Handle(Prs3d_Projector)& /*aProjector*/,
|
||||
const Handle(Prs3d_Presentation)& /*aPresentation*/)
|
||||
{
|
||||
}
|
||||
|
||||
void ISession_Point::ComputeSelection(const Handle(SelectMgr_Selection)& aSelection,
|
||||
const Standard_Integer unMode)
|
||||
void ISession_Point::ComputeSelection(const Handle(SelectMgr_Selection)& /*aSelection*/,
|
||||
const Standard_Integer /*unMode*/)
|
||||
{
|
||||
}
|
||||
|
||||
|
@@ -19,8 +19,8 @@ class ISession_Point : public AIS_InteractiveObject
|
||||
public:
|
||||
ISession_Point();
|
||||
ISession_Point(Standard_Real X,Standard_Real Y ,Standard_Real Z);
|
||||
ISession_Point(gp_Pnt2d& aPoint,Standard_Real Elevation = 0);
|
||||
ISession_Point(gp_Pnt& aPoint);
|
||||
ISession_Point(const gp_Pnt2d& aPoint,Standard_Real Elevation = 0);
|
||||
ISession_Point(const gp_Pnt& aPoint);
|
||||
virtual ~ISession_Point();
|
||||
DEFINE_STANDARD_RTTI(ISession_Point)
|
||||
|
||||
|
@@ -31,7 +31,7 @@ ISession_Surface::~ISession_Surface()
|
||||
{
|
||||
|
||||
}
|
||||
void ISession_Surface::Compute(const Handle(PrsMgr_PresentationManager3d)& aPresentationManager,
|
||||
void ISession_Surface::Compute(const Handle(PrsMgr_PresentationManager3d)& /*aPresentationManager*/,
|
||||
const Handle(Prs3d_Presentation)& aPresentation,
|
||||
const Standard_Integer aMode)
|
||||
{
|
||||
@@ -56,12 +56,12 @@ void ISession_Surface::Compute(const Handle(PrsMgr_PresentationManager3d)& aPres
|
||||
|
||||
}
|
||||
|
||||
void ISession_Surface::Compute(const Handle(Prs3d_Projector)& aProjector,
|
||||
const Handle(Prs3d_Presentation)& aPresentation)
|
||||
void ISession_Surface::Compute(const Handle(Prs3d_Projector)& /*aProjector*/,
|
||||
const Handle(Prs3d_Presentation)& /*aPresentation*/)
|
||||
{
|
||||
}
|
||||
|
||||
void ISession_Surface::ComputeSelection(const Handle(SelectMgr_Selection)& aSelection,
|
||||
const Standard_Integer aMode)
|
||||
void ISession_Surface::ComputeSelection(const Handle(SelectMgr_Selection)& /*aSelection*/,
|
||||
const Standard_Integer /*aMode*/)
|
||||
{
|
||||
}
|
@@ -62,20 +62,20 @@ ISession_Text::~ISession_Text()
|
||||
|
||||
}
|
||||
|
||||
void ISession_Text::Compute(const Handle(PrsMgr_PresentationManager3d)& aPresentationManager,
|
||||
const Handle(Prs3d_Presentation)& aPresentation,
|
||||
const Standard_Integer aMode)
|
||||
void ISession_Text::Compute(const Handle(PrsMgr_PresentationManager3d)& /*aPresentationManager*/,
|
||||
const Handle(Prs3d_Presentation)& aPresentation,
|
||||
const Standard_Integer /*aMode*/)
|
||||
{
|
||||
Prs3d_Text::Draw(aPresentation,myDrawer,MyText,gp_Pnt( MyX ,MyY,MyZ ));
|
||||
}
|
||||
|
||||
void ISession_Text::Compute(const Handle(Prs3d_Projector)& aProjector,
|
||||
const Handle(Prs3d_Presentation)& aPresentation)
|
||||
void ISession_Text::Compute(const Handle(Prs3d_Projector)& /*aProjector*/,
|
||||
const Handle(Prs3d_Presentation)& /*aPresentation*/)
|
||||
{
|
||||
}
|
||||
|
||||
void ISession_Text::ComputeSelection(const Handle(SelectMgr_Selection)& aSelection,
|
||||
const Standard_Integer unMode)
|
||||
void ISession_Text::ComputeSelection(const Handle(SelectMgr_Selection)& /*aSelection*/,
|
||||
const Standard_Integer /*unMode*/)
|
||||
{
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user