mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-09-05 20:27:52 +08: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:
@@ -21,20 +21,20 @@ IMPLEMENT_STANDARD_RTTIEXT(ISession_Direction,AIS_InteractiveObject)
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
ISession_Direction::ISession_Direction(gp_Pnt& aPnt,gp_Pnt& aPnt2)
|
||||
ISession_Direction::ISession_Direction(const gp_Pnt& aPnt,const gp_Pnt& aPnt2)
|
||||
:myStartPnt(aPnt),myEndPnt(aPnt2)
|
||||
{}
|
||||
|
||||
ISession_Direction::ISession_Direction(gp_Pnt& aPnt,gp_Vec& aVec)
|
||||
ISession_Direction::ISession_Direction(const gp_Pnt& aPnt,const gp_Vec& aVec)
|
||||
:myStartPnt(aPnt)
|
||||
{
|
||||
myEndPnt = myStartPnt.Translated(aVec);
|
||||
}
|
||||
|
||||
|
||||
void ISession_Direction::Compute(const Handle(PrsMgr_PresentationManager3d)& aPresentationManager,
|
||||
const Handle(Prs3d_Presentation)& aPresentation,
|
||||
const Standard_Integer aMode)
|
||||
void ISession_Direction::Compute(const Handle(PrsMgr_PresentationManager3d)& /*aPresentationManager*/,
|
||||
const Handle(Prs3d_Presentation)& aPresentation,
|
||||
const Standard_Integer /*aMode*/)
|
||||
{
|
||||
Handle(Prs3d_ArrowAspect) anArrowAspect = myDrawer->ArrowAspect();
|
||||
anArrowAspect->SetLength(myStartPnt.Distance(myEndPnt));
|
||||
|
||||
Reference in New Issue
Block a user