Salome HOME
Porting to OCCT 7.4.1dev
[modules/geom.git] / src / CurveCreator / CurveCreator_Utils.cxx
index 433f02ee54fa2566678bc7f749f7b6c2cb40e24f..f115904b3a10b2b9fbc55b4628e335528e89199a 100644 (file)
 #include <AIS_Line.hxx>
 #include <AIS_Trihedron.hxx>
 
-#if OCC_VERSION_LARGE <= 0x07030000
-#include <AIS_LocalContext.hxx>
-#endif
-
 #include <Geom_Point.hxx>
 #include <Geom_BSplineCurve.hxx>
 #include <Geom_Line.hxx>
@@ -653,9 +649,6 @@ void CurveCreator_Utils::setSelectedPoints( Handle(AIS_InteractiveContext) theCo
   //ASL: we switch on again automatic highlight (otherwise selection will not be shown)
   //     and call HilightPicked to draw selected owners
   theContext->SetAutomaticHilight( Standard_True );
-#if OCC_VERSION_LARGE <= 0x07030000
-  theContext->LocalContext()->HilightPicked( Standard_True );
-#endif
 }
 
 //=======================================================================
@@ -670,15 +663,7 @@ void CurveCreator_Utils::setLocalPointContext( const CurveCreator_ICurve* theCur
     return;
 
   if ( theOpen ) {
-#if OCC_VERSION_LARGE <= 0x07030000
-    // Open local context if there is no one
-    if ( !theContext->HasOpenedContext() ) {
-#endif
-      theContext->ClearCurrents( false );
-#if OCC_VERSION_LARGE <= 0x07030000
-      theContext->OpenLocalContext( false/*use displayed objects*/, true/*allow shape decomposition*/ );
-    }
-#endif
+    theContext->ClearCurrents( false );
     // load the curve AIS object to the local context with the point selection
     Handle(AIS_InteractiveObject) anAIS = theCurve->getAISObject();
     if ( !anAIS.IsNull() )
@@ -691,13 +676,8 @@ void CurveCreator_Utils::setLocalPointContext( const CurveCreator_ICurve* theCur
     }
   }
   else {
-#if OCC_VERSION_LARGE <= 0x07030000
-    if ( theContext->HasOpenedContext() )
-      theContext->CloseAllContexts( Standard_True );
-#else
     theContext->Deactivate();
     theContext->Activate(0);
-#endif
   }
 }