Dialog for mech creation or editing. More...
#include <SMESHGUI_MeshDlg.h>
Public Types | |
enum | Controls { Obj, Mesh, Geom } |
enum | Dimensions { Dim0D = 0, Dim1D, Dim2D, Dim3D } |
Describes dimensions. More... | |
Signals | |
void | hypoSet (const QString &) |
void | geomSelectionByMesh (bool) |
void | selectMeshType (const int, const int) |
Public Member Functions | |
SMESHGUI_MeshDlg (const bool, const bool) | |
Dialog for mech creation or editing. More... | |
virtual | ~SMESHGUI_MeshDlg () |
SMESHGUI_MeshTab * | tab (const int) const |
Gets tab with given id. More... | |
void | reset () |
Resets all dialog fields. More... | |
void | setCurrentTab (const int) |
Sets curent tab. More... | |
void | setMaxHypoDim (const int) |
Enable/disable tabs. More... | |
void | setHypoSets (const QStringList &) |
Sets list of available Sets of Hypotheses. More... | |
void | setGeomPopupEnabled (const bool) |
void | disableTab (const int) |
Disable tab. More... | |
void | enableTab (const int) |
Enable tabs. More... | |
bool | isTabEnabled (const int) const |
Check if tab enabled. More... | |
int | getActiveObject () |
Return ID of an active selection button. More... | |
void | setAvailableMeshType (const QStringList &) |
Sets available types of mesh. More... | |
int | currentMeshType () |
Get current index types of mesh. More... | |
void | setCurrentMeshType (const int) |
Set current index types of mesh. More... | |
void | setTitile (const bool, const bool) |
Set dialog title. More... | |
virtual void | show () |
virtual void | setContentActive (const bool) |
set all content to enable (parameter is true) or disable state More... | |
Static Public Member Functions | |
static int | prefix (const QString &) |
Return hard-coded prefix using to differ overlapping types. More... | |
Protected Member Functions | |
SUIT_Desktop * | desktop () const |
find desktop of active application More... | |
SUIT_ResourceMgr * | resourceMgr () const |
gets resource manager More... | |
Private Slots | |
void | onHypoSetPopup (QAction *) |
Emits hypoSet signal. More... | |
void | onGeomPopup (QAction *) |
SLOT called when a item of Geom selection popup is chosen. More... | |
void | onGeomSelectionButton (bool) |
SLOT called when a Geom selection button is clicked. More... | |
void | onChangedMeshType (const int) |
Emits selectMeshType( const int, const int ) signal. More... | |
Private Attributes | |
QMap< int, SMESHGUI_MeshTab * > | myTabs |
QTabWidget * | myTabWg |
QToolButton * | myHypoSetButton |
QMenu * | myGeomPopup |
QComboBox * | myMeshType |
Dialog for mech creation or editing.
This dialog is used for mech creation or editing.
Dialog for mech creation or editing.
This dialog is used for mech creation or editing.
Constructor
theToCreate | - if this parameter is true then dialog is used for creation, for editing otherwise |
theIsMesh | - if this parameter is true then dialog is used for mesh, for sub-mesh otherwise |
Makes dialog's look and feel
References Dim0D, Dim1D, Dim2D, Dim3D, Geom, Mesh, myGeomPopup, myHypoSetButton, myMeshType, myTabs, myTabWg, Obj, onChangedMeshType(), setTitile(), and SPACING.
|
virtual |
int SMESHGUI_MeshDlg::currentMeshType | ( | ) |
Get current index types of mesh.
References myMeshType.
Referenced by SMESHGUI_MeshOp::onAlgoSelected(), and SMESHGUI_MeshOp::selectionDone().
|
protectedinherited |
find desktop of active application
References MESHCUT::d.
void SMESHGUI_MeshDlg::disableTab | ( | const int | theTabId | ) |
Disable tab.
int | - tab ID |
References myTabs, and myTabWg.
Referenced by SMESHGUI_MeshOp::onAlgoSelected(), SMESHGUI_MeshOp::selectionDone(), SMESHGUI_MeshOp::setFilteredAlgoData(), and setMaxHypoDim().
void SMESHGUI_MeshDlg::enableTab | ( | const int | theTabId | ) |
Enable tabs.
int | - tab ID |
References Dim3D, myHypoSetButton, myTabs, and myTabWg.
Referenced by SMESHGUI_MeshOp::onAlgoSelected(), SMESHGUI_MeshOp::selectionDone(), SMESHGUI_MeshOp::setFilteredAlgoData(), and setMaxHypoDim().
|
signal |
Referenced by onGeomPopup().
int SMESHGUI_MeshDlg::getActiveObject | ( | ) |
Return ID of an active selection button.
Referenced by SMESHGUI_MeshOp::checkSubMeshConcurrency(), SMESHGUI_MeshOp::onHypoCreated(), and SMESHGUI_MeshOp::onHypoEdited().
|
signal |
Referenced by onHypoSetPopup().
Check if tab enabled.
int | - tab ID |
References myTabs, and myTabWg.
Referenced by SMESHGUI_MeshOp::isAccessibleDim().
|
privateslot |
Emits selectMeshType( const int, const int ) signal.
SLOT is called when a combo box "mesh type" is selected.
References Dim3D, myTabWg, and selectMeshType().
Referenced by SMESHGUI_MeshDlg().
|
privateslot |
SLOT called when a item of Geom selection popup is chosen.
References GEOM_BY_MESH_INDEX, and geomSelectionByMesh().
Referenced by setGeomPopupEnabled().
|
privateslot |
SLOT called when a Geom selection button is clicked.
References myGeomPopup.
Referenced by setGeomPopupEnabled().
|
privateslot |
Emits hypoSet signal.
SLOT is called when a hypotheses set is selected. Emits hypoSet signal to notify operation about this event
References hypoSet().
Referenced by setHypoSets().
|
staticinherited |
Return hard-coded prefix using to differ overlapping types.
Referenced by SMESHGUI_Dialog::SMESHGUI_Dialog(), and SMESHGUI_SelectionOp::typeById().
void SMESHGUI_MeshDlg::reset | ( | ) |
|
protectedinherited |
gets resource manager
Referenced by SMESHGUI_ComputeDlg::createMainFrame(), SMESHGUI_DisplayEntitiesDlg::SMESHGUI_DisplayEntitiesDlg(), and SMESHGUI_GroupOnShapeDlg::SMESHGUI_GroupOnShapeDlg().
Referenced by onChangedMeshType().
void SMESHGUI_MeshDlg::setAvailableMeshType | ( | const QStringList & | theTypeMesh | ) |
Sets available types of mesh.
theTypeMesh | - list of available types of mesh |
References myMeshType.
Referenced by SMESHGUI_MeshOp::setAvailableMeshType().
|
virtualinherited |
set all content to enable (parameter is true) or disable state
Referenced by SMESHGUI_Operation::setDialogActive().
void SMESHGUI_MeshDlg::setCurrentMeshType | ( | const int | theIndex | ) |
Set current index types of mesh.
References myMeshType.
Referenced by SMESHGUI_MeshOp::selectionDone().
void SMESHGUI_MeshDlg::setCurrentTab | ( | const int | theId | ) |
Sets curent tab.
References Dim3D, and myTabWg.
Referenced by SMESHGUI_MeshOp::setFilteredAlgoData(), setMaxHypoDim(), and SMESHGUI_MeshOp::startOperation().
void SMESHGUI_MeshDlg::setGeomPopupEnabled | ( | const bool | enable | ) |
References DIRECT_GEOM_INDEX, Geom, GEOM_BY_MESH_INDEX, myGeomPopup, onGeomPopup(), and onGeomSelectionButton().
Referenced by SMESHGUI_MeshOp::selectionDone(), and SMESHGUI_MeshOp::startOperation().
void SMESHGUI_MeshDlg::setHypoSets | ( | const QStringList & | theSets | ) |
Sets list of available Sets of Hypotheses.
References myHypoSetButton, and onHypoSetPopup().
Referenced by SMESHGUI_MeshOp::selectionDone(), and SMESHGUI_MeshOp::setFilteredAlgoData().
void SMESHGUI_MeshDlg::setMaxHypoDim | ( | const int | maxDim | ) |
Enable/disable tabs.
int | - maximum possible dimension |
References Dim0D, Dim3D, disableTab(), enableTab(), myTabs, myTabWg, and setCurrentTab().
Referenced by SMESHGUI_MeshOp::selectionDone().
Set dialog title.
Referenced by SMESHGUI_MeshOp::selectionDone(), and SMESHGUI_MeshDlg().
|
virtualinherited |
Referenced by SMESHGUI_MeshOp::onCloseShapeByMeshDlg(), SMESHGUI_MeshOp::onPublishShapeByMeshDlg(), SMESHGUI_BaseComputeOp::showComputeResult(), SMESHGUI_BaseComputeOp::showEvaluateResult(), SMESHGUI_FindElemByPointOp::startOperation(), SMESHGUI_ReorientFacesOp::startOperation(), SMESHGUI_GroupOnShapeOp::startOperation(), SMESHGUI_ConvToQuadOp::startOperation(), SMESHGUI_MakeNodeAtPointOp::startOperation(), SMESHGUI_SplitBiQuadOp::startOperation(), SMESHGUI_MeshOp::startOperation(), SMESHGUI_MeshOrderOp::startOperation(), SMESHGUI_ShapeByMeshOp::startOperation(), and SMESHGUI_Add0DElemsOnAllNodesOp::startOperation().
SMESHGUI_MeshTab * SMESHGUI_MeshDlg::tab | ( | const int | theId | ) | const |
Gets tab with given id.
theId | - Tab identifier. Possible values are in "Dimensions" enumeration |
SMESHGUI_MeshTab* | - pointer to the tab or null if given parameter is invalid |
Gets tab containing controls for definition of algorithms and AddHypotheses
References Dim0D, Dim3D, and myTabs.
Referenced by SMESHGUI_MeshOp::currentHyp(), getTabDim(), SMESHGUI_MeshOp::nbDlgHypTypes(), SMESHGUI_MeshOp::onAlgoSelected(), SMESHGUI_MeshOp::onHypoCreated(), SMESHGUI_MeshOp::processSet(), SMESHGUI_MeshOp::readMesh(), SMESHGUI_MeshOp::selectionDone(), SMESHGUI_MeshOp::setCurrentHyp(), SMESHGUI_MeshOp::setFilteredAlgoData(), and SMESHGUI_MeshOp::startOperation().
|
private |
Referenced by onGeomSelectionButton(), setGeomPopupEnabled(), and SMESHGUI_MeshDlg().
|
private |
Referenced by enableTab(), setHypoSets(), and SMESHGUI_MeshDlg().
|
private |
Referenced by currentMeshType(), setAvailableMeshType(), setCurrentMeshType(), and SMESHGUI_MeshDlg().
|
private |
Referenced by disableTab(), enableTab(), isTabEnabled(), reset(), setMaxHypoDim(), SMESHGUI_MeshDlg(), and tab().
|
private |
Referenced by disableTab(), enableTab(), isTabEnabled(), onChangedMeshType(), setCurrentTab(), setMaxHypoDim(), and SMESHGUI_MeshDlg().