#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>
//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
}
//=======================================================================
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() )
}
}
else {
-#if OCC_VERSION_LARGE <= 0x07030000
- if ( theContext->HasOpenedContext() )
- theContext->CloseAllContexts( Standard_True );
-#else
theContext->Deactivate();
theContext->Activate(0);
-#endif
}
}