Class : SMESHGUI_MultiEditDlg Description : Base class for dialogs of diagonal inversion and union of two neighboring triangles. More...
#include <SMESHGUI_MultiEditDlg.h>

Signals | |
| void | ListContensChanged () |
Public Member Functions | |
| SMESHGUI_MultiEditDlg (SMESHGUI *, const int, const bool=false) | |
| Class : SMESHGUI_MultiEditDlg Description : Description : Inversion of the diagonal of a pseudo-quadrangle formed by 2 neighboring triangles with 1 common edge. | |
| virtual | ~SMESHGUI_MultiEditDlg () |
| void | Init () |
| bool | eventFilter (QObject *, QEvent *) |
Protected Slots | |
| void | onOk () |
| virtual bool | onApply () |
| virtual void | onClose () |
| void | onHelp () |
| void | onDeactivate () |
| void | onSelectionDone () |
| void | onFilterBtn () |
| void | onAddBtn () |
| void | onRemoveBtn () |
| void | onSortListBtn () |
| void | onListSelectionChanged () |
| void | onSubmeshChk () |
| void | onGroupChk () |
| virtual void | onToAllChk () |
| void | onFilterAccepted () |
| void | on3d2dChanged (int) |
| SMESH::NumericalFunctor_ptr | getNumericalFunctor () |
Protected Member Functions | |
| void | closeEvent (QCloseEvent *) |
| void | enterEvent (QEvent *) |
| void | hideEvent (QHideEvent *) |
| void | keyPressEvent (QKeyEvent *) |
| QWidget * | createButtonFrame (QWidget *) |
| QWidget * | createMainFrame (QWidget *, const bool) |
| virtual bool | isValid (const bool) |
| SMESH::long_array_var | getIds (SMESH::SMESH_IDSource_var &obj) |
| void | updateButtons () |
| void | setSelectionMode () |
| virtual bool | isIdValid (const int) const |
| virtual bool | process (SMESH::SMESH_MeshEditor_ptr, const SMESH::long_array &, SMESH::SMESH_IDSource_ptr obj)=0 |
| int | entityType () |
Protected Attributes | |
| QPushButton * | myOkBtn |
| QPushButton * | myApplyBtn |
| QPushButton * | myCloseBtn |
| QPushButton * | myHelpBtn |
| SMESH_Actor * | myActor |
| SMESH::SMESH_Mesh_var | myMesh |
| LightApp_SelectionMgr * | mySelectionMgr |
| SVTK_Selector * | mySelector |
| SMESHGUI * | mySMESHGUI |
| QGroupBox * | mySelGrp |
| QGroupBox * | myCriterionGrp |
| QWidget * | myChoiceWidget |
| QButtonGroup * | myGroupChoice |
| QComboBox * | myComboBoxFunctor |
| QListWidget * | myListBox |
| QPushButton * | myFilterBtn |
| QPushButton * | myAddBtn |
| QPushButton * | myRemoveBtn |
| QPushButton * | mySortBtn |
| QCheckBox * | myToAllChk |
| QButtonGroup * | myEntityTypeGrp |
| QCheckBox * | mySubmeshChk |
| QPushButton * | mySubmeshBtn |
| QLineEdit * | mySubmesh |
| QCheckBox * | myGroupChk |
| QPushButton * | myGroupBtn |
| QLineEdit * | myGroup |
| SMESHGUI_FilterDlg * | myFilterDlg |
| TColStd_MapOfInteger | myIds |
| int | myFilterType |
| bool | myBusy |
| int | myEntityType |
| QString | myHelpFileName |
Class : SMESHGUI_MultiEditDlg Description : Base class for dialogs of diagonal inversion and union of two neighboring triangles.
Definition at line 67 of file SMESHGUI_MultiEditDlg.h.
| SMESHGUI_MultiEditDlg::SMESHGUI_MultiEditDlg | ( | SMESHGUI * | theModule, |
| const int | theMode, | ||
| const bool | the3d2d = false |
||
| ) |
Class : SMESHGUI_MultiEditDlg Description : Description : Inversion of the diagonal of a pseudo-quadrangle formed by 2 neighboring triangles with 1 common edge.
Definition at line 105 of file SMESHGUI_MultiEditDlg.cxx.
References batchmode_smesh.Init(), MARGIN, and SPACING.
: QDialog(SMESH::GetDesktop(theModule)), mySelector(SMESH::GetViewWindow(theModule)->GetSelector()), mySelectionMgr(SMESH::GetSelectionMgr(theModule)), mySMESHGUI(theModule) { setModal(false); setAttribute(Qt::WA_DeleteOnClose, true); myFilterDlg = 0; myEntityType = 0; myFilterType = theMode; QVBoxLayout* aDlgLay = new QVBoxLayout(this); aDlgLay->setMargin(MARGIN); aDlgLay->setSpacing(SPACING); QWidget* aMainFrame = createMainFrame (this, the3d2d); QWidget* aBtnFrame = createButtonFrame(this); aDlgLay->addWidget(aMainFrame); aDlgLay->addWidget(aBtnFrame); Init(); }
| SMESHGUI_MultiEditDlg::~SMESHGUI_MultiEditDlg | ( | ) | [virtual] |
Definition at line 314 of file SMESHGUI_MultiEditDlg.cxx.
References myFilterDlg.
{
if (myFilterDlg != 0)
{
myFilterDlg->setParent(0);
delete myFilterDlg;
}
}
| void SMESHGUI_MultiEditDlg::closeEvent | ( | QCloseEvent * | ) | [protected] |
Definition at line 276 of file SMESHGUI_MultiEditDlg.cxx.
References MARGIN, myApplyBtn, myCloseBtn, myHelpBtn, myOkBtn, and SPACING.
{
QGroupBox* aFrame = new QGroupBox(theParent);
myOkBtn = new QPushButton (tr("SMESH_BUT_APPLY_AND_CLOSE"), aFrame);
myApplyBtn = new QPushButton (tr("SMESH_BUT_APPLY"), aFrame);
myCloseBtn = new QPushButton (tr("SMESH_BUT_CLOSE"), aFrame);
myHelpBtn = new QPushButton (tr("SMESH_BUT_HELP"), aFrame);
QHBoxLayout* aLay = new QHBoxLayout (aFrame);
aLay->setMargin(MARGIN);
aLay->setSpacing(SPACING);
aLay->addWidget(myOkBtn);
aLay->addSpacing(10);
aLay->addWidget(myApplyBtn);
aLay->addSpacing(10);
aLay->addStretch();
aLay->addWidget(myCloseBtn);
aLay->addWidget(myHelpBtn);
return aFrame;
}
| QWidget * SMESHGUI_MultiEditDlg::createMainFrame | ( | QWidget * | theParent, |
| const bool | the3d2d | ||
| ) | [protected] |
Definition at line 137 of file SMESHGUI_MultiEditDlg.cxx.
References SMESH.GetResourceMgr(), MARGIN, myAddBtn, myChoiceWidget, myComboBoxFunctor, myCriterionGrp, myEntityType, myEntityTypeGrp, myFilterBtn, myGroup, myGroupBtn, myGroupChk, myGroupChoice, myListBox, myRemoveBtn, mySelGrp, mySMESHGUI, mySortBtn, mySubmesh, mySubmeshBtn, mySubmeshChk, myToAllChk, and SPACING.
{
QWidget* aMainGrp = new QWidget(theParent);
QVBoxLayout* aMainGrpLayout = new QVBoxLayout(aMainGrp);
aMainGrpLayout->setMargin(0);
aMainGrpLayout->setSpacing(SPACING);
QPixmap aPix (SMESH::GetResourceMgr( mySMESHGUI )->loadPixmap("SMESH", tr("ICON_SELECT")));
// "Selected cells" group
mySelGrp = new QGroupBox(aMainGrp);
QGridLayout* mySelGrpLayout = new QGridLayout(mySelGrp);
mySelGrpLayout->setMargin(MARGIN);
mySelGrpLayout->setSpacing(SPACING);
myEntityTypeGrp = 0;
if (the3d2d) {
QGroupBox* aEntityTypeGrp = new QGroupBox(tr("SMESH_ELEMENTS_TYPE"), mySelGrp);
myEntityTypeGrp = new QButtonGroup(mySelGrp);
QHBoxLayout* aEntityLayout = new QHBoxLayout(aEntityTypeGrp);
aEntityLayout->setMargin(MARGIN);
aEntityLayout->setSpacing(SPACING);
QRadioButton* aFaceRb = new QRadioButton(tr("SMESH_FACE"), aEntityTypeGrp);
QRadioButton* aVolumeRb = new QRadioButton(tr("SMESH_VOLUME"), aEntityTypeGrp);
aEntityLayout->addWidget(aFaceRb);
aEntityLayout->addWidget(aVolumeRb);
myEntityTypeGrp->addButton(aFaceRb, 0);
myEntityTypeGrp->addButton(aVolumeRb, 1);
aFaceRb->setChecked(true);
myEntityType = myEntityTypeGrp->checkedId();
mySelGrpLayout->addWidget(aEntityTypeGrp, 0, 0, 1, 2);
}
myListBox = new QListWidget(mySelGrp);
myListBox->setSelectionMode(QListWidget::ExtendedSelection);
myListBox->setSizePolicy(QSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding));
myListBox->installEventFilter(this);
myFilterBtn = new QPushButton(tr("FILTER"), mySelGrp);
myAddBtn = new QPushButton(tr("ADD"), mySelGrp);
myRemoveBtn = new QPushButton(tr("REMOVE"), mySelGrp);
mySortBtn = new QPushButton(tr("SORT_LIST"), mySelGrp);
int row = mySelGrpLayout->rowCount();
mySelGrpLayout->addWidget(myListBox, row, 0, 6, 1);
mySelGrpLayout->addWidget(myFilterBtn, row, 1);
mySelGrpLayout->addWidget(myAddBtn, row+2, 1);
mySelGrpLayout->addWidget(myRemoveBtn, row+3, 1);
mySelGrpLayout->addWidget(mySortBtn, row+5, 1);
mySelGrpLayout->setRowMinimumHeight(row+1, 10);
mySelGrpLayout->setRowMinimumHeight(row+4, 10);
mySelGrpLayout->setRowStretch(row+1, 5);
mySelGrpLayout->setRowStretch(row+4, 5);
myToAllChk = new QCheckBox(tr("TO_ALL"), mySelGrp);
mySelGrpLayout->addWidget(myToAllChk, mySelGrpLayout->rowCount(), 0,
1, mySelGrpLayout->columnCount());
// Split/Join criterion group
myCriterionGrp = new QGroupBox(tr("SPLIT_JOIN_CRITERION"), aMainGrp);
QVBoxLayout* aCriterionLayout = new QVBoxLayout(myCriterionGrp);
aCriterionLayout->setMargin(MARGIN);
aCriterionLayout->setSpacing(SPACING);
myChoiceWidget = new QWidget(myCriterionGrp);
myGroupChoice = new QButtonGroup(myChoiceWidget);
QVBoxLayout* aGroupChoiceLayout = new QVBoxLayout(myChoiceWidget);
aGroupChoiceLayout->setMargin(0);
aGroupChoiceLayout->setSpacing(SPACING);
QRadioButton* aDiag13RB = new QRadioButton(tr("USE_DIAGONAL_1_3"), myChoiceWidget);
QRadioButton* aDiag24RB = new QRadioButton(tr("USE_DIAGONAL_2_4"), myChoiceWidget);
QRadioButton* aNumFuncRB = new QRadioButton(tr("USE_NUMERIC_FUNC"), myChoiceWidget);
aGroupChoiceLayout->addWidget(aDiag13RB);
aGroupChoiceLayout->addWidget(aDiag24RB);
aGroupChoiceLayout->addWidget(aNumFuncRB);
myGroupChoice->addButton(aDiag13RB, 0);
myGroupChoice->addButton(aDiag24RB, 1);
myGroupChoice->addButton(aNumFuncRB, 2);
aDiag13RB->setChecked(true);
myComboBoxFunctor = new QComboBox(myCriterionGrp);
myComboBoxFunctor->addItem(tr("ASPECTRATIO_ELEMENTS"));
myComboBoxFunctor->addItem(tr("MINIMUMANGLE_ELEMENTS"));
myComboBoxFunctor->addItem(tr("SKEW_ELEMENTS"));
myComboBoxFunctor->addItem(tr("AREA_ELEMENTS"));
//myComboBoxFunctor->addItem(tr("LENGTH2D_EDGES")); // for existing elements only
//myComboBoxFunctor->addItem(tr("MULTI2D_BORDERS")); // for existing elements only
myComboBoxFunctor->setCurrentIndex(0);
aCriterionLayout->addWidget(myChoiceWidget);
aCriterionLayout->addWidget(myComboBoxFunctor);
myCriterionGrp->hide();
myChoiceWidget->hide();
myComboBoxFunctor->setEnabled(false);
// "Select from" group
QGroupBox* aGrp = new QGroupBox(tr("SELECT_FROM"), aMainGrp);
QGridLayout* aGrpLayout = new QGridLayout(aGrp);
aGrpLayout->setMargin(MARGIN);
aGrpLayout->setSpacing(SPACING);
mySubmeshChk = new QCheckBox(tr("SMESH_SUBMESH"), aGrp);
mySubmeshBtn = new QPushButton(aGrp);
mySubmesh = new QLineEdit(aGrp);
mySubmesh->setReadOnly(true);
mySubmeshBtn->setIcon(aPix);
myGroupChk = new QCheckBox(tr("SMESH_GROUP"), aGrp);
myGroupBtn = new QPushButton(aGrp);
myGroup = new QLineEdit(aGrp);
myGroup->setReadOnly(true);
myGroupBtn->setIcon(aPix);
aGrpLayout->addWidget(mySubmeshChk,0,0);
aGrpLayout->addWidget(mySubmeshBtn,0,1);
aGrpLayout->addWidget(mySubmesh,0,2);
aGrpLayout->addWidget(myGroupChk,1,0);
aGrpLayout->addWidget(myGroupBtn,1,1);
aGrpLayout->addWidget(myGroup,1,2);
aMainGrpLayout->addWidget(mySelGrp);
aMainGrpLayout->addWidget(myCriterionGrp);
aMainGrpLayout->addWidget(aGrp);
return aMainGrp;
}
| void SMESHGUI_MultiEditDlg::enterEvent | ( | QEvent * | ) | [protected] |
Definition at line 638 of file SMESHGUI_MultiEditDlg.cxx.
References SMESHGUI.EmitSignalDeactivateDialog(), mySMESHGUI, and setSelectionMode().
{
if (!isEnabled()) {
mySMESHGUI->EmitSignalDeactivateDialog();
setEnabled(true);
setSelectionMode();
}
}
| int SMESHGUI_MultiEditDlg::entityType | ( | ) | [protected] |
Definition at line 1097 of file SMESHGUI_MultiEditDlg.cxx.
References myEntityType.
Referenced by onAddBtn(), onFilterBtn(), and setSelectionMode().
{
return myEntityType;
}
Definition at line 327 of file SMESHGUI_MultiEditDlg.cxx.
References myListBox, and onRemoveBtn().
{
if (object == myListBox && event->type() == QEvent::KeyPress) {
QKeyEvent* ke = (QKeyEvent*)event;
if (ke->key() == Qt::Key_Delete)
onRemoveBtn();
}
return QDialog::eventFilter(object, event);
}
| SMESH::long_array_var SMESHGUI_MultiEditDlg::getIds | ( | SMESH::SMESH_IDSource_var & | obj | ) | [protected] |
Definition at line 432 of file SMESHGUI_MultiEditDlg.cxx.
References SMESH_BelongToGeom.anIds, myIds, myMesh, and myToAllChk.
Referenced by SMESHGUI_CuttingOfQuadsDlg.displayPreview(), and onApply().
{
SMESH::long_array_var anIds = new SMESH::long_array;
if (myToAllChk->isChecked())
{
myIds.Clear();
obj = SMESH::SMESH_IDSource::_narrow( myMesh );
// SMESH_Actor * anActor = SMESH::FindActorByObject(myMesh);
// if (!anActor)
// anActor = myActor;
// if (anActor != 0)
// {
// // skl 07.02.2006
// SMDS_Mesh* aMesh = myActor->GetObject()->GetMesh();
// if( myFilterType == SMESH::TriaFilter ||
// myFilterType == SMESH::QuadFilter ||
// myFilterType == SMESH::FaceFilter ) {
// SMDS_FaceIteratorPtr it = aMesh->facesIterator();
// while(it->more()) {
// const SMDS_MeshFace* f = it->next();
// if(myFilterType == SMESH::FaceFilter) {
// myIds.Add(f->GetID());
// }
// else if( myFilterType==SMESH::TriaFilter &&
// ( f->NbNodes()==3 || f->NbNodes()==6 ) ) {
// myIds.Add(f->GetID());
// }
// else if( myFilterType==SMESH::QuadFilter &&
// ( f->NbNodes()==4 || f->NbNodes()==8 ) ) {
// myIds.Add(f->GetID());
// }
// }
// }
// else if(myFilterType == SMESH::VolumeFilter) {
// SMDS_VolumeIteratorPtr it = aMesh->volumesIterator();
// while(it->more()) {
// const SMDS_MeshVolume* f = it->next();
// myIds.Add(f->GetID());
// }
// }
/* commented by skl 07.02.2006 - to work with quadratic elements
TVisualObjPtr aVisualObj = anActor->GetObject();
vtkUnstructuredGrid* aGrid = aVisualObj->GetUnstructuredGrid();
if (aGrid != 0) {
for (int i = 0, n = aGrid->GetNumberOfCells(); i < n; i++) {
vtkCell* aCell = aGrid->GetCell(i);
if (aCell != 0) {
vtkTriangle* aTri = vtkTriangle::SafeDownCast(aCell);
vtkQuad* aQua = vtkQuad::SafeDownCast(aCell);
vtkPolygon* aPG = vtkPolygon::SafeDownCast(aCell);
vtkCell3D* a3d = vtkCell3D::SafeDownCast(aCell);
vtkConvexPointSet* aPH = vtkConvexPointSet::SafeDownCast(aCell);
if (aTri && myFilterType == SMESHGUI_TriaFilter ||
aQua && myFilterType == SMESHGUI_QuadFilter ||
(aTri || aQua || aPG) && myFilterType == SMESHGUI_FaceFilter ||
(a3d || aPH) && myFilterType == SMESHGUI_VolumeFilter) {
int anObjId = aVisualObj->GetElemObjId(i);
myIds.Add(anObjId);
}
}
}
}
*/
//}
}
anIds->length(myIds.Extent());
TColStd_MapIteratorOfMapOfInteger anIter(myIds);
for (int i = 0; anIter.More(); anIter.Next() )
{
anIds[ i++ ] = anIter.Key();
}
return anIds._retn();
}
| SMESH::NumericalFunctor_ptr SMESHGUI_MultiEditDlg::getNumericalFunctor | ( | ) | [protected, slot] |
Definition at line 341 of file SMESHGUI_MultiEditDlg.cxx.
References SMESH.GetFilterManager(), and myComboBoxFunctor.
Referenced by SMESHGUI_CuttingOfQuadsDlg.displayPreview(), SMESHGUI_CuttingOfQuadsDlg.process(), and SMESHGUI_UnionOfTrianglesDlg.process().
{
SMESH::NumericalFunctor_var aNF = SMESH::NumericalFunctor::_nil();
SMESH::FilterManager_var aFilterMgr = SMESH::GetFilterManager();
if (aFilterMgr->_is_nil())
return aNF._retn();
if (myComboBoxFunctor->currentText() == tr("ASPECTRATIO_ELEMENTS"))
aNF = aFilterMgr->CreateAspectRatio();
else if (myComboBoxFunctor->currentText() == tr("WARP_ELEMENTS"))
aNF = aFilterMgr->CreateWarping();
else if (myComboBoxFunctor->currentText() == tr("MINIMUMANGLE_ELEMENTS"))
aNF = aFilterMgr->CreateMinimumAngle();
else if (myComboBoxFunctor->currentText() == tr("TAPER_ELEMENTS"))
aNF = aFilterMgr->CreateTaper();
else if (myComboBoxFunctor->currentText() == tr("SKEW_ELEMENTS"))
aNF = aFilterMgr->CreateSkew();
else if (myComboBoxFunctor->currentText() == tr("AREA_ELEMENTS"))
aNF = aFilterMgr->CreateArea();
else if (myComboBoxFunctor->currentText() == tr("LENGTH2D_EDGES"))
aNF = aFilterMgr->CreateLength2D();
else if (myComboBoxFunctor->currentText() == tr("MULTI2D_BORDERS"))
aNF = aFilterMgr->CreateMultiConnection2D();
else;
return aNF._retn();
}
| void SMESHGUI_MultiEditDlg::hideEvent | ( | QHideEvent * | ) | [protected] |
Definition at line 659 of file SMESHGUI_MultiEditDlg.cxx.
References onClose().
{
if (!isMinimized())
onClose();
}
| void SMESHGUI_MultiEditDlg::Init | ( | ) |
Definition at line 374 of file SMESHGUI_MultiEditDlg.cxx.
References ListContensChanged(), myActor, myAddBtn, myApplyBtn, myBusy, myCloseBtn, myEntityTypeGrp, myFilterBtn, myGroupChk, myHelpBtn, myIds, myListBox, myOkBtn, myRemoveBtn, mySelectionMgr, mySMESHGUI, mySortBtn, mySubmeshChk, myToAllChk, on3d2dChanged(), onAddBtn(), onApply(), onClose(), onDeactivate(), onFilterBtn(), onGroupChk(), onHelp(), onListSelectionChanged(), onOk(), onRemoveBtn(), onSelectionDone(), onSortListBtn(), onSubmeshChk(), onToAllChk(), SMESHGUI.SetActiveDialogBox(), setSelectionMode(), and updateButtons().
{
mySMESHGUI->SetActiveDialogBox((QDialog*)this);
myListBox->clear();
myIds.Clear();
myBusy = false;
myActor = 0;
emit ListContensChanged();
// main buttons
connect(myOkBtn, SIGNAL(clicked()), SLOT(onOk()));
connect(myCloseBtn, SIGNAL(clicked()), SLOT(onClose()));
connect(myApplyBtn, SIGNAL(clicked()), SLOT(onApply()));
connect(myHelpBtn, SIGNAL(clicked()), SLOT(onHelp()));
// selection and SMESHGUI
connect(mySelectionMgr, SIGNAL(currentSelectionChanged()), SLOT(onSelectionDone()));
connect(mySMESHGUI, SIGNAL(SignalDeactivateActiveDialog()), SLOT(onDeactivate()));
connect(mySMESHGUI, SIGNAL(SignalCloseAllDialogs()), SLOT(onClose()));
// dialog controls
connect(myFilterBtn, SIGNAL(clicked()), SLOT(onFilterBtn() ));
connect(myAddBtn, SIGNAL(clicked()), SLOT(onAddBtn() ));
connect(myRemoveBtn, SIGNAL(clicked()), SLOT(onRemoveBtn() ));
connect(mySortBtn, SIGNAL(clicked()), SLOT(onSortListBtn()));
connect(mySubmeshChk, SIGNAL(stateChanged(int)), SLOT(onSubmeshChk()));
connect(myGroupChk, SIGNAL(stateChanged(int)), SLOT(onGroupChk() ));
connect(myToAllChk, SIGNAL(stateChanged(int)), SLOT(onToAllChk() ));
if (myEntityTypeGrp)
connect(myEntityTypeGrp, SIGNAL(buttonClicked(int)), SLOT(on3d2dChanged(int)));
connect(myListBox, SIGNAL(itemSelectionChanged()), SLOT(onListSelectionChanged()));
onSelectionDone();
// set selection mode
setSelectionMode();
updateButtons();
}
Definition at line 714 of file SMESHGUI_MultiEditDlg.cxx.
References SMESH.DownCast(), SMESH.GetSelector(), Handle(), and myFilterType.
Referenced by onAddBtn().
{
SVTK_Selector* aSelector = SMESH::GetSelector();
Handle(SMESHGUI_Filter) aFilter =
Handle(SMESHGUI_Filter)::DownCast(aSelector->GetFilter(myFilterType));
return (!aFilter.IsNull() && aFilter->IsObjValid(theId));
}
Reimplemented in SMESHGUI_UnionOfTrianglesDlg.
Definition at line 304 of file SMESHGUI_MultiEditDlg.cxx.
References myListBox, myMesh, and myToAllChk.
Referenced by onApply(), and updateButtons().
{
return (!myMesh->_is_nil() &&
(myListBox->count() > 0 || (myToAllChk->isChecked()/* && myActor*/)));
}
| void SMESHGUI_MultiEditDlg::keyPressEvent | ( | QKeyEvent * | e | ) | [protected] |
Definition at line 1106 of file SMESHGUI_MultiEditDlg.cxx.
References onHelp().
{
QDialog::keyPressEvent( e );
if ( e->isAccepted() )
return;
if ( e->key() == Qt::Key_F1 ) {
e->accept();
onHelp();
}
}
| void SMESHGUI_MultiEditDlg.ListContensChanged | ( | ) | [signal] |
Referenced by Init(), on3d2dChanged(), onAddBtn(), onApply(), onFilterAccepted(), onRemoveBtn(), and onToAllChk().
| void SMESHGUI_MultiEditDlg::on3d2dChanged | ( | int | type | ) | [protected, slot] |
Definition at line 1073 of file SMESHGUI_MultiEditDlg.cxx.
References SMESH.FaceFilter, ListContensChanged(), myEntityType, myFilterType, myIds, myListBox, setSelectionMode(), updateButtons(), and SMESH.VolumeFilter.
Referenced by Init().
{
if (myEntityType != type) {
myEntityType = type;
myListBox->clear();
myIds.Clear();
emit ListContensChanged();
if (type)
myFilterType = SMESH::VolumeFilter;
else
myFilterType = SMESH::FaceFilter;
updateButtons();
setSelectionMode();
}
}
| void SMESHGUI_MultiEditDlg::onAddBtn | ( | ) | [protected, slot] |
Definition at line 728 of file SMESHGUI_MultiEditDlg.cxx.
References SMESH_controls.aGroup, SMESH_BelongToGeom.anIds, entityType(), SMESH.FACE, isIdValid(), ListContensChanged(), myBusy, myGroupChk, myIds, myListBox, myMesh, mySelector, mySubmeshChk, onListSelectionChanged(), updateButtons(), and SMESH.VOLUME.
Referenced by Init().
{
const SALOME_ListIO& aList = mySelector->StoredIObjects();
int nbSelected = aList.Extent();
if (nbSelected == 0)
return;
TColStd_IndexedMapOfInteger toBeAdded;
if (!mySubmeshChk->isChecked() && !myGroupChk->isChecked()) {
if (nbSelected > 0)
mySelector->GetIndex(aList.First(),toBeAdded);
} else if (mySubmeshChk->isChecked()) {
SALOME_ListIteratorOfListIO anIter(aList);
for ( ; anIter.More(); anIter.Next()) {
SMESH::SMESH_subMesh_var aSubMesh =
SMESH::IObjectToInterface<SMESH::SMESH_subMesh>(anIter.Value());
if (!aSubMesh->_is_nil()) {
if (aSubMesh->GetFather()->GetId() == myMesh->GetId()) {
SMESH::long_array_var anIds = aSubMesh->GetElementsId();
for (int i = 0, n = anIds->length(); i < n; i++) {
if (isIdValid(anIds[ i ]))
toBeAdded.Add(anIds[ i ]);
}
}
}
}
} else if (myGroupChk->isChecked()) {
SALOME_ListIteratorOfListIO anIter(aList);
for ( ; anIter.More(); anIter.Next()) {
SMESH::SMESH_GroupBase_var aGroup =
SMESH::IObjectToInterface<SMESH::SMESH_GroupBase>(anIter.Value());
if (!aGroup->_is_nil() && ((aGroup->GetType() == SMESH::FACE && entityType() == 0) ||
(aGroup->GetType() == SMESH::VOLUME && entityType() == 1))) {
if (aGroup->GetMesh()->GetId() == myMesh->GetId()) {
SMESH::long_array_var anIds = aGroup->GetListOfID();
for (int i = 0, n = anIds->length(); i < n; i++) {
if (isIdValid(anIds[ i ]))
toBeAdded.Add(anIds[ i ]);
}
}
}
}
} else {
}
myBusy = true;
bool isGroupOrSubmesh = (mySubmeshChk->isChecked() || myGroupChk->isChecked());
mySubmeshChk->setChecked(false);
myGroupChk->setChecked(false);
QStringList items;
for(int i = 1; i <= toBeAdded.Extent(); i++)
if (myIds.Add(toBeAdded(i))) {
items.append(QString("%1").arg(toBeAdded(i)));
}
myListBox->addItems(items);
myListBox->selectAll();
myBusy = false;
emit ListContensChanged();
if (isGroupOrSubmesh)
onListSelectionChanged();
updateButtons();
}
| bool SMESHGUI_MultiEditDlg::onApply | ( | ) | [protected, virtual, slot] |
Definition at line 1029 of file SMESHGUI_MultiEditDlg.cxx.
References SMESH_BelongToGeom.anIds, getIds(), SMESHGUI.isActiveStudyLocked(), isValid(), ListContensChanged(), SMESHGUI.Modified(), myActor, myBusy, myIds, myListBox, myMesh, mySelectionMgr, mySelector, mySMESHGUI, process(), updateButtons(), and SMESH.UpdateView().
Referenced by Init(), and onOk().
{
if (mySMESHGUI->isActiveStudyLocked())
return false;
if (!isValid(true))
return false;
SMESH::SMESH_MeshEditor_var aMeshEditor = myMesh->GetMeshEditor();
if (aMeshEditor->_is_nil())
return false;
myBusy = true;
SUIT_OverrideCursor aWaitCursor;
SMESH::SMESH_IDSource_var obj;
SMESH::long_array_var anIds = getIds(obj);
bool aResult = process(aMeshEditor, anIds.inout(), obj);
if (aResult) {
if (myActor) {
SALOME_ListIO sel;
mySelectionMgr->selectedObjects( sel );
mySelector->ClearIndex();
mySelectionMgr->setSelectedObjects( sel );
SMESH::UpdateView();
SMESHGUI::Modified();
}
myListBox->clear();
myIds.Clear();
emit ListContensChanged();
updateButtons();
}
myBusy = false;
return aResult;
}
| void SMESHGUI_MultiEditDlg::onClose | ( | ) | [protected, virtual, slot] |
Reimplemented in SMESHGUI_CuttingOfQuadsDlg.
Definition at line 514 of file SMESHGUI_MultiEditDlg.cxx.
References SMESH.GetViewWindow(), mySelectionMgr, mySMESHGUI, SMESH.RemoveFilters(), SMESHGUI.ResetState(), and SMESH.SetPickable().
Referenced by closeEvent(), hideEvent(), Init(), and onOk().
{
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
aViewWindow->SetSelectionMode(ActorSelection);
disconnect(mySelectionMgr, 0, this, 0);
disconnect(mySMESHGUI, 0, this, 0);
mySMESHGUI->ResetState();
SMESH::RemoveFilters();
SMESH::SetPickable();
//mySelectionMgr->clearSelected();
mySelectionMgr->clearFilters();
reject();
}
| void SMESHGUI_MultiEditDlg::onDeactivate | ( | ) | [protected, slot] |
Definition at line 629 of file SMESHGUI_MultiEditDlg.cxx.
Referenced by Init().
{
setEnabled(false);
}
| void SMESHGUI_MultiEditDlg::onFilterAccepted | ( | ) | [protected, slot] |
Definition at line 691 of file SMESHGUI_MultiEditDlg.cxx.
References ListContensChanged(), myGroupChk, myIds, myListBox, mySubmeshChk, and updateButtons().
Referenced by onFilterBtn().
{
myIds.Clear();
for (int i = 0, n = myListBox->count(); i < n; i++)
myIds.Add(myListBox->item(i)->text().toInt());
emit ListContensChanged();
if (mySubmeshChk->isChecked() || myGroupChk->isChecked()) {
mySubmeshChk->blockSignals(true);
myGroupChk->blockSignals(true);
mySubmeshChk->setChecked(false);
myGroupChk->setChecked(false);
mySubmeshChk->blockSignals(false);
myGroupChk->blockSignals(false);
}
updateButtons();
}
| void SMESHGUI_MultiEditDlg::onFilterBtn | ( | ) | [protected, slot] |
Definition at line 670 of file SMESHGUI_MultiEditDlg.cxx.
References entityType(), SMESH.FACE, SMESHGUI_FilterDlg.Init(), myFilterDlg, myListBox, myMesh, mySMESHGUI, onFilterAccepted(), SMESHGUI_FilterDlg.SetMesh(), SMESHGUI_FilterDlg.SetSelection(), SMESHGUI_FilterDlg.SetSourceWg(), and SMESH.VOLUME.
Referenced by Init().
{
if (myFilterDlg == 0) {
myFilterDlg = new SMESHGUI_FilterDlg( mySMESHGUI, entityType() ? SMESH::VOLUME : SMESH::FACE);
connect(myFilterDlg, SIGNAL(Accepted()), SLOT(onFilterAccepted()));
} else {
myFilterDlg->Init(entityType() ? SMESH::VOLUME : SMESH::FACE);
}
myFilterDlg->SetSelection();
myFilterDlg->SetMesh(myMesh);
myFilterDlg->SetSourceWg(myListBox);
myFilterDlg->show();
}
| void SMESHGUI_MultiEditDlg::onGroupChk | ( | ) | [protected, slot] |
Definition at line 954 of file SMESHGUI_MultiEditDlg.cxx.
References myGroup, myGroupBtn, myGroupChk, mySubmeshChk, and setSelectionMode().
Referenced by Init().
{
bool isChecked = myGroupChk->isChecked();
myGroupBtn->setEnabled(isChecked);
myGroup->setEnabled(isChecked);
if (!isChecked)
myGroup->clear();
if (isChecked && mySubmeshChk->isChecked())
mySubmeshChk->setChecked(false);
setSelectionMode();
}
| void SMESHGUI_MultiEditDlg::onHelp | ( | ) | [protected, slot] |
Definition at line 535 of file SMESHGUI_MultiEditDlg.cxx.
References myHelpFileName, and mySMESHGUI.
Referenced by Init(), and keyPressEvent().
{
LightApp_Application* app = (LightApp_Application*)(SUIT_Session::session()->activeApplication());
if (app)
app->onHelpContextModule(mySMESHGUI ? app->moduleName(mySMESHGUI->moduleName()) : QString(""), myHelpFileName);
else {
QString platform;
#ifdef WIN32
platform = "winapplication";
#else
platform = "application";
#endif
SUIT_MessageBox::warning(this, tr("WRN_WARNING"),
tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").
arg(app->resourceMgr()->stringValue("ExternalBrowser",
platform)).
arg(myHelpFileName));
}
}
| void SMESHGUI_MultiEditDlg::onListSelectionChanged | ( | ) | [protected, slot] |
Definition at line 901 of file SMESHGUI_MultiEditDlg.cxx.
References SMESH.FindActorByObject(), SMESH_Actor.GetObject(), SMESH.GetViewWindow(), myActor, myBusy, myGroupChk, myListBox, myMesh, mySelector, mySMESHGUI, and mySubmeshChk.
Referenced by Init(), and onAddBtn().
{
if (myActor == 0 || myBusy)
return;
if (mySubmeshChk->isChecked() || myGroupChk->isChecked())
return;
SMESH_Actor * anActor = SMESH::FindActorByObject(myMesh);
if (!anActor)
anActor = myActor;
TVisualObjPtr anObj = anActor->GetObject();
TColStd_MapOfInteger anIndexes;
int total = myListBox->count();
for (int i = 0; i < total; i++)
{
if (myListBox->item(i)->isSelected())
{
int anId = myListBox->item(i)->text().toInt();
if (anObj->GetElemVTKId(anId) >= 0) // avoid exception in hilight
anIndexes.Add(anId);
}
}
mySelector->AddOrRemoveIndex(anActor->getIO(),anIndexes,false);
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
aViewWindow->highlight(anActor->getIO(),true,true);
}
| void SMESHGUI_MultiEditDlg::onOk | ( | ) | [protected, slot] |
| void SMESHGUI_MultiEditDlg::onRemoveBtn | ( | ) | [protected, slot] |
Definition at line 844 of file SMESHGUI_MultiEditDlg.cxx.
References ListContensChanged(), myBusy, myIds, myListBox, and updateButtons().
Referenced by eventFilter(), and Init().
{
myBusy = true;
QList<QListWidgetItem*> selItems = myListBox->selectedItems();
QListWidgetItem* item;
foreach(item, selItems)
{
myIds.Remove(item->text().toInt());
delete item;
}
myBusy = false;
emit ListContensChanged();
updateButtons();
}
| void SMESHGUI_MultiEditDlg::onSelectionDone | ( | ) | [protected, slot] |
Definition at line 559 of file SMESHGUI_MultiEditDlg.cxx.
References SMESH_controls.aGroup, SMESH.FindActorByEntry(), SMESH.FindActorByObject(), SMESH.GetMeshByIO(), SMESH.GetNameOfSelectedElements(), SMESH.GetNameOfSelectedIObjects(), SMESH.GetSelector(), Handle(), myActor, myBusy, myFilterType, myGroup, myGroupChk, myListBox, myMesh, mySelectionMgr, mySelector, mySubmesh, mySubmeshChk, and updateButtons().
Referenced by Init().
{
if (myBusy || !isEnabled()) return;
myBusy = true;
const SALOME_ListIO& aList = mySelector->StoredIObjects();
int nbSel = aList.Extent();
myListBox->clearSelection();
if (mySubmeshChk->isChecked() || myGroupChk->isChecked()) {
QLineEdit* aNameEdit = mySubmeshChk->isChecked() ? mySubmesh : myGroup;
if (nbSel == 1) {
Handle(SALOME_InteractiveObject) anIO = aList.First();
QString aName = "";
SMESH::GetNameOfSelectedIObjects(mySelectionMgr, aName);
anIO.IsNull() ? aNameEdit->clear() : aNameEdit->setText(aName);
if (mySubmeshChk->isChecked()) {
SMESH::SMESH_subMesh_var aSubMesh =
SMESH::IObjectToInterface<SMESH::SMESH_subMesh>(anIO);
if (!aSubMesh->_is_nil())
myMesh = aSubMesh->GetFather();
} else {
SMESH::SMESH_GroupBase_var aGroup =
SMESH::IObjectToInterface<SMESH::SMESH_GroupBase>(anIO);
if (!aGroup->_is_nil())
myMesh = aGroup->GetMesh();
}
} else if (nbSel > 1) {
QString aStr = mySubmeshChk->isChecked() ?
tr("SMESH_SUBMESH_SELECTED") : tr("SMESH_GROUP_SELECTED");
aNameEdit->setText(aStr.arg(nbSel));
} else {
aNameEdit->clear();
}
} else if (nbSel > 0) {
QString aListStr = "";
Handle(SALOME_InteractiveObject) anIO = aList.First();
int aNbItems = SMESH::GetNameOfSelectedElements(mySelector,anIO,aListStr);
if (aNbItems > 0) {
QStringList anElements = aListStr.split(" ", QString::SkipEmptyParts);
for (QStringList::iterator it = anElements.begin(); it != anElements.end(); ++it) {
QList<QListWidgetItem*> items = myListBox->findItems(*it, Qt::MatchExactly);
QListWidgetItem* anItem;
foreach(anItem, items)
anItem->setSelected(true);
}
}
myMesh = SMESH::GetMeshByIO(anIO);
}
if (nbSel > 0) {
myActor = SMESH::FindActorByEntry(aList.First()->getEntry());
if (!myActor)
myActor = SMESH::FindActorByObject(myMesh);
SVTK_Selector* aSelector = SMESH::GetSelector();
Handle(VTKViewer_Filter) aFilter = aSelector->GetFilter(myFilterType);
if (!aFilter.IsNull())
aFilter->SetActor(myActor);
}
myBusy = false;
updateButtons();
}
| void SMESHGUI_MultiEditDlg::onSortListBtn | ( | ) | [protected, slot] |
Definition at line 867 of file SMESHGUI_MultiEditDlg.cxx.
References myBusy, and myListBox.
Referenced by Init().
{
myBusy = true;
int i, k = myListBox->count();
if (k > 0)
{
QList<int> aSelected;
std::vector<int> anArray(k);
for (i = 0; i < k; i++)
{
int id = myListBox->item(i)->text().toInt();
anArray[ i ] = id;
if (myListBox->item(i)->isSelected())
aSelected.append(id);
}
std::sort(anArray.begin(), anArray.end());
myListBox->clear();
for (i = 0; i < k; i++) {
QListWidgetItem* item = new QListWidgetItem(QString::number(anArray[i]));
myListBox->addItem(item);
item->setSelected(aSelected.contains(anArray[i]));
}
}
myBusy = false;
}
| void SMESHGUI_MultiEditDlg::onSubmeshChk | ( | ) | [protected, slot] |
Definition at line 936 of file SMESHGUI_MultiEditDlg.cxx.
References myGroupChk, mySubmesh, mySubmeshBtn, mySubmeshChk, and setSelectionMode().
Referenced by Init().
{
bool isChecked = mySubmeshChk->isChecked();
mySubmeshBtn->setEnabled(isChecked);
mySubmesh->setEnabled(isChecked);
if (!isChecked)
mySubmesh->clear();
if (isChecked && myGroupChk->isChecked())
myGroupChk->setChecked(false);
setSelectionMode();
}
| void SMESHGUI_MultiEditDlg::onToAllChk | ( | ) | [protected, virtual, slot] |
Definition at line 972 of file SMESHGUI_MultiEditDlg.cxx.
References ListContensChanged(), myIds, myListBox, myToAllChk, setSelectionMode(), and updateButtons().
Referenced by Init().
{
bool isChecked = myToAllChk->isChecked();
if (isChecked)
myListBox->clear();
myIds.Clear();
emit ListContensChanged();
updateButtons();
setSelectionMode();
}
| virtual bool SMESHGUI_MultiEditDlg.process | ( | SMESH::SMESH_MeshEditor_ptr | , |
| const SMESH::long_array & | , | ||
| SMESH::SMESH_IDSource_ptr | obj | ||
| ) | [protected, pure virtual] |
Implemented in SMESHGUI_ChangeOrientationDlg, SMESHGUI_UnionOfTrianglesDlg, SMESHGUI_CuttingOfQuadsDlg, and SMESHGUI_CuttingIntoTetraDlg.
Referenced by onApply().
| void SMESHGUI_MultiEditDlg::setSelectionMode | ( | ) | [protected] |
Definition at line 991 of file SMESHGUI_MultiEditDlg.cxx.
References entityType(), SMESH.GetViewWindow(), GROUP, myFilterType, myGroupChk, mySelectionMgr, mySMESHGUI, mySubmeshChk, SMESH.QuadFilter, SMESH.RemoveFilters(), SMESH.SetFilter(), SUBMESH, and SMESH.TriaFilter.
Referenced by enterEvent(), Init(), on3d2dChanged(), onGroupChk(), onSubmeshChk(), onToAllChk(), and SMESHGUI_CuttingIntoTetraDlg.SMESHGUI_CuttingIntoTetraDlg().
{
SMESH::RemoveFilters();
mySelectionMgr->clearSelected();
mySelectionMgr->clearFilters();
if (mySubmeshChk->isChecked()) {
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
aViewWindow->SetSelectionMode(ActorSelection);
mySelectionMgr->installFilter(new SMESH_TypeFilter(SUBMESH));
}
else if (myGroupChk->isChecked()) {
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
aViewWindow->SetSelectionMode(ActorSelection);
mySelectionMgr->installFilter(new SMESH_TypeFilter(GROUP));
}
if (entityType()) {
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
aViewWindow->SetSelectionMode(VolumeSelection);
SMESH::SetFilter(new SMESHGUI_VolumesFilter());
} else {
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
aViewWindow->SetSelectionMode(FaceSelection);
if (myFilterType == SMESH::TriaFilter)
SMESH::SetFilter(new SMESHGUI_TriangleFilter());
else if (myFilterType == SMESH::QuadFilter)
SMESH::SetFilter(new SMESHGUI_QuadrangleFilter());
else
SMESH::SetFilter(new SMESHGUI_FacesFilter());
}
}
| void SMESHGUI_MultiEditDlg::updateButtons | ( | ) | [protected] |
Definition at line 800 of file SMESHGUI_MultiEditDlg.cxx.
References isValid(), myAddBtn, myApplyBtn, myFilterBtn, myGroup, myGroupBtn, myGroupChk, myListBox, myMesh, myOkBtn, myRemoveBtn, mySelector, mySortBtn, mySubmesh, mySubmeshBtn, mySubmeshChk, and myToAllChk.
Referenced by Init(), on3d2dChanged(), onAddBtn(), onApply(), onFilterAccepted(), onRemoveBtn(), onSelectionDone(), onToAllChk(), and SMESHGUI_CuttingIntoTetraDlg.SMESHGUI_CuttingIntoTetraDlg().
{
bool isOk = isValid(false);
myOkBtn->setEnabled(isOk);
myApplyBtn->setEnabled(isOk);
bool isListBoxNonEmpty = myListBox->count() > 0;
bool isToAll = myToAllChk->isChecked();
myFilterBtn->setEnabled(!isToAll);
myRemoveBtn->setEnabled(isListBoxNonEmpty && !isToAll);
mySortBtn->setEnabled(isListBoxNonEmpty &&!isToAll);
const SALOME_ListIO& aList = mySelector->StoredIObjects();
if (isToAll ||
myMesh->_is_nil() ||
aList.Extent() < 1 ||
(SMESH::IObjectToInterface<SMESH::SMESH_subMesh>(aList.First())->_is_nil() &&
SMESH::IObjectToInterface<SMESH::SMESH_GroupBase>(aList.First())->_is_nil() &&
SMESH::IObjectToInterface<SMESH::SMESH_Mesh>(aList.First())->_is_nil()))
myAddBtn->setEnabled(false);
else
myAddBtn->setEnabled(true);
mySubmeshChk->setEnabled(!isToAll);
mySubmeshBtn->setEnabled(mySubmeshChk->isChecked());
mySubmesh->setEnabled(mySubmeshChk->isChecked());
myGroupChk->setEnabled(!isToAll);
myGroupBtn->setEnabled(myGroupChk->isChecked());
myGroup->setEnabled(myGroupChk->isChecked());
if (!mySubmeshChk->isChecked())
mySubmesh->clear();
if (!myGroupChk->isChecked())
myGroup->clear();
}
SMESH_Actor* SMESHGUI_MultiEditDlg.myActor [protected] |
Definition at line 126 of file SMESHGUI_MultiEditDlg.h.
Referenced by SMESHGUI_CuttingOfQuadsDlg.displayPreview(), Init(), onApply(), onListSelectionChanged(), and onSelectionDone().
QPushButton* SMESHGUI_MultiEditDlg.myAddBtn [protected] |
Definition at line 142 of file SMESHGUI_MultiEditDlg.h.
Referenced by createMainFrame(), Init(), and updateButtons().
QPushButton* SMESHGUI_MultiEditDlg.myApplyBtn [protected] |
Definition at line 123 of file SMESHGUI_MultiEditDlg.h.
Referenced by createButtonFrame(), Init(), and updateButtons().
bool SMESHGUI_MultiEditDlg.myBusy [protected] |
Definition at line 160 of file SMESHGUI_MultiEditDlg.h.
Referenced by Init(), onAddBtn(), onApply(), onListSelectionChanged(), onRemoveBtn(), onSelectionDone(), and onSortListBtn().
QWidget* SMESHGUI_MultiEditDlg.myChoiceWidget [protected] |
Definition at line 136 of file SMESHGUI_MultiEditDlg.h.
Referenced by createMainFrame(), and SMESHGUI_CuttingIntoTetraDlg.SMESHGUI_CuttingIntoTetraDlg().
QPushButton* SMESHGUI_MultiEditDlg.myCloseBtn [protected] |
Definition at line 124 of file SMESHGUI_MultiEditDlg.h.
Referenced by createButtonFrame(), and Init().
QComboBox* SMESHGUI_MultiEditDlg.myComboBoxFunctor [protected] |
Definition at line 138 of file SMESHGUI_MultiEditDlg.h.
Referenced by createMainFrame(), getNumericalFunctor(), SMESHGUI_CuttingOfQuadsDlg.onCriterionRB(), and SMESHGUI_CuttingIntoTetraDlg.SMESHGUI_CuttingIntoTetraDlg().
QGroupBox* SMESHGUI_MultiEditDlg.myCriterionGrp [protected] |
Definition at line 134 of file SMESHGUI_MultiEditDlg.h.
Referenced by createMainFrame(), and SMESHGUI_CuttingIntoTetraDlg.SMESHGUI_CuttingIntoTetraDlg().
int SMESHGUI_MultiEditDlg.myEntityType [protected] |
Definition at line 161 of file SMESHGUI_MultiEditDlg.h.
Referenced by createMainFrame(), entityType(), on3d2dChanged(), SMESHGUI_CuttingIntoTetraDlg.process(), and SMESHGUI_CuttingIntoTetraDlg.SMESHGUI_CuttingIntoTetraDlg().
QButtonGroup* SMESHGUI_MultiEditDlg.myEntityTypeGrp [protected] |
Definition at line 147 of file SMESHGUI_MultiEditDlg.h.
Referenced by createMainFrame(), and Init().
QPushButton* SMESHGUI_MultiEditDlg.myFilterBtn [protected] |
Definition at line 141 of file SMESHGUI_MultiEditDlg.h.
Referenced by createMainFrame(), Init(), and updateButtons().
SMESHGUI_FilterDlg* SMESHGUI_MultiEditDlg.myFilterDlg [protected] |
Definition at line 157 of file SMESHGUI_MultiEditDlg.h.
Referenced by onFilterBtn(), and ~SMESHGUI_MultiEditDlg().
int SMESHGUI_MultiEditDlg.myFilterType [protected] |
Definition at line 159 of file SMESHGUI_MultiEditDlg.h.
Referenced by isIdValid(), on3d2dChanged(), onSelectionDone(), and setSelectionMode().
QLineEdit* SMESHGUI_MultiEditDlg.myGroup [protected] |
Definition at line 155 of file SMESHGUI_MultiEditDlg.h.
Referenced by createMainFrame(), onGroupChk(), onSelectionDone(), and updateButtons().
QPushButton* SMESHGUI_MultiEditDlg.myGroupBtn [protected] |
Definition at line 154 of file SMESHGUI_MultiEditDlg.h.
Referenced by createMainFrame(), onGroupChk(), and updateButtons().
QCheckBox* SMESHGUI_MultiEditDlg.myGroupChk [protected] |
Definition at line 153 of file SMESHGUI_MultiEditDlg.h.
Referenced by createMainFrame(), Init(), onAddBtn(), onFilterAccepted(), onGroupChk(), onListSelectionChanged(), onSelectionDone(), onSubmeshChk(), setSelectionMode(), and updateButtons().
QButtonGroup* SMESHGUI_MultiEditDlg.myGroupChoice [protected] |
Definition at line 137 of file SMESHGUI_MultiEditDlg.h.
Referenced by createMainFrame(), SMESHGUI_CuttingOfQuadsDlg.displayPreview(), SMESHGUI_CuttingOfQuadsDlg.onCriterionRB(), SMESHGUI_CuttingIntoTetraDlg.process(), SMESHGUI_CuttingOfQuadsDlg.process(), and SMESHGUI_CuttingIntoTetraDlg.SMESHGUI_CuttingIntoTetraDlg().
QPushButton* SMESHGUI_MultiEditDlg.myHelpBtn [protected] |
Definition at line 125 of file SMESHGUI_MultiEditDlg.h.
Referenced by createButtonFrame(), and Init().
QString SMESHGUI_MultiEditDlg.myHelpFileName [protected] |
Definition at line 163 of file SMESHGUI_MultiEditDlg.h.
Referenced by onHelp(), and SMESHGUI_CuttingIntoTetraDlg.SMESHGUI_CuttingIntoTetraDlg().
TColStd_MapOfInteger SMESHGUI_MultiEditDlg.myIds [protected] |
Definition at line 158 of file SMESHGUI_MultiEditDlg.h.
Referenced by getIds(), Init(), on3d2dChanged(), onAddBtn(), onApply(), onFilterAccepted(), onRemoveBtn(), and onToAllChk().
QListWidget* SMESHGUI_MultiEditDlg.myListBox [protected] |
Definition at line 140 of file SMESHGUI_MultiEditDlg.h.
Referenced by createMainFrame(), eventFilter(), Init(), isValid(), on3d2dChanged(), onAddBtn(), onApply(), onFilterAccepted(), onFilterBtn(), onListSelectionChanged(), onRemoveBtn(), onSelectionDone(), onSortListBtn(), onToAllChk(), and updateButtons().
SMESH::SMESH_Mesh_var SMESHGUI_MultiEditDlg.myMesh [protected] |
Definition at line 127 of file SMESHGUI_MultiEditDlg.h.
Referenced by SMESHGUI_CuttingOfQuadsDlg.displayPreview(), getIds(), isValid(), onAddBtn(), onApply(), onFilterBtn(), onListSelectionChanged(), onSelectionDone(), SMESHGUI_UnionOfTrianglesDlg.process(), and updateButtons().
QPushButton* SMESHGUI_MultiEditDlg.myOkBtn [protected] |
Definition at line 122 of file SMESHGUI_MultiEditDlg.h.
Referenced by createButtonFrame(), Init(), and updateButtons().
QPushButton* SMESHGUI_MultiEditDlg.myRemoveBtn [protected] |
Definition at line 143 of file SMESHGUI_MultiEditDlg.h.
Referenced by createMainFrame(), Init(), and updateButtons().
LightApp_SelectionMgr* SMESHGUI_MultiEditDlg.mySelectionMgr [protected] |
Definition at line 129 of file SMESHGUI_MultiEditDlg.h.
Referenced by Init(), onApply(), onClose(), onSelectionDone(), and setSelectionMode().
SVTK_Selector* SMESHGUI_MultiEditDlg.mySelector [protected] |
Definition at line 130 of file SMESHGUI_MultiEditDlg.h.
Referenced by onAddBtn(), onApply(), onListSelectionChanged(), onSelectionDone(), and updateButtons().
QGroupBox* SMESHGUI_MultiEditDlg.mySelGrp [protected] |
Definition at line 133 of file SMESHGUI_MultiEditDlg.h.
Referenced by createMainFrame().
SMESHGUI* SMESHGUI_MultiEditDlg.mySMESHGUI [protected] |
Definition at line 131 of file SMESHGUI_MultiEditDlg.h.
Referenced by createMainFrame(), enterEvent(), Init(), onApply(), onClose(), onFilterBtn(), onHelp(), onListSelectionChanged(), and setSelectionMode().
QPushButton* SMESHGUI_MultiEditDlg.mySortBtn [protected] |
Definition at line 144 of file SMESHGUI_MultiEditDlg.h.
Referenced by createMainFrame(), Init(), and updateButtons().
QLineEdit* SMESHGUI_MultiEditDlg.mySubmesh [protected] |
Definition at line 151 of file SMESHGUI_MultiEditDlg.h.
Referenced by createMainFrame(), onSelectionDone(), onSubmeshChk(), and updateButtons().
QPushButton* SMESHGUI_MultiEditDlg.mySubmeshBtn [protected] |
Definition at line 150 of file SMESHGUI_MultiEditDlg.h.
Referenced by createMainFrame(), onSubmeshChk(), and updateButtons().
QCheckBox* SMESHGUI_MultiEditDlg.mySubmeshChk [protected] |
Definition at line 149 of file SMESHGUI_MultiEditDlg.h.
Referenced by createMainFrame(), Init(), onAddBtn(), onFilterAccepted(), onGroupChk(), onListSelectionChanged(), onSelectionDone(), onSubmeshChk(), setSelectionMode(), and updateButtons().
QCheckBox* SMESHGUI_MultiEditDlg.myToAllChk [protected] |
Definition at line 146 of file SMESHGUI_MultiEditDlg.h.
Referenced by createMainFrame(), getIds(), Init(), isValid(), onToAllChk(), SMESHGUI_CuttingIntoTetraDlg.SMESHGUI_CuttingIntoTetraDlg(), and updateButtons().