try {
if ( !S1.IsNull() ) {
/* erase any previous */
+#if OCC_VERSION_LARGE <= 0x06060000
ic->Erase( mySimulationShape1, Standard_True, Standard_False );
+#else
+ ic->Erase( mySimulationShape1, Standard_True );
+#endif
ic->ClearPrs( mySimulationShape1 );
mySimulationShape1 = new AIS_Shape( TopoDS_Shape() );
mySimulationShape1->UnsetColor();
}
if ( !S2.IsNull() ) {
+#if OCC_VERSION_LARGE <= 0x06060000
ic->Erase( mySimulationShape2, Standard_True, Standard_False );
+#else
+ ic->Erase( mySimulationShape2, Standard_True );
+#endif
ic->ClearPrs( mySimulationShape2 );
mySimulationShape2 = new AIS_Shape( TopoDS_Shape() );
if ( vw->getViewManager()->getType() == OCCViewer_Viewer::Type() ) {
OCCViewer_Viewer* v3d = ( (OCCViewer_ViewManager*)( vw->getViewManager() ) )->getOCCViewer();
Handle(AIS_InteractiveContext) ic = v3d->getAISContext();
+#if OCC_VERSION_LARGE <= 0x06060000
ic->Erase( mySimulationShape1, Standard_True, Standard_False );
- ic->ClearPrs( mySimulationShape1 );
ic->Erase( mySimulationShape2, Standard_True, Standard_False );
+#else
+ ic->Erase( mySimulationShape1, Standard_True );
+ ic->Erase( mySimulationShape2, Standard_True );
+#endif
+ ic->ClearPrs( mySimulationShape1 );
ic->ClearPrs( mySimulationShape2 );
ic->UpdateCurrentViewer();
}
AIS_ListOfInteractive displayed;
ic->DisplayedObjects( displayed );
+#if OCC_VERSION_LARGE <= 0x06060000
ic->ObjectsInCollector( displayed );
-
+#endif
AIS_ListIteratorOfListOfInteractive it( displayed );
while ( it.More() && shape.IsNull() ) {
if ( it.Value()->IsInstance( STANDARD_TYPE(GEOM_AISShape) ) ) {