-// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2021 CEA/DEN, EDF R&D, OPEN CASCADE
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
QString GEOMGUI_AnnotationMgr::GetEntrySeparator()
{
- return "_annotation:";
+ return "_annotation:";
}
//================================================================
if ( !theEntry.isEmpty() ) {
// owner should be set to provide selection mechanizm
Handle( SALOME_InteractiveObject ) anIO = new SALOME_InteractiveObject();
- anIO->setEntry( theEntry.toLatin1().constData() );
+ anIO->setEntry( theEntry.toUtf8().constData() );
aPresentation->SetOwner( anIO );
}
setDisplayProperties( aPresentation, aView, getEntry( theObject ).c_str() );
// add Prs to preview
- SUIT_ViewWindow* vw = getApplication()->desktop()->activeWindow();
+ //SUIT_ViewWindow* vw = getApplication()->desktop()->activeWindow();
SOCC_Prs* aPrs =
dynamic_cast<SOCC_Prs*>( ( aView )->CreatePrs( 0 ) );
Handle(GEOM_Annotation) aPresentation = Handle(GEOM_Annotation)::DownCast( aPrs );
GEOMGUI_AnnotationAttrs::SetupPresentation( aPresentation, theProperty, aShapeLCS );
- aView->getAISContext()->Redisplay( aPresentation );
+ aView->getAISContext()->Redisplay( aPresentation, Standard_True );
}
}
}
if ( !aShape.IsNull() ) {
- gp_Ax3 aShapeLCS = gp_Ax3().Transformed( aShape.Location().Transformation() );
GEOMGUI_AnnotationAttrs::SetupPresentation( aPresentation, aProperty, aShapeLCS );
if ( aProperty.ShapeType == TopAbs_SHAPE ) {
aPresentation->SetHilightShape( aShape );
setDisplayProperties( aPresentation, aView, theEntry );
- aView->getAISContext()->Redisplay( aPresentation );
+ aView->getAISContext()->Redisplay( aPresentation, Standard_True );
}
}
getDisplayer()->UpdateViewer();