1 // SMESH SMESHGUI : GUI for SMESH component
3 // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
24 // File : SMESHGUI_AddMeshElementDlg.cxx
25 // Author : Nicolas REJNERI
29 #include "SMESHGUI_AddMeshElementDlg.h"
32 #include "SMESHGUI_Utils.h"
33 #include "SMESHGUI_VTKUtils.h"
34 #include "SMESHGUI_MeshUtils.h"
35 #include "SMESHGUI_IdValidator.h"
36 #include "SMESH_ActorUtils.h"
38 #include "VTKViewer_ViewFrame.h"
39 #include "SMDS_Mesh.hxx"
40 #include "SMESH_Actor.h"
42 #include "QAD_Application.h"
43 #include "QAD_Desktop.h"
44 #include "QAD_MessageBox.h"
46 #include "utilities.h"
49 #include <vtkIdList.h>
50 #include <vtkIntArray.h>
51 #include <vtkCellArray.h>
52 #include <vtkUnsignedCharArray.h>
53 #include <vtkUnstructuredGrid.h>
54 #include <vtkDataSetMapper.h>
57 #include <qbuttongroup.h>
58 #include <qgroupbox.h>
60 #include <qlineedit.h>
61 #include <qpushbutton.h>
62 #include <qradiobutton.h>
66 #include <qwhatsthis.h>
69 #include <qcheckbox.h>
73 #include <TColStd_IndexedMapOfInteger.hxx>
79 class TElementSimulation{
81 QAD_StudyFrame* myStudyFrame;
82 VTKViewer_ViewFrame* myViewFrame;
84 SALOME_Actor *myPreviewActor;
85 vtkDataSetMapper* myMapper;
86 vtkUnstructuredGrid* myGrid;
90 TElementSimulation(QAD_Study* theStudy):
92 myStudyFrame(theStudy->getActiveStudyFrame()),
93 myViewFrame(GetVtkViewFrame(theStudy->getActiveStudyFrame()))
95 myGrid = vtkUnstructuredGrid::New();
97 // Create and display actor
98 myMapper = vtkDataSetMapper::New();
99 myMapper->SetInput( myGrid );
101 myPreviewActor = SALOME_Actor::New();
102 myPreviewActor->PickableOff();
103 myPreviewActor->VisibilityOff();
104 myPreviewActor->SetMapper( myMapper );
106 vtkProperty* aProp = vtkProperty::New();
108 anRGB[0] = GetFloat("SMESH:SettingsFillColorRed", 0)/255.;
109 anRGB[1] = GetFloat("SMESH:SettingsFillColorGreen", 170)/255.;
110 anRGB[2] = GetFloat("SMESH:SettingsFillColorBlue", 255)/255.;
111 aProp->SetColor(anRGB[0],anRGB[1],anRGB[2]);
112 myPreviewActor->SetProperty( aProp );
115 vtkProperty* aBackProp = vtkProperty::New();
116 anRGB[0] = GetFloat("SMESH:SettingsBackFaceColorRed", 0)/255.;
117 anRGB[1] = GetFloat("SMESH:SettingsBackFaceColorGreen", 0)/255.;
118 anRGB[2] = GetFloat("SMESH:SettingsBackFaceColorBlue", 255)/255.;
119 aBackProp->SetColor(anRGB[0],anRGB[1],anRGB[2]);
120 myPreviewActor->SetBackfaceProperty( aBackProp );
123 myViewFrame->AddActor( myPreviewActor );
128 typedef std::vector<vtkIdType> TVTKIds;
129 void SetPosition(SMESH_Actor* theActor,
131 const TVTKIds& theIds)
133 vtkUnstructuredGrid *aGrid = theActor->GetUnstructuredGrid();
134 myGrid->SetPoints(aGrid->GetPoints());
136 const int* aConn = NULL;
139 static int anIds[] = {0,2,1,3};
144 static int anIds[] = {0,3,2,1,4};
148 case VTK_HEXAHEDRON:{
149 static int anIds[] = {0,3,2,1,4,7,6,5};
155 vtkIdList *anIds = vtkIdList::New();
158 for (int i = 0, iEnd = theIds.size(); i < iEnd; i++)
159 anIds->InsertId(i,theIds[aConn[i]]);
161 for (int i = 0, iEnd = theIds.size(); i < iEnd; i++)
162 anIds->InsertId(i,theIds[i]);
164 myGrid->InsertNextCell(theType,anIds);
173 void SetVisibility(bool theVisibility){
174 myPreviewActor->SetVisibility(theVisibility);
175 RepaintCurrentView();
179 ~TElementSimulation(){
180 if(FindVtkViewFrame(myStudy,myStudyFrame)){
181 myViewFrame->RemoveActor(myPreviewActor);
183 myPreviewActor->Delete();
185 myMapper->RemoveAllInputs();
195 //=================================================================================
196 // class : SMESHGUI_AddMeshElementDlg()
198 //=================================================================================
199 SMESHGUI_AddMeshElementDlg::SMESHGUI_AddMeshElementDlg( QWidget* parent, const char* name,
200 SALOME_Selection* Sel,
201 SMDSAbs_ElementType ElementType, int nbNodes,
202 bool modal, WFlags fl )
203 : QDialog( parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu |
204 Qt::WDestructiveClose)
207 mySimulation = new SMESH::TElementSimulation(SMESH::GetActiveStudy());
209 // verify nb nodes and type
211 myElementType = ElementType;
212 switch ( ElementType ) {
217 myElementType = SMDSAbs_Edge;
224 else if (myNbNodes == 3)
225 elemName = "TRIANGLE";
226 else if (myNbNodes == 4)
227 if (myElementType == SMDSAbs_Face)
228 elemName = "QUADRANGLE";
231 else if (myNbNodes == 8)
233 else if (myElementType == SMDSAbs_Face){
234 elemName = "POLYGON";
238 elemName = "POLYHEDRON";
242 QString iconName = tr( QString("ICON_DLG_%1").arg(elemName) );
243 QString buttonGrTitle = tr( QString("SMESH_%1").arg(elemName) );
244 QString caption = tr( QString("SMESH_ADD_%1_TITLE").arg(elemName) );
245 QString grBoxTitle = tr( QString("SMESH_ADD_%1").arg(elemName) );
247 QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap( "SMESH", iconName ));
248 QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap( "SMESH", tr("ICON_SELECT")));
251 setName( "SMESHGUI_AddMeshElementDlg" );
253 setCaption( caption );
255 setSizeGripEnabled( TRUE );
256 SMESHGUI_AddMeshElementDlgLayout = new QGridLayout( this );
257 SMESHGUI_AddMeshElementDlgLayout->setSpacing( 6 );
258 SMESHGUI_AddMeshElementDlgLayout->setMargin( 11 );
260 /***************************************************************/
261 GroupConstructors = new QButtonGroup( this, "GroupConstructors" );
262 GroupConstructors->setTitle( buttonGrTitle );
264 GroupConstructors->setExclusive( TRUE );
265 GroupConstructors->setColumnLayout(0, Qt::Vertical );
266 GroupConstructors->layout()->setSpacing( 0 );
267 GroupConstructors->layout()->setMargin( 0 );
268 GroupConstructorsLayout = new QGridLayout( GroupConstructors->layout() );
269 GroupConstructorsLayout->setAlignment( Qt::AlignTop );
270 GroupConstructorsLayout->setSpacing( 6 );
271 GroupConstructorsLayout->setMargin( 11 );
272 Constructor1 = new QRadioButton( GroupConstructors, "Constructor1" );
273 Constructor1->setText( tr( "" ) );
274 Constructor1->setPixmap( image0 );
275 Constructor1->setChecked( TRUE );
276 Constructor1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, Constructor1->sizePolicy().hasHeightForWidth() ) );
277 Constructor1->setMinimumSize( QSize( 50, 0 ) );
278 GroupConstructorsLayout->addWidget( Constructor1, 0, 0 );
279 QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
280 GroupConstructorsLayout->addItem( spacer, 0, 1 );
281 SMESHGUI_AddMeshElementDlgLayout->addWidget( GroupConstructors, 0, 0 );
283 /***************************************************************/
284 GroupButtons = new QGroupBox( this, "GroupButtons" );
285 GroupButtons->setGeometry( QRect( 10, 10, 281, 48 ) );
286 GroupButtons->setTitle( tr( "" ) );
287 GroupButtons->setColumnLayout(0, Qt::Vertical );
288 GroupButtons->layout()->setSpacing( 0 );
289 GroupButtons->layout()->setMargin( 0 );
290 GroupButtonsLayout = new QGridLayout( GroupButtons->layout() );
291 GroupButtonsLayout->setAlignment( Qt::AlignTop );
292 GroupButtonsLayout->setSpacing( 6 );
293 GroupButtonsLayout->setMargin( 11 );
294 buttonCancel = new QPushButton( GroupButtons, "buttonCancel" );
295 buttonCancel->setText( tr( "SMESH_BUT_CLOSE" ) );
296 buttonCancel->setAutoDefault( TRUE );
297 GroupButtonsLayout->addWidget( buttonCancel, 0, 3 );
298 buttonApply = new QPushButton( GroupButtons, "buttonApply" );
299 buttonApply->setText( tr( "SMESH_BUT_APPLY" ) );
300 buttonApply->setAutoDefault( TRUE );
301 GroupButtonsLayout->addWidget( buttonApply, 0, 1 );
302 QSpacerItem* spacer_9 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
303 GroupButtonsLayout->addItem( spacer_9, 0, 2 );
304 buttonOk = new QPushButton( GroupButtons, "buttonOk" );
305 buttonOk->setText( tr( "SMESH_BUT_OK" ) );
306 buttonOk->setAutoDefault( TRUE );
307 buttonOk->setDefault( TRUE );
308 GroupButtonsLayout->addWidget( buttonOk, 0, 0 );
309 SMESHGUI_AddMeshElementDlgLayout->addWidget( GroupButtons, 2, 0 );
311 /***************************************************************/
312 GroupC1 = new QGroupBox( this, "GroupC1" );
313 GroupC1->setTitle( grBoxTitle );
315 GroupC1->setMinimumSize( QSize( 0, 0 ) );
316 GroupC1->setFrameShape( QGroupBox::Box );
317 GroupC1->setFrameShadow( QGroupBox::Sunken );
318 GroupC1->setColumnLayout(0, Qt::Vertical );
319 GroupC1->layout()->setSpacing( 0 );
320 GroupC1->layout()->setMargin( 0 );
321 GroupC1Layout = new QGridLayout( GroupC1->layout() );
322 GroupC1Layout->setAlignment( Qt::AlignTop );
323 GroupC1Layout->setSpacing( 6 );
324 GroupC1Layout->setMargin( 11 );
325 TextLabelC1A1 = new QLabel( GroupC1, "TextLabelC1A1" );
326 TextLabelC1A1->setText( tr( "SMESH_ID_NODES" ) );
327 TextLabelC1A1->setMinimumSize( QSize( 50, 0 ) );
328 TextLabelC1A1->setFrameShape( QLabel::NoFrame );
329 TextLabelC1A1->setFrameShadow( QLabel::Plain );
330 GroupC1Layout->addWidget( TextLabelC1A1, 0, 0 );
331 SelectButtonC1A1 = new QPushButton( GroupC1, "SelectButtonC1A1" );
332 SelectButtonC1A1->setText( tr( "" ) );
333 SelectButtonC1A1->setPixmap( image1 );
334 SelectButtonC1A1->setToggleButton( FALSE );
335 GroupC1Layout->addWidget( SelectButtonC1A1, 0, 1 );
336 LineEditC1A1 = new QLineEdit( GroupC1, "LineEditC1A1" );
337 // LineEditC1A1->setReadOnly( TRUE );
338 if (elemName != "POLYGON" && elemName != "POLYHEDRON")
339 LineEditC1A1->setValidator( new SMESHGUI_IdValidator( this, "validator", myNbNodes));
340 GroupC1Layout->addWidget( LineEditC1A1, 0, 2 );
342 if ( myElementType == SMDSAbs_Face ) {
343 Reverse = new QCheckBox( GroupC1, "Reverse" );
344 Reverse->setText( tr( "SMESH_REVERSE" ) );
345 GroupC1Layout->addWidget( Reverse, 1, 0 );
350 SMESHGUI_AddMeshElementDlgLayout->addWidget( GroupC1, 1, 0 );
352 Init(Sel) ; /* Initialisations */
355 //=================================================================================
356 // function : ~SMESHGUI_AddMeshElementDlg()
357 // purpose : Destroys the object and frees any allocated resources
358 //=================================================================================
359 SMESHGUI_AddMeshElementDlg::~SMESHGUI_AddMeshElementDlg()
361 // no need to delete child widgets, Qt does it all for us
366 //=================================================================================
369 //=================================================================================
370 void SMESHGUI_AddMeshElementDlg::Init( SALOME_Selection* Sel )
374 Constructor1->setChecked( TRUE );
375 myEditCurrentArgument = LineEditC1A1 ;
377 mySMESHGUI = SMESHGUI::GetSMESHGUI() ;
378 mySMESHGUI->SetActiveDialogBox( (QDialog*)this ) ;
383 /* signals and slots connections */
384 connect(buttonOk, SIGNAL( clicked() ), SLOT( ClickOnOk() ) );
385 connect(buttonCancel, SIGNAL( clicked() ), SLOT( ClickOnCancel() ) ) ;
386 connect(buttonApply, SIGNAL( clicked() ), SLOT(ClickOnApply() ) );
388 connect(SelectButtonC1A1, SIGNAL( clicked() ), SLOT( SetEditCurrentArgument() ) ) ;
389 connect(LineEditC1A1, SIGNAL( textChanged(const QString&) ), SLOT(onTextChange(const QString&)));
390 connect(mySMESHGUI, SIGNAL ( SignalDeactivateActiveDialog() ), SLOT( DeactivateActiveDialog()));
391 connect(mySelection, SIGNAL( currentSelectionChanged() ), SLOT( SelectionIntoArgument() ) );
392 /* to close dialog if study frame change */
393 connect( mySMESHGUI, SIGNAL ( SignalStudyFrameChanged() ), SLOT( ClickOnCancel() ) ) ;
396 connect( Reverse, SIGNAL(stateChanged(int)), SLOT(CheckBox(int)) );
398 /* Move widget on the botton right corner of main widget */
400 mySMESHGUI->DefineDlgPosition( this, x, y ) ;
402 this->show() ; /* displays Dialog */
404 // set selection mode
405 SMESH::SetPointRepresentation(true);
406 QAD_Application::getDesktop()->SetSelectionMode( NodeSelection, true );
408 SelectionIntoArgument();
413 //=================================================================================
414 // function : ClickOnApply()
416 //=================================================================================
417 void SMESHGUI_AddMeshElementDlg::ClickOnApply()
419 if ( myOkNodes && !mySMESHGUI->ActiveStudyLocked() ) {
422 SMESH::long_array_var anArrayOfIdeces = new SMESH::long_array;
423 anArrayOfIdeces->length( myNbNodes );
424 bool reverse = ( Reverse && Reverse->isChecked() );
425 QStringList aListId = QStringList::split( " ", myEditCurrentArgument->text(), false);
426 for ( int i = 0; i < aListId.count(); i++ )
428 anArrayOfIdeces[i] = aListId[ myNbNodes - i - 1 ].toInt();
430 anArrayOfIdeces[i] = aListId[ i ].toInt();
432 SMESH::SMESH_MeshEditor_var aMeshEditor = myMesh->GetMeshEditor();
433 switch ( myElementType ) {
435 aMeshEditor->AddEdge(anArrayOfIdeces.inout()); break;
437 aMeshEditor->AddFace(anArrayOfIdeces.inout()); break;
439 aMeshEditor->AddVolume(anArrayOfIdeces.inout()); break;
443 mySelection->ClearIObjects();
444 mySelection->AddIObject( myActor->getIO(), false );
447 mySimulation->SetVisibility(false);
449 buttonOk->setEnabled( false );
450 buttonApply->setEnabled( false );
452 myEditCurrentArgument->setText("");
458 //=================================================================================
459 // function : ClickOnOk()
461 //=================================================================================
462 void SMESHGUI_AddMeshElementDlg::ClickOnOk()
464 this->ClickOnApply() ;
465 this->ClickOnCancel() ;
469 //=================================================================================
470 // function : ClickOnCancel()
472 //=================================================================================
473 void SMESHGUI_AddMeshElementDlg::ClickOnCancel()
475 mySelection->ClearIObjects();
476 mySimulation->SetVisibility(false);
477 SMESH::SetPointRepresentation(false);
478 QAD_Application::getDesktop()->SetSelectionMode( ActorSelection );
479 disconnect( mySelection, 0, this, 0 );
480 mySMESHGUI->ResetState() ;
485 //=======================================================================
486 //function : onTextChange
488 //=======================================================================
490 void SMESHGUI_AddMeshElementDlg::onTextChange(const QString& theNewText)
492 if ( myBusy ) return;
497 buttonOk->setEnabled( false );
498 buttonApply->setEnabled( false );
500 mySimulation->SetVisibility(false);
502 // hilight entered nodes
503 SMDS_Mesh* aMesh = 0;
505 aMesh = myActor->GetObject()->GetMesh();
508 mySelection->ClearIObjects();
509 mySelection->AddIObject( myActor->getIO() );
511 QStringList aListId = QStringList::split( " ", theNewText, false);
513 for ( int i = 0; i < aListId.count(); i++ ) {
514 const SMDS_MeshNode * n = aMesh->FindNode( aListId[ i ].toInt() );
516 if ( mySelection->IsIndexSelected( myActor->getIO(), n->GetID() ))
519 mySelection->AddOrRemoveIndex (myActor->getIO(), n->GetID(), true);
525 bool aNodesOK = false;
526 if (myIsPoly && myElementType == SMDSAbs_Face && aListId.count() >=3 ){
527 myNbNodes = aListId.count();
528 cout << __LINE__<<": ENK::DEBUG myNbNodes" << myNbNodes << endl;
530 } else if (myIsPoly && myElementType == SMDSAbs_Volume && aListId.count() >=4 ){
531 myNbNodes = aListId.count();
532 cout << __LINE__<<": ENK::DEBUG myNbNodes" << myNbNodes << endl;
534 } else if (!myIsPoly){
535 aNodesOK = (myNbNodes == aListId.count());
537 myOkNodes = (allOk && aNodesOK);//myNbNodes == aListId.count() );
540 buttonOk->setEnabled( true );
541 buttonApply->setEnabled( true );
549 //=================================================================================
550 // function : SelectionIntoArgument()
551 // purpose : Called when selection has changed
552 //=================================================================================
553 void SMESHGUI_AddMeshElementDlg::SelectionIntoArgument()
555 if ( myBusy ) return;
563 myEditCurrentArgument->setText( "" );
566 if ( !GroupButtons->isEnabled() ) // inactive
569 buttonOk->setEnabled( false );
570 buttonApply->setEnabled( false );
572 mySimulation->SetVisibility(false);
573 // SMESH::SetPointRepresentation(true);
577 int nbSel = mySelection->IObjectCount();
581 myMesh = SMESH::GetMeshByIO( mySelection->firstIObject() );
582 if ( myMesh->_is_nil() )
585 myActor = SMESH::FindActorByEntry( mySelection->firstIObject()->getEntry() );
589 // get selected nodes
591 QString aString = "";
592 int nbNodes = SMESH::GetNameOfSelectedNodes(mySelection, aString) ;
594 myEditCurrentArgument->setText( aString );
596 if (myIsPoly && myElementType == SMDSAbs_Face && nbNodes >= 3 ) {
598 } else if (myIsPoly && myElementType == SMDSAbs_Volume && nbNodes >= 4) {
600 } else if (myNbNodes != nbNodes) {
608 buttonOk->setEnabled( true );
609 buttonApply->setEnabled( true );
614 //=======================================================================
615 //function : displaySimulation
617 //=======================================================================
619 void SMESHGUI_AddMeshElementDlg::displaySimulation()
621 if ( myOkNodes && GroupButtons->isEnabled() )
623 SMESH::TElementSimulation::TVTKIds anIds;
624 QStringList aListId = QStringList::split( " ", myEditCurrentArgument->text(), false);
625 for ( int i = 0; i < aListId.count(); i++ )
626 anIds.push_back( myActor->GetObject()->GetNodeVTKId( aListId[ i ].toInt() ));
628 if ( Reverse && Reverse->isChecked() )
629 reverse(anIds.begin(),anIds.end());
633 switch ( myElementType ) {
634 case SMDSAbs_Face : aType = VTK_POLYGON; break;
635 case SMDSAbs_Volume: aType = VTK_CONVEX_POINT_SET; break;
639 switch ( myNbNodes ) {
640 case 2: aType = VTK_LINE; break;
641 case 3: aType = VTK_TRIANGLE; break;
642 case 4: aType = myElementType == SMDSAbs_Face ? VTK_QUAD : VTK_TETRA; break;
643 case 8: aType = VTK_HEXAHEDRON; break;
648 mySimulation->SetPosition(myActor,aType,anIds);
653 //=================================================================================
654 // function : SetEditCurrentArgument()
656 //=================================================================================
657 void SMESHGUI_AddMeshElementDlg::SetEditCurrentArgument()
659 QPushButton* send = (QPushButton*)sender();
660 if(send == SelectButtonC1A1) {
661 LineEditC1A1->setFocus() ;
662 myEditCurrentArgument = LineEditC1A1;
664 SelectionIntoArgument() ;
667 //=================================================================================
668 // function : DeactivateActiveDialog()
670 //=================================================================================
671 void SMESHGUI_AddMeshElementDlg::DeactivateActiveDialog()
673 if ( GroupConstructors->isEnabled() ) {
674 GroupConstructors->setEnabled(false) ;
675 GroupC1->setEnabled(false) ;
676 GroupButtons->setEnabled(false) ;
677 mySimulation->SetVisibility(false);
678 mySMESHGUI->ResetState() ;
679 mySMESHGUI->SetActiveDialogBox(0) ;
685 //=================================================================================
686 // function : ActivateThisDialog()
688 //=================================================================================
689 void SMESHGUI_AddMeshElementDlg::ActivateThisDialog()
691 /* Emit a signal to deactivate the active dialog */
692 mySMESHGUI->EmitSignalDeactivateDialog() ;
694 GroupConstructors->setEnabled(true) ;
695 GroupC1->setEnabled(true) ;
696 GroupButtons->setEnabled(true) ;
698 SMESH::SetPointRepresentation(true);
699 QAD_Application::getDesktop()->SetSelectionMode( NodeSelection, true );
701 SelectionIntoArgument();
704 //=================================================================================
705 // function : enterEvent()
707 //=================================================================================
708 void SMESHGUI_AddMeshElementDlg::enterEvent(QEvent* e)
710 if ( GroupConstructors->isEnabled() )
712 ActivateThisDialog() ;
717 //=================================================================================
718 // function : closeEvent()
720 //=================================================================================
721 void SMESHGUI_AddMeshElementDlg::closeEvent( QCloseEvent* e )
723 /* same than click on cancel button */
724 this->ClickOnCancel() ;
727 //=======================================================================
728 //function : hideEvent
729 //purpose : caused by ESC key
730 //=======================================================================
732 void SMESHGUI_AddMeshElementDlg::hideEvent ( QHideEvent * e )
734 if ( !isMinimized() )
738 //=======================================================================
739 //function : CheckBox
741 //=======================================================================
743 void SMESHGUI_AddMeshElementDlg::CheckBox( int state )
749 mySimulation->SetVisibility(false);