#include <SMESHGUI_ScaleDlg.h>
SMESHGUI_ScaleDlg::SMESHGUI_ScaleDlg |
( |
SMESHGUI * |
theModule | ) |
|
References ActionBox, ActionGroup, buttonApply, buttonCancel, buttonHelp, buttonOk, CheckBoxMesh, ClickOnApply(), ClickOnHelp(), ClickOnOk(), SMESHGUI_MultiPreviewDlg::connectPreviewControl(), ConstructorsBox, ConstructorsClicked(), COORD_MAX, COORD_MIN, COPY_ELEMS_BUTTON, DeactivateActiveDialog(), SMESH::GetResourceMgr(), SMESH::GetSelector(), SMESH::GetViewWindow(), SMESH::GROUP, GroupArguments, GroupButtons, GroupConstructors, Init(), LineEditElements, LineEditNewMesh, SMESH_LogicalFilter::LO_OR, MAKE_MESH_BUTTON, MakeGroupsCheck, MARGIN, SMESH::MESHorSUBMESH, MOVE_ELEMS_BUTTON, myFilterBtn, myHelpFileName, myIdValidator, myMeshOrSubMeshOrGroupFilter, SMESHGUI_MultiPreviewDlg::myPreviewCheckBox, mySelectionMgr, mySelector, SMESHGUI_MultiPreviewDlg::mySMESHGUI, onActionClicked(), onCloseView(), onOpenView(), onSelectMesh(), onTextChange(), RadioButton1, RadioButton2, SMESHGUI_SpinBox::RangeStepAndValidator(), reject(), SelectButton1, SelectElementsButton, SelectionIntoArgument(), SMESHGUI::SetActiveDialogBox(), SetEditCurrentArgument(), setFilters(), SMESHGUI_SpinBox::SetStep(), SPACING, SpinBox1_1, SpinBox1_2, SpinBox1_3, SpinBox_FX, SpinBox_FY, SpinBox_FZ, TextLabel1, TextLabel1_1, TextLabel1_2, TextLabel1_3, TextLabel2, TextLabel3, TextLabel4, TextLabelElements, and SMESHGUI_MultiPreviewDlg::toDisplaySimulation().
SMESHGUI_ScaleDlg::~SMESHGUI_ScaleDlg |
( |
| ) |
|
void SMESHGUI_ScaleDlg::ActivateThisDialog |
( |
| ) |
|
|
privateslot |
bool SMESHGUI_ScaleDlg::ClickOnApply |
( |
| ) |
|
|
privateslot |
References _PTR(), ActionGroup, SMESH::ALL, CheckBoxMesh, ConstructorsClicked(), COPY_ELEMS_BUTTON, SMESH::FindActorByObject(), GetConstructorId(), getScale(), Init(), SMESHGUI::isActiveStudyLocked(), SMESHGUI_MultiPreviewDlg::isApplyAndClose(), isValid(), LineEditNewMesh, MAKE_MESH_BUTTON, MakeGroupsCheck, SMESHGUI::Modified(), MOVE_ELEMS_BUTTON, myElementsId, myMeshes, myNbOkElements, myObjects, myObjectsNames, SMESHGUI_MultiPreviewDlg::mySMESHGUI, SelectionIntoArgument(), SObject(), SpinBox1_1, SpinBox1_2, SpinBox1_3, SpinBox_FX, SpinBox_FY, SpinBox_FZ, SMESH::UniqueMeshName(), and SMESH::Update().
Referenced by ClickOnOk(), and SMESHGUI_ScaleDlg().
void SMESHGUI_ScaleDlg::ClickOnHelp |
( |
| ) |
|
|
privateslot |
void SMESHGUI_ScaleDlg::ClickOnOk |
( |
| ) |
|
|
privateslot |
void SMESHGUI_MultiPreviewDlg::connectPreviewControl |
( |
| ) |
|
|
protectedinherited |
void SMESHGUI_ScaleDlg::ConstructorsClicked |
( |
int |
constructorId | ) |
|
|
privateslot |
References CheckBoxMesh, SMESH::GetViewWindow(), LineEditElements, myEditCurrentArgument, mySelectionMgr, SMESHGUI_MultiPreviewDlg::mySMESHGUI, onSelectMesh(), SelectionIntoArgument(), SMESH::SetPointRepresentation(), SpinBox_FY, SpinBox_FZ, TextLabel2, TextLabel3, and TextLabel4.
Referenced by ClickOnApply(), and SMESHGUI_ScaleDlg().
void SMESHGUI_ScaleDlg::DeactivateActiveDialog |
( |
| ) |
|
|
privateslot |
void SMESHGUI_ScaleDlg::enterEvent |
( |
QEvent * |
| ) |
|
|
private |
int SMESHGUI_ScaleDlg::GetConstructorId |
( |
| ) |
|
|
private |
void SMESHGUI_ScaleDlg::getScale |
( |
SMESH::PointStruct & |
thePoint, |
|
|
SMESH::double_array_var & |
theScaleFact |
|
) |
| |
|
private |
References GetConstructorId(), SMESHGUI_SpinBox::GetValue(), SpinBox1_1, SpinBox1_2, SpinBox1_3, SpinBox_FX, SpinBox_FY, SpinBox_FZ, SMESH::PointStruct::x, SMESH::PointStruct::y, and SMESH::PointStruct::z.
Referenced by ClickOnApply(), and onDisplaySimulation().
void SMESHGUI_MultiPreviewDlg::hidePreview |
( |
| ) |
|
|
inherited |
void SMESHGUI_ScaleDlg::Init |
( |
bool |
ResetControls = true | ) |
|
|
private |
References ActionGroup, buttonApply, buttonOk, CheckBoxMesh, LineEditElements, MOVE_ELEMS_BUTTON, myActor, myBusy, myEditCurrentArgument, myElementsId, myMeshes, myNbOkElements, myObjects, myObjectsNames, SMESHGUI_MultiPreviewDlg::myPreviewCheckBox, onDisplaySimulation(), onSelectMesh(), SMESHGUI_SpinBox::SetValue(), SpinBox1_1, SpinBox1_2, SpinBox1_3, SpinBox_FX, SpinBox_FY, and SpinBox_FZ.
Referenced by ClickOnApply(), and SMESHGUI_ScaleDlg().
bool SMESHGUI_MultiPreviewDlg::isApplyAndClose |
( |
| ) |
const |
|
protectedvirtualinherited |
bool SMESHGUI_ScaleDlg::isValid |
( |
| ) |
|
|
private |
void SMESHGUI_ScaleDlg::keyPressEvent |
( |
QKeyEvent * |
e | ) |
|
|
private |
void SMESHGUI_ScaleDlg::onActionClicked |
( |
int |
button | ) |
|
|
privateslot |
void SMESHGUI_ScaleDlg::onCloseView |
( |
| ) |
|
|
privateslot |
void SMESHGUI_ScaleDlg::onDisplaySimulation |
( |
bool |
toDisplayPreview | ) |
|
|
protectedvirtualslot |
References ActionGroup, SMESH::ALL, CheckBoxMesh, COPY_ELEMS_BUTTON, getScale(), SMESHGUI_MultiPreviewDlg::hidePreview(), isValid(), MAKE_MESH_BUTTON, myElementsId, myMeshes, myNbOkElements, myObjects, SMESHGUI_MultiPreviewDlg::myPreviewCheckBox, and SMESHGUI_MultiPreviewDlg::setSimulationPreview().
Referenced by Init(), and SelectionIntoArgument().
void SMESHGUI_ScaleDlg::onFilterAccepted |
( |
| ) |
|
|
protectedslot |
void SMESHGUI_ScaleDlg::onOpenView |
( |
| ) |
|
|
privateslot |
void SMESHGUI_ScaleDlg::onSelectMesh |
( |
bool |
toSelectMesh | ) |
|
|
privateslot |
References SMESH::GetViewWindow(), SMESHGUI_MultiPreviewDlg::hidePreview(), LineEditElements, myEditCurrentArgument, myFilterBtn, myIdValidator, myMeshOrSubMeshOrGroupFilter, mySelectionMgr, SMESHGUI_MultiPreviewDlg::mySMESHGUI, onTextChange(), SelectionIntoArgument(), SMESH::SetPointRepresentation(), and TextLabelElements.
Referenced by ConstructorsClicked(), Init(), and SMESHGUI_ScaleDlg().
void SMESHGUI_ScaleDlg::onTextChange |
( |
const QString & |
theNewText | ) |
|
|
privateslot |
References buttonApply, buttonOk, SMDS_Mesh::FindElement(), SMDS_MeshElement::GetID(), SMESH_Actor::GetObject(), SMESH::GetViewWindow(), Handle(), LineEditElements, myActor, myBusy, myElementsId, myNbOkElements, mySelector, and SMESHGUI_MultiPreviewDlg::mySMESHGUI.
Referenced by onSelectMesh(), and SMESHGUI_ScaleDlg().
void SMESHGUI_ScaleDlg::reject |
( |
| ) |
|
|
protectedvirtualslot |
void SMESHGUI_ScaleDlg::SelectionIntoArgument |
( |
| ) |
|
|
privateslot |
References _PTR(), ActionGroup, buttonApply, buttonOk, CheckBoxMesh, SMESH::FindActorByEntry(), SMESH::FindActorByObject(), SMDS_Mesh::FindNode(), SMESH::GetMeshByIO(), SMESH::GetNameOfSelectedElements(), SMESH::GetNameOfSelectedIObjects(), SMESH::GetNameOfSelectedNodes(), SMESH_Actor::GetObject(), GroupButtons, Handle(), LineEditElements, MakeGroupsCheck, MOVE_ELEMS_BUTTON, myActor, myBusy, myEditCurrentArgument, myElementsId, myFilterDlg, myMeshes, myNbOkElements, myObjects, myObjectsNames, mySelectionMgr, mySelector, onDisplaySimulation(), setNewMeshName(), SMESHGUI_SpinBox::SetValue(), SObject(), SpinBox1_1, SpinBox1_2, SpinBox1_3, SpinBox_FX, SpinBox_FY, SpinBox_FZ, SMDS_MeshNode::X(), SMDS_MeshNode::Y(), and SMDS_MeshNode::Z().
Referenced by ActivateThisDialog(), ClickOnApply(), ConstructorsClicked(), onSelectMesh(), SetEditCurrentArgument(), and SMESHGUI_ScaleDlg().
void SMESHGUI_ScaleDlg::SetEditCurrentArgument |
( |
| ) |
|
|
privateslot |
References CheckBoxMesh, SMESH::GetViewWindow(), LineEditElements, myEditCurrentArgument, myMeshOrSubMeshOrGroupFilter, mySelectionMgr, SMESHGUI_MultiPreviewDlg::mySMESHGUI, SelectButton1, SelectElementsButton, SelectionIntoArgument(), SMESH::SetPointRepresentation(), and SpinBox1_1.
Referenced by SMESHGUI_ScaleDlg().
void SMESHGUI_ScaleDlg::setFilters |
( |
| ) |
|
|
privateslot |
References SMESH::ALL, SMESH::BALL, SMESH::EDGE, SMESH::ELEM0D, SMESH::FACE, SMESHGUI_FilterDlg::Init(), LineEditElements, myFilterDlg, myMeshes, SMESHGUI_MultiPreviewDlg::mySMESHGUI, onFilterAccepted(), SMESHGUI_FilterDlg::SetMesh(), SMESHGUI_FilterDlg::SetSelection(), SMESHGUI_FilterDlg::SetSourceWg(), and SMESH::VOLUME.
Referenced by SMESHGUI_ScaleDlg().
void SMESHGUI_MultiPreviewDlg::setIsApplyAndClose |
( |
const bool |
theFlag | ) |
|
|
protectedvirtualinherited |
void SMESHGUI_ScaleDlg::setNewMeshName |
( |
| ) |
|
|
private |
void SMESHGUI_MultiPreviewDlg::setSimulationPreview |
( |
QList< SMESH::MeshPreviewStruct_var > & |
theMeshPreviewStruct | ) |
|
|
inherited |
void SMESHGUI_MultiPreviewDlg::showPreview |
( |
| ) |
|
|
inherited |
void SMESHGUI_MultiPreviewDlg::toDisplaySimulation |
( |
| ) |
|
|
protectedslotinherited |
QButtonGroup* SMESHGUI_ScaleDlg::ActionGroup |
|
private |
QPushButton* SMESHGUI_ScaleDlg::buttonApply |
|
private |
QPushButton* SMESHGUI_ScaleDlg::buttonCancel |
|
private |
QPushButton* SMESHGUI_ScaleDlg::buttonHelp |
|
private |
QPushButton* SMESHGUI_ScaleDlg::buttonOk |
|
private |
QCheckBox* SMESHGUI_ScaleDlg::CheckBoxMesh |
|
private |
QGroupBox* SMESHGUI_ScaleDlg::ConstructorsBox |
|
private |
QButtonGroup* SMESHGUI_ScaleDlg::GroupConstructors |
|
private |
QLineEdit* SMESHGUI_ScaleDlg::LineEditElements |
|
private |
QLineEdit* SMESHGUI_ScaleDlg::LineEditNewMesh |
|
private |
QCheckBox* SMESHGUI_ScaleDlg::MakeGroupsCheck |
|
private |
bool SMESHGUI_ScaleDlg::myBusy |
|
private |
QWidget* SMESHGUI_ScaleDlg::myEditCurrentArgument |
|
private |
QString SMESHGUI_ScaleDlg::myElementsId |
|
private |
QPushButton* SMESHGUI_ScaleDlg::myFilterBtn |
|
private |
QString SMESHGUI_ScaleDlg::myHelpFileName |
|
private |
bool SMESHGUI_MultiPreviewDlg::myIsApplyAndClose |
|
protectedinherited |
QList<SMESH::SMESH_Mesh_var> SMESHGUI_ScaleDlg::myMeshes |
|
private |
int SMESHGUI_ScaleDlg::myNbOkElements |
|
private |
QList<SMESH::SMESH_IDSource_var> SMESHGUI_ScaleDlg::myObjects |
|
private |
QList<QString> SMESHGUI_ScaleDlg::myObjectsNames |
|
private |
QCheckBox* SMESHGUI_MultiPreviewDlg::myPreviewCheckBox |
|
protectedinherited |
Referenced by SMESHGUI_MultiPreviewDlg::connectPreviewControl(), Init(), SMESHGUI_TranslationDlg::Init(), SMESHGUI_SymmetryDlg::Init(), SMESHGUI_RotationDlg::Init(), onDisplaySimulation(), SMESHGUI_TranslationDlg::onDisplaySimulation(), SMESHGUI_RotationDlg::onDisplaySimulation(), SMESHGUI_SymmetryDlg::onDisplaySimulation(), SMESHGUI_RotationDlg::SMESHGUI_RotationDlg(), SMESHGUI_ScaleDlg(), SMESHGUI_SymmetryDlg::SMESHGUI_SymmetryDlg(), and SMESHGUI_TranslationDlg::SMESHGUI_TranslationDlg().
LightApp_SelectionMgr* SMESHGUI_ScaleDlg::mySelectionMgr |
|
private |
SVTK_Selector* SMESHGUI_ScaleDlg::mySelector |
|
private |
SMESHGUI* SMESHGUI_MultiPreviewDlg::mySMESHGUI |
|
protectedinherited |
Referenced by ActivateThisDialog(), SMESHGUI_TranslationDlg::ActivateThisDialog(), SMESHGUI_RotationDlg::ActivateThisDialog(), SMESHGUI_SymmetryDlg::ActivateThisDialog(), ClickOnApply(), SMESHGUI_TranslationDlg::ClickOnApply(), SMESHGUI_RotationDlg::ClickOnApply(), SMESHGUI_SymmetryDlg::ClickOnApply(), ClickOnHelp(), SMESHGUI_TranslationDlg::ClickOnHelp(), SMESHGUI_RotationDlg::ClickOnHelp(), SMESHGUI_SymmetryDlg::ClickOnHelp(), ConstructorsClicked(), SMESHGUI_TranslationDlg::ConstructorsClicked(), SMESHGUI_SymmetryDlg::ConstructorsClicked(), DeactivateActiveDialog(), SMESHGUI_TranslationDlg::DeactivateActiveDialog(), SMESHGUI_RotationDlg::DeactivateActiveDialog(), SMESHGUI_SymmetryDlg::DeactivateActiveDialog(), enterEvent(), SMESHGUI_TranslationDlg::enterEvent(), SMESHGUI_SymmetryDlg::enterEvent(), SMESHGUI_RotationDlg::enterEvent(), SMESHGUI_TranslationDlg::Init(), SMESHGUI_RotationDlg::Init(), SMESHGUI_SymmetryDlg::Init(), onOpenView(), SMESHGUI_TranslationDlg::onOpenView(), SMESHGUI_RotationDlg::onOpenView(), SMESHGUI_SymmetryDlg::onOpenView(), onSelectMesh(), SMESHGUI_TranslationDlg::onSelectMesh(), SMESHGUI_RotationDlg::onSelectMesh(), SMESHGUI_SymmetryDlg::onSelectMesh(), onTextChange(), SMESHGUI_TranslationDlg::onTextChange(), SMESHGUI_RotationDlg::onTextChange(), SMESHGUI_SymmetryDlg::onTextChange(), reject(), SMESHGUI_TranslationDlg::reject(), SMESHGUI_RotationDlg::reject(), SMESHGUI_SymmetryDlg::reject(), SetEditCurrentArgument(), SMESHGUI_TranslationDlg::SetEditCurrentArgument(), SMESHGUI_RotationDlg::SetEditCurrentArgument(), SMESHGUI_SymmetryDlg::SetEditCurrentArgument(), setFilters(), SMESHGUI_TranslationDlg::setFilters(), SMESHGUI_RotationDlg::setFilters(), SMESHGUI_SymmetryDlg::setFilters(), SMESHGUI_MultiPreviewDlg::setSimulationPreview(), SMESHGUI_MultiPreviewDlg::SMESHGUI_MultiPreviewDlg(), SMESHGUI_RotationDlg::SMESHGUI_RotationDlg(), SMESHGUI_ScaleDlg(), SMESHGUI_SymmetryDlg::SMESHGUI_SymmetryDlg(), and SMESHGUI_TranslationDlg::SMESHGUI_TranslationDlg().
QRadioButton* SMESHGUI_ScaleDlg::RadioButton1 |
|
private |
QRadioButton* SMESHGUI_ScaleDlg::RadioButton2 |
|
private |
QPushButton* SMESHGUI_ScaleDlg::SelectButton1 |
|
private |
QPushButton* SMESHGUI_ScaleDlg::SelectElementsButton |
|
private |
QLabel* SMESHGUI_ScaleDlg::TextLabel1 |
|
private |
QLabel* SMESHGUI_ScaleDlg::TextLabel1_1 |
|
private |
QLabel* SMESHGUI_ScaleDlg::TextLabel1_2 |
|
private |
QLabel* SMESHGUI_ScaleDlg::TextLabel1_3 |
|
private |
QLabel* SMESHGUI_ScaleDlg::TextLabel2 |
|
private |
QLabel* SMESHGUI_ScaleDlg::TextLabel3 |
|
private |
QLabel* SMESHGUI_ScaleDlg::TextLabel4 |
|
private |
QLabel* SMESHGUI_ScaleDlg::TextLabelElements |
|
private |