From: nds Date: Tue, 12 Jul 2016 04:48:14 +0000 (+0300) Subject: Temporary modification to check whether the compilation on Linux is correct. OCCT... X-Git-Tag: V_2.5.0~206 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=cd882b4e974dbbc454a6cb14e33322fba81d402a;p=modules%2Fshaper.git Temporary modification to check whether the compilation on Linux is correct. OCCT patch is absent for Jenkins compilation, so there is an error in built. --- diff --git a/src/SketcherPrs/SketcherPrs_Angle.cpp b/src/SketcherPrs/SketcherPrs_Angle.cpp index 99ac0c247..eb3a1a4fb 100644 --- a/src/SketcherPrs/SketcherPrs_Angle.cpp +++ b/src/SketcherPrs/SketcherPrs_Angle.cpp @@ -27,6 +27,8 @@ #define PI 3.1415926535897932 +#define COMPILATION_CORRECTION + IMPLEMENT_STANDARD_HANDLE(SketcherPrs_Angle, AIS_AngleDimension); IMPLEMENT_STANDARD_RTTIEXT(SketcherPrs_Angle, AIS_AngleDimension); @@ -161,10 +163,14 @@ void SketcherPrs_Angle::Compute(const Handle(PrsMgr_PresentationManager3d)& theP double aDist = -1; switch (anAngleType) { case SketcherPrs_Tools::ANGLE_DIRECT: { +#ifndef COMPILATION_CORRECTION SetArrowVisible(Standard_False/*first*/, Standard_True/*second*/); +#endif SetMeasuredGeometry(myFirstPoint, myCenterPoint, mySecondPoint); +#ifndef COMPILATION_CORRECTION bool isReversedPlanes = isAnglePlaneReversedToSketchPlane(); SetAngleReversed(!isReversedPlanes); +#endif } break; case SketcherPrs_Tools::ANGLE_COMPLEMENTARY: { @@ -173,14 +179,20 @@ void SketcherPrs_Angle::Compute(const Handle(PrsMgr_PresentationManager3d)& theP gp_Pnt aFirstPoint = aCenterPoint.Translated( gp_Vec(myCenterPoint, myFirstPoint).Normalized() * (-anEdge1Length)); SetMeasuredGeometry(aFirstPoint, myCenterPoint, mySecondPoint); +#ifndef COMPILATION_CORRECTION SetAngleReversed(false); +#endif } break; case SketcherPrs_Tools::ANGLE_BACKWARD: { +#ifndef COMPILATION_CORRECTION SetArrowVisible(Standard_False/*first*/, Standard_True/*second*/); +#endif SetMeasuredGeometry(myFirstPoint, myCenterPoint, mySecondPoint); bool isReversedPlanes = isAnglePlaneReversedToSketchPlane(); +#ifndef COMPILATION_CORRECTION SetAngleReversed(isReversedPlanes); +#endif } break; default: