#include <SMESHGUI_ExtrusionAlongPathDlg.h>

Definition at line 61 of file SMESHGUI_ExtrusionAlongPathDlg.h.
| SMESHGUI_ExtrusionAlongPathDlg::SMESHGUI_ExtrusionAlongPathDlg | ( | SMESHGUI * | theModule | ) |
Definition at line 112 of file SMESHGUI_ExtrusionAlongPathDlg.cxx.
References AddAngleButton, AnglesGrp, AnglesList, AngleSpin, ApplyButton, BasePointGrp, ClickOnApply(), ClickOnHelp(), ClickOnOk(), CloseButton, SMESHGUI_PreviewDlg.connectPreviewControl(), ConstructorsBox, ConstructorsClicked(), COORD_MAX, COORD_MIN, DeactivateActiveDialog(), SMESHGUI_SpinBox.editor(), Elements1dRB, Elements2dRB, ElementsLab, ElementsLineEdit, SMESH.GetResourceMgr(), SMESH.GetSelector(), SMESH.GetViewWindow(), GROUP, GroupArguments, GroupButtons, GroupConstructors, HelpButton, Init(), LinearAnglesCheck, SMESH_LogicalFilter.LO_OR, MakeGroupsCheck, MARGIN, MeshCheck, MESHorSUBMESH, myElementsFilter, myFilterBtn, myHelpFileName, myIdValidator, myPathMeshFilter, SMESHGUI_PreviewDlg.myPreviewCheckBox, mySelectionMgr, mySelector, SMESHGUI_PreviewDlg.mySMESHGUI, myType, OkButton, OnAngleAdded(), OnAngleRemoved(), onSelectMesh(), onTextChange(), PathGrp, PathMeshLineEdit, SMESHGUI_SpinBox.RangeStepAndValidator(), reject(), RemoveAngleButton, SelectBasePointButton, SelectElementsButton, SelectionIntoArgument(), SelectPathMeshButton, SelectStartPointButton, SMESHGUI.SetActiveDialogBox(), SetEditCurrentArgument(), setFilters(), SPACING, StartPointLineEdit, SMESHGUI_PreviewDlg.toDisplaySimulation(), XSpin, YSpin, and ZSpin.
: SMESHGUI_PreviewDlg( theModule ), mySelectionMgr( SMESH::GetSelectionMgr( theModule ) ), myFilterDlg( 0 ) { SUIT_ResourceMgr* mgr = SMESH::GetResourceMgr( mySMESHGUI ); QPixmap edgeImage ( mgr->loadPixmap("SMESH", tr("ICON_DLG_EDGE"))); QPixmap faceImage ( mgr->loadPixmap("SMESH", tr("ICON_DLG_TRIANGLE"))); QPixmap selectImage ( mgr->loadPixmap("SMESH", tr("ICON_SELECT"))); QPixmap addImage ( mgr->loadPixmap("SMESH", tr("ICON_APPEND"))); QPixmap removeImage ( mgr->loadPixmap("SMESH", tr("ICON_REMOVE"))); myType = -1; setModal( false ); setAttribute( Qt::WA_DeleteOnClose, true ); setWindowTitle(tr("EXTRUSION_ALONG_PATH")); setSizeGripEnabled(true); QVBoxLayout* topLayout = new QVBoxLayout(this); topLayout->setSpacing(SPACING); topLayout->setMargin(MARGIN); /***************************************************************/ // Elements type group box (1d / 2d elements) ConstructorsBox = new QGroupBox(tr("SMESH_EXTRUSION"), this); GroupConstructors = new QButtonGroup(this); QHBoxLayout* ConstructorsBoxLayout = new QHBoxLayout(ConstructorsBox); ConstructorsBoxLayout->setSpacing(SPACING); ConstructorsBoxLayout->setMargin(MARGIN); Elements1dRB = new QRadioButton(ConstructorsBox); Elements1dRB->setIcon(edgeImage); Elements2dRB = new QRadioButton(ConstructorsBox); Elements2dRB->setIcon(faceImage); Elements1dRB->setChecked(true); // layouting ConstructorsBoxLayout->addWidget(Elements1dRB); ConstructorsBoxLayout->addWidget(Elements2dRB); GroupConstructors->addButton(Elements1dRB, 0); GroupConstructors->addButton(Elements2dRB, 1); /***************************************************************/ // Arguments group box GroupArguments = new QGroupBox(tr("EXTRUSION_1D"), this); QGridLayout* GroupArgumentsLayout = new QGridLayout(GroupArguments); GroupArgumentsLayout->setSpacing(SPACING); GroupArgumentsLayout->setMargin(MARGIN); myIdValidator = new SMESHGUI_IdValidator(this); // Controls for elements selection ElementsLab = new QLabel(tr("SMESH_ID_ELEMENTS"), GroupArguments); SelectElementsButton = new QToolButton(GroupArguments); SelectElementsButton->setIcon(selectImage); ElementsLineEdit = new QLineEdit(GroupArguments); ElementsLineEdit->setValidator(myIdValidator); ElementsLineEdit->setMaxLength(-1); myFilterBtn = new QPushButton( tr( "SMESH_BUT_FILTER" ), GroupArguments ); connect(myFilterBtn, SIGNAL(clicked()), this, SLOT(setFilters())); // Controls for the whole mesh selection MeshCheck = new QCheckBox(tr("SMESH_SELECT_WHOLE_MESH"), GroupArguments); // Controls for path selection PathGrp = new QGroupBox(tr("SMESH_PATH"), GroupArguments); QGridLayout* PathGrpLayout = new QGridLayout(PathGrp); PathGrpLayout->setSpacing(SPACING); PathGrpLayout->setMargin(MARGIN); // Controls for path mesh selection QLabel* PathMeshLab = new QLabel(tr("SMESH_PATH_MESH"), PathGrp); SelectPathMeshButton = new QToolButton(PathGrp); SelectPathMeshButton->setIcon(selectImage); PathMeshLineEdit = new QLineEdit(PathGrp); PathMeshLineEdit->setReadOnly(true); // Controls for path starting point selection QLabel* StartPointLab = new QLabel(tr("SMESH_PATH_START"), PathGrp); SelectStartPointButton = new QToolButton(PathGrp); SelectStartPointButton->setIcon(selectImage); StartPointLineEdit = new QLineEdit(PathGrp); StartPointLineEdit->setValidator(new QIntValidator(this)); // layouting PathGrpLayout->addWidget(PathMeshLab, 0, 0); PathGrpLayout->addWidget(SelectPathMeshButton, 0, 1); PathGrpLayout->addWidget(PathMeshLineEdit, 0, 2); PathGrpLayout->addWidget(StartPointLab, 1, 0); PathGrpLayout->addWidget(SelectStartPointButton, 1, 1); PathGrpLayout->addWidget(StartPointLineEdit, 1, 2); BasePointGrp = new QGroupBox(tr("SMESH_BASE_POINT"), GroupArguments); BasePointGrp->setCheckable(true); BasePointGrp->setChecked(false); QHBoxLayout* BasePointGrpLayout = new QHBoxLayout(BasePointGrp); BasePointGrpLayout->setSpacing(SPACING); BasePointGrpLayout->setMargin(MARGIN); SelectBasePointButton = new QToolButton(BasePointGrp); SelectBasePointButton->setIcon(selectImage); QLabel* XLab = new QLabel(tr("SMESH_X"), BasePointGrp); XSpin = new SMESHGUI_SpinBox(BasePointGrp); QLabel* YLab = new QLabel(tr("SMESH_Y"), BasePointGrp); YSpin = new SMESHGUI_SpinBox(BasePointGrp); QLabel* ZLab = new QLabel(tr("SMESH_Z"), BasePointGrp); ZSpin = new SMESHGUI_SpinBox(BasePointGrp); // layouting BasePointGrpLayout->addWidget(SelectBasePointButton); BasePointGrpLayout->addWidget(XLab); BasePointGrpLayout->addWidget(XSpin); BasePointGrpLayout->addWidget(YLab); BasePointGrpLayout->addWidget(YSpin); BasePointGrpLayout->addWidget(ZLab); BasePointGrpLayout->addWidget(ZSpin); AnglesGrp = new QGroupBox(tr("SMESH_ANGLES"), GroupArguments); AnglesGrp->setCheckable(true); AnglesGrp->setChecked(false); QGridLayout* AnglesGrpLayout = new QGridLayout(AnglesGrp); AnglesGrpLayout->setSpacing(SPACING); AnglesGrpLayout->setMargin(MARGIN); AnglesList = new QListWidget(AnglesGrp); AnglesList->setSelectionMode(QListWidget::ExtendedSelection); AddAngleButton = new QToolButton(AnglesGrp); AddAngleButton->setIcon(addImage); RemoveAngleButton = new QToolButton(AnglesGrp); RemoveAngleButton->setIcon(removeImage); AngleSpin = new SMESHGUI_SpinBox(AnglesGrp); LinearAnglesCheck = new QCheckBox(tr("LINEAR_ANGLES"), AnglesGrp); // layouting AnglesGrpLayout->addWidget(AnglesList, 0, 0, 4, 1); AnglesGrpLayout->addWidget(AddAngleButton, 0, 1); AnglesGrpLayout->addWidget(RemoveAngleButton, 2, 1); AnglesGrpLayout->addWidget(AngleSpin, 0, 2); AnglesGrpLayout->addWidget(LinearAnglesCheck, 4, 0); AnglesGrpLayout->setRowMinimumHeight(1, 10); AnglesGrpLayout->setRowStretch(3, 10); // CheckBox for groups generation MakeGroupsCheck = new QCheckBox(tr("SMESH_MAKE_GROUPS"), GroupArguments); MakeGroupsCheck->setChecked(true); //Preview check box myPreviewCheckBox = new QCheckBox(tr("PREVIEW"), GroupArguments); // layouting GroupArgumentsLayout->addWidget(ElementsLab, 0, 0); GroupArgumentsLayout->addWidget(SelectElementsButton, 0, 1); GroupArgumentsLayout->addWidget(ElementsLineEdit, 0, 2); GroupArgumentsLayout->addWidget(myFilterBtn, 0, 3); GroupArgumentsLayout->addWidget(MeshCheck, 1, 0, 1, 4); GroupArgumentsLayout->addWidget(PathGrp, 2, 0, 1, 4); GroupArgumentsLayout->addWidget(BasePointGrp, 3, 0, 1, 4); GroupArgumentsLayout->addWidget(AnglesGrp, 4, 0, 1, 4); GroupArgumentsLayout->addWidget(myPreviewCheckBox, 5, 0, 1, 4); GroupArgumentsLayout->addWidget(MakeGroupsCheck, 6, 0, 1, 4); /***************************************************************/ // common buttons group box GroupButtons = new QGroupBox(this); QHBoxLayout* GroupButtonsLayout = new QHBoxLayout(GroupButtons); GroupButtonsLayout->setSpacing(SPACING); GroupButtonsLayout->setMargin(MARGIN); OkButton = new QPushButton(tr("SMESH_BUT_APPLY_AND_CLOSE"), GroupButtons); OkButton->setAutoDefault(true); OkButton->setDefault(true); ApplyButton = new QPushButton(tr("SMESH_BUT_APPLY"), GroupButtons); ApplyButton->setAutoDefault(true); CloseButton = new QPushButton(tr("SMESH_BUT_CLOSE"), GroupButtons); CloseButton->setAutoDefault(true); HelpButton = new QPushButton(tr("SMESH_BUT_HELP"), GroupButtons); HelpButton->setAutoDefault(true); // layouting GroupButtonsLayout->addWidget(OkButton); GroupButtonsLayout->addSpacing(10); GroupButtonsLayout->addWidget(ApplyButton); GroupButtonsLayout->addSpacing(10); GroupButtonsLayout->addStretch(); GroupButtonsLayout->addWidget(CloseButton); GroupButtonsLayout->addWidget(HelpButton); /***************************************************************/ // layouting topLayout->addWidget(ConstructorsBox); topLayout->addWidget(GroupArguments); topLayout->addWidget(GroupButtons); /***************************************************************/ // Initialisations XSpin->RangeStepAndValidator(COORD_MIN, COORD_MAX, 10.0, "length_precision"); YSpin->RangeStepAndValidator(COORD_MIN, COORD_MAX, 10.0, "length_precision"); ZSpin->RangeStepAndValidator(COORD_MIN, COORD_MAX, 10.0, "length_precision"); AngleSpin->RangeStepAndValidator(-180.0, 180.0, 5.0, "angle_precision"); mySelector = (SMESH::GetViewWindow( mySMESHGUI ))->GetSelector(); mySMESHGUI->SetActiveDialogBox(this); // Costruction of the logical filter for the elements: mesh/sub-mesh/group SMESH_TypeFilter* aMeshOrSubMeshFilter = new SMESH_TypeFilter (MESHorSUBMESH); SMESH_TypeFilter* aSmeshGroupFilter = new SMESH_TypeFilter (GROUP); QList<SUIT_SelectionFilter*> aListOfFilters; if (aMeshOrSubMeshFilter) aListOfFilters.append(aMeshOrSubMeshFilter); if (aSmeshGroupFilter) aListOfFilters.append(aSmeshGroupFilter); myElementsFilter = new SMESH_LogicalFilter (aListOfFilters, SMESH_LogicalFilter::LO_OR); //myPathMeshFilter = new SMESH_TypeFilter (MESH); myPathMeshFilter = new SMESH_TypeFilter(MESHorSUBMESH); myHelpFileName = "extrusion_along_path_page.html"; Init(); /***************************************************************/ // signals-slots connections connect(OkButton, SIGNAL(clicked()), this, SLOT(ClickOnOk())); connect(CloseButton, SIGNAL(clicked()), this, SLOT(reject())); connect(ApplyButton, SIGNAL(clicked()), this, SLOT(ClickOnApply())); connect(HelpButton, SIGNAL(clicked()), this, SLOT(ClickOnHelp())); connect(AddAngleButton, SIGNAL(clicked()), this, SLOT(OnAngleAdded())); connect(RemoveAngleButton, SIGNAL(clicked()), this, SLOT(OnAngleRemoved())); connect(GroupConstructors, SIGNAL(buttonClicked(int)), SLOT(ConstructorsClicked(int))); connect(SelectElementsButton, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument())); connect(SelectPathMeshButton, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument())); connect(SelectStartPointButton, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument())); connect(SelectBasePointButton, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument())); connect(mySMESHGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog())); connect(mySelectionMgr, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())); connect(mySMESHGUI, SIGNAL(SignalCloseAllDialogs()), this, SLOT(reject())); connect(ElementsLineEdit, SIGNAL(textChanged(const QString&)), SLOT(onTextChange(const QString&))); connect(StartPointLineEdit, SIGNAL(textChanged(const QString&)), SLOT(onTextChange(const QString&))); connect(MeshCheck, SIGNAL(toggled(bool)), SLOT(onSelectMesh())); connect(XSpin, SIGNAL(valueChanged(double)), this, SLOT(toDisplaySimulation())); connect(YSpin, SIGNAL(valueChanged(double)), this, SLOT(toDisplaySimulation())); connect(ZSpin, SIGNAL(valueChanged(double)), this, SLOT(toDisplaySimulation())); connect(AddAngleButton, SIGNAL(clicked()), this, SLOT(toDisplaySimulation())); connect(RemoveAngleButton, SIGNAL(clicked()), this, SLOT(toDisplaySimulation())); connect(LinearAnglesCheck, SIGNAL(toggled(bool)), SLOT(onSelectMesh())); //To Connect preview check box connectPreviewControl(); AnglesList->installEventFilter(this); ElementsLineEdit->installEventFilter(this); StartPointLineEdit->installEventFilter(this); XSpin->editor()->installEventFilter(this); YSpin->editor()->installEventFilter(this); ZSpin->editor()->installEventFilter(this); }
| SMESHGUI_ExtrusionAlongPathDlg::~SMESHGUI_ExtrusionAlongPathDlg | ( | ) |
Definition at line 392 of file SMESHGUI_ExtrusionAlongPathDlg.cxx.
References myFilterDlg.
{
// no need to delete child widgets, Qt does it all for us
if ( myFilterDlg != 0 ) {
myFilterDlg->setParent( 0 );
delete myFilterDlg;
}
}
| void SMESHGUI_ExtrusionAlongPathDlg::ActivateThisDialog | ( | ) | [private, slot] |
Definition at line 1068 of file SMESHGUI_ExtrusionAlongPathDlg.cxx.
References ConstructorsBox, ConstructorsClicked(), SMESHGUI.EmitSignalDeactivateDialog(), GetConstructorId(), GroupArguments, GroupButtons, SMESHGUI_PreviewDlg.mySMESHGUI, SelectionIntoArgument(), and SMESHGUI.SetActiveDialogBox().
Referenced by enterEvent().
{
// Emit a signal to deactivate the active dialog
mySMESHGUI->EmitSignalDeactivateDialog();
ConstructorsBox->setEnabled(true);
GroupArguments->setEnabled(true);
GroupButtons->setEnabled(true);
mySMESHGUI->SetActiveDialogBox(this);
ConstructorsClicked(GetConstructorId());
SelectionIntoArgument();
}
| bool SMESHGUI_ExtrusionAlongPathDlg::ClickOnApply | ( | ) | [private, slot] |
myMeshActor ||
Definition at line 488 of file SMESHGUI_ExtrusionAlongPathDlg.cxx.
References AnglesGrp, AnglesList, BasePointGrp, ConstructorsClicked(), SMESH.EDGE, SMESH.SMESH_MeshEditor.EXTR_BAD_ANGLES_NUMBER, SMESH.SMESH_MeshEditor.EXTR_BAD_PATH_SHAPE, SMESH.SMESH_MeshEditor.EXTR_BAD_STARTING_NODE, SMESH.SMESH_MeshEditor.EXTR_CANT_GET_TANGENT, SMESH.SMESH_MeshEditor.EXTR_NO_ELEMENTS, SMESH.SMESH_MeshEditor.EXTR_OK, SMESH.SMESH_MeshEditor.EXTR_PATH_NOT_EDGE, FACE, getAngles(), GetConstructorId(), getSelectedElements(), SMESHGUI_SpinBox.GetValue(), Init(), SMESHGUI.isActiveStudyLocked(), isValid(), LinearAnglesCheck, MakeGroupsCheck, MeshCheck, SMESHGUI.Modified(), myAnglesList, myIDSource, myMesh, myMeshActor, myPath, SMESHGUI_PreviewDlg.mySMESHGUI, StartPointLineEdit, SMESH.Update(), SMESH.PointStruct.x, XSpin, SMESH.PointStruct.y, YSpin, SMESH.PointStruct.z, and ZSpin.
Referenced by ClickOnOk(), and SMESHGUI_ExtrusionAlongPathDlg().
{
if (mySMESHGUI->isActiveStudyLocked())
return false;
//if (myMesh->_is_nil() || MeshCheck->isChecked() && myIDSource->_is_nil() ||
// !myMeshActor || myPathMesh->_is_nil() || myPathShape->_is_nil())
if ( myMesh->_is_nil() || (MeshCheck->isChecked() && myIDSource->_is_nil()) || myPath->_is_nil() )
return false;
if (!isValid())
return false;
SMESH::long_array_var anElementsId = getSelectedElements();
if (StartPointLineEdit->text().trimmed().isEmpty()) {
return false;
}
bool bOk;
long aNodeStart = StartPointLineEdit->text().toLong(&bOk);
if (!bOk) {
return false;
}
QStringList aParameters;
//get angles
SMESH::double_array_var anAngles = getAngles();
for (int i = 0; i < myAnglesList.count(); i++)
aParameters << AnglesList->item(i)->text();
// get base point
SMESH::PointStruct aBasePoint;
if (BasePointGrp->isChecked()) {
aBasePoint.x = XSpin->GetValue();
aBasePoint.y = YSpin->GetValue();
aBasePoint.z = ZSpin->GetValue();
}
aParameters << XSpin->text();
aParameters << YSpin->text();
aParameters << ZSpin->text();
try {
SUIT_OverrideCursor wc;
SMESH::SMESH_MeshEditor_var aMeshEditor = myMesh->GetMeshEditor();
//if ( LinearAnglesCheck->isChecked() ) {
// anAngles = aMeshEditor->LinearAnglesVariation( myPathMesh, myPathShape, anAngles );
//}
SMESH::SMESH_MeshEditor::Extrusion_Error retVal;
/*
if ( MakeGroupsCheck->isEnabled() && MakeGroupsCheck->isChecked() ) {
if( MeshCheck->isChecked() ) {
if( GetConstructorId() == 0 )
SMESH::ListOfGroups_var groups =
aMeshEditor->ExtrusionAlongPathObject1DMakeGroups(myIDSource, myPathMesh,
myPathShape, aNodeStart,
AnglesGrp->isChecked(), anAngles,
BasePointGrp->isChecked(), aBasePoint, retVal);
else
SMESH::ListOfGroups_var groups =
aMeshEditor->ExtrusionAlongPathObject2DMakeGroups(myIDSource, myPathMesh,
myPathShape, aNodeStart,
AnglesGrp->isChecked(), anAngles,
BasePointGrp->isChecked(), aBasePoint, retVal);
}
else
SMESH::ListOfGroups_var groups =
aMeshEditor->ExtrusionAlongPathMakeGroups(anElementsId, myPathMesh,
myPathShape, aNodeStart,
AnglesGrp->isChecked(), anAngles,
BasePointGrp->isChecked(), aBasePoint, retVal);
}
else {
if( MeshCheck->isChecked() ) {
if( GetConstructorId() == 0 )
retVal = aMeshEditor->ExtrusionAlongPathObject1D(myIDSource, myPathMesh,
myPathShape, aNodeStart,
AnglesGrp->isChecked(), anAngles,
BasePointGrp->isChecked(), aBasePoint);
else
retVal = aMeshEditor->ExtrusionAlongPathObject2D(myIDSource, myPathMesh,
myPathShape, aNodeStart,
AnglesGrp->isChecked(), anAngles,
BasePointGrp->isChecked(), aBasePoint);
}
else
retVal = aMeshEditor->ExtrusionAlongPath(anElementsId, myPathMesh,
myPathShape, aNodeStart,
AnglesGrp->isChecked(), anAngles,
BasePointGrp->isChecked(), aBasePoint);
}
*/
bool NeedGroups = ( MakeGroupsCheck->isEnabled() && MakeGroupsCheck->isChecked() );
SMESH::ElementType ElemType = SMESH::FACE;
if( GetConstructorId() == 0 )
ElemType = SMESH::EDGE;
if( !MeshCheck->isChecked() ) {
SMESH::ListOfGroups_var groups =
aMeshEditor->ExtrusionAlongPathX(anElementsId, myPath, aNodeStart, AnglesGrp->isChecked(),
anAngles, LinearAnglesCheck->isChecked(),
BasePointGrp->isChecked(), aBasePoint,
NeedGroups, ElemType, retVal);
}
else {
SMESH::ListOfGroups_var groups =
aMeshEditor->ExtrusionAlongPathObjX(myIDSource, myPath, aNodeStart, AnglesGrp->isChecked(),
anAngles, LinearAnglesCheck->isChecked(),
BasePointGrp->isChecked(), aBasePoint,
NeedGroups, ElemType, retVal);
}
if( retVal == SMESH::SMESH_MeshEditor::EXTR_OK )
myMesh->SetParameters( aParameters.join(":").toLatin1().constData() );
//wc.stop();
wc.suspend();
switch (retVal) {
case SMESH::SMESH_MeshEditor::EXTR_NO_ELEMENTS:
SUIT_MessageBox::warning(this,
tr("SMESH_ERROR"),
tr("NO_ELEMENTS_SELECTED"));
return false; break;
case SMESH::SMESH_MeshEditor::EXTR_PATH_NOT_EDGE:
SUIT_MessageBox::warning(this,
tr("SMESH_ERROR"),
tr("SELECTED_PATH_IS_NOT_EDGE"));
return false; break;
case SMESH::SMESH_MeshEditor::EXTR_BAD_PATH_SHAPE:
SUIT_MessageBox::warning(this,
tr("SMESH_ERROR"),
tr("BAD_SHAPE_TYPE"));
return false; break;
case SMESH::SMESH_MeshEditor::EXTR_BAD_STARTING_NODE:
SUIT_MessageBox::warning(this,
tr("SMESH_ERROR"),
tr("EXTR_BAD_STARTING_NODE"));
return false; break;
case SMESH::SMESH_MeshEditor::EXTR_BAD_ANGLES_NUMBER:
SUIT_MessageBox::warning(this,
tr("SMESH_ERROR"),
tr("WRONG_ANGLES_NUMBER"));
return false; break;
case SMESH::SMESH_MeshEditor::EXTR_CANT_GET_TANGENT:
SUIT_MessageBox::warning(this,
tr("SMESH_ERROR"),
tr("CANT_GET_TANGENT"));
return false; break;
case SMESH::SMESH_MeshEditor::EXTR_OK:
break;
}
} catch (...) {
return false;
}
//mySelectionMgr->clearSelected();
if ( myMeshActor )
SMESH::Update( myMeshActor->getIO(), myMeshActor->GetVisibility() );
SMESHGUI::Modified();
if ( MakeGroupsCheck->isEnabled() && MakeGroupsCheck->isChecked() )
mySMESHGUI->updateObjBrowser(true); // new groups may appear
//SMESH::UpdateView();
Init(false);
ConstructorsClicked(GetConstructorId());
return true;
}
| void SMESHGUI_ExtrusionAlongPathDlg::ClickOnHelp | ( | ) | [private, slot] |
Definition at line 678 of file SMESHGUI_ExtrusionAlongPathDlg.cxx.
References myHelpFileName, and SMESHGUI_PreviewDlg.mySMESHGUI.
Referenced by keyPressEvent(), and SMESHGUI_ExtrusionAlongPathDlg().
{
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_ExtrusionAlongPathDlg::ClickOnOk | ( | ) | [private, slot] |
Definition at line 668 of file SMESHGUI_ExtrusionAlongPathDlg.cxx.
References ClickOnApply(), and reject().
Referenced by SMESHGUI_ExtrusionAlongPathDlg().
{
if (ClickOnApply())
reject();
}
| void SMESHGUI_PreviewDlg::connectPreviewControl | ( | ) | [protected, inherited] |
Definition at line 86 of file SMESHGUI_PreviewDlg.cxx.
References SMESHGUI_PreviewDlg.myPreviewCheckBox, and SMESHGUI_PreviewDlg.onDisplaySimulation().
Referenced by SMESHGUI_ExtrusionAlongPathDlg(), SMESHGUI_ExtrusionDlg.SMESHGUI_ExtrusionDlg(), SMESHGUI_RevolutionDlg.SMESHGUI_RevolutionDlg(), SMESHGUI_RotationDlg.SMESHGUI_RotationDlg(), SMESHGUI_ScaleDlg.SMESHGUI_ScaleDlg(), SMESHGUI_SymmetryDlg.SMESHGUI_SymmetryDlg(), and SMESHGUI_TranslationDlg.SMESHGUI_TranslationDlg().
{
connect(myPreviewCheckBox, SIGNAL(toggled(bool)), this, SLOT(onDisplaySimulation(bool)));
}
| void SMESHGUI_ExtrusionAlongPathDlg::ConstructorsClicked | ( | int | type | ) | [private, slot] |
Definition at line 438 of file SMESHGUI_ExtrusionAlongPathDlg.cxx.
References ElementsLineEdit, SMESH.GetViewWindow(), GroupArguments, SMESHGUI_PreviewDlg.hidePreview(), MeshCheck, myEditCurrentArgument, myElementsFilter, mySelectionMgr, SMESHGUI_PreviewDlg.mySMESHGUI, myType, SelectionIntoArgument(), SMESH.SetPickable(), and SMESH.SetPointRepresentation().
Referenced by ActivateThisDialog(), ClickOnApply(), Init(), and SMESHGUI_ExtrusionAlongPathDlg().
{
if (myType == type) return;
disconnect(mySelectionMgr, 0, this, 0);
hidePreview();
if (type == 0)
GroupArguments->setTitle(tr("EXTRUSION_1D"));
else if (type == 1)
GroupArguments->setTitle(tr("EXTRUSION_2D"));
// clear elements ID list
if (!MeshCheck->isChecked()) {
ElementsLineEdit->clear();
}
// set selection mode if necessary
if (myEditCurrentArgument == ElementsLineEdit) {
mySelectionMgr->clearSelected();
mySelectionMgr->clearFilters();
SMESH::SetPickable();
SMESH::SetPointRepresentation(false);
if (MeshCheck->isChecked()) {
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
aViewWindow->SetSelectionMode(ActorSelection);
mySelectionMgr->installFilter(myElementsFilter);
} else {
if (type == 0)
{
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
aViewWindow->SetSelectionMode(EdgeSelection);
}
if (type == 1)
{
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
aViewWindow->SetSelectionMode(FaceSelection);
}
}
}
connect(mySelectionMgr, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
myType = type;
}
| void SMESHGUI_ExtrusionAlongPathDlg::DeactivateActiveDialog | ( | ) | [private, slot] |
Definition at line 1053 of file SMESHGUI_ExtrusionAlongPathDlg.cxx.
References ConstructorsBox, GroupArguments, GroupButtons, SMESHGUI_PreviewDlg.mySMESHGUI, SMESHGUI.ResetState(), and SMESHGUI.SetActiveDialogBox().
Referenced by SMESHGUI_ExtrusionAlongPathDlg().
{
if (ConstructorsBox->isEnabled()) {
ConstructorsBox->setEnabled(false);
GroupArguments->setEnabled(false);
GroupButtons->setEnabled(false);
mySMESHGUI->ResetState();
mySMESHGUI->SetActiveDialogBox(0);
}
}
| void SMESHGUI_ExtrusionAlongPathDlg::enterEvent | ( | QEvent * | ) | [private] |
Definition at line 1086 of file SMESHGUI_ExtrusionAlongPathDlg.cxx.
References ActivateThisDialog(), and ConstructorsBox.
{
if (!ConstructorsBox->isEnabled())
ActivateThisDialog();
}
Definition at line 1158 of file SMESHGUI_ExtrusionAlongPathDlg.cxx.
References AnglesList, SMESHGUI_SpinBox.editor(), ElementsLineEdit, myEditCurrentArgument, OnAngleRemoved(), SelectBasePointButton, SelectElementsButton, SelectStartPointButton, SetEditCurrentArgument(), StartPointLineEdit, XSpin, YSpin, and ZSpin.
{
if (event->type() == QEvent::KeyPress) {
QKeyEvent* ke = (QKeyEvent*)event;
if (object == AnglesList) {
if (ke->key() == Qt::Key_Delete)
OnAngleRemoved();
}
}
else if (event->type() == QEvent::FocusIn) {
if (object == ElementsLineEdit) {
if (myEditCurrentArgument != ElementsLineEdit)
SetEditCurrentArgument(SelectElementsButton);
}
else if (object == StartPointLineEdit) {
if (myEditCurrentArgument != StartPointLineEdit)
SetEditCurrentArgument(SelectStartPointButton);
}
else if (object == XSpin->editor() || object == YSpin->editor() || object == ZSpin->editor()) {
if (myEditCurrentArgument != XSpin)
SetEditCurrentArgument(SelectBasePointButton);
}
}
return QDialog::eventFilter(object, event);
}
| SMESH::double_array_var SMESHGUI_ExtrusionAlongPathDlg::getAngles | ( | ) | [private] |
Definition at line 1408 of file SMESHGUI_ExtrusionAlongPathDlg.cxx.
References SMESH_demo_hexa2_upd.angle, AnglesGrp, myAnglesList, and PI.
Referenced by ClickOnApply(), and onDisplaySimulation().
{
SMESH::double_array_var anAngles = new SMESH::double_array;
if (AnglesGrp->isChecked()) {
anAngles->length(myAnglesList.count());
int j = 0;
for (int i = 0; i < myAnglesList.count(); i++) {
double angle = myAnglesList[i];
anAngles[ j++ ] = angle*PI/180;
}
anAngles->length(j);
}
return anAngles;
}
| int SMESHGUI_ExtrusionAlongPathDlg::GetConstructorId | ( | ) | [private] |
Definition at line 1113 of file SMESHGUI_ExtrusionAlongPathDlg.cxx.
References GroupConstructors.
Referenced by ActivateThisDialog(), ClickOnApply(), and onDisplaySimulation().
{
return GroupConstructors->checkedId();
}
| SMESH::long_array_var SMESHGUI_ExtrusionAlongPathDlg::getSelectedElements | ( | ) | [private] |
Definition at line 1373 of file SMESHGUI_ExtrusionAlongPathDlg.cxx.
References Elements1dRB, Elements2dRB, ElementsLineEdit, SMDS_Mesh.FindElement(), SMESH_Actor.GetObject(), SMDS_MeshElement.GetType(), SMESH_test.ind, MeshCheck, myMeshActor, SMDSAbs_Edge, and SMDSAbs_Face.
Referenced by ClickOnApply(), and onDisplaySimulation().
{
// If "Select whole mesh, submesh or group" check box is off ->
// use only elements of given type selected by user
SMESH::long_array_var anElementsId = new SMESH::long_array;
if (!MeshCheck->isChecked()) {
SMDS_Mesh* aMesh;
if ( myMeshActor )
aMesh = myMeshActor->GetObject()->GetMesh();
if (aMesh) {
QStringList aListElementsId = ElementsLineEdit->text().split(" ", QString::SkipEmptyParts);
anElementsId = new SMESH::long_array;
anElementsId->length(aListElementsId.count());
bool bOk;
int j = 0;
for (int i = 0; i < aListElementsId.count(); i++) {
long ind = aListElementsId[ i ].toLong(&bOk);
if (bOk) {
const SMDS_MeshElement* e = aMesh->FindElement(ind);
if (e) {
bool typeMatch = (Elements1dRB->isChecked() && e->GetType() == SMDSAbs_Edge) ||
(Elements2dRB->isChecked() && e->GetType() == SMDSAbs_Face);
if (typeMatch)
anElementsId[ j++ ] = ind;
}
}
}
anElementsId->length(j);
}
}
return anElementsId;
}
| void SMESHGUI_PreviewDlg::hidePreview | ( | ) | [inherited] |
Definition at line 77 of file SMESHGUI_PreviewDlg.cxx.
References SMESHGUI_PreviewDlg.mySimulation, and SMESHGUI_MeshEditPreview.SetVisibility().
Referenced by SMESHGUI_ExtrusionDlg.ConstructorsClicked(), ConstructorsClicked(), SMESHGUI_TranslationDlg.onDisplaySimulation(), SMESHGUI_SymmetryDlg.onDisplaySimulation(), SMESHGUI_ScaleDlg.onDisplaySimulation(), SMESHGUI_RotationDlg.onDisplaySimulation(), SMESHGUI_ExtrusionDlg.onDisplaySimulation(), onDisplaySimulation(), SMESHGUI_TranslationDlg.onSelectMesh(), SMESHGUI_SymmetryDlg.onSelectMesh(), SMESHGUI_ScaleDlg.onSelectMesh(), and SMESHGUI_RotationDlg.onSelectMesh().
{
if(mySimulation)
mySimulation->SetVisibility(false);
}
| void SMESHGUI_ExtrusionAlongPathDlg::Init | ( | bool | ResetControls = true | ) | [private] |
Definition at line 405 of file SMESHGUI_ExtrusionAlongPathDlg.cxx.
References AngleSpin, ConstructorsClicked(), ElementsLineEdit, MeshCheck, myBusy, myEditCurrentArgument, myIDSource, myMesh, myMeshActor, myPath, SMESHGUI_PreviewDlg.myPreviewCheckBox, onDisplaySimulation(), onSelectMesh(), PathMeshLineEdit, SetEditCurrentArgument(), SMESHGUI_SpinBox.SetValue(), StartPointLineEdit, XSpin, YSpin, and ZSpin.
Referenced by ClickOnApply(), and SMESHGUI_ExtrusionAlongPathDlg().
{
myBusy = false;
myEditCurrentArgument = 0;
myMesh = SMESH::SMESH_Mesh::_nil();
myIDSource = SMESH::SMESH_IDSource::_nil();
myMeshActor = 0;
myPath = SMESH::SMESH_IDSource::_nil();
ElementsLineEdit->clear();
PathMeshLineEdit->clear();
StartPointLineEdit->clear();
if (ResetControls) {
XSpin->SetValue(0.0);
YSpin->SetValue(0.0);
ZSpin->SetValue(0.0);
AngleSpin->SetValue(45);
MeshCheck->setChecked(false);
ConstructorsClicked(0);
onSelectMesh();
myPreviewCheckBox->setChecked(false);
onDisplaySimulation(false);
}
SetEditCurrentArgument(0);
}
| bool SMESHGUI_PreviewDlg::isApplyAndClose | ( | ) | const [protected, virtual, inherited] |
Definition at line 122 of file SMESHGUI_PreviewDlg.cxx.
References SMESHGUI_PreviewDlg.myIsApplyAndClose.
Referenced by SMESHGUI_TranslationDlg.ClickOnApply(), SMESHGUI_SymmetryDlg.ClickOnApply(), SMESHGUI_ScaleDlg.ClickOnApply(), and SMESHGUI_RotationDlg.ClickOnApply().
{
return myIsApplyAndClose;
}
| bool SMESHGUI_ExtrusionAlongPathDlg::isValid | ( | ) | [private] |
Definition at line 1232 of file SMESHGUI_ExtrusionAlongPathDlg.cxx.
References XSpin, YSpin, and ZSpin.
Referenced by ClickOnApply(), and onDisplaySimulation().
{
QString msg;
bool ok = true;
ok = XSpin->isValid( msg, true ) && ok;
ok = YSpin->isValid( msg, true ) && ok;
ok = ZSpin->isValid( msg, true ) && ok;
if( !ok ) {
QString str( tr( "SMESH_INCORRECT_INPUT" ) );
if ( !msg.isEmpty() )
str += "\n" + msg;
SUIT_MessageBox::critical( this, tr( "SMESH_ERROR" ), str );
return false;
}
return true;
}
| bool SMESHGUI_ExtrusionAlongPathDlg::isValuesValid | ( | ) | [private] |
Definition at line 1274 of file SMESHGUI_ExtrusionAlongPathDlg.cxx.
References ElementsLineEdit, MeshCheck, myIDSource, myMesh, myPath, and StartPointLineEdit.
Referenced by onDisplaySimulation().
{
if ( (MeshCheck->isChecked() && myIDSource->_is_nil()) ||
myMesh->_is_nil() ||
myPath->_is_nil() )
return false;
if(!MeshCheck->isChecked()) {
QStringList aListElementsId = ElementsLineEdit->text().split(" ", QString::SkipEmptyParts);
if(aListElementsId.count() <= 0)
return false;
}
bool bOk;
StartPointLineEdit->text().toLong(&bOk);
if (!bOk) {
return false;
}
return true;
}
| void SMESHGUI_ExtrusionAlongPathDlg::keyPressEvent | ( | QKeyEvent * | e | ) | [private] |
Definition at line 1188 of file SMESHGUI_ExtrusionAlongPathDlg.cxx.
References ClickOnHelp().
{
QDialog::keyPressEvent( e );
if ( e->isAccepted() )
return;
if ( e->key() == Qt::Key_F1 ) {
e->accept();
ClickOnHelp();
}
}
| void SMESHGUI_ExtrusionAlongPathDlg::OnAngleAdded | ( | ) | [private, slot] |
Definition at line 1122 of file SMESHGUI_ExtrusionAlongPathDlg.cxx.
References AnglesList, AngleSpin, SMESHGUI_SpinBox.GetValue(), myAnglesList, and updateLinearAngles().
Referenced by SMESHGUI_ExtrusionAlongPathDlg().
{
QString msg;
if( !AngleSpin->isValid( msg, true ) ) {
QString str( tr( "SMESH_INCORRECT_INPUT" ) );
if ( !msg.isEmpty() )
str += "\n" + msg;
SUIT_MessageBox::critical( this, tr( "SMESH_ERROR" ), str );
return;
}
AnglesList->addItem(AngleSpin->text());
myAnglesList.append(AngleSpin->GetValue());
updateLinearAngles();
}
| void SMESHGUI_ExtrusionAlongPathDlg::OnAngleRemoved | ( | ) | [private, slot] |
Definition at line 1142 of file SMESHGUI_ExtrusionAlongPathDlg.cxx.
References AnglesList, myAnglesList, and updateLinearAngles().
Referenced by eventFilter(), and SMESHGUI_ExtrusionAlongPathDlg().
{
QList<QListWidgetItem*> aList = AnglesList->selectedItems();
QListWidgetItem* anItem;
foreach(anItem, aList) {
myAnglesList.removeAt(AnglesList->row(anItem));
delete anItem;
}
updateLinearAngles();
}
| void SMESHGUI_ExtrusionAlongPathDlg::onDisplaySimulation | ( | bool | toDisplayPreview | ) | [protected, virtual, slot] |
Reimplemented from SMESHGUI_PreviewDlg.
Definition at line 1301 of file SMESHGUI_ExtrusionAlongPathDlg.cxx.
References AnglesGrp, BasePointGrp, EDGE, SMESH.SMESH_MeshEditor.EXTR_OK, FACE, getAngles(), GetConstructorId(), getSelectedElements(), SMESHGUI_SpinBox.GetValue(), SMESHGUI_PreviewDlg.hidePreview(), isValid(), isValuesValid(), LinearAnglesCheck, MeshCheck, myIDSource, myMesh, myPath, SMESHGUI_PreviewDlg.myPreviewCheckBox, SMESHGUI_PreviewDlg.mySimulation, SMESHGUI_MeshEditPreview.SetData(), StartPointLineEdit, SMESH.PointStruct.x, XSpin, SMESH.PointStruct.y, YSpin, SMESH.PointStruct.z, and ZSpin.
Referenced by Init(), and SelectionIntoArgument().
{
if (myPreviewCheckBox->isChecked() && toDisplayPreview) {
if(isValid() && isValuesValid()) {
//Get selected elements:
SMESH::long_array_var anElementsId = getSelectedElements();
// get angles
SMESH::double_array_var anAngles = getAngles();
// get base point
SMESH::PointStruct aBasePoint;
if (BasePointGrp->isChecked()) {
aBasePoint.x = XSpin->GetValue();
aBasePoint.y = YSpin->GetValue();
aBasePoint.z = ZSpin->GetValue();
}
bool bOk;
long aNodeStart = StartPointLineEdit->text().toLong(&bOk);
if (bOk) {
try {
SUIT_OverrideCursor wc;
SMESH::SMESH_MeshEditor::Extrusion_Error retVal;
SMESH::SMESH_MeshEditor_var aMeshEditor = myMesh->GetMeshEditPreviewer();
bool NeedGroups = false;
SMESH::ElementType ElemType = SMESH::FACE;
if( GetConstructorId() == 0 )
ElemType = SMESH::EDGE;
if( !MeshCheck->isChecked() ) {
aMeshEditor->ExtrusionAlongPathX(anElementsId, myPath, aNodeStart, AnglesGrp->isChecked(),
anAngles, LinearAnglesCheck->isChecked(),
BasePointGrp->isChecked(), aBasePoint,
NeedGroups, ElemType, retVal);
}
else {
SMESH::ListOfGroups_var groups =
aMeshEditor->ExtrusionAlongPathObjX(myIDSource, myPath, aNodeStart, AnglesGrp->isChecked(),
anAngles, LinearAnglesCheck->isChecked(),
BasePointGrp->isChecked(), aBasePoint,
NeedGroups, ElemType, retVal);
}
wc.suspend();
if( retVal == SMESH::SMESH_MeshEditor::EXTR_OK ) {
SMESH::MeshPreviewStruct_var aMeshPreviewStruct = aMeshEditor->GetPreviewData();
mySimulation->SetData(aMeshPreviewStruct._retn());
} else {
hidePreview();
}
} catch (...) {
hidePreview();
}
} else {
hidePreview();
}
} else {
hidePreview();
}
} else {
hidePreview();
}
}
| void SMESHGUI_ExtrusionAlongPathDlg::onSelectMesh | ( | ) | [private, slot] |
Definition at line 1096 of file SMESHGUI_ExtrusionAlongPathDlg.cxx.
References ElementsLab, ElementsLineEdit, MeshCheck, myFilterBtn, myIdValidator, SelectElementsButton, and SetEditCurrentArgument().
Referenced by Init(), and SMESHGUI_ExtrusionAlongPathDlg().
{
bool toSelectMesh = MeshCheck->isChecked();
ElementsLineEdit->setReadOnly(toSelectMesh);
ElementsLineEdit->setValidator(toSelectMesh ? 0 : myIdValidator);
ElementsLab->setText(toSelectMesh ? tr("SMESH_NAME") : tr("SMESH_ID_ELEMENTS"));
ElementsLineEdit->clear();
myFilterBtn->setEnabled(!toSelectMesh);
SetEditCurrentArgument(SelectElementsButton);
}
| void SMESHGUI_ExtrusionAlongPathDlg::onTextChange | ( | const QString & | theNewText | ) | [private, slot] |
Definition at line 722 of file SMESHGUI_ExtrusionAlongPathDlg.cxx.
References Elements1dRB, Elements2dRB, ElementsLineEdit, SMESH.FindActorByObject(), SMDS_Mesh.FindElement(), SMDS_Mesh.FindNode(), SMDS_MeshElement.GetID(), SMESH_Actor.GetObject(), SMDS_MeshElement.GetType(), SMESH.GetViewWindow(), Handle(), SMESH_test.ind, myBusy, myEditCurrentArgument, myMeshActor, myPath, mySelectionMgr, mySelector, SMESHGUI_PreviewDlg.mySMESHGUI, SMDSAbs_Edge, SMDSAbs_Face, and StartPointLineEdit.
Referenced by SMESHGUI_ExtrusionAlongPathDlg().
{
QLineEdit* send = (QLineEdit*)sender();
// return if busy
if (myBusy) return;
// set busy flag
SetBusy sb (this);
if (send != StartPointLineEdit && send != ElementsLineEdit)
send = ElementsLineEdit;
if (send == ElementsLineEdit && myEditCurrentArgument == ElementsLineEdit) {
// hilight entered elements
SMDS_Mesh* aMesh = 0;
if (myMeshActor)
aMesh = myMeshActor->GetObject()->GetMesh();
if (aMesh) {
//mySelectionMgr->clearSelected();
//mySelectionMgr->AddIObject(myMeshActor->getIO());
SALOME_ListIO aList;
aList.Append(myMeshActor->getIO());
mySelectionMgr->setSelectedObjects(aList, false);
QStringList aListId = theNewText.split(" ", QString::SkipEmptyParts);
bool bOk;
const Handle(SALOME_InteractiveObject)& anIO = myMeshActor->getIO();
TColStd_MapOfInteger newIndices;
for (int i = 0; i < aListId.count(); i++) {
long ind = aListId[ i ].toLong(&bOk);
if (bOk) {
const SMDS_MeshElement* e = aMesh->FindElement(ind);
if (e) {
// check also type of element
bool typeMatch = (Elements1dRB->isChecked() && e->GetType() == SMDSAbs_Edge) ||
(Elements2dRB->isChecked() && e->GetType() == SMDSAbs_Face);
if (typeMatch)
newIndices.Add(e->GetID());
}
}
}
mySelector->AddOrRemoveIndex(anIO, newIndices, false);
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
aViewWindow->highlight( anIO, true, true );
}
}
else if (send == StartPointLineEdit &&
myEditCurrentArgument == StartPointLineEdit) {
if (!myPath->_is_nil()) {
SMESH_Actor* aPathActor = SMESH::FindActorByObject(myPath);
SMDS_Mesh* aMesh = 0;
if (aPathActor)
aMesh = aPathActor->GetObject()->GetMesh();
if (aMesh) {
//mySelectionMgr->clearSelected();
//mySelectionMgr->AddIObject(aPathActor->getIO());
SALOME_ListIO aList;
aList.Append(aPathActor->getIO());
mySelectionMgr->setSelectedObjects(aList, false);
bool bOk;
long ind = theNewText.toLong(&bOk);
if (bOk) {
const SMDS_MeshNode* n = aMesh->FindNode(ind);
if (n) {
//if (!mySelectionMgr->IsIndexSelected(aPathActor->getIO(), n->GetID())) {
TColStd_MapOfInteger newIndices;
newIndices.Add(n->GetID());
mySelector->AddOrRemoveIndex( aPathActor->getIO(), newIndices, false );
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
aViewWindow->highlight( aPathActor->getIO(), true, true );
}
}
}
}
}
}
| void SMESHGUI_ExtrusionAlongPathDlg::reject | ( | ) | [protected, slot] |
Definition at line 702 of file SMESHGUI_ExtrusionAlongPathDlg.cxx.
References SMESH.GetCurrentVtkView(), SMESH.GetViewWindow(), mySelectionMgr, SMESHGUI_PreviewDlg.mySMESHGUI, SMESH.RemoveFilters(), SMESHGUI.ResetState(), SMESH.SetPickable(), and SMESH.SetPointRepresentation().
Referenced by ClickOnOk(), and SMESHGUI_ExtrusionAlongPathDlg().
{
disconnect(mySelectionMgr, 0, this, 0);
mySelectionMgr->clearFilters();
//mySelectionMgr->clearSelected();
if (SMESH::GetCurrentVtkView()) {
SMESH::RemoveFilters(); // PAL6938 -- clean all mesh entity filters
SMESH::SetPointRepresentation(false);
SMESH::SetPickable();
}
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
aViewWindow->SetSelectionMode(ActorSelection);
mySMESHGUI->ResetState();
QDialog::reject();
}
| void SMESHGUI_ExtrusionAlongPathDlg::SelectionIntoArgument | ( | ) | [private, slot] |
Definition at line 806 of file SMESHGUI_ExtrusionAlongPathDlg.cxx.
References BasePointGrp, ElementsLineEdit, SMESH.FindActorByObject(), SMDS_Mesh.FindNode(), SMESH.GetMeshByIO(), SMESH.GetNameOfSelectedElements(), SMESH.GetNameOfSelectedIObjects(), SMESH.GetNameOfSelectedNodes(), SMESH_Actor.GetObject(), GroupButtons, Handle(), MakeGroupsCheck, PAL_MESH_041_mesh.mesh, MeshCheck, myBusy, myEditCurrentArgument, myIDSource, myMesh, myMeshActor, myPath, mySelectionMgr, mySelector, onDisplaySimulation(), PathMeshLineEdit, SMESHGUI_SpinBox.SetValue(), StartPointLineEdit, SMDS_MeshNode.X(), XSpin, SMDS_MeshNode.Y(), YSpin, SMDS_MeshNode.Z(), and ZSpin.
Referenced by ActivateThisDialog(), ConstructorsClicked(), SetEditCurrentArgument(), and SMESHGUI_ExtrusionAlongPathDlg().
{
if (myBusy) return;
// return if dialog box is inactive
if (!GroupButtons->isEnabled())
return;
// selected objects count
const SALOME_ListIO& aList = mySelector->StoredIObjects();
int nbSel = aList.Extent();
if (nbSel != 1)
return;
// set busy flag
SetBusy sb (this);
if (myEditCurrentArgument == ElementsLineEdit) {
// we are now selecting mesh elements (or whole mesh/submesh/group)
// reset
ElementsLineEdit->clear();
myMesh = SMESH::SMESH_Mesh::_nil();
myIDSource = SMESH::SMESH_IDSource::_nil();
myMeshActor = 0;
// try to get mesh from selection
Handle(SALOME_InteractiveObject) IO = aList.First();
myMesh = SMESH::GetMeshByIO(IO);
if (myMesh->_is_nil())
return;
// MakeGroups is available if there are groups
if ( myMesh->NbGroups() == 0 ) {
MakeGroupsCheck->setChecked(false);
MakeGroupsCheck->setEnabled(false);
} else {
MakeGroupsCheck->setEnabled(true);
}
// find actor
myMeshActor = SMESH::FindActorByObject(myMesh);
if (!myMeshActor && !MeshCheck->isChecked())
return;
if (MeshCheck->isChecked()) {
// If "Select whole mesh, submesh or group" check box is on ->
// get ID source and put it's name to the edit box
QString aString;
SMESH::GetNameOfSelectedIObjects(mySelectionMgr, aString);
myIDSource = SMESH::IObjectToInterface<SMESH::SMESH_IDSource>(IO);
ElementsLineEdit->setText(aString);
} else {
// If "Select whole mesh, submesh or group" check box is off ->
// try to get selected elements IDs
QString aString;
//int aNbUnits = SMESH::GetNameOfSelectedElements(mySelectionMgr, aString);
SMESH::GetNameOfSelectedElements(mySelector, IO, aString);
ElementsLineEdit->setText(aString);
}
}
else if (myEditCurrentArgument == PathMeshLineEdit) {
// we are now selecting path mesh
// reset
PathMeshLineEdit->clear();
myPath = SMESH::SMESH_IDSource::_nil();
StartPointLineEdit->clear();
// try to get mesh from selection
Handle(SALOME_InteractiveObject) IO = aList.First();
myPath = SMESH::IObjectToInterface<SMESH::SMESH_IDSource>(IO);
if( myPath->_is_nil() )
return;
QString aString;
SMESH::GetNameOfSelectedIObjects(mySelectionMgr, aString);
PathMeshLineEdit->setText(aString);
}
else if (myEditCurrentArgument == StartPointLineEdit) {
// we are now selecting start point of path
// reset
StartPointLineEdit->clear();
// return if path mesh or path shape is not yet selected
if( myPath->_is_nil() )
return;
// try to get shape from selection
Handle(SALOME_InteractiveObject) IO = aList.First();
SMESH_Actor* aPathActor = SMESH::FindActorByObject(myPath);
if ( !aPathActor )
return;
QString aString;
int aNbUnits = SMESH::GetNameOfSelectedElements(mySelector, aPathActor->getIO(), aString);
if (aNbUnits == 1)
StartPointLineEdit->setText(aString.trimmed());
} else if (myEditCurrentArgument == XSpin) {
// we are now selecting base point
// reset is not performed here!
// return if is not enabled
if (!BasePointGrp->isChecked())
return;
// try to get shape from selection
Handle(SALOME_InteractiveObject) IO = aList.First();
// check if geom vertex is selected
GEOM::GEOM_Object_var aGeomObj = SMESH::IObjectToInterface<GEOM::GEOM_Object>(IO);
TopoDS_Vertex aVertex;
if (!aGeomObj->_is_nil()) {
if (aGeomObj->IsShape() && GEOMBase::GetShape(aGeomObj, aVertex) && !aVertex.IsNull()) {
gp_Pnt aPnt = BRep_Tool::Pnt(aVertex);
XSpin->SetValue(aPnt.X());
YSpin->SetValue(aPnt.Y());
ZSpin->SetValue(aPnt.Z());
}
return;
}
// check if smesh node is selected
SMESH::SMESH_Mesh_var aMesh = SMESH::GetMeshByIO(IO);
if (aMesh->_is_nil())
return;
QString aString;
int aNbUnits = SMESH::GetNameOfSelectedNodes(mySelector, myMeshActor->getIO(), aString);
// return if more than one node is selected
if (aNbUnits != 1)
return;
SMESH_Actor* aMeshActor = SMESH::FindActorByObject(aMesh);
if (!aMeshActor)
return;
SMDS_Mesh* mesh = aMeshActor->GetObject()->GetMesh();
if (!mesh)
return;
const SMDS_MeshNode* n = mesh->FindNode(aString.toLong());
if (!n)
return;
XSpin->SetValue(n->X());
YSpin->SetValue(n->Y());
ZSpin->SetValue(n->Z());
}
onDisplaySimulation(true);
}
| void SMESHGUI_ExtrusionAlongPathDlg::SetEditCurrentArgument | ( | QToolButton * | button | ) | [private] |
Definition at line 977 of file SMESHGUI_ExtrusionAlongPathDlg.cxx.
References Elements1dRB, Elements2dRB, ElementsLineEdit, SMESH.FindActorByObject(), SMESH.GetViewWindow(), GROUP, SMESH_LogicalFilter.LO_OR, MeshCheck, MESHorSUBMESH, myEditCurrentArgument, myElementsFilter, myPath, myPathMeshFilter, mySelectionMgr, SMESHGUI_PreviewDlg.mySMESHGUI, PathMeshLineEdit, SelectBasePointButton, SelectElementsButton, SelectionIntoArgument(), SelectPathMeshButton, SelectStartPointButton, SMESH.SetPickable(), SMESH.SetPointRepresentation(), StartPointLineEdit, and XSpin.
{
disconnect(mySelectionMgr, 0, this, 0);
// mySelectionMgr->clearSelected();
mySelectionMgr->clearFilters();
SMESH::SetPickable();
if (button == SelectElementsButton) {
myEditCurrentArgument = ElementsLineEdit;
SMESH::SetPointRepresentation(false);
if (MeshCheck->isChecked()) {
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
aViewWindow->SetSelectionMode(ActorSelection);
mySelectionMgr->installFilter(myElementsFilter);
} else {
if (Elements1dRB->isChecked())
{
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
aViewWindow->SetSelectionMode(EdgeSelection);
}
else if (Elements2dRB->isChecked())
{
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
aViewWindow->SetSelectionMode(FaceSelection);
}
}
} else if (button == SelectPathMeshButton) {
myEditCurrentArgument = PathMeshLineEdit;
SMESH::SetPointRepresentation(false);
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
aViewWindow->SetSelectionMode(ActorSelection);
mySelectionMgr->installFilter(myPathMeshFilter);
}
else if (button == SelectStartPointButton) {
myEditCurrentArgument = StartPointLineEdit;
//if (!myPathMesh->_is_nil()) {
if (!myPath->_is_nil()) {
SMESH_Actor* aPathActor = SMESH::FindActorByObject(myPath);
if (aPathActor) {
SMESH::SetPointRepresentation(true);
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
aViewWindow->SetSelectionMode(NodeSelection);
SMESH::SetPickable(aPathActor);
}
}
}
else if (button == SelectBasePointButton) {
myEditCurrentArgument = XSpin;
SMESH::SetPointRepresentation(true);
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
aViewWindow->SetSelectionMode(NodeSelection);
SMESH_TypeFilter* aMeshOrSubMeshFilter = new SMESH_TypeFilter(MESHorSUBMESH);
SMESH_TypeFilter* aSmeshGroupFilter = new SMESH_TypeFilter(GROUP);
SMESH_NumberFilter* aVertexFilter = new SMESH_NumberFilter ("GEOM", TopAbs_SHAPE,
-1, TopAbs_VERTEX);
QList<SUIT_SelectionFilter*> aListOfFilters;
if (aMeshOrSubMeshFilter) aListOfFilters.append(aMeshOrSubMeshFilter);
if (aSmeshGroupFilter) aListOfFilters.append(aSmeshGroupFilter);
if (aVertexFilter) aListOfFilters.append(aVertexFilter);
mySelectionMgr->installFilter(new SMESH_LogicalFilter
(aListOfFilters, SMESH_LogicalFilter::LO_OR));
}
if (myEditCurrentArgument && !myEditCurrentArgument->hasFocus())
myEditCurrentArgument->setFocus();
connect(mySelectionMgr, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
SelectionIntoArgument();
}
| void SMESHGUI_ExtrusionAlongPathDlg::SetEditCurrentArgument | ( | ) | [private, slot] |
Definition at line 962 of file SMESHGUI_ExtrusionAlongPathDlg.cxx.
References SelectBasePointButton, SelectElementsButton, SelectPathMeshButton, and SelectStartPointButton.
Referenced by eventFilter(), Init(), onSelectMesh(), and SMESHGUI_ExtrusionAlongPathDlg().
{
QToolButton* send = (QToolButton*)sender();
if (send != SelectElementsButton &&
send != SelectPathMeshButton &&
send != SelectStartPointButton &&
send != SelectBasePointButton)
return;
SetEditCurrentArgument(send);
}
| void SMESHGUI_ExtrusionAlongPathDlg::setFilters | ( | ) | [private, slot] |
Definition at line 1204 of file SMESHGUI_ExtrusionAlongPathDlg.cxx.
References SMESH.EDGE, Elements1dRB, ElementsLineEdit, FACE, SMESH.FACE, SMESHGUI_FilterDlg.Init(), myFilterDlg, myMesh, SMESHGUI_PreviewDlg.mySMESHGUI, SMESHGUI_FilterDlg.SetMesh(), SMESHGUI_FilterDlg.SetSelection(), and SMESHGUI_FilterDlg.SetSourceWg().
Referenced by SMESHGUI_ExtrusionAlongPathDlg().
{
if(myMesh->_is_nil()) {
SUIT_MessageBox::critical(this,
tr("SMESH_ERROR"),
tr("NO_MESH_SELECTED"));
return;
}
if ( !myFilterDlg )
{
QList<int> types;
types.append( SMESH::EDGE );
types.append( SMESH::FACE );
myFilterDlg = new SMESHGUI_FilterDlg( mySMESHGUI, types );
}
myFilterDlg->Init( Elements1dRB->isChecked() ? SMESH::EDGE : SMESH::FACE );
myFilterDlg->SetSelection();
myFilterDlg->SetMesh( myMesh );
myFilterDlg->SetSourceWg( ElementsLineEdit );
myFilterDlg->show();
}
| void SMESHGUI_PreviewDlg::setIsApplyAndClose | ( | const bool | theFlag | ) | [protected, virtual, inherited] |
Definition at line 112 of file SMESHGUI_PreviewDlg.cxx.
References SMESHGUI_PreviewDlg.myIsApplyAndClose.
Referenced by SMESHGUI_TranslationDlg.ClickOnOk(), SMESHGUI_SymmetryDlg.ClickOnOk(), SMESHGUI_ScaleDlg.ClickOnOk(), and SMESHGUI_RotationDlg.ClickOnOk().
{
myIsApplyAndClose = theFlag;
}
| void SMESHGUI_PreviewDlg::showPreview | ( | ) | [inherited] |
Definition at line 68 of file SMESHGUI_PreviewDlg.cxx.
References SMESHGUI_PreviewDlg.mySimulation, and SMESHGUI_MeshEditPreview.SetVisibility().
{
if(mySimulation)
mySimulation->SetVisibility(true);
}
| void SMESHGUI_PreviewDlg::toDisplaySimulation | ( | ) | [protected, slot, inherited] |
Definition at line 95 of file SMESHGUI_PreviewDlg.cxx.
References SMESHGUI_PreviewDlg.onDisplaySimulation().
Referenced by SMESHGUI_TranslationDlg.onActionClicked(), SMESHGUI_SymmetryDlg.onActionClicked(), SMESHGUI_ScaleDlg.onActionClicked(), SMESHGUI_RotationDlg.onActionClicked(), SMESHGUI_ExtrusionAlongPathDlg(), SMESHGUI_ExtrusionDlg.SMESHGUI_ExtrusionDlg(), SMESHGUI_RevolutionDlg.SMESHGUI_RevolutionDlg(), SMESHGUI_RotationDlg.SMESHGUI_RotationDlg(), SMESHGUI_ScaleDlg.SMESHGUI_ScaleDlg(), SMESHGUI_SymmetryDlg.SMESHGUI_SymmetryDlg(), and SMESHGUI_TranslationDlg.SMESHGUI_TranslationDlg().
{
onDisplaySimulation(true);
}
| void SMESHGUI_ExtrusionAlongPathDlg::updateLinearAngles | ( | ) | [private] |
Definition at line 1254 of file SMESHGUI_ExtrusionAlongPathDlg.cxx.
References AnglesList, and LinearAnglesCheck.
Referenced by OnAngleAdded(), and OnAngleRemoved().
{
bool enableLinear = true;
for( int row = 0, nbRows = AnglesList->count(); row < nbRows; row++ ) {
if( QListWidgetItem* anItem = AnglesList->item( row ) ) {
enableLinear = false;
anItem->text().toDouble(&enableLinear);
if( !enableLinear )
break;
}
}
if( !enableLinear )
LinearAnglesCheck->setChecked( false );
LinearAnglesCheck->setEnabled( enableLinear );
}
friend class SetBusy [friend] |
Definition at line 65 of file SMESHGUI_ExtrusionAlongPathDlg.h.
QToolButton* SMESHGUI_ExtrusionAlongPathDlg.AddAngleButton [private] |
Definition at line 128 of file SMESHGUI_ExtrusionAlongPathDlg.h.
Referenced by SMESHGUI_ExtrusionAlongPathDlg().
Definition at line 126 of file SMESHGUI_ExtrusionAlongPathDlg.h.
Referenced by ClickOnApply(), getAngles(), onDisplaySimulation(), and SMESHGUI_ExtrusionAlongPathDlg().
QListWidget* SMESHGUI_ExtrusionAlongPathDlg.AnglesList [private] |
Definition at line 127 of file SMESHGUI_ExtrusionAlongPathDlg.h.
Referenced by ClickOnApply(), eventFilter(), OnAngleAdded(), OnAngleRemoved(), SMESHGUI_ExtrusionAlongPathDlg(), and updateLinearAngles().
Definition at line 130 of file SMESHGUI_ExtrusionAlongPathDlg.h.
Referenced by Init(), OnAngleAdded(), and SMESHGUI_ExtrusionAlongPathDlg().
QPushButton* SMESHGUI_ExtrusionAlongPathDlg.ApplyButton [private] |
Definition at line 140 of file SMESHGUI_ExtrusionAlongPathDlg.h.
Referenced by SMESHGUI_ExtrusionAlongPathDlg().
Definition at line 131 of file SMESHGUI_ExtrusionAlongPathDlg.h.
Referenced by ClickOnApply(), onDisplaySimulation(), SelectionIntoArgument(), and SMESHGUI_ExtrusionAlongPathDlg().
QPushButton* SMESHGUI_ExtrusionAlongPathDlg.CloseButton [private] |
Definition at line 141 of file SMESHGUI_ExtrusionAlongPathDlg.h.
Referenced by SMESHGUI_ExtrusionAlongPathDlg().
Definition at line 108 of file SMESHGUI_ExtrusionAlongPathDlg.h.
Referenced by ActivateThisDialog(), DeactivateActiveDialog(), enterEvent(), and SMESHGUI_ExtrusionAlongPathDlg().
QRadioButton* SMESHGUI_ExtrusionAlongPathDlg.Elements1dRB [private] |
Definition at line 110 of file SMESHGUI_ExtrusionAlongPathDlg.h.
Referenced by getSelectedElements(), onTextChange(), SetEditCurrentArgument(), setFilters(), and SMESHGUI_ExtrusionAlongPathDlg().
QRadioButton* SMESHGUI_ExtrusionAlongPathDlg.Elements2dRB [private] |
Definition at line 111 of file SMESHGUI_ExtrusionAlongPathDlg.h.
Referenced by getSelectedElements(), onTextChange(), SetEditCurrentArgument(), and SMESHGUI_ExtrusionAlongPathDlg().
QLabel* SMESHGUI_ExtrusionAlongPathDlg.ElementsLab [private] |
Definition at line 114 of file SMESHGUI_ExtrusionAlongPathDlg.h.
Referenced by onSelectMesh(), and SMESHGUI_ExtrusionAlongPathDlg().
QLineEdit* SMESHGUI_ExtrusionAlongPathDlg.ElementsLineEdit [private] |
Definition at line 116 of file SMESHGUI_ExtrusionAlongPathDlg.h.
Referenced by ConstructorsClicked(), eventFilter(), getSelectedElements(), Init(), isValuesValid(), onSelectMesh(), onTextChange(), SelectionIntoArgument(), SetEditCurrentArgument(), setFilters(), and SMESHGUI_ExtrusionAlongPathDlg().
Definition at line 113 of file SMESHGUI_ExtrusionAlongPathDlg.h.
Referenced by ActivateThisDialog(), ConstructorsClicked(), DeactivateActiveDialog(), and SMESHGUI_ExtrusionAlongPathDlg().
Definition at line 138 of file SMESHGUI_ExtrusionAlongPathDlg.h.
Referenced by ActivateThisDialog(), DeactivateActiveDialog(), SelectionIntoArgument(), and SMESHGUI_ExtrusionAlongPathDlg().
QButtonGroup* SMESHGUI_ExtrusionAlongPathDlg.GroupConstructors [private] |
Definition at line 109 of file SMESHGUI_ExtrusionAlongPathDlg.h.
Referenced by GetConstructorId(), and SMESHGUI_ExtrusionAlongPathDlg().
QPushButton* SMESHGUI_ExtrusionAlongPathDlg.HelpButton [private] |
Definition at line 142 of file SMESHGUI_ExtrusionAlongPathDlg.h.
Referenced by SMESHGUI_ExtrusionAlongPathDlg().
QCheckBox* SMESHGUI_ExtrusionAlongPathDlg.LinearAnglesCheck [private] |
Definition at line 125 of file SMESHGUI_ExtrusionAlongPathDlg.h.
Referenced by ClickOnApply(), onDisplaySimulation(), SMESHGUI_ExtrusionAlongPathDlg(), and updateLinearAngles().
QCheckBox* SMESHGUI_ExtrusionAlongPathDlg.MakeGroupsCheck [private] |
Definition at line 136 of file SMESHGUI_ExtrusionAlongPathDlg.h.
Referenced by ClickOnApply(), SelectionIntoArgument(), and SMESHGUI_ExtrusionAlongPathDlg().
QCheckBox* SMESHGUI_ExtrusionAlongPathDlg.MeshCheck [private] |
Definition at line 117 of file SMESHGUI_ExtrusionAlongPathDlg.h.
Referenced by ClickOnApply(), ConstructorsClicked(), getSelectedElements(), Init(), isValuesValid(), onDisplaySimulation(), onSelectMesh(), SelectionIntoArgument(), SetEditCurrentArgument(), and SMESHGUI_ExtrusionAlongPathDlg().
QList<double> SMESHGUI_ExtrusionAlongPathDlg.myAnglesList [private] |
Definition at line 105 of file SMESHGUI_ExtrusionAlongPathDlg.h.
Referenced by ClickOnApply(), getAngles(), OnAngleAdded(), and OnAngleRemoved().
bool SMESHGUI_ExtrusionAlongPathDlg.myBusy [private] |
Definition at line 95 of file SMESHGUI_ExtrusionAlongPathDlg.h.
Referenced by Init(), onTextChange(), SelectionIntoArgument(), SMESHGUI_ExtrusionAlongPathDlg.SetBusy.SetBusy(), and SMESHGUI_ExtrusionAlongPathDlg.SetBusy.~SetBusy().
Definition at line 93 of file SMESHGUI_ExtrusionAlongPathDlg.h.
Referenced by ConstructorsClicked(), eventFilter(), Init(), onTextChange(), SelectionIntoArgument(), and SetEditCurrentArgument().
Definition at line 102 of file SMESHGUI_ExtrusionAlongPathDlg.h.
Referenced by ConstructorsClicked(), SetEditCurrentArgument(), and SMESHGUI_ExtrusionAlongPathDlg().
QPushButton* SMESHGUI_ExtrusionAlongPathDlg.myFilterBtn [private] |
Definition at line 146 of file SMESHGUI_ExtrusionAlongPathDlg.h.
Referenced by onSelectMesh(), and SMESHGUI_ExtrusionAlongPathDlg().
Definition at line 147 of file SMESHGUI_ExtrusionAlongPathDlg.h.
Referenced by setFilters(), and ~SMESHGUI_ExtrusionAlongPathDlg().
QString SMESHGUI_ExtrusionAlongPathDlg.myHelpFileName [private] |
Definition at line 144 of file SMESHGUI_ExtrusionAlongPathDlg.h.
Referenced by ClickOnHelp(), and SMESHGUI_ExtrusionAlongPathDlg().
SMESH::SMESH_IDSource_var SMESHGUI_ExtrusionAlongPathDlg.myIDSource [private] |
Definition at line 98 of file SMESHGUI_ExtrusionAlongPathDlg.h.
Referenced by ClickOnApply(), Init(), isValuesValid(), onDisplaySimulation(), and SelectionIntoArgument().
Definition at line 89 of file SMESHGUI_ExtrusionAlongPathDlg.h.
Referenced by onSelectMesh(), and SMESHGUI_ExtrusionAlongPathDlg().
bool SMESHGUI_PreviewDlg.myIsApplyAndClose [protected, inherited] |
Definition at line 64 of file SMESHGUI_PreviewDlg.h.
Referenced by SMESHGUI_PreviewDlg.isApplyAndClose(), and SMESHGUI_PreviewDlg.setIsApplyAndClose().
SMESH::SMESH_Mesh_var SMESHGUI_ExtrusionAlongPathDlg.myMesh [private] |
Definition at line 96 of file SMESHGUI_ExtrusionAlongPathDlg.h.
Referenced by ClickOnApply(), Init(), isValuesValid(), onDisplaySimulation(), SelectionIntoArgument(), and setFilters().
Definition at line 97 of file SMESHGUI_ExtrusionAlongPathDlg.h.
Referenced by ClickOnApply(), getSelectedElements(), Init(), onTextChange(), and SelectionIntoArgument().
SMESH::SMESH_IDSource_var SMESHGUI_ExtrusionAlongPathDlg.myPath [private] |
Definition at line 100 of file SMESHGUI_ExtrusionAlongPathDlg.h.
Referenced by ClickOnApply(), Init(), isValuesValid(), onDisplaySimulation(), onTextChange(), SelectionIntoArgument(), and SetEditCurrentArgument().
Definition at line 103 of file SMESHGUI_ExtrusionAlongPathDlg.h.
Referenced by SetEditCurrentArgument(), and SMESHGUI_ExtrusionAlongPathDlg().
QCheckBox* SMESHGUI_PreviewDlg.myPreviewCheckBox [protected, inherited] |
Definition at line 63 of file SMESHGUI_PreviewDlg.h.
Referenced by SMESHGUI_PreviewDlg.connectPreviewControl(), SMESHGUI_TranslationDlg.Init(), SMESHGUI_SymmetryDlg.Init(), SMESHGUI_ScaleDlg.Init(), SMESHGUI_RotationDlg.Init(), SMESHGUI_RevolutionDlg.Init(), SMESHGUI_ExtrusionDlg.Init(), Init(), SMESHGUI_TranslationDlg.onDisplaySimulation(), SMESHGUI_SymmetryDlg.onDisplaySimulation(), SMESHGUI_ScaleDlg.onDisplaySimulation(), SMESHGUI_RotationDlg.onDisplaySimulation(), SMESHGUI_RevolutionDlg.onDisplaySimulation(), SMESHGUI_ExtrusionDlg.onDisplaySimulation(), onDisplaySimulation(), SMESHGUI_ExtrusionAlongPathDlg(), SMESHGUI_ExtrusionDlg.SMESHGUI_ExtrusionDlg(), SMESHGUI_RevolutionDlg.SMESHGUI_RevolutionDlg(), SMESHGUI_RotationDlg.SMESHGUI_RotationDlg(), SMESHGUI_ScaleDlg.SMESHGUI_ScaleDlg(), SMESHGUI_SymmetryDlg.SMESHGUI_SymmetryDlg(), and SMESHGUI_TranslationDlg.SMESHGUI_TranslationDlg().
LightApp_SelectionMgr* SMESHGUI_ExtrusionAlongPathDlg.mySelectionMgr [private] |
Definition at line 90 of file SMESHGUI_ExtrusionAlongPathDlg.h.
Referenced by ConstructorsClicked(), onTextChange(), reject(), SelectionIntoArgument(), SetEditCurrentArgument(), and SMESHGUI_ExtrusionAlongPathDlg().
SVTK_Selector* SMESHGUI_ExtrusionAlongPathDlg.mySelector [private] |
Definition at line 91 of file SMESHGUI_ExtrusionAlongPathDlg.h.
Referenced by onTextChange(), SelectionIntoArgument(), and SMESHGUI_ExtrusionAlongPathDlg().
SMESHGUI_MeshEditPreview* SMESHGUI_PreviewDlg.mySimulation [protected, inherited] |
Reimplemented in SMESHGUI_RevolutionDlg.
Definition at line 62 of file SMESHGUI_PreviewDlg.h.
Referenced by SMESHGUI_PreviewDlg.hidePreview(), SMESHGUI_TranslationDlg.onDisplaySimulation(), SMESHGUI_SymmetryDlg.onDisplaySimulation(), SMESHGUI_ScaleDlg.onDisplaySimulation(), SMESHGUI_RotationDlg.onDisplaySimulation(), SMESHGUI_ExtrusionDlg.onDisplaySimulation(), onDisplaySimulation(), SMESHGUI_PreviewDlg.showPreview(), SMESHGUI_PreviewDlg.SMESHGUI_PreviewDlg(), and SMESHGUI_PreviewDlg.~SMESHGUI_PreviewDlg().
SMESHGUI* SMESHGUI_PreviewDlg.mySMESHGUI [protected, inherited] |
Definition at line 61 of file SMESHGUI_PreviewDlg.h.
Referenced by SMESHGUI_TranslationDlg.ActivateThisDialog(), SMESHGUI_SymmetryDlg.ActivateThisDialog(), SMESHGUI_ScaleDlg.ActivateThisDialog(), SMESHGUI_RotationDlg.ActivateThisDialog(), SMESHGUI_RevolutionDlg.ActivateThisDialog(), SMESHGUI_ExtrusionDlg.ActivateThisDialog(), ActivateThisDialog(), SMESHGUI_TranslationDlg.ClickOnApply(), SMESHGUI_SymmetryDlg.ClickOnApply(), SMESHGUI_ScaleDlg.ClickOnApply(), SMESHGUI_RotationDlg.ClickOnApply(), SMESHGUI_RevolutionDlg.ClickOnApply(), SMESHGUI_ExtrusionDlg.ClickOnApply(), ClickOnApply(), SMESHGUI_TranslationDlg.ClickOnCancel(), SMESHGUI_SymmetryDlg.ClickOnCancel(), SMESHGUI_ScaleDlg.ClickOnCancel(), SMESHGUI_RotationDlg.ClickOnCancel(), SMESHGUI_TranslationDlg.ClickOnHelp(), SMESHGUI_SymmetryDlg.ClickOnHelp(), SMESHGUI_ScaleDlg.ClickOnHelp(), SMESHGUI_RotationDlg.ClickOnHelp(), SMESHGUI_RevolutionDlg.ClickOnHelp(), SMESHGUI_ExtrusionDlg.ClickOnHelp(), ClickOnHelp(), SMESHGUI_RevolutionDlg.closeEvent(), SMESHGUI_ExtrusionDlg.closeEvent(), SMESHGUI_TranslationDlg.ConstructorsClicked(), SMESHGUI_SymmetryDlg.ConstructorsClicked(), SMESHGUI_ScaleDlg.ConstructorsClicked(), SMESHGUI_RevolutionDlg.ConstructorsClicked(), SMESHGUI_ExtrusionDlg.ConstructorsClicked(), ConstructorsClicked(), SMESHGUI_TranslationDlg.DeactivateActiveDialog(), SMESHGUI_SymmetryDlg.DeactivateActiveDialog(), SMESHGUI_ScaleDlg.DeactivateActiveDialog(), SMESHGUI_RotationDlg.DeactivateActiveDialog(), SMESHGUI_RevolutionDlg.DeactivateActiveDialog(), SMESHGUI_ExtrusionDlg.DeactivateActiveDialog(), DeactivateActiveDialog(), SMESHGUI_TranslationDlg.onSelectMesh(), SMESHGUI_SymmetryDlg.onSelectMesh(), SMESHGUI_ScaleDlg.onSelectMesh(), SMESHGUI_RotationDlg.onSelectMesh(), SMESHGUI_RevolutionDlg.onSelectMesh(), SMESHGUI_ExtrusionDlg.onSelectMesh(), SMESHGUI_RevolutionDlg.onSelectVectorMenu(), SMESHGUI_TranslationDlg.onTextChange(), SMESHGUI_SymmetryDlg.onTextChange(), SMESHGUI_ScaleDlg.onTextChange(), SMESHGUI_RotationDlg.onTextChange(), SMESHGUI_RevolutionDlg.onTextChange(), SMESHGUI_ExtrusionDlg.onTextChange(), onTextChange(), reject(), SMESHGUI_TranslationDlg.SetEditCurrentArgument(), SMESHGUI_SymmetryDlg.SetEditCurrentArgument(), SMESHGUI_ScaleDlg.SetEditCurrentArgument(), SMESHGUI_RotationDlg.SetEditCurrentArgument(), SMESHGUI_RevolutionDlg.SetEditCurrentArgument(), SMESHGUI_ExtrusionDlg.SetEditCurrentArgument(), SetEditCurrentArgument(), SMESHGUI_TranslationDlg.setFilters(), SMESHGUI_SymmetryDlg.setFilters(), SMESHGUI_ScaleDlg.setFilters(), SMESHGUI_RotationDlg.setFilters(), SMESHGUI_RevolutionDlg.setFilters(), SMESHGUI_ExtrusionDlg.setFilters(), setFilters(), SMESHGUI_ExtrusionAlongPathDlg(), SMESHGUI_ExtrusionDlg.SMESHGUI_ExtrusionDlg(), SMESHGUI_PreviewDlg.SMESHGUI_PreviewDlg(), SMESHGUI_RevolutionDlg.SMESHGUI_RevolutionDlg(), SMESHGUI_RotationDlg.SMESHGUI_RotationDlg(), SMESHGUI_ScaleDlg.SMESHGUI_ScaleDlg(), SMESHGUI_SymmetryDlg.SMESHGUI_SymmetryDlg(), and SMESHGUI_TranslationDlg.SMESHGUI_TranslationDlg().
int SMESHGUI_ExtrusionAlongPathDlg.myType [private] |
Definition at line 104 of file SMESHGUI_ExtrusionAlongPathDlg.h.
Referenced by ConstructorsClicked(), and SMESHGUI_ExtrusionAlongPathDlg().
QPushButton* SMESHGUI_ExtrusionAlongPathDlg.OkButton [private] |
Definition at line 139 of file SMESHGUI_ExtrusionAlongPathDlg.h.
Referenced by SMESHGUI_ExtrusionAlongPathDlg().
QGroupBox* SMESHGUI_ExtrusionAlongPathDlg.PathGrp [private] |
Definition at line 118 of file SMESHGUI_ExtrusionAlongPathDlg.h.
Referenced by SMESHGUI_ExtrusionAlongPathDlg().
QLineEdit* SMESHGUI_ExtrusionAlongPathDlg.PathMeshLineEdit [private] |
Definition at line 120 of file SMESHGUI_ExtrusionAlongPathDlg.h.
Referenced by Init(), SelectionIntoArgument(), SetEditCurrentArgument(), and SMESHGUI_ExtrusionAlongPathDlg().
QToolButton* SMESHGUI_ExtrusionAlongPathDlg.RemoveAngleButton [private] |
Definition at line 129 of file SMESHGUI_ExtrusionAlongPathDlg.h.
Referenced by SMESHGUI_ExtrusionAlongPathDlg().
QToolButton* SMESHGUI_ExtrusionAlongPathDlg.SelectBasePointButton [private] |
Definition at line 132 of file SMESHGUI_ExtrusionAlongPathDlg.h.
Referenced by eventFilter(), SetEditCurrentArgument(), and SMESHGUI_ExtrusionAlongPathDlg().
QToolButton* SMESHGUI_ExtrusionAlongPathDlg.SelectElementsButton [private] |
Definition at line 115 of file SMESHGUI_ExtrusionAlongPathDlg.h.
Referenced by eventFilter(), onSelectMesh(), SetEditCurrentArgument(), and SMESHGUI_ExtrusionAlongPathDlg().
QToolButton* SMESHGUI_ExtrusionAlongPathDlg.SelectPathMeshButton [private] |
Definition at line 119 of file SMESHGUI_ExtrusionAlongPathDlg.h.
Referenced by SetEditCurrentArgument(), and SMESHGUI_ExtrusionAlongPathDlg().
QToolButton* SMESHGUI_ExtrusionAlongPathDlg.SelectStartPointButton [private] |
Definition at line 123 of file SMESHGUI_ExtrusionAlongPathDlg.h.
Referenced by eventFilter(), SetEditCurrentArgument(), and SMESHGUI_ExtrusionAlongPathDlg().
QLineEdit* SMESHGUI_ExtrusionAlongPathDlg.StartPointLineEdit [private] |
Definition at line 124 of file SMESHGUI_ExtrusionAlongPathDlg.h.
Referenced by ClickOnApply(), eventFilter(), Init(), isValuesValid(), onDisplaySimulation(), onTextChange(), SelectionIntoArgument(), SetEditCurrentArgument(), and SMESHGUI_ExtrusionAlongPathDlg().
Definition at line 133 of file SMESHGUI_ExtrusionAlongPathDlg.h.
Referenced by ClickOnApply(), eventFilter(), Init(), isValid(), onDisplaySimulation(), SelectionIntoArgument(), SetEditCurrentArgument(), and SMESHGUI_ExtrusionAlongPathDlg().
Definition at line 134 of file SMESHGUI_ExtrusionAlongPathDlg.h.
Referenced by ClickOnApply(), eventFilter(), Init(), isValid(), onDisplaySimulation(), SelectionIntoArgument(), and SMESHGUI_ExtrusionAlongPathDlg().
Definition at line 135 of file SMESHGUI_ExtrusionAlongPathDlg.h.
Referenced by ClickOnApply(), eventFilter(), Init(), isValid(), onDisplaySimulation(), SelectionIntoArgument(), and SMESHGUI_ExtrusionAlongPathDlg().