return;
Handle(AIS_InteractiveContext) aContext = aViewer->getAISContext();
- if ( aContext.IsNull() || aContext->HasOpenedContext() ) {
+ if ( aContext->HasOpenedContext() ) {
return;
}
- //@MZN LightApp_OCCSelector::setSelection( aList );
- QMap<QString, Handle(AIS_InteractiveObject)> aDisplayed;
-
- AIS_ListOfInteractive aDispList, aSelList;
- aContext->DisplayedObjects( aDispList );
-
- for ( AIS_ListIteratorOfListOfInteractive it( aDispList ); it.More(); it.Next() )
- {
- QString entryStr = entry( it.Value() );
- if ( !entryStr.isEmpty() )
- aDisplayed.insert( entryStr, it.Value() );
- }
-
- mySelectedExternals.clear();
-
- for ( SUIT_DataOwnerPtrList::const_iterator itr = aList.begin(); itr != aList.end(); ++itr )
- {
- const LightApp_DataOwner* owner = dynamic_cast<const LightApp_DataOwner*>( (*itr).operator->() );
- if ( owner && aDisplayed.contains( owner->entry() ) )
- aSelList.Append( aDisplayed[owner->entry()] );
- else
- mySelectedExternals.append(*itr);
- }
-
- //@MZNmyViewer->unHighlightAll( false );
- aViewer->setObjectsSelected( aSelList );
+ LightApp_OCCSelector::setSelection( aList );
}
QString HYDROGUI_OCCSelector::entry( const Handle(AIS_InteractiveObject)& anAIS ) const
#include "HYDROGUI_Tool.h"
#include "HYDROGUI_UpdateFlags.h"
#include "HYDROGUI_OCCSelector.h"
-#include "HYDROGUI_ZLayers.h" //@MZN
+#include "HYDROGUI_ZLayers.h"
#include <HYDROData_Document.h>
#include <HYDROData_GeomTool.h>
{
HYDROGUI_Operation::startOperation();
+ // Set preview view manager
+ if ( !getPreviewManager() ) {
+ setPreviewManager( ::qobject_cast<OCCViewer_ViewManager*>(
+ module()->getApp()->getViewManager( OCCViewer_Viewer::Type(), true ) ) );
+ }
+
if ( !isApplyAndClose() ) {
return;
}
Handle(AIS_InteractiveContext) aCtx = NULL;
// Display preview
- if ( !getPreviewManager() ) {
- setPreviewManager( ::qobject_cast<OCCViewer_ViewManager*>(
- module()->getApp()->getViewManager( OCCViewer_Viewer::Type(), true ) ) );
- }
-
OCCViewer_ViewManager* aViewManager = getPreviewManager();
if ( aViewManager ) {
if ( OCCViewer_Viewer* aViewer = aViewManager->getOCCViewer() ) {
aTrsf.m21(), -aTrsf.m22(), aTrsf.m23(),
aTrsf.m31() + aRect.width() * 0.5, aTrsf.m32 () - aRect.height() * 0.5, aTrsf.m33() );
- /* @MZN
+ /*
QTransform aTrsf = myImage->Trsf();
gp_Mat aMat( aTrsf.m11(), aTrsf.m21(), 0,
aTrsf.m12(), -aTrsf.m22(), 0,