-// Copyright (C) 2009-2014 CEA/DEN, EDF R&D
+// Copyright (C) 2009-2024 CEA, EDF
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
//
-
#include "HEXABLOCKGUI_OccGraphicView.hxx"
#include "HEXABLOCKGUI.hxx"
#include "HEXABLOCKGUI_VtkDocumentGraphicView.hxx"
+#include <Basics_OCCTVersion.hxx>
+
#include <SOCC_ViewModel.h>
#include <SUIT_ViewManager.h>
TopoDS_Shape shapeToPreview;
previewShape = new AIS_Shape(shapeToPreview);
// previewShape->SetColor(Quantity_NOC_RED);
- getContext()->SetColor( previewShape, Quantity_NOC_RED );
+ getContext()->SetColor( previewShape, Quantity_NOC_RED, Standard_True );
}
void OccGraphicView::setSelectionMode(TopAbs_ShapeEnum mode)
//get the context
Handle (AIS_InteractiveContext) anIC = getContext();
- if ( anIC.IsNull() || !anIC->HasOpenedContext() )
+ if ( anIC.IsNull()
+#if OCC_VERSION_LARGE <= 0x07030000
+ || !anIC->HasOpenedContext()
+#endif
+ )
return;
// ** highlight
previewShape->Set(shape);
// previewShape->SetColor(Quantity_NOC_RED);
- getContext()->SetColor( previewShape, Quantity_NOC_RED );
+ getContext()->SetColor( previewShape, Quantity_NOC_RED, Standard_True );
previewShape->Redisplay();
vf->Repaint();
}