#include <SMESHGUI_ExtrusionDlg.h>
SMESHGUI_ExtrusionDlg::SMESHGUI_ExtrusionDlg |
( |
SMESHGUI * |
theModule | ) |
|
References AddScaleButton, BasePoint_XSpin, BasePoint_YSpin, BasePoint_ZSpin, BasePointGrp, buttonApply, buttonCancel, buttonHelp, buttonOk, ByAverageNormalCheck, CheckIsEnable(), ClickOnApply(), ClickOnHelp(), ClickOnOk(), ClickOnRadio(), SMESHGUI_PreviewDlg::connectPreviewControl(), COORD_MAX, COORD_MIN, DeactivateActiveDialog(), ExtrMethod_RBut0, ExtrMethod_RBut1, ExtrMethod_RBut2, SMESHGUI_3TypesSelector::GetButtonGroup(), SMESH::GetResourceMgr(), SMESH::GetSelector(), SMESH::GetViewWindow(), GroupArguments, GroupButtons, Init(), LinearScalesCheck, MakeGroupsCheck, MARGIN, myHelpFileName, SMESHGUI_PreviewDlg::myPreviewCheckBox, mySelectionMgr, mySelector, SMESHGUI_PreviewDlg::mySMESHGUI, onCloseView(), onOpenView(), OnScaleAdded(), OnScaleRemoved(), SMESHGUI_SpinBox::RangeStepAndValidator(), reject(), RemoveScaleButton, ScalesGrp, ScalesList, ScaleSpin, SelectBasePointButton, SelectorWdg, SelectVectorButton, SMESHGUI::SetActiveDialogBox(), SetEditCurrentArgument(), SMESHGUI_SpinBox::SetValue(), SPACING, SpinBox_Dx, SpinBox_Dy, SpinBox_Dz, SpinBox_NbSteps, SpinBox_VDist, SpinBox_Vx, SpinBox_Vy, SpinBox_Vz, TextLabelDist, TextLabelDistance, TextLabelDx, TextLabelDy, TextLabelDz, TextLabelNbSteps, TextLabelVector, TextLabelVx, TextLabelVy, TextLabelVz, SMESHGUI_PreviewDlg::toDisplaySimulation(), and UseInputElemsOnlyCheck.
SMESHGUI_ExtrusionDlg::~SMESHGUI_ExtrusionDlg |
( |
| ) |
|
void SMESHGUI_ExtrusionDlg::ActivateThisDialog |
( |
| ) |
|
|
privateslot |
void SMESHGUI_ExtrusionDlg::CheckIsEnable |
( |
| ) |
|
|
privateslot |
bool SMESHGUI_ExtrusionDlg::ClickOnApply |
( |
| ) |
|
|
privateslot |
References ByAverageNormalCheck, SMESHGUI_3TypesSelector::Clear(), SMESH::EDGE, SMESH_Actor::eEdge, SMESH_Actor::eEdges, SMESH_Actor::eFaces, SMESH_Actor::eSurface, SMESH_Actor::eVolumes, ExtrMethod_RBut0, ExtrMethod_RBut1, ExtrMethod_RBut2, SMESH::FACE, SMESHGUI_3TypesSelector::GetActor(), SMESH_Actor::GetEntityMode(), getExtrusionVector(), SMESHGUI_3TypesSelector::GetMesh(), getScaleParams(), SMESHGUI_3TypesSelector::GetSelected(), Init(), SMESHGUI::isActiveStudyLocked(), SMESHGUI_3TypesSelector::IsAnythingSelected(), isValid(), MakeGroupsCheck, SMESHGUI::Modified(), myScalesList, mySelectionMgr, SMESHGUI_PreviewDlg::mySMESHGUI, SMESH::NODE, ScalesList, SelectorWdg, SMESH_Actor::SetEntityMode(), SpinBox_Dx, SpinBox_Dy, SpinBox_Dz, SpinBox_NbSteps, SpinBox_VDist, SMESH::Update(), and UseInputElemsOnlyCheck.
Referenced by ClickOnOk(), and SMESHGUI_ExtrusionDlg().
void SMESHGUI_ExtrusionDlg::ClickOnHelp |
( |
| ) |
|
|
privateslot |
void SMESHGUI_ExtrusionDlg::ClickOnOk |
( |
| ) |
|
|
privateslot |
void SMESHGUI_ExtrusionDlg::ClickOnRadio |
( |
| ) |
|
|
privateslot |
References SMESH::ALL, BasePointGrp, ByAverageNormalCheck, CheckIsEnable(), SMESH::EDGE, ExtrMethod_RBut0, ExtrMethod_RBut1, ExtrMethod_RBut2, SMESH::NODE, onDisplaySimulation(), ScalesGrp, SelectorWdg, SelectVectorButton, SMESHGUI_3TypesSelector::SetEnabled(), SpinBox_Dx, SpinBox_Dy, SpinBox_Dz, SpinBox_VDist, SpinBox_Vx, SpinBox_Vy, SpinBox_Vz, TextLabelDist, TextLabelDistance, TextLabelDx, TextLabelDy, TextLabelDz, TextLabelVector, TextLabelVx, TextLabelVy, TextLabelVz, and UseInputElemsOnlyCheck.
Referenced by SMESHGUI_ExtrusionDlg().
void SMESHGUI_PreviewDlg::connectPreviewControl |
( |
| ) |
|
|
protectedinherited |
void SMESHGUI_ExtrusionDlg::DeactivateActiveDialog |
( |
| ) |
|
|
privateslot |
void SMESHGUI_ExtrusionDlg::enterEvent |
( |
QEvent * |
| ) |
|
|
private |
void SMESHGUI_ExtrusionDlg::extrusionByNormal |
( |
SMESH::SMESH_MeshEditor_ptr |
meshEditor, |
|
|
const bool |
makeGroups = false |
|
) |
| |
|
private |
int SMESHGUI_ExtrusionDlg::GetConstructorId |
( |
| ) |
|
|
private |
References ExtrMethod_RBut0, ExtrMethod_RBut1, SMESHGUI_SpinBox::GetValue(), SMESH::DirStruct::PS, SpinBox_Dx, SpinBox_Dy, SpinBox_Dz, SpinBox_VDist, SpinBox_Vx, SpinBox_Vy, SpinBox_Vz, SMESH::PointStruct::x, SMESH::PointStruct::y, and SMESH::PointStruct::z.
Referenced by ClickOnApply(), and onDisplaySimulation().
void SMESHGUI_PreviewDlg::hidePreview |
( |
| ) |
|
|
inherited |
void SMESHGUI_ExtrusionDlg::Init |
( |
bool |
ResetControls = true | ) |
|
|
private |
References CheckIsEnable(), SMESHGUI_3TypesSelector::Clear(), SMESHGUI_PreviewDlg::myPreviewCheckBox, onDisplaySimulation(), SelectorWdg, SMESHGUI_SpinBox::SetValue(), SpinBox_Dx, SpinBox_Dy, SpinBox_Dz, SpinBox_NbSteps, SpinBox_VDist, SpinBox_Vx, SpinBox_Vy, and SpinBox_Vz.
Referenced by ClickOnApply(), and SMESHGUI_ExtrusionDlg().
bool SMESHGUI_PreviewDlg::isApplyAndClose |
( |
| ) |
const |
|
protectedvirtualinherited |
bool SMESHGUI_ExtrusionDlg::isValid |
( |
| ) |
|
|
private |
References BasePoint_XSpin, BasePoint_YSpin, BasePoint_ZSpin, BasePointGrp, ExtrMethod_RBut0, ExtrMethod_RBut1, SpinBox_Dx, SpinBox_Dy, SpinBox_Dz, SpinBox_NbSteps, SpinBox_VDist, SpinBox_Vx, SpinBox_Vy, and SpinBox_Vz.
Referenced by ClickOnApply(), and onDisplaySimulation().
bool SMESHGUI_ExtrusionDlg::isValuesValid |
( |
| ) |
|
|
private |
References Abs(), ExtrMethod_RBut0, ExtrMethod_RBut1, ExtrMethod_RBut2, SMESHGUI_SpinBox::GetValue(), SpinBox_Dx, SpinBox_Dy, SpinBox_Dz, SpinBox_VDist, SpinBox_Vx, SpinBox_Vy, and SpinBox_Vz.
Referenced by CheckIsEnable(), and onDisplaySimulation().
void SMESHGUI_ExtrusionDlg::keyPressEvent |
( |
QKeyEvent * |
e | ) |
|
|
private |
void SMESHGUI_ExtrusionDlg::onCloseView |
( |
| ) |
|
|
privateslot |
void SMESHGUI_ExtrusionDlg::onDisplaySimulation |
( |
bool |
toDisplayPreview | ) |
|
|
protectedvirtualslot |
References ByAverageNormalCheck, ExtrMethod_RBut2, SMESH::FACE, getExtrusionVector(), SMESHGUI_3TypesSelector::GetMesh(), getScaleParams(), SMESHGUI_3TypesSelector::GetSelected(), SMESHGUI_PreviewDlg::hidePreview(), SMESHGUI_3TypesSelector::IsAnythingSelected(), isValid(), isValuesValid(), SMESHGUI_PreviewDlg::myPreviewCheckBox, SMESHGUI_PreviewDlg::mySimulation, SelectorWdg, SMESHGUI_MeshEditPreview::SetData(), SpinBox_NbSteps, SpinBox_VDist, and UseInputElemsOnlyCheck.
Referenced by ClickOnRadio(), Init(), and SelectionIntoArgument().
void SMESHGUI_ExtrusionDlg::onOpenView |
( |
| ) |
|
|
privateslot |
void SMESHGUI_ExtrusionDlg::OnScaleAdded |
( |
| ) |
|
|
privateslot |
void SMESHGUI_ExtrusionDlg::OnScaleRemoved |
( |
| ) |
|
|
privateslot |
void SMESHGUI_ExtrusionDlg::reject |
( |
| ) |
|
|
protectedvirtualslot |
void SMESHGUI_ExtrusionDlg::SelectionIntoArgument |
( |
| ) |
|
|
privateslot |
References BasePoint_XSpin, BasePoint_YSpin, BasePoint_ZSpin, BasePointGrp, CheckIsEnable(), SMESH::FindActorByEntry(), SMESH::FindActorByObject(), SMDS_Mesh::FindNode(), SMESH::GetMeshByIO(), SMESH::GetNameOfSelectedNodes(), SMESH::getNormale(), SMESH_Actor::GetObject(), GroupButtons, Handle(), mySelectionMgr, mySelector, onDisplaySimulation(), SelectBasePointButton, SelectVectorButton, SMESHGUI_SpinBox::SetValue(), SpinBox_Vx, SpinBox_Vy, SpinBox_Vz, SMDS_MeshNode::X(), SMDS_MeshNode::Y(), and SMDS_MeshNode::Z().
Referenced by SetEditCurrentArgument().
void SMESHGUI_ExtrusionDlg::SetEditCurrentArgument |
( |
| ) |
|
|
privateslot |
void SMESHGUI_PreviewDlg::setIsApplyAndClose |
( |
const bool |
theFlag | ) |
|
|
protectedvirtualinherited |
void SMESHGUI_PreviewDlg::showPreview |
( |
| ) |
|
|
inherited |
void SMESHGUI_PreviewDlg::toDisplaySimulation |
( |
| ) |
|
|
protectedslotinherited |
QToolButton* SMESHGUI_ExtrusionDlg::AddScaleButton |
|
private |
QGroupBox* SMESHGUI_ExtrusionDlg::BasePointGrp |
|
private |
QPushButton* SMESHGUI_ExtrusionDlg::buttonApply |
|
private |
QPushButton* SMESHGUI_ExtrusionDlg::buttonCancel |
|
private |
QPushButton* SMESHGUI_ExtrusionDlg::buttonHelp |
|
private |
QPushButton* SMESHGUI_ExtrusionDlg::buttonOk |
|
private |
QCheckBox* SMESHGUI_ExtrusionDlg::ByAverageNormalCheck |
|
private |
QRadioButton* SMESHGUI_ExtrusionDlg::ExtrMethod_RBut0 |
|
private |
QRadioButton* SMESHGUI_ExtrusionDlg::ExtrMethod_RBut1 |
|
private |
QRadioButton* SMESHGUI_ExtrusionDlg::ExtrMethod_RBut2 |
|
private |
QGroupBox* SMESHGUI_ExtrusionDlg::GroupArguments |
|
private |
QGroupBox* SMESHGUI_ExtrusionDlg::GroupButtons |
|
private |
QCheckBox* SMESHGUI_ExtrusionDlg::LinearScalesCheck |
|
private |
QCheckBox* SMESHGUI_ExtrusionDlg::MakeGroupsCheck |
|
private |
QString SMESHGUI_ExtrusionDlg::myHelpFileName |
|
private |
QString SMESHGUI_ExtrusionDlg::myIDs |
|
private |
bool SMESHGUI_PreviewDlg::myIsApplyAndClose |
|
protectedinherited |
QCheckBox* SMESHGUI_PreviewDlg::myPreviewCheckBox |
|
protectedinherited |
Referenced by SMESHGUI_PreviewDlg::connectPreviewControl(), SMESHGUI_ExtrusionAlongPathDlg::Init(), SMESHGUI_RevolutionDlg::Init(), Init(), SMESHGUI_ExtrusionAlongPathDlg::onDisplaySimulation(), SMESHGUI_RevolutionDlg::onDisplaySimulation(), SMESHGUI_UnionOfTrianglesDlg::onDisplaySimulation(), onDisplaySimulation(), SMESHGUI_ExtrusionAlongPathDlg::SMESHGUI_ExtrusionAlongPathDlg(), SMESHGUI_ExtrusionDlg(), and SMESHGUI_RevolutionDlg::SMESHGUI_RevolutionDlg().
QList<double> SMESHGUI_ExtrusionDlg::myScalesList |
|
private |
LightApp_SelectionMgr* SMESHGUI_ExtrusionDlg::mySelectionMgr |
|
private |
SVTK_Selector* SMESHGUI_ExtrusionDlg::mySelector |
|
private |
Referenced by SMESHGUI_PreviewDlg::hidePreview(), SMESHGUI_PreviewDlg::onCloseView(), SMESHGUI_ExtrusionAlongPathDlg::onDisplaySimulation(), SMESHGUI_RevolutionDlg::onDisplaySimulation(), SMESHGUI_UnionOfTrianglesDlg::onDisplaySimulation(), onDisplaySimulation(), SMESHGUI_PreviewDlg::onOpenView(), SMESHGUI_RevolutionDlg::onOpenView(), SMESHGUI_SplitVolumesDlg::showFacetByElement(), SMESHGUI_PreviewDlg::showPreview(), SMESHGUI_PreviewDlg::SMESHGUI_PreviewDlg(), SMESHGUI_SplitVolumesDlg::updateNormalPreview(), and SMESHGUI_PreviewDlg::~SMESHGUI_PreviewDlg().
SMESHGUI* SMESHGUI_PreviewDlg::mySMESHGUI |
|
protectedinherited |
Referenced by SMESHGUI_ExtrusionAlongPathDlg::ActivateThisDialog(), SMESHGUI_RevolutionDlg::ActivateThisDialog(), ActivateThisDialog(), SMESHGUI_ExtrusionAlongPathDlg::ClickOnApply(), SMESHGUI_RevolutionDlg::ClickOnApply(), ClickOnApply(), SMESHGUI_ExtrusionAlongPathDlg::ClickOnHelp(), SMESHGUI_RevolutionDlg::ClickOnHelp(), ClickOnHelp(), SMESHGUI_ExtrusionAlongPathDlg::DeactivateActiveDialog(), SMESHGUI_RevolutionDlg::DeactivateActiveDialog(), DeactivateActiveDialog(), SMESHGUI_ExtrusionAlongPathDlg::enterEvent(), SMESHGUI_RevolutionDlg::enterEvent(), enterEvent(), SMESHGUI_PreviewDlg::onOpenView(), SMESHGUI_ExtrusionAlongPathDlg::onOpenView(), SMESHGUI_RevolutionDlg::onOpenView(), onOpenView(), SMESHGUI_RevolutionDlg::onSelectVectorMenu(), SMESHGUI_ExtrusionAlongPathDlg::onTextChange(), SMESHGUI_ExtrusionAlongPathDlg::reject(), SMESHGUI_RevolutionDlg::reject(), reject(), SMESHGUI_ExtrusionAlongPathDlg::SetEditCurrentArgument(), SMESHGUI_RevolutionDlg::SetEditCurrentArgument(), SetEditCurrentArgument(), SMESHGUI_ExtrusionAlongPathDlg::SMESHGUI_ExtrusionAlongPathDlg(), SMESHGUI_ExtrusionDlg(), SMESHGUI_PreviewDlg::SMESHGUI_PreviewDlg(), and SMESHGUI_RevolutionDlg::SMESHGUI_RevolutionDlg().
QToolButton* SMESHGUI_ExtrusionDlg::RemoveScaleButton |
|
private |
QListWidget* SMESHGUI_ExtrusionDlg::ScalesList |
|
private |
QPushButton* SMESHGUI_ExtrusionDlg::SelectBasePointButton |
|
private |
QPushButton* SMESHGUI_ExtrusionDlg::SelectVectorButton |
|
private |
SalomeApp_IntSpinBox* SMESHGUI_ExtrusionDlg::SpinBox_NbSteps |
|
private |
QLabel* SMESHGUI_ExtrusionDlg::TextLabelDist |
|
private |
QLabel* SMESHGUI_ExtrusionDlg::TextLabelDistance |
|
private |
QLabel* SMESHGUI_ExtrusionDlg::TextLabelDx |
|
private |
QLabel* SMESHGUI_ExtrusionDlg::TextLabelDy |
|
private |
QLabel* SMESHGUI_ExtrusionDlg::TextLabelDz |
|
private |
QLabel* SMESHGUI_ExtrusionDlg::TextLabelNbSteps |
|
private |
QLabel* SMESHGUI_ExtrusionDlg::TextLabelVector |
|
private |
QLabel* SMESHGUI_ExtrusionDlg::TextLabelVx |
|
private |
QLabel* SMESHGUI_ExtrusionDlg::TextLabelVy |
|
private |
QLabel* SMESHGUI_ExtrusionDlg::TextLabelVz |
|
private |
QCheckBox* SMESHGUI_ExtrusionDlg::UseInputElemsOnlyCheck |
|
private |