]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Temporary modification to check whether the compilation on Linux is correct. OCCT...
authornds <nds@opencascade.com>
Tue, 12 Jul 2016 04:48:14 +0000 (07:48 +0300)
committernds <nds@opencascade.com>
Tue, 12 Jul 2016 04:48:14 +0000 (07:48 +0300)
src/SketcherPrs/SketcherPrs_Angle.cpp

index 99ac0c247e54fcd4539949978fbe1a406103cf95..eb3a1a4fb1120f0debc4aff1cba978c73dcef80e 100644 (file)
@@ -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: