mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-24 16:30:34 +05:00
Fix for bug IPAL9258(/dn06/../current1706): SIGSEGV after trying to close dialog box after closing VTK viewer).
This commit is contained in:
parent
c981fa08d9
commit
b33324fe60
@ -216,14 +216,13 @@ SMESHGUI_AddMeshElementDlg::SMESHGUI_AddMeshElementDlg( SMESHGUI* theModule,
|
||||
: QDialog( SMESH::GetDesktop( theModule ), name, modal, WStyle_Customize | WStyle_NormalBorder |
|
||||
WStyle_Title | WStyle_SysMenu | Qt::WDestructiveClose),
|
||||
mySMESHGUI( theModule ),
|
||||
mySelectionMgr( SMESH::GetSelectionMgr( theModule ) ),
|
||||
myViewWindow( SMESH::GetViewWindow( theModule ) ),
|
||||
mySelector( myViewWindow->GetSelector() )
|
||||
mySelectionMgr( SMESH::GetSelectionMgr( theModule ) )
|
||||
{
|
||||
SalomeApp_Application* anApp = dynamic_cast<SalomeApp_Application*>
|
||||
(SUIT_Session::session()->activeApplication());
|
||||
myIsPoly = false;
|
||||
mySimulation = new SMESH::TElementSimulation (anApp);
|
||||
mySelector = (SMESH::GetViewWindow( mySMESHGUI ))->GetSelector();
|
||||
|
||||
// verify nb nodes and type
|
||||
myNbNodes = nbNodes;
|
||||
@ -420,7 +419,8 @@ void SMESHGUI_AddMeshElementDlg::Init()
|
||||
// set selection mode
|
||||
SMESH::SetPointRepresentation(true);
|
||||
|
||||
myViewWindow->SetSelectionMode( NodeSelection );
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode( NodeSelection );
|
||||
|
||||
myBusy = false;
|
||||
|
||||
@ -491,7 +491,8 @@ void SMESHGUI_AddMeshElementDlg::ClickOnCancel()
|
||||
mySelectionMgr->clearSelected();
|
||||
mySimulation->SetVisibility(false);
|
||||
SMESH::SetPointRepresentation(false);
|
||||
myViewWindow->SetSelectionMode( ActorSelection );
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode( ActorSelection );
|
||||
disconnect(mySelectionMgr, 0, this, 0);
|
||||
mySMESHGUI->ResetState();
|
||||
reject();
|
||||
@ -532,7 +533,8 @@ void SMESHGUI_AddMeshElementDlg::onTextChange (const QString& theNewText)
|
||||
}
|
||||
|
||||
mySelector->AddOrRemoveIndex( myActor->getIO(), newIndices, false );
|
||||
myViewWindow->highlight( myActor->getIO(), true, true );
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->highlight( myActor->getIO(), true, true );
|
||||
|
||||
bool aNodesOK = false;
|
||||
if (myIsPoly && myElementType == SMDSAbs_Face && aListId.count() >=3 ){
|
||||
@ -693,7 +695,8 @@ void SMESHGUI_AddMeshElementDlg::ActivateThisDialog()
|
||||
|
||||
SMESH::SetPointRepresentation(true);
|
||||
|
||||
myViewWindow->SetSelectionMode( NodeSelection );
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode( NodeSelection );
|
||||
SelectionIntoArgument();
|
||||
}
|
||||
|
||||
|
@ -88,7 +88,6 @@ private:
|
||||
SalomeApp_SelectionMgr* mySelectionMgr; /* User shape selection */
|
||||
int myNbOkNodes; /* to check when arguments is defined */
|
||||
bool myBusy;
|
||||
SVTK_ViewWindow* myViewWindow;
|
||||
SVTK_Selector* mySelector;
|
||||
|
||||
QLineEdit* myEditCurrentArgument; /* Current LineEdit */
|
||||
|
@ -88,9 +88,7 @@ SMESHGUI_CreatePatternDlg::SMESHGUI_CreatePatternDlg( SMESHGUI* theModule,
|
||||
: QDialog( SMESH::GetDesktop( theModule ), theName, false,
|
||||
WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu),
|
||||
mySMESHGUI( theModule ),
|
||||
mySelectionMgr( SMESH::GetSelectionMgr( theModule ) ),
|
||||
myViewWindow( SMESH::GetViewWindow( theModule ) ),
|
||||
mySelector( myViewWindow->GetSelector() )
|
||||
mySelectionMgr( SMESH::GetSelectionMgr( theModule ) )
|
||||
{
|
||||
setCaption(tr("CAPTION"));
|
||||
|
||||
@ -104,6 +102,9 @@ SMESHGUI_CreatePatternDlg::SMESHGUI_CreatePatternDlg( SMESHGUI* theModule,
|
||||
|
||||
aDlgLay->setStretchFactor(aMainFrame, 1);
|
||||
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
mySelector = aViewWindow->GetSelector();
|
||||
|
||||
Init(theType);
|
||||
}
|
||||
|
||||
@ -386,7 +387,8 @@ void SMESHGUI_CreatePatternDlg::onSave()
|
||||
tr("ERROR_OF_SAVING"), QMessageBox::Ok);
|
||||
} else {
|
||||
//SUIT_Application::getDesktop()->setSelectionModes(ActorSelection);
|
||||
myViewWindow->SetSelectionMode(ActorSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(ActorSelection);
|
||||
disconnect(mySelectionMgr, 0, this, 0);
|
||||
disconnect(mySMESHGUI, 0, this, 0);
|
||||
mySMESHGUI->ResetState();
|
||||
@ -435,7 +437,8 @@ void SMESHGUI_CreatePatternDlg::onOk()
|
||||
return;
|
||||
} else {
|
||||
//SUIT_Application::getDesktop()->setSelectionModes(ActorSelection);
|
||||
myViewWindow->SetSelectionMode(ActorSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(ActorSelection);
|
||||
disconnect(mySelectionMgr, 0, this, 0);
|
||||
disconnect(mySMESHGUI, 0, this, 0);
|
||||
mySMESHGUI->ResetState();
|
||||
@ -454,7 +457,8 @@ void SMESHGUI_CreatePatternDlg::onOk()
|
||||
//=======================================================================
|
||||
void SMESHGUI_CreatePatternDlg::onClose()
|
||||
{
|
||||
myViewWindow->SetSelectionMode(ActorSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(ActorSelection);
|
||||
disconnect(mySelectionMgr, 0, this, 0);
|
||||
disconnect(mySMESHGUI, 0, this, 0);
|
||||
mySMESHGUI->ResetState();
|
||||
@ -682,7 +686,8 @@ void SMESHGUI_CreatePatternDlg::activateSelection()
|
||||
{
|
||||
mySelectionMgr->clearFilters();
|
||||
//SUIT_Application::getDesktop()->setSelectionModes(ActorSelection);
|
||||
myViewWindow->SetSelectionMode(ActorSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(ActorSelection);
|
||||
|
||||
if (myType == Type_2d) {
|
||||
mySelectionMgr->installFilter(new SMESH_NumberFilter
|
||||
|
@ -130,7 +130,6 @@ private:
|
||||
QCheckBox* myProjectChk;
|
||||
|
||||
SMESHGUI* mySMESHGUI;
|
||||
SVTK_ViewWindow* myViewWindow;
|
||||
SVTK_Selector* mySelector;
|
||||
SalomeApp_SelectionMgr* mySelectionMgr;
|
||||
int myNbPoints;
|
||||
|
@ -191,9 +191,7 @@ SMESHGUI_CreatePolyhedralVolumeDlg::SMESHGUI_CreatePolyhedralVolumeDlg( SMESHGUI
|
||||
bool modal, WFlags fl )
|
||||
: QDialog( SMESH::GetDesktop( theModule ), name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu | Qt::WDestructiveClose),
|
||||
mySMESHGUI( theModule ),
|
||||
mySelectionMgr( SMESH::GetSelectionMgr( theModule ) ),
|
||||
myViewWindow( SMESH::GetViewWindow( theModule ) ),
|
||||
mySelector( myViewWindow->GetSelector() )
|
||||
mySelectionMgr( SMESH::GetSelectionMgr( theModule ) )
|
||||
{
|
||||
QPixmap image0( SMESH::GetResourceMgr( mySMESHGUI )->loadPixmap( "SMESH",tr("ICON_SELECT")));
|
||||
|
||||
@ -310,6 +308,8 @@ SMESHGUI_CreatePolyhedralVolumeDlg::SMESHGUI_CreatePolyhedralVolumeDlg( SMESHGUI
|
||||
Preview = new QCheckBox( GroupContent, "Preview" );
|
||||
Preview->setText( tr( "SMESH_POLYEDRE_PREVIEW" ) );
|
||||
GroupContentLayout->addWidget( Preview , 5, 0 );
|
||||
|
||||
mySelector = (SMESH::GetViewWindow( mySMESHGUI ))->GetSelector();
|
||||
|
||||
SMESHGUI_CreatePolyhedralVolumeDlgLayout->addWidget( GroupContent, 1, 0 );
|
||||
|
||||
@ -403,7 +403,8 @@ void SMESHGUI_CreatePolyhedralVolumeDlg::ConstructorsClicked(int constructorId)
|
||||
}
|
||||
else
|
||||
SMESH::SetPointRepresentation(true);
|
||||
myViewWindow->SetSelectionMode(NodeSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(NodeSelection);
|
||||
|
||||
AddButton->setEnabled(false);
|
||||
RemoveButton->setEnabled(false);
|
||||
@ -426,7 +427,8 @@ void SMESHGUI_CreatePolyhedralVolumeDlg::ConstructorsClicked(int constructorId)
|
||||
} else {
|
||||
SMESH::SetPointRepresentation(false);
|
||||
}
|
||||
myViewWindow->SetSelectionMode(FaceSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(FaceSelection);
|
||||
|
||||
TextLabelIds->setText( tr( "SMESH_ID_FACES" ) );
|
||||
myFacesByNodesLabel->hide();
|
||||
@ -554,7 +556,8 @@ void SMESHGUI_CreatePolyhedralVolumeDlg::ClickOnCancel()
|
||||
mySelectionMgr->setSelectedObjects( aList );
|
||||
SMESH::SetPointRepresentation(false);
|
||||
mySimulation->SetVisibility(false);
|
||||
myViewWindow->SetSelectionMode( ActorSelection );
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode( ActorSelection );
|
||||
disconnect( mySelectionMgr, 0, this, 0 );
|
||||
mySMESHGUI->ResetState() ;
|
||||
reject() ;
|
||||
@ -591,7 +594,9 @@ void SMESHGUI_CreatePolyhedralVolumeDlg::onTextChange(const QString& theNewText)
|
||||
}
|
||||
|
||||
mySelector->AddOrRemoveIndex( myActor->getIO(), newIndices, false );
|
||||
myViewWindow->highlight( myActor->getIO(), true, true );
|
||||
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->highlight( myActor->getIO(), true, true );
|
||||
|
||||
if ( myNbOkElements>0 && aListId.count()>=3)
|
||||
AddButton->setEnabled(true);
|
||||
@ -622,7 +627,8 @@ void SMESHGUI_CreatePolyhedralVolumeDlg::onTextChange(const QString& theNewText)
|
||||
}
|
||||
|
||||
mySelector->AddOrRemoveIndex( myActor->getIO(), newIndices, false );
|
||||
myViewWindow->highlight( myActor->getIO(), true, true );
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->highlight( myActor->getIO(), true, true );
|
||||
|
||||
if ( myNbOkElements ) {
|
||||
if (aListId.count()>1){
|
||||
@ -853,7 +859,8 @@ void SMESHGUI_CreatePolyhedralVolumeDlg::ActivateThisDialog()
|
||||
|
||||
mySMESHGUI->SetActiveDialogBox( (QDialog*)this ) ;
|
||||
|
||||
myViewWindow->SetSelectionMode( FaceSelection );
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode( FaceSelection );
|
||||
SelectionIntoArgument();
|
||||
}
|
||||
|
||||
@ -982,7 +989,8 @@ void SMESHGUI_CreatePolyhedralVolumeDlg::onListSelectionChanged()
|
||||
if(isSelected) RemoveButton->setEnabled(true);
|
||||
else RemoveButton->setEnabled(false);
|
||||
mySelector->AddOrRemoveIndex(myActor->getIO(), aIndexes, true );
|
||||
myViewWindow->highlight( myActor->getIO(), true, true );
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->highlight( myActor->getIO(), true, true );
|
||||
mySelectionMgr->clearFilters();
|
||||
aList.Append( myActor->getIO() );
|
||||
mySelectionMgr->setSelectedObjects( aList );
|
||||
|
@ -78,7 +78,6 @@ private:
|
||||
|
||||
SMESHGUI* mySMESHGUI ; /* Current SMESHGUI object */
|
||||
SalomeApp_SelectionMgr* mySelectionMgr ; /* User shape selection */
|
||||
SVTK_ViewWindow* myViewWindow;
|
||||
SVTK_Selector* mySelector;
|
||||
QString myIDs;
|
||||
int myNbOkElements ; /* to check when elements are defined */
|
||||
|
@ -76,7 +76,6 @@ SMESHGUI_DeleteGroupDlg::SMESHGUI_DeleteGroupDlg (SMESHGUI* theModule):
|
||||
false,
|
||||
WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu),
|
||||
mySelectionMgr(SMESH::GetSelectionMgr(theModule)),
|
||||
myViewWindow(SMESH::GetViewWindow(mySMESHGUI)),
|
||||
mySMESHGUI(theModule)
|
||||
{
|
||||
setCaption(tr("CAPTION"));
|
||||
@ -170,7 +169,8 @@ void SMESHGUI_DeleteGroupDlg::Init ()
|
||||
|
||||
// set selection mode
|
||||
mySelectionMgr->installFilter(new SMESH_TypeFilter(GROUP));
|
||||
myViewWindow->SetSelectionMode(ActorSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(ActorSelection);
|
||||
onSelectionDone();
|
||||
|
||||
return;
|
||||
@ -235,7 +235,8 @@ void SMESHGUI_DeleteGroupDlg::onOk()
|
||||
//=================================================================================
|
||||
void SMESHGUI_DeleteGroupDlg::onClose()
|
||||
{
|
||||
myViewWindow->SetSelectionMode(ActorSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(ActorSelection);
|
||||
disconnect(mySelectionMgr, 0, this, 0);
|
||||
disconnect(mySMESHGUI, 0, this, 0);
|
||||
mySMESHGUI->ResetState();
|
||||
@ -289,7 +290,8 @@ void SMESHGUI_DeleteGroupDlg::enterEvent (QEvent*)
|
||||
{
|
||||
mySMESHGUI->EmitSignalDeactivateDialog();
|
||||
setEnabled(true);
|
||||
myViewWindow->SetSelectionMode(ActorSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(ActorSelection);
|
||||
mySelectionMgr->installFilter(new SMESH_TypeFilter (GROUP));
|
||||
}
|
||||
|
||||
|
@ -86,7 +86,6 @@ private:
|
||||
QListBox* myListBox;
|
||||
|
||||
SMESHGUI* mySMESHGUI;
|
||||
SVTK_ViewWindow* myViewWindow;
|
||||
SalomeApp_SelectionMgr* mySelectionMgr;
|
||||
|
||||
QValueList<SMESH::SMESH_GroupBase_var> myListGrp;
|
||||
|
@ -97,9 +97,7 @@ SMESHGUI_ExtrusionAlongPathDlg::SMESHGUI_ExtrusionAlongPathDlg( SMESHGUI* theMod
|
||||
: QDialog( SMESH::GetDesktop( theModule ), "SMESHGUI_ExtrusionAlongPathDlg", modal,
|
||||
WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu | Qt::WDestructiveClose),
|
||||
mySMESHGUI( theModule ),
|
||||
mySelectionMgr( SMESH::GetSelectionMgr( theModule ) ),
|
||||
myViewWindow( SMESH::GetViewWindow( theModule ) ),
|
||||
mySelector( myViewWindow->GetSelector() )
|
||||
mySelectionMgr( SMESH::GetSelectionMgr( theModule ) )
|
||||
{
|
||||
SUIT_ResourceMgr* mgr = SMESH::GetResourceMgr( mySMESHGUI );
|
||||
QPixmap edgeImage ( mgr->loadPixmap("SMESH", tr("ICON_DLG_EDGE")));
|
||||
@ -317,6 +315,8 @@ SMESHGUI_ExtrusionAlongPathDlg::SMESHGUI_ExtrusionAlongPathDlg( SMESHGUI* theMod
|
||||
ZSpin->RangeStepAndValidator(-999999.999, +999999.999, 10.0, 3);
|
||||
AngleSpin->RangeStepAndValidator(-999999.999, +999999.999, 5.0, 3);
|
||||
|
||||
mySelector = (SMESH::GetViewWindow( mySMESHGUI ))->GetSelector();
|
||||
|
||||
mySMESHGUI->SetActiveDialogBox(this);
|
||||
|
||||
// Costruction of the logical filter for the elements: mesh/sub-mesh/group
|
||||
@ -448,13 +448,20 @@ void SMESHGUI_ExtrusionAlongPathDlg::ConstructorsClicked (int type)
|
||||
|
||||
SMESH::SetPointRepresentation(false);
|
||||
if (MeshCheck->isChecked()) {
|
||||
myViewWindow->SetSelectionMode(ActorSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(ActorSelection);
|
||||
mySelectionMgr->installFilter(myElementsFilter);
|
||||
} else {
|
||||
if (type == 0)
|
||||
myViewWindow->SetSelectionMode(EdgeSelection);
|
||||
{
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(EdgeSelection);
|
||||
}
|
||||
if (type == 1)
|
||||
myViewWindow->SetSelectionMode(FaceSelection);
|
||||
{
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(FaceSelection);
|
||||
}
|
||||
}
|
||||
}
|
||||
connect(mySelectionMgr, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
|
||||
@ -660,7 +667,8 @@ void SMESHGUI_ExtrusionAlongPathDlg::reject()
|
||||
mySelectionMgr->clearSelected();
|
||||
SMESH::SetPickable(); // ???
|
||||
SMESH::SetPointRepresentation(false);
|
||||
myViewWindow->SetSelectionMode(ActorSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(ActorSelection);
|
||||
mySMESHGUI->ResetState();
|
||||
QDialog::reject();
|
||||
}
|
||||
@ -713,7 +721,8 @@ void SMESHGUI_ExtrusionAlongPathDlg::onTextChange (const QString& theNewText)
|
||||
}
|
||||
}
|
||||
mySelector->AddOrRemoveIndex(anIO, newIndices, false);
|
||||
myViewWindow->highlight( anIO, true, true );
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->highlight( anIO, true, true );
|
||||
}
|
||||
} else if (send == StartPointLineEdit &&
|
||||
myEditCurrentArgument == StartPointLineEdit) {
|
||||
@ -738,7 +747,8 @@ void SMESHGUI_ExtrusionAlongPathDlg::onTextChange (const QString& theNewText)
|
||||
TColStd_MapOfInteger newIndices;
|
||||
newIndices.Add(n->GetID());
|
||||
mySelector->AddOrRemoveIndex( aPathActor->getIO(), newIndices, false );
|
||||
myViewWindow->highlight( aPathActor->getIO(), true, true );
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->highlight( aPathActor->getIO(), true, true );
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -940,24 +950,33 @@ void SMESHGUI_ExtrusionAlongPathDlg::SetEditCurrentArgument (QToolButton* button
|
||||
myEditCurrentArgument = ElementsLineEdit;
|
||||
SMESH::SetPointRepresentation(false);
|
||||
if (MeshCheck->isChecked()) {
|
||||
myViewWindow->SetSelectionMode(ActorSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(ActorSelection);
|
||||
mySelectionMgr->installFilter(myElementsFilter);
|
||||
} else {
|
||||
if (Elements1dRB->isChecked())
|
||||
myViewWindow->SetSelectionMode(EdgeSelection);
|
||||
{
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(EdgeSelection);
|
||||
}
|
||||
else if (Elements2dRB->isChecked())
|
||||
myViewWindow->SetSelectionMode(FaceSelection);
|
||||
{
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(FaceSelection);
|
||||
}
|
||||
}
|
||||
} else if (button == SelectPathMeshButton) {
|
||||
myEditCurrentArgument = PathMeshLineEdit;
|
||||
SMESH::SetPointRepresentation(false);
|
||||
myViewWindow->SetSelectionMode(ActorSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(ActorSelection);
|
||||
mySelectionMgr->installFilter(myPathMeshFilter);
|
||||
}
|
||||
else if (button == SelectPathShapeButton) {
|
||||
myEditCurrentArgument = PathShapeLineEdit;
|
||||
SMESH::SetPointRepresentation(false);
|
||||
myViewWindow->SetSelectionMode(ActorSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(ActorSelection);
|
||||
|
||||
if (!myPathMesh->_is_nil()) {
|
||||
GEOM::GEOM_Object_var aMainShape = myPathMesh->GetShapeToMesh();
|
||||
@ -975,7 +994,8 @@ void SMESHGUI_ExtrusionAlongPathDlg::SetEditCurrentArgument (QToolButton* button
|
||||
SMESH_Actor* aPathActor = SMESH::FindActorByObject(myPathMesh);
|
||||
if (aPathActor) {
|
||||
SMESH::SetPointRepresentation(true);
|
||||
myViewWindow->SetSelectionMode(NodeSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(NodeSelection);
|
||||
SMESH::SetPickable(aPathActor);
|
||||
}
|
||||
}
|
||||
@ -983,7 +1003,8 @@ void SMESHGUI_ExtrusionAlongPathDlg::SetEditCurrentArgument (QToolButton* button
|
||||
else if (button == SelectBasePointButton) {
|
||||
myEditCurrentArgument = XSpin;
|
||||
SMESH::SetPointRepresentation(true);
|
||||
myViewWindow->SetSelectionMode(NodeSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(NodeSelection);
|
||||
|
||||
SMESH_TypeFilter* aMeshOrSubMeshFilter = new SMESH_TypeFilter(MESHorSUBMESH);
|
||||
SMESH_TypeFilter* aSmeshGroupFilter = new SMESH_TypeFilter(GROUP);
|
||||
|
@ -88,7 +88,6 @@ private:
|
||||
|
||||
SMESHGUI* mySMESHGUI; /* Current SMESHGUI object */
|
||||
SalomeApp_SelectionMgr* mySelectionMgr; /* User shape selection */
|
||||
SVTK_ViewWindow* myViewWindow;
|
||||
SVTK_Selector* mySelector;
|
||||
|
||||
QWidget* myEditCurrentArgument; /* Current argument */
|
||||
|
@ -88,9 +88,7 @@ SMESHGUI_ExtrusionDlg::SMESHGUI_ExtrusionDlg (SMESHGUI* theModule,
|
||||
: QDialog( SMESH::GetDesktop( theModule ), "SMESHGUI_ExtrusionDlg", modal, WStyle_Customize |
|
||||
WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu | Qt::WDestructiveClose),
|
||||
mySMESHGUI( theModule ),
|
||||
mySelectionMgr( SMESH::GetSelectionMgr( theModule ) ),
|
||||
myViewWindow( SMESH::GetViewWindow( theModule ) ),
|
||||
mySelector( myViewWindow->GetSelector() )
|
||||
mySelectionMgr( SMESH::GetSelectionMgr( theModule ) )
|
||||
{
|
||||
QPixmap image0 (SMESH::GetResourceMgr( mySMESHGUI )->loadPixmap("SMESH", tr("ICON_DLG_EDGE")));
|
||||
QPixmap image1 (SMESH::GetResourceMgr( mySMESHGUI )->loadPixmap("SMESH", tr("ICON_DLG_TRIANGLE")));
|
||||
@ -324,14 +322,20 @@ void SMESHGUI_ExtrusionDlg::ConstructorsClicked (int constructorId)
|
||||
{
|
||||
GroupArguments->setTitle(tr("EXTRUSION_1D"));
|
||||
if (!CheckBoxMesh->isChecked())
|
||||
myViewWindow->SetSelectionMode(EdgeSelection);
|
||||
{
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(EdgeSelection);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 1:
|
||||
{
|
||||
GroupArguments->setTitle(tr("EXTRUSION_2D"));
|
||||
if (!CheckBoxMesh->isChecked())
|
||||
myViewWindow->SetSelectionMode(FaceSelection);
|
||||
{
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(FaceSelection);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -407,7 +411,8 @@ void SMESHGUI_ExtrusionDlg::ClickOnCancel()
|
||||
mySelectionMgr->clearSelected();
|
||||
SMESH::SetPickable(); // ???
|
||||
SMESH::SetPointRepresentation(false);
|
||||
myViewWindow->SetSelectionMode(ActorSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(ActorSelection);
|
||||
mySMESHGUI->ResetState();
|
||||
reject();
|
||||
}
|
||||
@ -450,7 +455,8 @@ void SMESHGUI_ExtrusionDlg::onTextChange (const QString& theNewText)
|
||||
myNbOkElements++;
|
||||
}
|
||||
mySelector->AddOrRemoveIndex(anIO, newIndices, false);
|
||||
myViewWindow->highlight( anIO, true, true );
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->highlight( anIO, true, true );
|
||||
myElementsId = theNewText;
|
||||
}
|
||||
}
|
||||
@ -608,14 +614,21 @@ void SMESHGUI_ExtrusionDlg::SetEditCurrentArgument()
|
||||
if (send == SelectElementsButton) {
|
||||
myEditCurrentArgument = LineEditElements;
|
||||
if (CheckBoxMesh->isChecked()) {
|
||||
myViewWindow->SetSelectionMode(ActorSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(ActorSelection);
|
||||
mySelectionMgr->installFilter(myMeshOrSubMeshOrGroupFilter);
|
||||
} else {
|
||||
int aConstructorId = GetConstructorId();
|
||||
if (aConstructorId == 0)
|
||||
myViewWindow->SetSelectionMode(EdgeSelection);
|
||||
{
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(EdgeSelection);
|
||||
}
|
||||
else if (aConstructorId == 1)
|
||||
myViewWindow->SetSelectionMode(FaceSelection);
|
||||
{
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(FaceSelection);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -706,15 +719,22 @@ void SMESHGUI_ExtrusionDlg::onSelectMesh (bool toSelectMesh)
|
||||
mySelectionMgr->clearFilters();
|
||||
|
||||
if (toSelectMesh) {
|
||||
myViewWindow->SetSelectionMode(ActorSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(ActorSelection);
|
||||
mySelectionMgr->installFilter(myMeshOrSubMeshOrGroupFilter);
|
||||
LineEditElements->setReadOnly(true);
|
||||
} else {
|
||||
int aConstructorId = GetConstructorId();
|
||||
if (aConstructorId == 0)
|
||||
myViewWindow->SetSelectionMode(EdgeSelection);
|
||||
{
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(EdgeSelection);
|
||||
}
|
||||
else if (aConstructorId == 0)
|
||||
myViewWindow->SetSelectionMode(FaceSelection);
|
||||
{
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(FaceSelection);
|
||||
}
|
||||
|
||||
LineEditElements->setReadOnly(false);
|
||||
onTextChange(LineEditElements->text());
|
||||
|
@ -80,7 +80,6 @@ private:
|
||||
QLineEdit* myEditCurrentArgument; /* Current LineEdit */
|
||||
QString myElementsId;
|
||||
int myNbOkElements; /* to check when elements are defined */
|
||||
SVTK_ViewWindow* myViewWindow;
|
||||
SVTK_Selector* mySelector;
|
||||
|
||||
bool myBusy;
|
||||
|
@ -1604,10 +1604,11 @@ SMESHGUI_FilterDlg::SMESHGUI_FilterDlg( SMESHGUI* theModule,
|
||||
: QDialog( SMESH::GetDesktop( theModule ), theName, false,
|
||||
WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu),
|
||||
mySMESHGUI( theModule ),
|
||||
mySelectionMgr( SMESH::GetSelectionMgr( theModule ) ),
|
||||
myViewWindow( SMESH::GetViewWindow( theModule ) ),
|
||||
mySelector( myViewWindow->GetSelector() )
|
||||
mySelectionMgr( SMESH::GetSelectionMgr( theModule ) )
|
||||
{
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
mySelector = aViewWindow->GetSelector();
|
||||
|
||||
construct(theTypes);
|
||||
}
|
||||
|
||||
@ -1623,8 +1624,8 @@ SMESHGUI_FilterDlg::SMESHGUI_FilterDlg( SMESHGUI* theModule,
|
||||
mySMESHGUI( theModule ),
|
||||
mySelectionMgr( SMESH::GetSelectionMgr( theModule ) )
|
||||
{
|
||||
myViewWindow = SMESH::GetViewWindow( theModule );
|
||||
mySelector = myViewWindow->GetSelector();
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
mySelector = aViewWindow->GetSelector();
|
||||
QValueList<int> aTypes;
|
||||
aTypes.append(theType);
|
||||
construct(aTypes);
|
||||
@ -1885,7 +1886,8 @@ void SMESHGUI_FilterDlg::onClose()
|
||||
aResMap.Add(anIndMap(i));
|
||||
|
||||
mySelector->AddOrRemoveIndex( anIter.Key(), aResMap, false);
|
||||
myViewWindow->highlight( anIter.Key(), true, true );
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->highlight( anIter.Key(), true, true );
|
||||
}
|
||||
mySelectionMgr->setSelectedObjects(aList, false);
|
||||
}
|
||||
@ -2361,12 +2363,13 @@ void SMESHGUI_FilterDlg::selectInViewer (const int theType, const QValueList<int
|
||||
|
||||
// Set new selection mode if necessary
|
||||
Selection_Mode aSelMode = getSelMode(theType);
|
||||
if (myViewWindow->SelectionMode()!=aSelMode) {
|
||||
SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI );
|
||||
if ( aViewWindow && aViewWindow->SelectionMode()!=aSelMode) {
|
||||
mySelectionMgr->clearSelected();
|
||||
mySelectionMgr->clearFilters();
|
||||
if (aSelMode == NodeSelection)
|
||||
SMESH::SetPointRepresentation(true);
|
||||
myViewWindow->SetSelectionMode(aSelMode);
|
||||
aViewWindow->SetSelectionMode(aSelMode);
|
||||
}
|
||||
|
||||
// Clear selection
|
||||
@ -2399,7 +2402,8 @@ void SMESHGUI_FilterDlg::selectInViewer (const int theType, const QValueList<int
|
||||
|
||||
// Set new selection
|
||||
mySelector->AddOrRemoveIndex(anIO, aMap, false);
|
||||
myViewWindow->highlight( anIO, true, true );
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->highlight( anIO, true, true );
|
||||
|
||||
// insert previously stored filter in viewer if necessary
|
||||
if (!aFilter.IsNull())
|
||||
|
@ -293,7 +293,6 @@ private:
|
||||
SMESHGUI* mySMESHGUI;
|
||||
SalomeApp_SelectionMgr* mySelectionMgr;
|
||||
SVTK_Selector* mySelector;
|
||||
SVTK_ViewWindow* myViewWindow;
|
||||
SMESH::SMESH_Mesh_ptr myMesh;
|
||||
QWidget* mySourceWg;
|
||||
|
||||
|
@ -89,8 +89,6 @@ SMESHGUI_GroupDlg::SMESHGUI_GroupDlg( SMESHGUI* theModule, const char* name,
|
||||
WStyle_Title | WStyle_SysMenu | WDestructiveClose),
|
||||
mySMESHGUI( theModule ),
|
||||
mySelectionMgr( SMESH::GetSelectionMgr( theModule ) ),
|
||||
myViewWindow( SMESH::GetViewWindow( theModule ) ),
|
||||
mySelector( myViewWindow->GetSelector() ),
|
||||
myIsBusy( false ),
|
||||
myActor( 0 )
|
||||
{
|
||||
@ -105,6 +103,8 @@ SMESHGUI_GroupDlg::SMESHGUI_GroupDlg( SMESHGUI* theModule, const char* name,
|
||||
myGeomGroupLine->setEnabled(false);
|
||||
}
|
||||
|
||||
mySelector = (SMESH::GetViewWindow( mySMESHGUI ))->GetSelector();
|
||||
|
||||
/* Move widget on the botton right corner of main widget */
|
||||
int x, y ;
|
||||
mySMESHGUI->DefineDlgPosition(this, x, y);
|
||||
@ -121,8 +121,6 @@ SMESHGUI_GroupDlg::SMESHGUI_GroupDlg( SMESHGUI* theModule, const char* name,
|
||||
WStyle_Title | WStyle_SysMenu | WDestructiveClose),
|
||||
mySMESHGUI( theModule ),
|
||||
mySelectionMgr( SMESH::GetSelectionMgr( theModule ) ),
|
||||
myViewWindow( SMESH::GetViewWindow( theModule ) ),
|
||||
mySelector( myViewWindow->GetSelector() ),
|
||||
myIsBusy( false )
|
||||
{
|
||||
if (!name) setName("SMESHGUI_GroupDlg");
|
||||
@ -134,6 +132,8 @@ SMESHGUI_GroupDlg::SMESHGUI_GroupDlg( SMESHGUI* theModule, const char* name,
|
||||
mySelectGroup->setEnabled(false);
|
||||
}
|
||||
|
||||
mySelector = (SMESH::GetViewWindow( mySMESHGUI ))->GetSelector();
|
||||
|
||||
/* Move widget on the botton right corner of main widget */
|
||||
int x, y ;
|
||||
mySMESHGUI->DefineDlgPosition(this, x, y);
|
||||
@ -543,19 +543,24 @@ void SMESHGUI_GroupDlg::setSelectionMode (int theMode)
|
||||
myActor->SetPointRepresentation(true);
|
||||
else
|
||||
SMESH::SetPointRepresentation(true);
|
||||
myViewWindow->SetSelectionMode(NodeSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(NodeSelection);
|
||||
break;
|
||||
case 1:
|
||||
myViewWindow->SetSelectionMode(EdgeSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(EdgeSelection);
|
||||
break;
|
||||
case 2:
|
||||
myViewWindow->SetSelectionMode(FaceSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(FaceSelection);
|
||||
break;
|
||||
default:
|
||||
myViewWindow->SetSelectionMode(VolumeSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(VolumeSelection);
|
||||
}
|
||||
} else {
|
||||
myViewWindow->SetSelectionMode(ActorSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(ActorSelection);
|
||||
if (theMode == 4)
|
||||
mySelectionMgr->installFilter(mySubMeshFilter);
|
||||
else if (theMode == 5)
|
||||
@ -707,7 +712,8 @@ void SMESHGUI_GroupDlg::onListSelectionChanged()
|
||||
SALOME_ListIO aList;
|
||||
aList.Append(myActor->getIO());
|
||||
mySelectionMgr->setSelectedObjects(aList,false);
|
||||
myViewWindow->highlight( myActor->getIO(), true, true );
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->highlight( myActor->getIO(), true, true );
|
||||
}
|
||||
myIsBusy = false;
|
||||
}
|
||||
@ -1392,7 +1398,8 @@ void SMESHGUI_GroupDlg::onClose()
|
||||
}
|
||||
|
||||
mySelectionMgr->clearSelected();
|
||||
myViewWindow->SetSelectionMode(ActorSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(ActorSelection);
|
||||
mySelectionMgr->clearFilters();
|
||||
mySMESHGUI->ResetState();
|
||||
|
||||
|
@ -119,7 +119,6 @@ private:
|
||||
int myGrpTypeId; /* Current group type id : standalone or group on geometry */
|
||||
int myTypeId; /* Current type id = radio button id */
|
||||
QLineEdit* myCurrentLineEdit; /* Current LineEdit */
|
||||
SVTK_ViewWindow* myViewWindow;
|
||||
SVTK_Selector* mySelector;
|
||||
|
||||
QPushButton* myMeshGroupBtn;
|
||||
|
@ -68,9 +68,7 @@ SMESHGUI_GroupOpDlg::SMESHGUI_GroupOpDlg( SMESHGUI* theModule, const int theMode
|
||||
: QDialog( SMESH::GetDesktop( theModule ), "SMESHGUI_GroupOpDlg", false,
|
||||
WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu ),
|
||||
mySMESHGUI( theModule ),
|
||||
mySelectionMgr( SMESH::GetSelectionMgr( theModule ) ),
|
||||
myViewWindow( SMESH::GetViewWindow( theModule ) ),
|
||||
mySelector( myViewWindow->GetSelector() )
|
||||
mySelectionMgr( SMESH::GetSelectionMgr( theModule ) )
|
||||
{
|
||||
myMode = theMode;
|
||||
|
||||
@ -78,6 +76,8 @@ SMESHGUI_GroupOpDlg::SMESHGUI_GroupOpDlg( SMESHGUI* theModule, const int theMode
|
||||
else if (myMode == INTERSECT) setCaption(tr("INTERSECTION_OF_TWO_GROUPS"));
|
||||
else setCaption(tr("CUT_OF_TWO_GROUPS"));
|
||||
|
||||
mySelector = (SMESH::GetViewWindow( mySMESHGUI ))->GetSelector();
|
||||
|
||||
QVBoxLayout* aDlgLay = new QVBoxLayout (this, MARGIN, SPACING);
|
||||
|
||||
QFrame* aMainFrame = createMainFrame (this);
|
||||
@ -191,7 +191,8 @@ void SMESHGUI_GroupOpDlg::Init()
|
||||
this->show();
|
||||
|
||||
// set selection mode
|
||||
myViewWindow->SetSelectionMode(ActorSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(ActorSelection);
|
||||
mySelectionMgr->installFilter(new SMESH_TypeFilter (GROUP));
|
||||
|
||||
return;
|
||||
@ -284,7 +285,8 @@ void SMESHGUI_GroupOpDlg::onOk()
|
||||
//=======================================================================
|
||||
void SMESHGUI_GroupOpDlg::onClose()
|
||||
{
|
||||
myViewWindow->SetSelectionMode(ActorSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(ActorSelection);
|
||||
disconnect(mySelectionMgr, 0, this, 0);
|
||||
disconnect(mySMESHGUI, 0, this, 0);
|
||||
mySMESHGUI->ResetState();
|
||||
@ -343,7 +345,8 @@ void SMESHGUI_GroupOpDlg::enterEvent (QEvent*)
|
||||
{
|
||||
mySMESHGUI->EmitSignalDeactivateDialog();
|
||||
setEnabled(true);
|
||||
myViewWindow->SetSelectionMode(ActorSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(ActorSelection);
|
||||
mySelectionMgr->installFilter(new SMESH_TypeFilter (GROUP));
|
||||
}
|
||||
|
||||
|
@ -97,7 +97,6 @@ private:
|
||||
SMESHGUI* mySMESHGUI;
|
||||
SalomeApp_SelectionMgr* mySelectionMgr;
|
||||
int myMode;
|
||||
SVTK_ViewWindow* myViewWindow;
|
||||
SVTK_Selector* mySelector;
|
||||
|
||||
QLineEdit* myFocusWg;
|
||||
|
@ -79,9 +79,7 @@ SMESHGUI_MergeNodesDlg::SMESHGUI_MergeNodesDlg( SMESHGUI* theModule, const char*
|
||||
: QDialog( SMESH::GetDesktop( theModule ), name, modal, WStyle_Customize | WStyle_NormalBorder |
|
||||
WStyle_Title | WStyle_SysMenu | Qt::WDestructiveClose),
|
||||
mySMESHGUI( theModule ),
|
||||
mySelectionMgr( SMESH::GetSelectionMgr( theModule ) ),
|
||||
myViewWindow( SMESH::GetViewWindow( theModule ) ),
|
||||
mySelector( myViewWindow->GetSelector() )
|
||||
mySelectionMgr( SMESH::GetSelectionMgr( theModule ) )
|
||||
{
|
||||
QPixmap image0 (SMESH::GetResourceMgr( mySMESHGUI )->loadPixmap("SMESH", tr("ICON_SMESH_MERGE_NODES")));
|
||||
QPixmap image1 (SMESH::GetResourceMgr( mySMESHGUI )->loadPixmap("SMESH", tr("ICON_SELECT")));
|
||||
@ -247,6 +245,8 @@ SMESHGUI_MergeNodesDlg::SMESHGUI_MergeNodesDlg( SMESHGUI* theModule, const char*
|
||||
|
||||
myActor = 0;
|
||||
|
||||
mySelector = (SMESH::GetViewWindow( mySMESHGUI ))->GetSelector();
|
||||
|
||||
mySMESHGUI->SetActiveDialogBox((QDialog*)this);
|
||||
|
||||
myMeshOrSubMeshFilter = new SMESH_TypeFilter (MESHorSUBMESH);
|
||||
@ -356,7 +356,8 @@ void SMESHGUI_MergeNodesDlg::ClickOnCancel()
|
||||
mySelectionMgr->clearFilters();
|
||||
mySelectionMgr->clearSelected();
|
||||
SMESH::SetPointRepresentation(false);
|
||||
myViewWindow->SetSelectionMode(ActorSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(ActorSelection);
|
||||
disconnect(mySelectionMgr, 0, this, 0);
|
||||
mySMESHGUI->ResetState();
|
||||
reject();
|
||||
@ -388,7 +389,8 @@ void SMESHGUI_MergeNodesDlg::updateControls()
|
||||
{
|
||||
if (ListCoincident->childCount() < 1) {
|
||||
SMESH::SetPointRepresentation(false);
|
||||
myViewWindow->SetSelectionMode(ActorSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(ActorSelection);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -476,7 +478,8 @@ void SMESHGUI_MergeNodesDlg::onSelectNodesGroup()
|
||||
mySelectionMgr->setSelectedObjects(aList, false);
|
||||
|
||||
SMESH::SetPointRepresentation(true);
|
||||
myViewWindow->SetSelectionMode(NodeSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(NodeSelection);
|
||||
|
||||
ListEdit->selectAll(true);
|
||||
}
|
||||
@ -590,7 +593,8 @@ void SMESHGUI_MergeNodesDlg::SetEditCurrentArgument()
|
||||
if (send == SelectMeshButton) {
|
||||
myEditCurrentArgument = (QWidget*)LineEditMesh;
|
||||
SMESH::SetPointRepresentation(false);
|
||||
myViewWindow->SetSelectionMode(ActorSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(ActorSelection);
|
||||
mySelectionMgr->installFilter(myMeshOrSubMeshFilter);
|
||||
}
|
||||
|
||||
|
@ -83,7 +83,6 @@ private:
|
||||
|
||||
SMESHGUI* mySMESHGUI; /* Current SMESHGUI object */
|
||||
SalomeApp_SelectionMgr* mySelectionMgr; /* User shape selection */
|
||||
SVTK_ViewWindow* myViewWindow;
|
||||
SVTK_Selector* mySelector;
|
||||
|
||||
QWidget* myEditCurrentArgument;
|
||||
|
@ -110,9 +110,7 @@ SMESHGUI_MeshPatternDlg::SMESHGUI_MeshPatternDlg( SMESHGUI* theModule,
|
||||
WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu),
|
||||
myBusy(false),
|
||||
mySMESHGUI( theModule ),
|
||||
mySelectionMgr( SMESH::GetSelectionMgr( theModule ) ),
|
||||
myViewWindow( SMESH::GetViewWindow( theModule ) ),
|
||||
mySelector( myViewWindow->GetSelector() )
|
||||
mySelectionMgr( SMESH::GetSelectionMgr( theModule ) )
|
||||
{
|
||||
setCaption(tr("CAPTION"));
|
||||
|
||||
@ -127,6 +125,9 @@ SMESHGUI_MeshPatternDlg::SMESHGUI_MeshPatternDlg( SMESHGUI* theModule,
|
||||
aDlgLay->setStretchFactor(aMainFrame, 1);
|
||||
|
||||
myCreationDlg = 0;
|
||||
|
||||
mySelector = (SMESH::GetViewWindow( mySMESHGUI ))->GetSelector();
|
||||
|
||||
Init();
|
||||
}
|
||||
|
||||
@ -462,7 +463,8 @@ void SMESHGUI_MeshPatternDlg::onClose()
|
||||
{
|
||||
mySelectionMgr->clearFilters();
|
||||
SMESH::SetPickable();
|
||||
myViewWindow->SetSelectionMode(ActorSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(ActorSelection);
|
||||
disconnect(mySelectionMgr, 0, this, 0);
|
||||
disconnect(mySMESHGUI, 0, this, 0);
|
||||
mySMESHGUI->ResetState();
|
||||
@ -963,14 +965,21 @@ void SMESHGUI_MeshPatternDlg::activateSelection()
|
||||
SMESH::SetPickable(anActor);
|
||||
|
||||
if (myType == Type_2d)
|
||||
myViewWindow->SetSelectionMode(FaceSelection);
|
||||
{
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(FaceSelection);
|
||||
}
|
||||
else
|
||||
myViewWindow->SetSelectionMode(CellSelection);
|
||||
{
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(CellSelection);
|
||||
}
|
||||
}
|
||||
else {
|
||||
SMESH::SetPickable();
|
||||
//mySelectionMgr->setSelectionModes(ActorSelection);
|
||||
myViewWindow->SetSelectionMode(ActorSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(ActorSelection);
|
||||
}
|
||||
|
||||
if (mySelInput == Object && !myMeshShape->_is_nil()) {
|
||||
@ -1265,7 +1274,8 @@ void SMESHGUI_MeshPatternDlg::onTextChanged (const QString& theNewText)
|
||||
newIndices.Add(e->GetID());
|
||||
}
|
||||
mySelector->AddOrRemoveIndex( anActor->getIO(), newIndices, false);
|
||||
myViewWindow->highlight( anActor->getIO(), true, true );
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->highlight( anActor->getIO(), true, true );
|
||||
}
|
||||
|
||||
myBusy = false;
|
||||
|
@ -156,7 +156,6 @@ private:
|
||||
QCheckBox* myPreviewChk;
|
||||
|
||||
SMESHGUI* mySMESHGUI;
|
||||
SVTK_ViewWindow* myViewWindow;
|
||||
SVTK_Selector* mySelector;
|
||||
SalomeApp_SelectionMgr* mySelectionMgr;
|
||||
int mySelInput;
|
||||
|
@ -93,9 +93,7 @@ SMESHGUI_MoveNodesDlg::SMESHGUI_MoveNodesDlg (SMESHGUI* theModule,
|
||||
theName,
|
||||
false,
|
||||
WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu),
|
||||
mySelector(SMESH::GetViewWindow(theModule)->GetSelector()),
|
||||
mySelectionMgr(SMESH::GetSelectionMgr(theModule)),
|
||||
myViewWindow(SMESH::GetViewWindow(theModule)),
|
||||
mySMESHGUI(theModule)
|
||||
{
|
||||
myPreviewActor = 0;
|
||||
@ -113,6 +111,8 @@ SMESHGUI_MoveNodesDlg::SMESHGUI_MoveNodesDlg (SMESHGUI* theModule,
|
||||
|
||||
aDlgLay->setStretchFactor(aMainFrame, 1);
|
||||
|
||||
mySelector = (SMESH::GetViewWindow( mySMESHGUI ))->GetSelector();
|
||||
|
||||
Init();
|
||||
}
|
||||
|
||||
@ -230,7 +230,8 @@ void SMESHGUI_MoveNodesDlg::Init()
|
||||
|
||||
// set selection mode
|
||||
SMESH::SetPointRepresentation(true);
|
||||
myViewWindow->SetSelectionMode(NodeSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(NodeSelection);
|
||||
|
||||
onSelectionDone();
|
||||
}
|
||||
@ -323,7 +324,8 @@ void SMESHGUI_MoveNodesDlg::onClose()
|
||||
{
|
||||
mySelectionMgr->clearSelected();
|
||||
SMESH::SetPointRepresentation(false);
|
||||
myViewWindow->SetSelectionMode(ActorSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(ActorSelection);
|
||||
disconnect(mySelectionMgr, 0, this, 0);
|
||||
disconnect(mySMESHGUI, 0, this, 0);
|
||||
mySMESHGUI->ResetState();
|
||||
@ -356,7 +358,8 @@ void SMESHGUI_MoveNodesDlg::onTextChange (const QString& theNewText)
|
||||
TColStd_MapOfInteger aListInd;
|
||||
aListInd.Add(anElem->GetID());
|
||||
mySelector->AddOrRemoveIndex(anIO,aListInd, false);
|
||||
myViewWindow->highlight(anIO,true,true);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->highlight(anIO,true,true);
|
||||
|
||||
onSelectionDone();
|
||||
}
|
||||
@ -423,7 +426,8 @@ void SMESHGUI_MoveNodesDlg::enterEvent (QEvent*)
|
||||
|
||||
// set selection mode
|
||||
SMESH::SetPointRepresentation(true);
|
||||
myViewWindow->SetSelectionMode(NodeSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(NodeSelection);
|
||||
|
||||
redisplayPreview();
|
||||
|
||||
@ -438,7 +442,8 @@ void SMESHGUI_MoveNodesDlg::enterEvent (QEvent*)
|
||||
void SMESHGUI_MoveNodesDlg::closeEvent (QCloseEvent*)
|
||||
{
|
||||
onClose();
|
||||
myViewWindow->Repaint();
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->Repaint();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
@ -471,10 +476,13 @@ void SMESHGUI_MoveNodesDlg::erasePreview()
|
||||
if (myPreviewActor == 0)
|
||||
return;
|
||||
|
||||
myViewWindow->RemoveActor(myPreviewActor);
|
||||
SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI );
|
||||
if (aViewWindow)
|
||||
aViewWindow->RemoveActor(myPreviewActor);
|
||||
myPreviewActor->Delete();
|
||||
myPreviewActor = 0;
|
||||
myViewWindow->Repaint();
|
||||
if (aViewWindow)
|
||||
aViewWindow->Repaint();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
@ -548,6 +556,9 @@ void SMESHGUI_MoveNodesDlg::redisplayPreview()
|
||||
myPreviewActor->SetProperty(aProp);
|
||||
aProp->Delete();
|
||||
|
||||
myViewWindow->AddActor(myPreviewActor);
|
||||
myViewWindow->Repaint();
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
{
|
||||
aViewWindow->AddActor(myPreviewActor);
|
||||
aViewWindow->Repaint();
|
||||
}
|
||||
}
|
||||
|
@ -97,7 +97,6 @@ private:
|
||||
SMESHGUI_SpinBox* myZ;
|
||||
|
||||
SalomeApp_SelectionMgr* mySelectionMgr;
|
||||
SVTK_ViewWindow* myViewWindow;
|
||||
SVTK_Selector* mySelector;
|
||||
SMESHGUI* mySMESHGUI;
|
||||
|
||||
|
@ -111,7 +111,6 @@ SMESHGUI_MultiEditDlg
|
||||
WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu | WDestructiveClose),
|
||||
mySelector(SMESH::GetViewWindow(theModule)->GetSelector()),
|
||||
mySelectionMgr(SMESH::GetSelectionMgr(theModule)),
|
||||
myViewWindow(SMESH::GetViewWindow(theModule)),
|
||||
mySMESHGUI(theModule)
|
||||
{
|
||||
myFilterDlg = 0;
|
||||
@ -372,7 +371,8 @@ SMESH::long_array_var SMESHGUI_MultiEditDlg::getIds()
|
||||
//=======================================================================
|
||||
void SMESHGUI_MultiEditDlg::onClose()
|
||||
{
|
||||
myViewWindow->SetSelectionMode(ActorSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(ActorSelection);
|
||||
disconnect(mySelectionMgr, 0, this, 0);
|
||||
disconnect(mySMESHGUI, 0, this, 0);
|
||||
mySMESHGUI->ResetState();
|
||||
@ -762,7 +762,8 @@ void SMESHGUI_MultiEditDlg::onListSelectionChanged()
|
||||
}
|
||||
|
||||
mySelector->AddOrRemoveIndex(anActor->getIO(),anIndexes,false);
|
||||
myViewWindow->highlight(anActor->getIO(),true,true);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->highlight(anActor->getIO(),true,true);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
@ -833,19 +834,23 @@ void SMESHGUI_MultiEditDlg::setSelectionMode()
|
||||
mySelectionMgr->clearFilters();
|
||||
|
||||
if (mySubmeshChk->isChecked()) {
|
||||
myViewWindow->SetSelectionMode(ActorSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(ActorSelection);
|
||||
mySelectionMgr->installFilter(new SMESH_TypeFilter(SUBMESH));
|
||||
}
|
||||
else if (myGroupChk->isChecked()) {
|
||||
myViewWindow->SetSelectionMode(ActorSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(ActorSelection);
|
||||
mySelectionMgr->installFilter(new SMESH_TypeFilter(GROUP));
|
||||
}
|
||||
|
||||
if (entityType()) {
|
||||
myViewWindow->SetSelectionMode(VolumeSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(VolumeSelection);
|
||||
SMESH::SetFilter(new SMESHGUI_VolumesFilter());
|
||||
} else {
|
||||
myViewWindow->SetSelectionMode(FaceSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(FaceSelection);
|
||||
if (myFilterType == SMESHGUI_TriaFilter)
|
||||
SMESH::SetFilter(new SMESHGUI_TriangleFilter());
|
||||
else if (myFilterType == SMESHGUI_QuadFilter)
|
||||
|
@ -124,7 +124,6 @@ protected:
|
||||
SMESH::SMESH_Mesh_var myMesh;
|
||||
|
||||
SalomeApp_SelectionMgr* mySelectionMgr;
|
||||
SVTK_ViewWindow* myViewWindow;
|
||||
SVTK_Selector* mySelector;
|
||||
SMESHGUI* mySMESHGUI;
|
||||
|
||||
|
@ -230,10 +230,9 @@ SMESHGUI_NodesDlg::SMESHGUI_NodesDlg (SMESHGUI* theModule,
|
||||
WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu | Qt::WDestructiveClose),
|
||||
mySelector(SMESH::GetViewWindow(theModule)->GetSelector()),
|
||||
mySelectionMgr(SMESH::GetSelectionMgr(theModule)),
|
||||
myViewWindow(SMESH::GetViewWindow(theModule)),
|
||||
mySMESHGUI(theModule)
|
||||
{
|
||||
mySimulation = new SMESH::TNodeSimulation(myViewWindow);
|
||||
mySimulation = new SMESH::TNodeSimulation(SMESH::GetViewWindow( mySMESHGUI ));
|
||||
|
||||
QPixmap image0 (SMESH::GetResourceMgr( mySMESHGUI )->loadPixmap("SMESH", tr("ICON_DLG_NODE")));
|
||||
if (!name)
|
||||
@ -382,7 +381,8 @@ void SMESHGUI_NodesDlg::Init ()
|
||||
|
||||
// set selection mode
|
||||
SMESH::SetPointRepresentation(true);
|
||||
myViewWindow->SetSelectionMode(NodeSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(NodeSelection);
|
||||
|
||||
SelectionIntoArgument();
|
||||
}
|
||||
@ -468,7 +468,8 @@ bool SMESHGUI_NodesDlg::ClickOnApply()
|
||||
void SMESHGUI_NodesDlg::ClickOnCancel()
|
||||
{
|
||||
disconnect(mySelectionMgr, 0, this, 0);
|
||||
myViewWindow->SetSelectionMode(ActorSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(ActorSelection);
|
||||
|
||||
mySimulation->SetVisibility(false);
|
||||
SMESH::SetPointRepresentation(false);
|
||||
@ -571,7 +572,8 @@ void SMESHGUI_NodesDlg::ActivateThisDialog()
|
||||
GroupButtons->setEnabled(true);
|
||||
|
||||
SMESH::SetPointRepresentation(true);
|
||||
myViewWindow->SetSelectionMode(NodeSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(NodeSelection);
|
||||
|
||||
SelectionIntoArgument();
|
||||
}
|
||||
|
@ -75,7 +75,6 @@ public:
|
||||
|
||||
private:
|
||||
SalomeApp_SelectionMgr* mySelectionMgr;
|
||||
SVTK_ViewWindow* myViewWindow;
|
||||
SVTK_Selector* mySelector;
|
||||
SMESHGUI* mySMESHGUI;
|
||||
|
||||
|
@ -82,7 +82,6 @@ SMESHGUI_RemoveElementsDlg
|
||||
WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu | Qt::WDestructiveClose),
|
||||
mySelector(SMESH::GetViewWindow(theModule)->GetSelector()),
|
||||
mySelectionMgr(SMESH::GetSelectionMgr(theModule)),
|
||||
myViewWindow(SMESH::GetViewWindow(theModule)),
|
||||
mySMESHGUI(theModule),
|
||||
myBusy(false)
|
||||
{
|
||||
@ -225,7 +224,8 @@ void SMESHGUI_RemoveElementsDlg::Init()
|
||||
this->move(x, y);
|
||||
this->show(); /* displays Dialog */
|
||||
|
||||
myViewWindow->SetSelectionMode(CellSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(CellSelection);
|
||||
|
||||
SelectionIntoArgument();
|
||||
}
|
||||
@ -286,7 +286,8 @@ void SMESHGUI_RemoveElementsDlg::ClickOnOk()
|
||||
void SMESHGUI_RemoveElementsDlg::ClickOnCancel()
|
||||
{
|
||||
mySelectionMgr->clearSelected();
|
||||
myViewWindow->SetSelectionMode(ActorSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(ActorSelection);
|
||||
disconnect(mySelectionMgr, 0, this, 0);
|
||||
mySMESHGUI->ResetState();
|
||||
reject();
|
||||
@ -324,7 +325,8 @@ void SMESHGUI_RemoveElementsDlg::onTextChange (const QString& theNewText)
|
||||
}
|
||||
|
||||
mySelector->AddOrRemoveIndex(anIO,newIndices,false);
|
||||
myViewWindow->highlight(anIO,true,true);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->highlight(anIO,true,true);
|
||||
}
|
||||
}
|
||||
|
||||
@ -446,7 +448,8 @@ void SMESHGUI_RemoveElementsDlg::ActivateThisDialog()
|
||||
|
||||
mySMESHGUI->SetActiveDialogBox((QDialog*)this); // ??
|
||||
|
||||
myViewWindow->SetSelectionMode(NodeSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(NodeSelection);
|
||||
|
||||
SelectionIntoArgument(); // ??
|
||||
}
|
||||
|
@ -77,7 +77,6 @@ private:
|
||||
void hideEvent ( QHideEvent * ); /* ESC key */
|
||||
|
||||
SalomeApp_SelectionMgr* mySelectionMgr;
|
||||
SVTK_ViewWindow* myViewWindow;
|
||||
SVTK_Selector* mySelector;
|
||||
SMESHGUI* mySMESHGUI;
|
||||
|
||||
|
@ -82,7 +82,6 @@ SMESHGUI_RemoveNodesDlg
|
||||
WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu | Qt::WDestructiveClose),
|
||||
mySelector(SMESH::GetViewWindow(theModule)->GetSelector()),
|
||||
mySelectionMgr(SMESH::GetSelectionMgr(theModule)),
|
||||
myViewWindow(SMESH::GetViewWindow(theModule)),
|
||||
mySMESHGUI(theModule),
|
||||
myBusy(false)
|
||||
{
|
||||
@ -226,7 +225,9 @@ void SMESHGUI_RemoveNodesDlg::Init()
|
||||
this->show(); /* displays Dialog */
|
||||
|
||||
SMESH::SetPointRepresentation(true);
|
||||
myViewWindow->SetSelectionMode(NodeSelection);
|
||||
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(NodeSelection);
|
||||
|
||||
SelectionIntoArgument();
|
||||
}
|
||||
@ -289,7 +290,8 @@ void SMESHGUI_RemoveNodesDlg::ClickOnCancel()
|
||||
{
|
||||
mySelectionMgr->clearSelected();
|
||||
SMESH::SetPointRepresentation(false);
|
||||
myViewWindow->SetSelectionMode(ActorSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(ActorSelection);
|
||||
disconnect(mySelectionMgr, 0, this, 0);
|
||||
mySMESHGUI->ResetState();
|
||||
reject();
|
||||
@ -325,7 +327,8 @@ void SMESHGUI_RemoveNodesDlg::onTextChange (const QString& theNewText)
|
||||
}
|
||||
|
||||
mySelector->AddOrRemoveIndex(anIO,newIndices,false);
|
||||
myViewWindow->highlight(anIO,true,true);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->highlight(anIO,true,true);
|
||||
}
|
||||
}
|
||||
|
||||
@ -448,7 +451,8 @@ void SMESHGUI_RemoveNodesDlg::ActivateThisDialog()
|
||||
mySMESHGUI->SetActiveDialogBox((QDialog*)this); // ??
|
||||
|
||||
SMESH::SetPointRepresentation(true);
|
||||
myViewWindow->SetSelectionMode(NodeSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(NodeSelection);
|
||||
|
||||
SelectionIntoArgument(); // ??
|
||||
}
|
||||
|
@ -80,7 +80,6 @@ private:
|
||||
void hideEvent ( QHideEvent * ); /* ESC key */
|
||||
|
||||
SalomeApp_SelectionMgr* mySelectionMgr;
|
||||
SVTK_ViewWindow* myViewWindow;
|
||||
SVTK_Selector* mySelector;
|
||||
SMESHGUI* mySMESHGUI;
|
||||
|
||||
|
@ -83,9 +83,7 @@ SMESHGUI_RevolutionDlg::SMESHGUI_RevolutionDlg( SMESHGUI* theModule, const char*
|
||||
: QDialog( SMESH::GetDesktop( theModule ), name, modal, WStyle_Customize | WStyle_NormalBorder |
|
||||
WStyle_Title | WStyle_SysMenu | Qt::WDestructiveClose),
|
||||
mySMESHGUI( theModule ),
|
||||
mySelectionMgr( SMESH::GetSelectionMgr( theModule ) ),
|
||||
myViewWindow( SMESH::GetViewWindow( theModule ) ),
|
||||
mySelector( myViewWindow->GetSelector() )
|
||||
mySelectionMgr( SMESH::GetSelectionMgr( theModule ) )
|
||||
{
|
||||
SUIT_ResourceMgr* mgr = SMESH::GetResourceMgr( mySMESHGUI );
|
||||
QPixmap image0 ( mgr->loadPixmap("SMESH", tr("ICON_DLG_EDGE")));
|
||||
@ -298,6 +296,8 @@ SMESHGUI_RevolutionDlg::SMESHGUI_RevolutionDlg( SMESHGUI* theModule, const char*
|
||||
GroupArguments->show();
|
||||
RadioButton1->setChecked(TRUE);
|
||||
|
||||
mySelector = (SMESH::GetViewWindow( mySMESHGUI ))->GetSelector();
|
||||
|
||||
mySMESHGUI->SetActiveDialogBox((QDialog*)this);
|
||||
|
||||
// Costruction of the logical filter
|
||||
@ -416,7 +416,10 @@ void SMESHGUI_RevolutionDlg::ConstructorsClicked (int constructorId)
|
||||
}
|
||||
|
||||
if (!CheckBoxMesh->isChecked())
|
||||
myViewWindow->SetSelectionMode(aSelMode);
|
||||
{
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(aSelMode);
|
||||
}
|
||||
|
||||
myEditCurrentArgument = (QWidget*)LineEditElements;
|
||||
LineEditElements->setFocus();
|
||||
@ -493,7 +496,8 @@ void SMESHGUI_RevolutionDlg::ClickOnCancel()
|
||||
mySelectionMgr->clearFilters();
|
||||
mySelectionMgr->clearSelected();
|
||||
SMESH::SetPointRepresentation(false);
|
||||
myViewWindow->SetSelectionMode(ActorSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(ActorSelection);
|
||||
mySMESHGUI->ResetState();
|
||||
reject();
|
||||
}
|
||||
@ -536,7 +540,8 @@ void SMESHGUI_RevolutionDlg::onTextChange (const QString& theNewText)
|
||||
}
|
||||
|
||||
mySelector->AddOrRemoveIndex(myActor->getIO(), newIndices, false);
|
||||
myViewWindow->highlight( myActor->getIO(), true, true );
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->highlight( myActor->getIO(), true, true );
|
||||
|
||||
myElementsId = theNewText;
|
||||
}
|
||||
@ -726,23 +731,32 @@ void SMESHGUI_RevolutionDlg::SetEditCurrentArgument()
|
||||
myEditCurrentArgument = (QWidget*)LineEditElements;
|
||||
SMESH::SetPointRepresentation(false);
|
||||
if (CheckBoxMesh->isChecked()) {
|
||||
myViewWindow->SetSelectionMode(ActorSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(ActorSelection);
|
||||
mySelectionMgr->installFilter(myMeshOrSubMeshOrGroupFilter);
|
||||
} else {
|
||||
int aConstructorId = GetConstructorId();
|
||||
if (aConstructorId == 0)
|
||||
myViewWindow->SetSelectionMode(EdgeSelection);
|
||||
{
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(EdgeSelection);
|
||||
}
|
||||
else if (aConstructorId == 1)
|
||||
myViewWindow->SetSelectionMode(FaceSelection);
|
||||
{
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(FaceSelection);
|
||||
}
|
||||
}
|
||||
} else if (send == SelectPointButton) {
|
||||
myEditCurrentArgument = (QWidget*)SpinBox_X;
|
||||
SMESH::SetPointRepresentation(true);
|
||||
myViewWindow->SetSelectionMode(NodeSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(NodeSelection);
|
||||
} else if (send == SelectVectorButton) {
|
||||
myEditCurrentArgument = (QWidget*)SpinBox_DX;
|
||||
SMESH::SetPointRepresentation(true);
|
||||
myViewWindow->SetSelectionMode(NodeSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(NodeSelection);
|
||||
} else {
|
||||
}
|
||||
|
||||
@ -834,15 +848,22 @@ void SMESHGUI_RevolutionDlg::onSelectMesh (bool toSelectMesh)
|
||||
SMESH::SetPointRepresentation(false);
|
||||
|
||||
if (toSelectMesh) {
|
||||
myViewWindow->SetSelectionMode(ActorSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(ActorSelection);
|
||||
mySelectionMgr->installFilter(myMeshOrSubMeshOrGroupFilter);
|
||||
LineEditElements->setReadOnly(true);
|
||||
} else {
|
||||
int aConstructorId = GetConstructorId();
|
||||
if (aConstructorId == 0)
|
||||
myViewWindow->SetSelectionMode(EdgeSelection);
|
||||
{
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(EdgeSelection);
|
||||
}
|
||||
else if (aConstructorId == 0)
|
||||
myViewWindow->SetSelectionMode(FaceSelection);
|
||||
{
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(FaceSelection);
|
||||
}
|
||||
|
||||
LineEditElements->setReadOnly(false);
|
||||
onTextChange(LineEditElements->text());
|
||||
|
@ -86,7 +86,6 @@ private:
|
||||
int myNbOkElements; /* to check when elements are defined */
|
||||
QString myElementsId;
|
||||
QWidget* myEditCurrentArgument; /* Current argument */
|
||||
SVTK_ViewWindow* myViewWindow;
|
||||
SVTK_Selector* mySelector;
|
||||
|
||||
bool myBusy;
|
||||
|
@ -82,9 +82,7 @@ SMESHGUI_RotationDlg::SMESHGUI_RotationDlg( SMESHGUI* theModule, const char* nam
|
||||
: QDialog( SMESH::GetDesktop( theModule ), name, modal, WStyle_Customize | WStyle_NormalBorder |
|
||||
WStyle_Title | WStyle_SysMenu | Qt::WDestructiveClose),
|
||||
mySMESHGUI( theModule ),
|
||||
mySelectionMgr( SMESH::GetSelectionMgr( theModule ) ),
|
||||
myViewWindow( SMESH::GetViewWindow( theModule ) ),
|
||||
mySelector( myViewWindow->GetSelector() )
|
||||
mySelectionMgr( SMESH::GetSelectionMgr( theModule ) )
|
||||
{
|
||||
QPixmap image0 (SMESH::GetResourceMgr( mySMESHGUI )->loadPixmap("SMESH", tr("ICON_DLG_ROTATION")));
|
||||
QPixmap image1 (SMESH::GetResourceMgr( mySMESHGUI )->loadPixmap("SMESH", tr("ICON_SELECT")));
|
||||
@ -287,6 +285,8 @@ SMESHGUI_RotationDlg::SMESHGUI_RotationDlg( SMESHGUI* theModule, const char* nam
|
||||
myConstructorId = 0;
|
||||
RadioButton1->setChecked(TRUE);
|
||||
|
||||
mySelector = (SMESH::GetViewWindow( mySMESHGUI ))->GetSelector();
|
||||
|
||||
mySMESHGUI->SetActiveDialogBox((QDialog*)this);
|
||||
|
||||
// Costruction of the logical filter
|
||||
@ -450,7 +450,8 @@ void SMESHGUI_RotationDlg::ClickOnCancel()
|
||||
mySelectionMgr->clearFilters();
|
||||
mySelectionMgr->clearSelected();
|
||||
SMESH::SetPointRepresentation(false);
|
||||
myViewWindow->SetSelectionMode(ActorSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(ActorSelection);
|
||||
mySMESHGUI->ResetState();
|
||||
reject();
|
||||
}
|
||||
@ -492,7 +493,8 @@ void SMESHGUI_RotationDlg::onTextChange (const QString& theNewText)
|
||||
}
|
||||
|
||||
mySelector->AddOrRemoveIndex( anIO, newIndices, false );
|
||||
myViewWindow->highlight( anIO, true, true );
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->highlight( anIO, true, true );
|
||||
|
||||
myElementsId = theNewText;
|
||||
}
|
||||
@ -660,26 +662,28 @@ void SMESHGUI_RotationDlg::SetEditCurrentArgument()
|
||||
switch (myConstructorId) {
|
||||
case 0: /* default constructor */
|
||||
{
|
||||
SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI );
|
||||
if (send == SelectElementsButton) {
|
||||
myEditCurrentArgument = (QWidget*)LineEditElements;
|
||||
SMESH::SetPointRepresentation(false);
|
||||
if (CheckBoxMesh->isChecked()) {
|
||||
myViewWindow->SetSelectionMode(ActorSelection);
|
||||
if ( aViewWindow )
|
||||
aViewWindow->SetSelectionMode(ActorSelection);
|
||||
mySelectionMgr->installFilter(myMeshOrSubMeshOrGroupFilter);
|
||||
} else {
|
||||
|
||||
myViewWindow->SetSelectionMode( CellSelection );
|
||||
}
|
||||
if ( aViewWindow )
|
||||
aViewWindow->SetSelectionMode( CellSelection );
|
||||
}
|
||||
} else if (send == SelectPointButton) {
|
||||
myEditCurrentArgument = (QWidget*)SpinBox_X;
|
||||
SMESH::SetPointRepresentation(true);
|
||||
|
||||
myViewWindow->SetSelectionMode( NodeSelection );
|
||||
if ( aViewWindow )
|
||||
aViewWindow->SetSelectionMode( NodeSelection );
|
||||
} else if (send == SelectVectorButton) {
|
||||
myEditCurrentArgument = (QWidget*)SpinBox_DX;
|
||||
SMESH::SetPointRepresentation(true);
|
||||
|
||||
myViewWindow->SetSelectionMode( NodeSelection );
|
||||
if ( aViewWindow )
|
||||
aViewWindow->SetSelectionMode( NodeSelection );
|
||||
}
|
||||
break;
|
||||
}
|
||||
@ -719,7 +723,8 @@ void SMESHGUI_RotationDlg::ActivateThisDialog()
|
||||
|
||||
mySMESHGUI->SetActiveDialogBox((QDialog*)this);
|
||||
|
||||
myViewWindow->SetSelectionMode( CellSelection );
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode( CellSelection );
|
||||
SelectionIntoArgument();
|
||||
}
|
||||
|
||||
@ -773,11 +778,13 @@ void SMESHGUI_RotationDlg::onSelectMesh (bool toSelectMesh)
|
||||
SMESH::SetPointRepresentation(false);
|
||||
|
||||
if (toSelectMesh) {
|
||||
myViewWindow->SetSelectionMode(ActorSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(ActorSelection);
|
||||
mySelectionMgr->installFilter(myMeshOrSubMeshOrGroupFilter);
|
||||
LineEditElements->setReadOnly(true);
|
||||
} else {
|
||||
myViewWindow->SetSelectionMode( CellSelection );
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode( CellSelection );
|
||||
LineEditElements->setReadOnly(false);
|
||||
onTextChange(LineEditElements->text());
|
||||
}
|
||||
|
@ -83,7 +83,6 @@ private:
|
||||
SalomeApp_SelectionMgr* mySelectionMgr; /* User shape selection */
|
||||
int myNbOkElements; /* to check when elements are defined */
|
||||
QString myElementsId;
|
||||
SVTK_ViewWindow* myViewWindow;
|
||||
SVTK_Selector* mySelector;
|
||||
|
||||
QWidget* myEditCurrentArgument; /* Current LineEdit */
|
||||
|
@ -75,9 +75,7 @@ SMESHGUI_SewingDlg::SMESHGUI_SewingDlg( SMESHGUI* theModule, const char* name,
|
||||
: QDialog( SMESH::GetDesktop( theModule ), name, modal, WStyle_Customize | WStyle_NormalBorder |
|
||||
WStyle_Title | WStyle_SysMenu | Qt::WDestructiveClose),
|
||||
mySMESHGUI( theModule ),
|
||||
mySelectionMgr( SMESH::GetSelectionMgr( theModule ) ),
|
||||
myViewWindow( SMESH::GetViewWindow( theModule ) ),
|
||||
mySelector( myViewWindow->GetSelector() )
|
||||
mySelectionMgr( SMESH::GetSelectionMgr( theModule ) )
|
||||
{
|
||||
SUIT_ResourceMgr* mgr = SMESH::GetResourceMgr( mySMESHGUI );
|
||||
QPixmap image0 (mgr->loadPixmap("SMESH", tr("ICON_SMESH_SEWING_FREEBORDERS")));
|
||||
@ -284,6 +282,8 @@ SMESHGUI_SewingDlg::SMESHGUI_SewingDlg( SMESHGUI* theModule, const char* name,
|
||||
LineEdit5->setValidator(new SMESHGUI_IdValidator(this, "validator", 1));
|
||||
LineEdit6->setValidator(new SMESHGUI_IdValidator(this, "validator", 1));
|
||||
|
||||
mySelector = (SMESH::GetViewWindow( mySMESHGUI ))->GetSelector();
|
||||
|
||||
mySMESHGUI->SetActiveDialogBox((QDialog*)this);
|
||||
|
||||
Init();
|
||||
@ -452,7 +452,8 @@ void SMESHGUI_SewingDlg::ConstructorsClicked (int constructorId)
|
||||
|
||||
SMESH::SetPointRepresentation(false);
|
||||
|
||||
myViewWindow->SetSelectionMode(CellSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(CellSelection);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -470,7 +471,8 @@ void SMESHGUI_SewingDlg::ConstructorsClicked (int constructorId)
|
||||
|
||||
SMESH::SetPointRepresentation(true);
|
||||
|
||||
myViewWindow->SetSelectionMode(NodeSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(NodeSelection);
|
||||
}
|
||||
|
||||
connect(mySelectionMgr, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
|
||||
@ -593,7 +595,8 @@ void SMESHGUI_SewingDlg::ClickOnCancel()
|
||||
{
|
||||
mySelectionMgr->clearSelected();
|
||||
SMESH::SetPointRepresentation(false);
|
||||
myViewWindow->SetSelectionMode(ActorSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(ActorSelection);
|
||||
disconnect(mySelectionMgr, 0, this, 0);
|
||||
mySMESHGUI->ResetState();
|
||||
reject();
|
||||
@ -643,13 +646,15 @@ void SMESHGUI_SewingDlg::onTextChange (const QString& theNewText)
|
||||
if (GetConstructorId() != 3 || (send != LineEdit1 && send != LineEdit4)) {
|
||||
SMESH::SetPointRepresentation(true);
|
||||
|
||||
myViewWindow->SetSelectionMode(NodeSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(NodeSelection);
|
||||
|
||||
const SMDS_MeshNode * n = aMesh->FindNode(theNewText.toInt());
|
||||
if (n) {
|
||||
newIndices.Add(n->GetID());
|
||||
mySelector->AddOrRemoveIndex(myActor->getIO(), newIndices, false);
|
||||
myViewWindow->highlight( myActor->getIO(), true, true );
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->highlight( myActor->getIO(), true, true );
|
||||
|
||||
if (send == LineEdit1)
|
||||
myOk1 = true;
|
||||
@ -667,7 +672,8 @@ void SMESHGUI_SewingDlg::onTextChange (const QString& theNewText)
|
||||
} else {
|
||||
SMESH::SetPointRepresentation(false);
|
||||
|
||||
myViewWindow->SetSelectionMode(CellSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(CellSelection);
|
||||
|
||||
QStringList aListId = QStringList::split(" ", theNewText, false);
|
||||
|
||||
@ -684,7 +690,8 @@ void SMESHGUI_SewingDlg::onTextChange (const QString& theNewText)
|
||||
|
||||
|
||||
mySelector->AddOrRemoveIndex(myActor->getIO(), newIndices, false);
|
||||
myViewWindow->highlight( myActor->getIO(), true, true );
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->highlight( myActor->getIO(), true, true );
|
||||
|
||||
if (isEvenOneExists) {
|
||||
if (send == LineEdit1)
|
||||
@ -821,11 +828,13 @@ void SMESHGUI_SewingDlg::SetEditCurrentArgument()
|
||||
if (GetConstructorId() != 3 || (send != SelectButton1 && send != SelectButton4)) {
|
||||
SMESH::SetPointRepresentation(true);
|
||||
|
||||
myViewWindow->SetSelectionMode(NodeSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(NodeSelection);
|
||||
|
||||
} else {
|
||||
SMESH::SetPointRepresentation(false);
|
||||
myViewWindow->SetSelectionMode(CellSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(CellSelection);
|
||||
}
|
||||
|
||||
myEditCurrentArgument->setFocus();
|
||||
|
@ -79,7 +79,6 @@ private:
|
||||
SalomeApp_SelectionMgr* mySelectionMgr; /* User shape selection */
|
||||
int myOk1, myOk2, myOk3, myOk4, myOk5, myOk6;
|
||||
QLineEdit* myEditCurrentArgument; /* Current LineEdit */
|
||||
SVTK_ViewWindow* myViewWindow;
|
||||
SVTK_Selector* mySelector;
|
||||
|
||||
bool myBusy;
|
||||
|
@ -113,7 +113,6 @@ SMESHGUI_SingleEditDlg
|
||||
WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu),
|
||||
mySelector(SMESH::GetViewWindow(theModule)->GetSelector()),
|
||||
mySelectionMgr(SMESH::GetSelectionMgr(theModule)),
|
||||
myViewWindow(SMESH::GetViewWindow(theModule)),
|
||||
mySMESHGUI(theModule)
|
||||
{
|
||||
QVBoxLayout* aDlgLay = new QVBoxLayout(this, MARGIN, SPACING);
|
||||
@ -240,7 +239,8 @@ void SMESHGUI_SingleEditDlg::Init()
|
||||
this->show();
|
||||
|
||||
// set selection mode
|
||||
myViewWindow->SetSelectionMode(EdgeOfCellSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(EdgeOfCellSelection);
|
||||
|
||||
onSelectionDone();
|
||||
}
|
||||
@ -262,7 +262,8 @@ void SMESHGUI_SingleEditDlg::onOk()
|
||||
//=======================================================================
|
||||
void SMESHGUI_SingleEditDlg::onClose()
|
||||
{
|
||||
myViewWindow->SetSelectionMode(ActorSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(ActorSelection);
|
||||
mySelectionMgr->clearSelected();
|
||||
disconnect(mySelectionMgr, 0, this, 0);
|
||||
disconnect(mySMESHGUI, 0, this, 0);
|
||||
@ -442,7 +443,8 @@ void SMESHGUI_SingleEditDlg::enterEvent (QEvent*)
|
||||
{
|
||||
if (!isEnabled()) {
|
||||
mySMESHGUI->EmitSignalDeactivateDialog();
|
||||
myViewWindow->SetSelectionMode(EdgeOfCellSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(EdgeOfCellSelection);
|
||||
setEnabled(true);
|
||||
}
|
||||
}
|
||||
|
@ -89,7 +89,6 @@ protected:
|
||||
SMESH_Actor* myActor;
|
||||
|
||||
SalomeApp_SelectionMgr* mySelectionMgr;
|
||||
SVTK_ViewWindow* myViewWindow;
|
||||
SVTK_Selector* mySelector;
|
||||
SMESHGUI* mySMESHGUI;
|
||||
};
|
||||
|
@ -89,9 +89,7 @@ SMESHGUI_SmoothingDlg::SMESHGUI_SmoothingDlg( SMESHGUI* theModule, const char* n
|
||||
: QDialog( SMESH::GetDesktop( theModule ), name, modal, WStyle_Customize | WStyle_NormalBorder |
|
||||
WStyle_Title | WStyle_SysMenu | Qt::WDestructiveClose),
|
||||
mySMESHGUI( theModule ),
|
||||
mySelectionMgr( SMESH::GetSelectionMgr( theModule ) ),
|
||||
myViewWindow( SMESH::GetViewWindow( theModule ) ),
|
||||
mySelector( myViewWindow->GetSelector() )
|
||||
mySelectionMgr( SMESH::GetSelectionMgr( theModule ) )
|
||||
{
|
||||
QPixmap image0 (SMESH::GetResourceMgr( mySMESHGUI )->loadPixmap("SMESH", tr("ICON_DLG_SMOOTHING")));
|
||||
QPixmap image1 (SMESH::GetResourceMgr( mySMESHGUI )->loadPixmap("SMESH", tr("ICON_SELECT")));
|
||||
@ -253,6 +251,8 @@ SMESHGUI_SmoothingDlg::SMESHGUI_SmoothingDlg( SMESHGUI* theModule, const char* n
|
||||
GroupArguments->show();
|
||||
myConstructorId = 0;
|
||||
Constructor1->setChecked(TRUE);
|
||||
|
||||
mySelector = (SMESH::GetViewWindow( mySMESHGUI ))->GetSelector();
|
||||
|
||||
mySMESHGUI->SetActiveDialogBox(this);
|
||||
|
||||
@ -424,7 +424,8 @@ void SMESHGUI_SmoothingDlg::ClickOnCancel()
|
||||
mySelectionMgr->clearSelected();
|
||||
SMESH::SetPickable(); // ???
|
||||
SMESH::SetPointRepresentation(false);
|
||||
myViewWindow->SetSelectionMode(ActorSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(ActorSelection);
|
||||
mySMESHGUI->ResetState();
|
||||
reject();
|
||||
}
|
||||
@ -470,7 +471,8 @@ void SMESHGUI_SmoothingDlg::onTextChange (const QString& theNewText)
|
||||
myNbOkElements++;
|
||||
}
|
||||
mySelector->AddOrRemoveIndex(anIO, newIndices, false);
|
||||
myViewWindow->highlight( anIO, true, true );
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->highlight( anIO, true, true );
|
||||
myElementsId = theNewText;
|
||||
|
||||
} else if (send == LineEditNodes) {
|
||||
@ -483,7 +485,8 @@ void SMESHGUI_SmoothingDlg::onTextChange (const QString& theNewText)
|
||||
myNbOkNodes++;
|
||||
}
|
||||
mySelector->AddOrRemoveIndex(myActor->getIO(), newIndices, false);
|
||||
myViewWindow->highlight( myActor->getIO(), true, true );
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->highlight( myActor->getIO(), true, true );
|
||||
}
|
||||
}
|
||||
|
||||
@ -633,12 +636,14 @@ void SMESHGUI_SmoothingDlg::SetEditCurrentArgument()
|
||||
mySelectionMgr->setSelectionModes(ActorSelection);
|
||||
mySelectionMgr->installFilter(myMeshOrSubMeshOrGroupFilter);
|
||||
} else {
|
||||
myViewWindow->SetSelectionMode(CellSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(CellSelection);
|
||||
}
|
||||
} else if (send == SelectNodesButton) {
|
||||
myEditCurrentArgument = LineEditNodes;
|
||||
SMESH::SetPointRepresentation(true);
|
||||
myViewWindow->SetSelectionMode(NodeSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(NodeSelection);
|
||||
}
|
||||
|
||||
myEditCurrentArgument->setFocus();
|
||||
@ -677,7 +682,8 @@ void SMESHGUI_SmoothingDlg::ActivateThisDialog()
|
||||
GroupButtons->setEnabled(true);
|
||||
|
||||
mySMESHGUI->SetActiveDialogBox(this);
|
||||
myViewWindow->SetSelectionMode(CellSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(CellSelection);
|
||||
SelectionIntoArgument();
|
||||
}
|
||||
|
||||
@ -735,7 +741,8 @@ void SMESHGUI_SmoothingDlg::onSelectMesh (bool toSelectMesh)
|
||||
mySelectionMgr->installFilter(myMeshOrSubMeshOrGroupFilter);
|
||||
LineEditElements->setReadOnly(true);
|
||||
} else {
|
||||
myViewWindow->SetSelectionMode(CellSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(CellSelection);
|
||||
LineEditElements->setReadOnly(false);
|
||||
onTextChange(LineEditElements->text());
|
||||
}
|
||||
|
@ -87,7 +87,6 @@ private:
|
||||
int myNbOkNodes; /* to check when fixed nodes are defined */
|
||||
int myConstructorId; /* Current constructor id = radio button id */
|
||||
QLineEdit* myEditCurrentArgument; /* Current LineEdit */
|
||||
SVTK_ViewWindow* myViewWindow;
|
||||
SVTK_Selector* mySelector;
|
||||
|
||||
bool myBusy;
|
||||
|
@ -82,9 +82,7 @@ SMESHGUI_SymmetryDlg::SMESHGUI_SymmetryDlg( SMESHGUI* theModule, const char* nam
|
||||
: QDialog( SMESH::GetDesktop( theModule ), name, modal, WStyle_Customize | WStyle_NormalBorder |
|
||||
WStyle_Title | WStyle_SysMenu | Qt::WDestructiveClose),
|
||||
mySMESHGUI( theModule ),
|
||||
mySelectionMgr( SMESH::GetSelectionMgr( theModule ) ),
|
||||
myViewWindow( SMESH::GetViewWindow( theModule ) ),
|
||||
mySelector( myViewWindow->GetSelector() )
|
||||
mySelectionMgr( SMESH::GetSelectionMgr( theModule ) )
|
||||
{
|
||||
QPixmap image0 (SMESH::GetResourceMgr( mySMESHGUI )->loadPixmap("SMESH", tr("ICON_SMESH_SYMMETRY_POINT")));
|
||||
QPixmap image1 (SMESH::GetResourceMgr( mySMESHGUI )->loadPixmap("SMESH", tr("ICON_SMESH_SYMMETRY_AXIS")));
|
||||
@ -281,6 +279,8 @@ SMESHGUI_SymmetryDlg::SMESHGUI_SymmetryDlg( SMESHGUI* theModule, const char* nam
|
||||
GroupArguments->show();
|
||||
RadioButton1->setChecked(TRUE);
|
||||
|
||||
mySelector = (SMESH::GetViewWindow( mySMESHGUI ))->GetSelector();
|
||||
|
||||
mySMESHGUI->SetActiveDialogBox((QDialog*)this);
|
||||
|
||||
// Costruction of the logical filter
|
||||
@ -420,7 +420,10 @@ void SMESHGUI_SymmetryDlg::ConstructorsClicked (int constructorId)
|
||||
if (myEditCurrentArgument != (QWidget*)LineEditElements) {
|
||||
SMESH::SetPointRepresentation(false);
|
||||
if (!CheckBoxMesh->isChecked())
|
||||
myViewWindow->SetSelectionMode(CellSelection);
|
||||
{
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(CellSelection);
|
||||
}
|
||||
}
|
||||
|
||||
myEditCurrentArgument = (QWidget*)LineEditElements;
|
||||
@ -509,7 +512,8 @@ void SMESHGUI_SymmetryDlg::ClickOnCancel()
|
||||
mySelectionMgr->clearFilters();
|
||||
mySelectionMgr->clearSelected();
|
||||
SMESH::SetPointRepresentation(false);
|
||||
myViewWindow->SetSelectionMode(ActorSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(ActorSelection);
|
||||
mySMESHGUI->ResetState();
|
||||
reject();
|
||||
}
|
||||
@ -552,7 +556,8 @@ void SMESHGUI_SymmetryDlg::onTextChange (const QString& theNewText)
|
||||
}
|
||||
|
||||
mySelector->AddOrRemoveIndex( anIO, newIndices, false );
|
||||
myViewWindow->highlight( anIO, true, true );
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->highlight( anIO, true, true );
|
||||
|
||||
myElementsId = theNewText;
|
||||
}
|
||||
@ -721,20 +726,24 @@ void SMESHGUI_SymmetryDlg::SetEditCurrentArgument()
|
||||
myEditCurrentArgument = (QWidget*)LineEditElements;
|
||||
SMESH::SetPointRepresentation(false);
|
||||
if (CheckBoxMesh->isChecked()) {
|
||||
myViewWindow->SetSelectionMode(ActorSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(ActorSelection);
|
||||
mySelectionMgr->installFilter(myMeshOrSubMeshOrGroupFilter);
|
||||
} else {
|
||||
myViewWindow->SetSelectionMode(CellSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(CellSelection);
|
||||
}
|
||||
} else if (send == SelectPointButton) {
|
||||
myEditCurrentArgument = (QWidget*)SpinBox_X;
|
||||
SMESH::SetPointRepresentation(true);
|
||||
myViewWindow->SetSelectionMode(NodeSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(NodeSelection);
|
||||
} else if (send == SelectVectorButton) {
|
||||
myEditCurrentArgument = (QWidget*)SpinBox_DX;
|
||||
SMESH::SetPointRepresentation(true);
|
||||
|
||||
myViewWindow->SetSelectionMode(NodeSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(NodeSelection);
|
||||
} else {
|
||||
}
|
||||
|
||||
@ -772,7 +781,8 @@ void SMESHGUI_SymmetryDlg::ActivateThisDialog()
|
||||
|
||||
mySMESHGUI->SetActiveDialogBox((QDialog*)this);
|
||||
|
||||
myViewWindow->SetSelectionMode(CellSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(CellSelection);
|
||||
SelectionIntoArgument();
|
||||
}
|
||||
|
||||
@ -826,11 +836,13 @@ void SMESHGUI_SymmetryDlg::onSelectMesh (bool toSelectMesh)
|
||||
SMESH::SetPointRepresentation(false);
|
||||
|
||||
if (toSelectMesh) {
|
||||
myViewWindow->SetSelectionMode(ActorSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(ActorSelection);
|
||||
mySelectionMgr->installFilter(myMeshOrSubMeshOrGroupFilter);
|
||||
LineEditElements->setReadOnly(true);
|
||||
} else {
|
||||
myViewWindow->SetSelectionMode(CellSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(CellSelection);
|
||||
LineEditElements->setReadOnly(false);
|
||||
onTextChange(LineEditElements->text());
|
||||
}
|
||||
|
@ -83,7 +83,6 @@ private:
|
||||
SalomeApp_SelectionMgr* mySelectionMgr; /* User shape selection */
|
||||
int myNbOkElements; /* to check when elements are defined */
|
||||
QString myElementsId;
|
||||
SVTK_ViewWindow* myViewWindow;
|
||||
SVTK_Selector* mySelector;
|
||||
|
||||
QWidget* myEditCurrentArgument; /* Current LineEdit */
|
||||
|
@ -83,9 +83,7 @@ SMESHGUI_TranslationDlg::SMESHGUI_TranslationDlg( SMESHGUI* theModule, const cha
|
||||
: QDialog( SMESH::GetDesktop( theModule ), name, modal, WStyle_Customize | WStyle_NormalBorder |
|
||||
WStyle_Title | WStyle_SysMenu | Qt::WDestructiveClose),
|
||||
mySMESHGUI( theModule ),
|
||||
mySelectionMgr( SMESH::GetSelectionMgr( theModule ) ),
|
||||
myViewWindow( SMESH::GetViewWindow( theModule ) ),
|
||||
mySelector( myViewWindow->GetSelector() )
|
||||
mySelectionMgr( SMESH::GetSelectionMgr( theModule ) )
|
||||
{
|
||||
QPixmap image0 (SMESH::GetResourceMgr( mySMESHGUI )->loadPixmap("SMESH", tr("ICON_SMESH_TRANSLATION_POINTS")));
|
||||
QPixmap image1 (SMESH::GetResourceMgr( mySMESHGUI )->loadPixmap("SMESH", tr("ICON_SMESH_TRANSLATION_VECTOR")));
|
||||
@ -261,6 +259,8 @@ SMESHGUI_TranslationDlg::SMESHGUI_TranslationDlg( SMESHGUI* theModule, const cha
|
||||
GroupArguments->show();
|
||||
RadioButton1->setChecked(TRUE);
|
||||
|
||||
mySelector = (SMESH::GetViewWindow( mySMESHGUI ))->GetSelector();
|
||||
|
||||
mySMESHGUI->SetActiveDialogBox((QDialog*)this);
|
||||
|
||||
// Costruction of the logical filter
|
||||
@ -395,8 +395,8 @@ void SMESHGUI_TranslationDlg::ConstructorsClicked (int constructorId)
|
||||
if (myEditCurrentArgument != (QWidget*)LineEditElements) {
|
||||
SMESH::SetPointRepresentation(false);
|
||||
if (!CheckBoxMesh->isChecked())
|
||||
|
||||
myViewWindow->SetSelectionMode( CellSelection );
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode( CellSelection );
|
||||
}
|
||||
|
||||
myEditCurrentArgument = (QWidget*)LineEditElements;
|
||||
@ -474,7 +474,8 @@ void SMESHGUI_TranslationDlg::ClickOnCancel()
|
||||
mySelectionMgr->clearFilters();
|
||||
mySelectionMgr->clearSelected();
|
||||
SMESH::SetPointRepresentation(false);
|
||||
myViewWindow->SetSelectionMode( ActorSelection );
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode( ActorSelection );
|
||||
mySMESHGUI->ResetState();
|
||||
reject();
|
||||
}
|
||||
@ -518,7 +519,8 @@ void SMESHGUI_TranslationDlg::onTextChange (const QString& theNewText)
|
||||
}
|
||||
|
||||
mySelector->AddOrRemoveIndex( anIO, newIndices, false );
|
||||
myViewWindow->highlight( anIO, true, true );
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->highlight( anIO, true, true );
|
||||
|
||||
myElementsId = theNewText;
|
||||
}
|
||||
@ -686,22 +688,26 @@ void SMESHGUI_TranslationDlg::SetEditCurrentArgument()
|
||||
myEditCurrentArgument = (QWidget*)LineEditElements;
|
||||
SMESH::SetPointRepresentation(false);
|
||||
if (CheckBoxMesh->isChecked()) {
|
||||
myViewWindow->SetSelectionMode( ActorSelection );
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode( ActorSelection );
|
||||
mySelectionMgr->installFilter(myMeshOrSubMeshOrGroupFilter);
|
||||
} else {
|
||||
|
||||
myViewWindow->SetSelectionMode( CellSelection );
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode( CellSelection );
|
||||
}
|
||||
} else if (send == SelectButton1) {
|
||||
myEditCurrentArgument = (QWidget*)SpinBox1_1;
|
||||
SMESH::SetPointRepresentation(true);
|
||||
|
||||
myViewWindow->SetSelectionMode( NodeSelection );
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode( NodeSelection );
|
||||
} else if (send == SelectButton2) {
|
||||
myEditCurrentArgument = (QWidget*)SpinBox2_1;
|
||||
SMESH::SetPointRepresentation(true);
|
||||
|
||||
myViewWindow->SetSelectionMode( NodeSelection );
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode( NodeSelection );
|
||||
}
|
||||
|
||||
myEditCurrentArgument->setFocus();
|
||||
@ -738,7 +744,8 @@ void SMESHGUI_TranslationDlg::ActivateThisDialog()
|
||||
|
||||
mySMESHGUI->SetActiveDialogBox((QDialog*)this);
|
||||
|
||||
myViewWindow->SetSelectionMode( CellSelection );
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode( CellSelection );
|
||||
|
||||
SelectionIntoArgument();
|
||||
}
|
||||
@ -793,11 +800,13 @@ void SMESHGUI_TranslationDlg::onSelectMesh (bool toSelectMesh)
|
||||
SMESH::SetPointRepresentation(false);
|
||||
|
||||
if (toSelectMesh) {
|
||||
myViewWindow->SetSelectionMode( ActorSelection );
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode( ActorSelection );
|
||||
mySelectionMgr->installFilter(myMeshOrSubMeshOrGroupFilter);
|
||||
LineEditElements->setReadOnly(true);
|
||||
} else {
|
||||
myViewWindow->SetSelectionMode( CellSelection );
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode( CellSelection );
|
||||
LineEditElements->setReadOnly(false);
|
||||
onTextChange(LineEditElements->text());
|
||||
}
|
||||
|
@ -82,7 +82,6 @@ private:
|
||||
QString myElementsId;
|
||||
int myNbOkElements; /* to check when elements are defined */
|
||||
|
||||
SVTK_ViewWindow* myViewWindow;
|
||||
SVTK_Selector* mySelector;
|
||||
|
||||
QWidget* myEditCurrentArgument;
|
||||
|
@ -497,7 +497,8 @@ namespace SMESH{
|
||||
void SetFilter(const Handle(VTKViewer_Filter)& theFilter,
|
||||
SVTK_InteractorStyle* theStyle)
|
||||
{
|
||||
theStyle->SetFilter(theFilter);
|
||||
if (theStyle)
|
||||
theStyle->SetFilter(theFilter);
|
||||
}
|
||||
|
||||
Handle(VTKViewer_Filter) GetFilter(int theId, SVTK_InteractorStyle* theStyle)
|
||||
|
Loading…
Reference in New Issue
Block a user