#include <SVTK_ViewModel.h>
#include <SVTK_InteractorStyle.h>
#include <SVTK_RenderWindowInteractor.h>
-
-#include <VTKViewer_ViewManager.h>
+#include <SVTK_ViewManager.h>
#include "OB_Browser.h"
// Display / Erase
//-------------------------------------------------
aClient = "($client in {'VTKViewer' 'ObjectBrowser'})";
- QString anActiveVTK = QString("activeView = '%1'").arg(VTKViewer_Viewer::Type());
+ QString anActiveVTK = QString("activeView = '%1'").arg(SVTK_Viewer::Type());
QString aSelCount = QString( "%1 > 0" ).arg( QtxPopupMgr::Selection::defSelCountParam() );
QString aRule = "$component={'SMESH'} and ( type='Component' or (" + aClient + " and " +
void SMESHGUI::onViewManagerAdded( SUIT_ViewManager* mgr )
{
- if ( dynamic_cast<VTKViewer_ViewManager*>( mgr ) )
+ if ( dynamic_cast<SVTK_ViewManager*>( mgr ) )
SMESH::UpdateSelectionProp( this );
}
myOkBtn->setEnabled(true);
myApplyBtn->setEnabled(true);
}
+ SMESH::GetViewWindow(mySMESHGUI)->highlight( anIO, true, true );
}
}
}
myActor = SMESH::FindActorByEntry(anIO->getEntry());
if(myActor){
TVisualObjPtr aVisualObj = myActor->GetObject();
- if(SMDS_Mesh* aMesh = aVisualObj->GetMesh()){
- if(SMESH::GetEdgeNodes(mySelector, aVisualObj, anId1, anId2) >= 1){
+ if(SMDS_Mesh* aMesh = aVisualObj->GetMesh())
+ {
+ const SMDS_MeshElement* tria[2];
+ if( SMESH::GetEdgeNodes( mySelector, aVisualObj, anId1, anId2 ) >= 1 &&
+ findTriangles( aMesh->FindNode( anId1 ), aMesh->FindNode( anId2 ), tria[0],tria[1] ) )
+ {
QString aText = QString("%1-%2").arg(anId1).arg(anId2);
myBusy = true;
myEdge->setText(aText);
myBusy = false;
- const SMDS_MeshElement* tria[2];
- if (findTriangles(aMesh->FindNode(anId1), aMesh->FindNode(anId2), tria[0],tria[1])) {
- myOkBtn->setEnabled(true);
- myApplyBtn->setEnabled(true);
- }
- } else {
+ myOkBtn->setEnabled(true);
+ myApplyBtn->setEnabled(true);
+ }
+ else
+ {
myEdge->clear();
}
}