#include "OCCViewer_AISSelector.h"
+#include <Basics_OCCTVersion.hxx>
+
/*!
Constructor
*/
{
myHilightColor = color;
if ( !myAISContext.IsNull() )
- myAISContext->SetHilightColor( myHilightColor );
+#if OCC_VERSION_LARGE > 0x07000000
+ myAISContext->ChangeHighlightStyle()->SetColor( myHilightColor );
+#else
+ myAISContext->SetHilightColor( myHilightColor );
+#endif
}
/*!
{
mySelectColor = color;
if ( !myAISContext.IsNull() )
+#if OCC_VERSION_LARGE > 0x07000000
+ myAISContext->ChangeSelectionStyle()->SetColor( mySelectColor );
+#else
myAISContext->SelectionColor( mySelectColor );
+#endif
}
/*!
{
myAISContext = aisContext;
if ( ! myAISContext.IsNull() ) {
+#if OCC_VERSION_LARGE > 0x07000000
+ myAISContext->ChangeHighlightStyle()->SetColor( myHilightColor );
+ myAISContext->ChangeSelectionStyle()->SetColor( mySelectColor );
+#else
myAISContext->SetHilightColor( myHilightColor );
myAISContext->SelectionColor( mySelectColor );
+#endif
myAISContext->SetSubIntensityColor( Quantity_NOC_CYAN1 );
}
}
// init selector
myAISContext = new AIS_InteractiveContext( myV3dViewer );
+#if OCC_VERSION_LARGE > 0x07000000
+ myAISContext->ChangeSelectionStyle()->SetColor( Quantity_NOC_WHITE );
+#else
myAISContext->SelectionColor( Quantity_NOC_WHITE );
+#endif
// display isoline on planar faces (box for ex.)
myAISContext->IsoOnPlane( true );