Version: 9.12.0
SMESHGUI Class Reference

#include <SMESHGUI.h>

Inheritance diagram for SMESHGUI:

Public Slots

virtual bool deactivateModule (SUIT_Study *)
 
virtual bool activateModule (SUIT_Study *)
 
virtual void studyClosed (SUIT_Study *)
 
void onViewClosed (SUIT_ViewWindow *)
 Signal handler closing(SUIT_ViewWindow*) of a view. More...
 

Signals

void SignalDeactivateActiveDialog ()
 
void SignalStudyFrameChanged ()
 
void SignalCloseAllDialogs ()
 
void SignalVisibilityChanged ()
 
void SignalCloseView ()
 
void SignalActivatedViewManager ()
 

Public Member Functions

 SMESHGUI ()
 
 ~SMESHGUI ()
 
virtual LightApp_Displayerdisplayer ()
 
virtual QString engineIOR () const
 
virtual void initialize (CAM_Application *)
 
virtual void windows (QMap< int, int > &) const
 
virtual void viewManagers (QStringList &) const
 
QDialogGetActiveDialogBox ()
 
void SetActiveDialogBox (QDialog *)
 
void ResetState ()
 
void SetState (int)
 
int GetState () const
 
bool DefineDlgPosition (QWidget *, int &, int &)
 
void switchToOperation (int)
 Stops current operations and starts a given one. More...
 
virtual bool OnGUIEvent (int)
 
virtual bool OnMousePress (QMouseEvent *, SUIT_ViewWindow *)
 
virtual bool OnMouseMove (QMouseEvent *, SUIT_ViewWindow *)
 
virtual bool OnKeyPress (QKeyEvent *, SUIT_ViewWindow *)
 
virtual LightApp_SelectioncreateSelection () const
 
virtual void BuildPresentation (const Handle(SALOME_InteractiveObject)&, SUIT_ViewWindow *=0)
 Method: BuildPresentation(const Handle(SALOME_InteractiveObject)& theIO) Purpose: ensures that the actor for the given <theIO> exists in the active VTK view. More...
 
void EmitSignalDeactivateDialog ()
 
void EmitSignalStudyFrameChanged ()
 
void EmitSignalCloseAllDialogs ()
 
void EmitSignalVisibilityChanged ()
 
void EmitSignalCloseView ()
 
void EmitSignalActivatedViewManager ()
 
virtual void contextMenuPopup (const QString &, QMenu *, QString &)
 
virtual void createPreferences ()
 
virtual void preferencesChanged (const QString &, const QString &)
 
virtual void message (const QString &)
 
virtual void update (const int)
 Update something in accordance with update flags. More...
 
virtual void storeVisualParameters (int savePoint)
 Store visual parameters. More...
 
virtual void restoreVisualParameters (int savePoint)
 Restore visual parameters. More...
 
virtual void addActorAsObserver (SMESH_Actor *theActor)
 
virtual bool renameAllowed (const QString &) const
 Return true if object can be renamed. More...
 
virtual bool renameObject (const QString &, const QString &)
 Rename object by entry. More...
 
SMESHGUI_ClippingPlaneInfoMapgetClippingPlaneInfoMap ()
 

Static Public Member Functions

static SMESH::SMESH_Gen_var GetSMESHGen ()
 
static SMESHGUIGetSMESHGUI ()
 
static LightApp_SelectionMgr * selectionMgr ()
 
static SUIT_ResourceMgr * resourceMgr ()
 
static SUIT_Desktop * desktop ()
 
static SalomeApp_Study * activeStudy ()
 
static bool automaticUpdate (unsigned int requestedSize=0, bool *limitExceeded=0)
 
static bool automaticUpdate (SMESH::SMESH_IDSource_ptr, int *, bool *, int *, long *)
 
static void Modified (bool=true)
 
static bool isStudyLocked (bool=true)
 Verifies whether study of operation is locked. More...
 
static SALOMEDS::Color getUniqueColor (const QList< SALOMEDS::Color > &)
 
static SALOMEDS::Color getPredefinedUniqueColor ()
 

Protected Member Functions

void createSMESHAction (const int, const QString &, const QString &=QString(), const int=0, const bool=false, const QString &=QString())
 
void createPopupItem (const int, const QString &, const QString &, const QString &=QString(), const int=-1)
 
virtual LightApp_OperationcreateOperation (const int) const
 Creates operation with given identifier. More...
 
virtual bool isSelectionCompatible ()
 Return true if SMESH or GEOM objects are selected. More...
 
virtual bool reusableOperation (const int id)
 

Static Protected Member Functions

static void ProcessEvents (vtkObject *theObject, unsigned long theEvent, void *theClientData, void *theCallData)
 

Private Slots

void OnGUIEvent ()
 
void onViewManagerActivated (SUIT_ViewManager *)
 
void onViewManagerRemoved (SUIT_ViewManager *)
 
void onOperationCommited (SUIT_Operation *)
 Set default selection mode. More...
 
void onOperationAborted (SUIT_Operation *)
 Set default selection mode. More...
 
void onHypothesisEdit (int result)
 Actions after hypothesis edition Updates object browser after hypothesis edition. More...
 
void onUpdateControlActions ()
 Actions after choosing menu of control modes Updates control mode actions according to current selection. More...
 

Private Member Functions

void OnEditDelete ()
 
int addVtkFontPref (const QString &, const int, const QString &, const bool=false)
 Adds preferences for dfont of VTK viewer. More...
 
void connectView (const SUIT_ViewWindow *)
 Connects or disconnects signals about activating and cloning view on the module slots. More...
 

Private Attributes

QDialogmyActiveDialogBox
 
int myState
 
QMap< int, QString > myRules
 
LightApp_DisplayermyDisplayer
 
SMESHGUI_FilterLibraryDlgmyFilterLibraryDlg
 
VTK::MarkerMap myMarkerMap
 
SMESHGUI_ClippingPlaneInfoMap myClippingPlaneInfoMap
 
vtkSmartPointer< vtkCallbackCommand > myEventCallbackCommand
 
double myPriority
 

Static Private Attributes

static SMESH::SMESH_Gen_var myComponentSMESH = SMESH::SMESH_Gen::_nil()
 

Constructor & Destructor Documentation

◆ SMESHGUI()

◆ ~SMESHGUI()

SMESHGUI::~SMESHGUI ( )

Member Function Documentation

◆ activateModule

bool SMESHGUI::activateModule ( SUIT_Study *  study)
virtualslot

◆ activeStudy()

SalomeApp_Study * SMESHGUI::activeStudy ( )
static

◆ addActorAsObserver()

void SMESHGUI::addActorAsObserver ( SMESH_Actor theActor)
virtual

◆ addVtkFontPref()

int SMESHGUI::addVtkFontPref ( const QString &  label,
const int  pId,
const QString &  param,
const bool  needSize = false 
)
private

Adds preferences for dfont of VTK viewer.

Parameters
labellabel
pIfgroup identifier
paramparameter
Returns
identifier of preferences

Referenced by createPreferences().

◆ automaticUpdate() [1/2]

◆ automaticUpdate() [2/2]

bool SMESHGUI::automaticUpdate ( unsigned int  requestedSize = 0,
bool *  limitExceeded = 0 
)
static

◆ BuildPresentation()

void SMESHGUI::BuildPresentation ( const Handle(SALOME_InteractiveObject)&  ,
SUIT_ViewWindow *  = 0 
)
virtual

Method: BuildPresentation(const Handle(SALOME_InteractiveObject)& theIO) Purpose: ensures that the actor for the given <theIO> exists in the active VTK view.

References SMESH::eDisplay, and SMESH::UpdateView().

◆ connectView()

void SMESHGUI::connectView ( const SUIT_ViewWindow *  pview)
private

Connects or disconnects signals about activating and cloning view on the module slots.

Parameters
pviewview which is connected/disconnected

References onViewClosed().

Referenced by activateModule(), and onViewManagerActivated().

◆ contextMenuPopup()

void SMESHGUI::contextMenuPopup ( const QString &  client,
QMenu *  menu,
QString &  title 
)
virtual

◆ createOperation()

LightApp_Operation * SMESHGUI::createOperation ( const int  id) const
protectedvirtual

◆ createPopupItem()

void SMESHGUI::createPopupItem ( const int  id,
const QString &  clients,
const QString &  types,
const QString &  theRule = QString(),
const int  pId = -1 
)
protected

References myRules.

Referenced by initialize().

◆ createPreferences()

void SMESHGUI::createPreferences ( )
virtual

◆ createSelection()

LightApp_Selection * SMESHGUI::createSelection ( ) const
virtual

◆ createSMESHAction()

void SMESHGUI::createSMESHAction ( const int  id,
const QString &  po_id,
const QString &  icon_id = QString(),
const int  key = 0,
const bool  toggle = false,
const QString &  shortcutAction = QString() 
)
protected

References OnGUIEvent(), and resourceMgr().

Referenced by initialize().

◆ deactivateModule

bool SMESHGUI::deactivateModule ( SUIT_Study *  study)
virtualslot

◆ DefineDlgPosition()

bool SMESHGUI::DefineDlgPosition ( QWidget aDlg,
int &  x,
int &  y 
)

References desktop().

◆ desktop()

◆ displayer()

LightApp_Displayer * SMESHGUI::displayer ( )
virtual

References myDisplayer.

Referenced by restoreVisualParameters().

◆ EmitSignalActivatedViewManager()

void SMESHGUI::EmitSignalActivatedViewManager ( )

◆ EmitSignalCloseAllDialogs()

void SMESHGUI::EmitSignalCloseAllDialogs ( )

References SignalCloseAllDialogs().

Referenced by deactivateModule().

◆ EmitSignalCloseView()

void SMESHGUI::EmitSignalCloseView ( )

References SignalCloseView().

Referenced by onViewClosed().

◆ EmitSignalDeactivateDialog()

void SMESHGUI::EmitSignalDeactivateDialog ( )

References SignalDeactivateActiveDialog().

Referenced by SMESHGUI_MeasureDlg::activate(), SMESHGUI_AddMeshElementDlg::ActivateThisDialog(), SMESHGUI_AddQuadraticElementDlg::ActivateThisDialog(), SMESHGUI_BuildCompoundDlg::ActivateThisDialog(), SMESHGUI_CopyMeshDlg::ActivateThisDialog(), SMESHGUI_CreatePolyhedralVolumeDlg::ActivateThisDialog(), SMESHGUI_ExtrusionAlongPathDlg::ActivateThisDialog(), SMESHGUI_ExtrusionDlg::ActivateThisDialog(), SMESHGUI_FaceGroupsSeparatedByEdgesDlg::ActivateThisDialog(), SMESHGUI_MergeDlg::ActivateThisDialog(), SMESHGUI_NodesDlg::ActivateThisDialog(), SMESHGUI_OffsetDlg::ActivateThisDialog(), SMESHGUI_RemoveElementsDlg::ActivateThisDialog(), SMESHGUI_RemoveNodesDlg::ActivateThisDialog(), SMESHGUI_RenumberingDlg::ActivateThisDialog(), SMESHGUI_RevolutionDlg::ActivateThisDialog(), SMESHGUI_RotationDlg::ActivateThisDialog(), SMESHGUI_ScaleDlg::ActivateThisDialog(), SMESHGUI_SewingDlg::ActivateThisDialog(), SMESHGUI_SmoothingDlg::ActivateThisDialog(), SMESHGUI_SymmetryDlg::ActivateThisDialog(), SMESHGUI_TranslationDlg::ActivateThisDialog(), SMESHGUI_CreatePatternDlg::enterEvent(), SMESHGUI_DeleteGroupDlg::enterEvent(), SMESHGUI_DuplicateNodesDlg::enterEvent(), SMESHGUI_GroupDlg::enterEvent(), SMESHGUI_GroupOpDlg::enterEvent(), SMESHGUI_MeshPatternDlg::enterEvent(), SMESHGUI_MultiEditDlg::enterEvent(), SMESHGUI_SingleEditDlg::enterEvent(), OnGUIEvent(), SMESHGUI_GroupDlg::onOpenView(), SMESHGUI_GroupOpDlg::onOpenView(), SMESHGUI_MeshPatternDlg::onOpenView(), SMESHGUI_MultiEditDlg::onOpenView(), and SMESHGUI_SingleEditDlg::onOpenView().

◆ EmitSignalStudyFrameChanged()

void SMESHGUI::EmitSignalStudyFrameChanged ( )

◆ EmitSignalVisibilityChanged()

void SMESHGUI::EmitSignalVisibilityChanged ( )

References SignalVisibilityChanged().

Referenced by OnGUIEvent().

◆ engineIOR()

QString SMESHGUI::engineIOR ( ) const
virtual

References GetSMESHGen().

Referenced by OnEditDelete().

◆ GetActiveDialogBox()

QDialog * SMESHGUI::GetActiveDialogBox ( )

References myActiveDialogBox.

◆ getClippingPlaneInfoMap()

◆ getPredefinedUniqueColor()

SALOMEDS::Color SMESHGUI::getPredefinedUniqueColor ( )
static

◆ GetSMESHGen()

◆ GetSMESHGUI()

SMESHGUI * SMESHGUI::GetSMESHGUI ( )
static

Referenced by SMESHGUI_MeasureDlg::activate(), SMESH::AddGroup(), StdMeshersGUI_CartesianParamCreator::buildFrame(), StdMeshersGUI_QuadrangleParamCreator::buildFrame(), StdMeshersGUI_BlockRenumberCreator::buildFrame(), SMESHGUI_MeshOp::checkSubMeshConcurrency(), SMESHGUI_AddMeshElementDlg::ClickOnApply(), SMESHGUI_AddQuadraticElementDlg::ClickOnApply(), SMESHGUI_CreatePolyhedralVolumeDlg::ClickOnApply(), SMESHGUI_NodesDlg::ClickOnApply(), SMESHGUI_BaseComputeOp::computeMesh(), SMESH::CreateActor(), SMESH::CreateHypothesis(), SMESHGUI_AddNodeOnFaceDlg::createMainFrame(), SMESHGUI_AddNodeOnSegmentDlg::createMainFrame(), SMESHGUI_MakeNodeAtPointDlg::createMainFrame(), SMESHGUI_MG_ADAPTDRIVER::createMeshInObjectBrowser(), SMESHGUI_GenericHypothesisCreator::editHypothesis(), GetComponentGUI(), SMESH::GetGeomEntries(), SMESHGUI_Selection::guiState(), SMESHGUI_Selection::hasErrors(), SMESH::TShapeDisplayer::hasViewWindow(), SMESH_Swig::init(), StdMeshersGUI_LayerDistributionParamWdg::init(), StdMeshersGUI_ObjectReferenceParamWdg::init(), StdMeshersGUI_SubShapeSelectorWdg::init(), SMESHGUI_Add0DElemsOnAllNodesOp::onApply(), SMESHGUI_CreateDualMeshOp::onApply(), SMESHGUI_GenericHypothesisCreator::onDialogFinished(), OnEditDelete(), OnGUIEvent(), SMESHGUI_MeshOp::onPublishShapeByMeshDlg(), StdMeshersGUI_BlockRenumberCreator::onSelectionChange(), StdMeshersGUI_CartesianParamCreator::onSelectionChange(), StdMeshersGUI_QuadrangleParamCreator::onSelectionChanged(), SMESHGUI_AddNodeOnFaceOp::onTextChange(), SMESHGUI_MakeNodeAtPointOp::onTextChange(), SMESHGUI_RemoveNodeReconnectionOp::onTextChange(), SMESHGUI_MakeNodeAtPointOp::processInteractorEvents(), SMESHGUI_HomardAdaptDlg::PushOnApply(), SMESHGUI_3TypesSelector::setFilters(), SMESHGUI_MeshOrderMgr::SetMeshOrder(), SMESH::TShapeDisplayer::Show(), SMESH::ShowHelpFile(), SMESHGUI_3TypesSelector::SMESHGUI_3TypesSelector(), SMESHGUI_CtrlInfoDlg::SMESHGUI_CtrlInfoDlg(), SMESHGUI_MeasureDlg::SMESHGUI_MeasureDlg(), SMESHGUI_MeshInfoDlg::SMESHGUI_MeshInfoDlg(), and StdMeshersGUI_CartesianParamCreator::StdMeshersGUI_CartesianParamCreator().

◆ GetState()

int SMESHGUI::GetState ( ) const

◆ getUniqueColor()

SALOMEDS::Color SMESHGUI::getUniqueColor ( const QList< SALOMEDS::Color > &  theReservedColors)
static

◆ initialize()

void SMESHGUI::initialize ( CAM_Application *  app)
virtual

References SMESH::ALGORITHM, SMESH::COMPONENT, createPopupItem(), createSMESHAction(), desktop(), SMESH::GROUP, SMESH::HYPOTHESIS, SMESH::MESH, myRules, onUpdateControlActions(), onViewManagerActivated(), onViewManagerRemoved(), SMESHOp::OpAddElemGroupPopup, SMESHOp::OpAngle, SMESHOp::OpArea, SMESHOp::OpAspectRatio, SMESHOp::OpAspectRatio3D, SMESHOp::OpAutoColor, SMESHOp::OpBall, SMESHOp::OpBareBorderFace, SMESHOp::OpBareBorderVolume, SMESHOp::OpBiQuadraticPentahedron, SMESHOp::OpBiQuadraticQuadrangle, SMESHOp::OpBiQuadraticTriangle, SMESHOp::OpBoundingBox, SMESHOp::OpBreakLink, SMESHOp::OpBuildCompoundMesh, SMESHOp::OpClearMesh, SMESHOp::OpClipping, SMESHOp::OpCompute, SMESHOp::OpComputeSubMesh, SMESHOp::OpConnection, SMESHOp::OpConnection2D, SMESHOp::OpConstructGroup, SMESHOp::OpConvertMeshToQuadratic, SMESHOp::OpCopyMesh, SMESHOp::OpCreate2DElements, SMESHOp::OpCreateBoundaryElements, SMESHOp::OpCreateDualMesh, SMESHOp::OpCreateGeometryGroup, SMESHOp::OpCreateGroup, SMESHOp::OpCreateMesh, SMESHOp::OpCreateSubMesh, SMESHOp::OpCutGroups, SMESHOp::OpCuttingOfQuadrangles, SMESHOp::OpDE0DElements, SMESHOp::OpDEAllEntity, SMESHOp::OpDEBalls, SMESHOp::OpDEChoose, SMESHOp::OpDEEdges, SMESHOp::OpDEFaces, SMESHOp::OpDeflection2D, SMESHOp::OpDelete, SMESHOp::OpDeleteGroup, SMESHOp::OpDEVolumes, SMESHOp::OpDiagonalInversion, SMESHOp::OpDisableAutoColor, SMESHOp::OpDMNodes, SMESHOp::OpDMShading, SMESHOp::OpDMShrink, SMESHOp::OpDMWireframe, SMESHOp::OpDuplicateNodes, SMESHOp::OpEdge, SMESHOp::OpEditGeomGroupAsGroup, SMESHOp::OpEditGroup, SMESHOp::OpEditHypothesis, SMESHOp::OpEditMesh, SMESHOp::OpEditMeshOrSubMesh, SMESHOp::OpEditSubMesh, SMESHOp::OpElem0D, SMESHOp::OpElem0DOnElemNodes, SMESHOp::OpEqualEdge, SMESHOp::OpEqualFace, SMESHOp::OpEqualNode, SMESHOp::OpEqualVolume, SMESHOp::OpEvaluate, SMESHOp::OpExportCGNS, SMESHOp::OpExportDAT, SMESHOp::OpExportGMF, SMESHOp::OpExportMED, SMESHOp::OpExportSTL, SMESHOp::OpExportUNV, SMESHOp::OpExtrusion, SMESHOp::OpExtrusionAlongAPath, SMESHOp::OpFaceGroupsByEdges, SMESHOp::OpFileInformation, SMESHOp::OpFindElementByPoint, SMESHOp::OpFreeBorder, SMESHOp::OpFreeEdge, SMESHOp::OpFreeFace, SMESHOp::OpFreeNode, SMESHOp::OpGroupUnderlyingElem, SMESHOp::OpHexagonalPrism, SMESHOp::OpHexahedron, SMESHOp::OpHide, SMESHOp::OpHomardAdapt, SMESHOp::OpImportCGNS, SMESHOp::OpImportGMF, SMESHOp::OpImportMED, SMESHOp::OpImportSTL, SMESHOp::OpImportUNV, SMESHOp::OpIntersectGroups, SMESHOp::OpLength, SMESHOp::OpLength2D, SMESHOp::OpMaxElementLength2D, SMESHOp::OpMaxElementLength3D, SMESHOp::OpMergeElements, SMESHOp::OpMergeNodes, SMESHOp::OpMeshInformation, SMESHOp::OpMeshOrder, SMESHOp::OpMGAdapt, SMESHOp::OpMinimumAngle, SMESHOp::OpMinimumDistance, SMESHOp::OpMoveNode, SMESHOp::OpMoveNodeInteractive, SMESHOp::OpNode, SMESHOp::OpNodeConnectivityNb, SMESHOp::OpNumberingElements, SMESHOp::OpNumberingNodes, SMESHOp::OpOffset, SMESHOp::OpOrientation, SMESHOp::OpOrientationOnFaces, SMESHOp::OpOverallMeshQuality, SMESHOp::OpOverConstrainedFace, SMESHOp::OpOverConstrainedVolume, SMESHOp::OpPatternMapping, SMESHOp::OpPentahedron, SMESHOp::OpPlotDistribution, SMESHOp::OpPolygon, SMESHOp::OpPolyhedron, SMESHOp::OpPopupExportCGNS, SMESHOp::OpPopupExportDAT, SMESHOp::OpPopupExportGMF, SMESHOp::OpPopupExportMED, SMESHOp::OpPopupExportSTL, SMESHOp::OpPopupExportUNV, SMESHOp::OpPopupImportCGNS, SMESHOp::OpPopupImportDAT, SMESHOp::OpPopupImportGMF, SMESHOp::OpPopupImportMED, SMESHOp::OpPopupImportSTL, SMESHOp::OpPopupImportUNV, SMESHOp::OpPreCompute, SMESHOp::OpProperties, SMESHOp::OpPropertiesArea, SMESHOp::OpPropertiesLength, SMESHOp::OpPropertiesVolume, SMESHOp::OpPyramid, SMESHOp::OpQuadrangle, SMESHOp::OpQuadraticEdge, SMESHOp::OpQuadraticHexahedron, SMESHOp::OpQuadraticPentahedron, SMESHOp::OpQuadraticPolygon, SMESHOp::OpQuadraticPyramid, SMESHOp::OpQuadraticQuadrangle, SMESHOp::OpQuadraticTetrahedron, SMESHOp::OpQuadraticTriangle, SMESHOp::OpRecompute, SMESHOp::OpRemoveElements, SMESHOp::OpRemoveElemGroupPopup, SMESHOp::OpRemoveNodes, SMESHOp::OpRemoveNodeWithReconn, SMESHOp::OpRemoveOrphanNodes, SMESHOp::OpReorientFaces, SMESHOp::OpRepresentationArcs, SMESHOp::OpRepresentationLines, SMESHOp::OpReset, SMESHOp::OpRevolution, SMESHOp::OpRotation, SMESHOp::OpSaveDistribution, SMESHOp::OpScalarBarProperties, SMESHOp::OpScale, SMESHOp::OpScaledJacobian, SMESHOp::OpSelectFiltersLibrary, SMESHOp::OpSewing, SMESHOp::OpShow, SMESHOp::OpShowDistribution, SMESHOp::OpShowErrors, SMESHOp::OpShowOnly, SMESHOp::OpShowScalarBar, SMESHOp::OpSkew, SMESHOp::OpSmoothing, SMESHOp::OpSortChild, SMESHOp::OpSplitBiQuadratic, SMESHOp::OpSplitEdgeInteract, SMESHOp::OpSplitFaceInteract, SMESHOp::OpSplitVolumes, SMESHOp::OpSymmetry, SMESHOp::OpTaper, SMESHOp::OpTetrahedron, SMESHOp::OpTranslation, SMESHOp::OpTransparency, SMESHOp::OpTriangle, SMESHOp::OpTriQuadraticHexahedron, SMESHOp::OpUnassign, SMESHOp::OpUnionGroups, SMESHOp::OpUnionOfTriangles, SMESHOp::OpUnionOfTwoTriangle, SMESHOp::OpUpdate, SMESHOp::OpVolume, SMESHOp::OpWarpingAngle, resourceMgr(), SMESH::SUBMESH, SMESH::SUBMESH_COMPOUND, SMESH::SUBMESH_EDGE, SMESH::SUBMESH_FACE, SMESH::SUBMESH_SOLID, SMESH::SUBMESH_VERTEX, and SMESHGUI_Selection::typeName().

◆ isSelectionCompatible()

bool SMESHGUI::isSelectionCompatible ( )
protectedvirtual

Return true if SMESH or GEOM objects are selected.

Is called form LightApp_Module::activateModule() which clear selection if not isSelectionCompatible()

References isCompatible(), and selectionMgr().

◆ isStudyLocked()

bool SMESHGUI::isStudyLocked ( bool  theMessage = true)
static

Verifies whether study of operation is locked.

Parameters
theMess- specifies whether message box must be shown if study is locked
Returns
State of study.

Verifies whether study of operation is locked. If second parameter is TRUE and study is locked when corresponding message box appears

References desktop().

Referenced by SMESHGUI_AddMeshElementDlg::ClickOnApply(), SMESHGUI_AddQuadraticElementDlg::ClickOnApply(), SMESHGUI_BuildCompoundDlg::ClickOnApply(), SMESHGUI_CopyMeshDlg::ClickOnApply(), SMESHGUI_CreatePolyhedralVolumeDlg::ClickOnApply(), SMESHGUI_ExtrusionAlongPathDlg::ClickOnApply(), SMESHGUI_ExtrusionDlg::ClickOnApply(), SMESHGUI_FaceGroupsSeparatedByEdgesDlg::ClickOnApply(), SMESHGUI_MergeDlg::ClickOnApply(), SMESHGUI_NodesDlg::ClickOnApply(), SMESHGUI_OffsetDlg::ClickOnApply(), SMESHGUI_RemoveElementsDlg::ClickOnApply(), SMESHGUI_RemoveNodesDlg::ClickOnApply(), SMESHGUI_RenumberingDlg::ClickOnApply(), SMESHGUI_RevolutionDlg::ClickOnApply(), SMESHGUI_RotationDlg::ClickOnApply(), SMESHGUI_ScaleDlg::ClickOnApply(), SMESHGUI_SewingDlg::ClickOnApply(), SMESHGUI_SmoothingDlg::ClickOnApply(), SMESHGUI_SymmetryDlg::ClickOnApply(), SMESHGUI_TranslationDlg::ClickOnApply(), SMESHGUI_Operation::isReadyToStart(), SMESHGUI_DeleteGroupDlg::isValid(), SMESHGUI_AddNodeOnFaceOp::onApply(), SMESHGUI_DuplicateNodesDlg::onApply(), SMESHGUI_GroupDlg::onApply(), SMESHGUI_GroupOnShapeOp::onApply(), SMESHGUI_UnionGroupsDlg::onApply(), SMESHGUI_IntersectGroupsDlg::onApply(), SMESHGUI_CutGroupsDlg::onApply(), SMESHGUI_DimGroupDlg::onApply(), SMESHGUI_Make2DFrom3DOp::onApply(), SMESHGUI_MakeFull2DFrom3DOp::onApply(), SMESHGUI_MakeNodeAtPointOp::onApply(), SMESHGUI_MeshOp::onApply(), SMESHGUI_MultiEditDlg::onApply(), SMESHGUI_RemoveNodeReconnectionOp::onApply(), SMESHGUI_ReorientFacesOp::onApply(), SMESHGUI_SingleEditDlg::onApply(), SMESHGUI_AddNodeOnSegmentOp::onApply(), SMESHGUI_DuplicateNodesDlg::onGenerate(), OnGUIEvent(), and SMESHGUI_MG_ADAPTDRIVER::PushOnApply().

◆ message()

void SMESHGUI::message ( const QString &  msg)
virtual

References SMESH::_PTR(), and SMESH::fromUtf8().

◆ Modified()

void SMESHGUI::Modified ( bool  theIsUpdateActions = true)
static

Referenced by SMESHGUI_AddMeshElementDlg::ClickOnApply(), SMESHGUI_AddQuadraticElementDlg::ClickOnApply(), SMESHGUI_BuildCompoundDlg::ClickOnApply(), SMESHGUI_CopyMeshDlg::ClickOnApply(), SMESHGUI_CreatePolyhedralVolumeDlg::ClickOnApply(), SMESHGUI_ExtrusionAlongPathDlg::ClickOnApply(), SMESHGUI_ExtrusionDlg::ClickOnApply(), SMESHGUI_FaceGroupsSeparatedByEdgesDlg::ClickOnApply(), SMESHGUI_MergeDlg::ClickOnApply(), SMESHGUI_NodesDlg::ClickOnApply(), SMESHGUI_OffsetDlg::ClickOnApply(), SMESHGUI_RemoveElementsDlg::ClickOnApply(), SMESHGUI_RemoveNodesDlg::ClickOnApply(), SMESHGUI_RenumberingDlg::ClickOnApply(), SMESHGUI_RevolutionDlg::ClickOnApply(), SMESHGUI_RotationDlg::ClickOnApply(), SMESHGUI_ScaleDlg::ClickOnApply(), SMESHGUI_SewingDlg::ClickOnApply(), SMESHGUI_SmoothingDlg::ClickOnApply(), SMESHGUI_SymmetryDlg::ClickOnApply(), SMESHGUI_TranslationDlg::ClickOnApply(), SMESH::CreateHypothesis(), SMESHGUI_Add0DElemsOnAllNodesOp::onApply(), SMESHGUI_AddNodeOnFaceOp::onApply(), SMESHGUI_ConvToQuadOp::onApply(), SMESHGUI_CreateDualMeshOp::onApply(), SMESHGUI_DeleteGroupDlg::onApply(), SMESHGUI_DuplicateNodesDlg::onApply(), SMESHGUI_GroupDlg::onApply(), SMESHGUI_GroupOnShapeOp::onApply(), SMESHGUI_UnionGroupsDlg::onApply(), SMESHGUI_IntersectGroupsDlg::onApply(), SMESHGUI_CutGroupsDlg::onApply(), SMESHGUI_DimGroupDlg::onApply(), SMESHGUI_Make2DFrom3DOp::onApply(), SMESHGUI_MakeFull2DFrom3DOp::onApply(), SMESHGUI_MakeNodeAtPointOp::onApply(), SMESHGUI_MeshOp::onApply(), SMESHGUI_MeshOrderOp::onApply(), SMESHGUI_MeshPatternDlg::onApply(), SMESHGUI_MultiEditDlg::onApply(), SMESHGUI_RemoveNodeReconnectionOp::onApply(), SMESHGUI_ReorientFacesOp::onApply(), SMESHGUI_SingleEditDlg::onApply(), SMESHGUI_SplitBiQuadOp::onApply(), SMESHGUI_AddNodeOnSegmentOp::onApply(), OnGUIEvent(), and onHypothesisEdit().

◆ OnEditDelete()

void SMESHGUI::OnEditDelete ( )
private

Erase graphical object and remove all its data

Remove an object from data structures

References SMESH::_PTR(), desktop(), engineIOR(), GetSMESHGUI(), Handle(), SMESH::RemoveHypothesisOrAlgorithmOnMesh(), SMESH::RemoveVisualObjectWithActors(), selectionMgr(), SMESH::SObjectToObject(), and SMESH::subSO.

Referenced by OnGUIEvent().

◆ OnGUIEvent [1/2]

void SMESHGUI::OnGUIEvent ( )
privateslot

Referenced by createSMESHAction().

◆ OnGUIEvent() [2/2]

bool SMESHGUI::OnGUIEvent ( int  theCommandID)
virtual

References SMESH::_PTR(), SMESH::AddGroup(), SMESHGUI_MeasureDlg::Angle, SMESHGUI_MeasureDlg::Area, SMESHGUI_MeshInfoDlg::BaseInfo, SMESHGUI_MeasureDlg::BoundingBox, desktop(), SMESH::EDGE, SMESH::eDisplay, SMESH::eDisplayOnly, SMESHGUI_FilterLibraryDlg::EDIT, SMESHGUI_GenericHypothesisCreator::edit(), SMESH::eErase, SMESHGUI_MeshInfoDlg::ElemInfo, EmitSignalDeactivateDialog(), EmitSignalVisibilityChanged(), SMESH_Actor::eNone, SMESH::FACE, SMESH::FindActorByEntry(), SMESH::GetDesktop(), SMESH::GetGeomEntries(), SMESH::GetHypothesisCreator(), SMESH::GetMeshByIO(), GetSMESHGen(), GetSMESHGUI(), Handle(), SMESHGUI_FilterLibraryDlg::Init(), isStudyLocked(), SMESHGUI_MeasureDlg::Length, SMESHGUI_MeasureDlg::MinDistance, Modified(), myActiveDialogBox, myFilterLibraryDlg, myMarkerMap, myState, SMESH::NODE, OCC_CATCH_SIGNALS, SMESHGUI_GroupDlg::onAdd(), OnEditDelete(), onHypothesisEdit(), SMESHGUI_GroupDlg::onRemove(), SMESH::OnVisuException(), SMESHOp::OpAddElemGroupPopup, SMESHOp::OpAngle, SMESHOp::OpArea, SMESHOp::OpAspectRatio, SMESHOp::OpAspectRatio3D, SMESHOp::OpAutoColor, SMESHOp::OpBall, SMESHOp::OpBareBorderFace, SMESHOp::OpBareBorderVolume, SMESHOp::OpBiQuadraticPentahedron, SMESHOp::OpBiQuadraticQuadrangle, SMESHOp::OpBiQuadraticTriangle, SMESHOp::OpBoundingBox, SMESHOp::OpBreakLink, SMESHOp::OpBuildCompoundMesh, SMESHOp::OpClearMesh, SMESHOp::OpClipping, SMESHOp::OpCompute, SMESHOp::OpComputeSubMesh, SMESHOp::OpConnection, SMESHOp::OpConnection2D, SMESHOp::OpConstructGroup, SMESHOp::OpConvertMeshToQuadratic, SMESHOp::OpCopyMesh, SMESHOp::OpCreate2DElements, SMESHOp::OpCreateBoundaryElements, SMESHOp::OpCreateDualMesh, SMESHOp::OpCreateGeometryGroup, SMESHOp::OpCreateGroup, SMESHOp::OpCreateMesh, SMESHOp::OpCreateSubMesh, SMESHOp::OpCutGroups, SMESHOp::OpCuttingOfQuadrangles, SMESHOp::OpDE0DElements, SMESHOp::OpDEAllEntity, SMESHOp::OpDEBalls, SMESHOp::OpDEChoose, SMESHOp::OpDEEdges, SMESHOp::OpDEFaces, SMESHOp::OpDeflection2D, SMESHOp::OpDelete, SMESHOp::OpDeleteGroup, SMESHOp::OpDEVolumes, SMESHOp::OpDiagonalInversion, SMESHOp::OpDisableAutoColor, SMESHOp::OpDMNodes, SMESHOp::OpDMShading, SMESHOp::OpDMShrink, SMESHOp::OpDMWireframe, SMESHOp::OpDuplicateNodes, SMESHOp::OpEdge, SMESHOp::OpEditGeomGroupAsGroup, SMESHOp::OpEditGroup, SMESHOp::OpEditHypothesis, SMESHOp::OpEditMesh, SMESHOp::OpEditMeshOrSubMesh, SMESHOp::OpEditSubMesh, SMESHOp::OpElem0D, SMESHOp::OpElem0DOnElemNodes, SMESHOp::OpEqualEdge, SMESHOp::OpEqualFace, SMESHOp::OpEqualNode, SMESHOp::OpEqualVolume, SMESHOp::OpEvaluate, SMESHOp::OpExportCGNS, SMESHOp::OpExportDAT, SMESHOp::OpExportGMF, SMESHOp::OpExportMED, SMESHOp::OpExportSTL, SMESHOp::OpExportUNV, SMESHOp::OpExtrusion, SMESHOp::OpExtrusionAlongAPath, SMESHOp::OpFaceGroupsByEdges, SMESHOp::OpFileInformation, SMESHOp::OpFindElementByPoint, SMESHOp::OpFreeBorder, SMESHOp::OpFreeEdge, SMESHOp::OpFreeFace, SMESHOp::OpFreeNode, SMESHOp::OpGroupUnderlyingElem, SMESHOp::OpHexagonalPrism, SMESHOp::OpHexahedron, SMESHOp::OpHide, SMESHOp::OpHomardAdapt, SMESHOp::OpImportCGNS, SMESHOp::OpImportDAT, SMESHOp::OpImportGMF, SMESHOp::OpImportMED, SMESHOp::OpImportSTL, SMESHOp::OpImportUNV, SMESHOp::OpIntersectGroups, SMESHOp::OpLength, SMESHOp::OpLength2D, SMESHOp::OpMaxElementLength2D, SMESHOp::OpMaxElementLength3D, SMESHOp::OpMergeElements, SMESHOp::OpMergeNodes, SMESHOp::OpMeshInformation, SMESHOp::OpMeshOrder, SMESHOp::OpMGAdapt, SMESHOp::OpMinimumAngle, SMESHOp::OpMinimumDistance, SMESHOp::OpMoveNode, SMESHOp::OpMoveNodeInteractive, SMESHOp::OpNode, SMESHOp::OpNodeConnectivityNb, SMESHOp::OpNumberingElements, SMESHOp::OpNumberingNodes, SMESHOp::OpOffset, SMESHOp::OpOrientation, SMESHOp::OpOrientationOnFaces, SMESHOp::OpOverallMeshQuality, SMESHOp::OpOverConstrainedFace, SMESHOp::OpOverConstrainedVolume, SMESHOp::OpPatternMapping, SMESHOp::OpPentahedron, SMESHOp::OpPlotDistribution, SMESHOp::OpPolygon, SMESHOp::OpPolyhedron, SMESHOp::OpPopupExportCGNS, SMESHOp::OpPopupExportDAT, SMESHOp::OpPopupExportGMF, SMESHOp::OpPopupExportMED, SMESHOp::OpPopupExportSTL, SMESHOp::OpPopupExportUNV, SMESHOp::OpPopupImportCGNS, SMESHOp::OpPopupImportDAT, SMESHOp::OpPopupImportGMF, SMESHOp::OpPopupImportMED, SMESHOp::OpPopupImportSTL, SMESHOp::OpPopupImportUNV, SMESHOp::OpPreCompute, SMESHOp::OpProperties, SMESHOp::OpPropertiesArea, SMESHOp::OpPropertiesLength, SMESHOp::OpPropertiesVolume, SMESHOp::OpPyramid, SMESHOp::OpQuadrangle, SMESHOp::OpQuadraticEdge, SMESHOp::OpQuadraticHexahedron, SMESHOp::OpQuadraticPentahedron, SMESHOp::OpQuadraticPolygon, SMESHOp::OpQuadraticPyramid, SMESHOp::OpQuadraticQuadrangle, SMESHOp::OpQuadraticTetrahedron, SMESHOp::OpQuadraticTriangle, SMESHOp::OpRecompute, SMESHOp::OpRemoveElements, SMESHOp::OpRemoveElemGroupPopup, SMESHOp::OpRemoveNodes, SMESHOp::OpRemoveNodeWithReconn, SMESHOp::OpRemoveOrphanNodes, SMESHOp::OpRenumberingElements, SMESHOp::OpRenumberingNodes, SMESHOp::OpReorientFaces, SMESHOp::OpRepresentationArcs, SMESHOp::OpRepresentationLines, SMESHOp::OpReset, SMESHOp::OpRevolution, SMESHOp::OpRotation, SMESHOp::OpSaveDistribution, SMESHOp::OpScalarBarProperties, SMESHOp::OpScale, SMESHOp::OpScaledJacobian, SMESHOp::OpSelectFiltersLibrary, SMESHOp::OpSewing, SMESHOp::OpShow, SMESHOp::OpShowDistribution, SMESHOp::OpShowErrors, SMESHOp::OpShowOnly, SMESHOp::OpShowScalarBar, SMESHOp::OpSkew, SMESHOp::OpSmoothing, SMESHOp::OpSortChild, SMESHOp::OpSplitBiQuadratic, SMESHOp::OpSplitEdgeInteract, SMESHOp::OpSplitFaceInteract, SMESHOp::OpSplitVolumes, SMESHOp::OpSymmetry, SMESHOp::OpTaper, SMESHOp::OpTetrahedron, SMESHOp::OpTranslation, SMESHOp::OpTransparency, SMESHOp::OpTriangle, SMESHOp::OpTriQuadraticHexahedron, SMESHOp::OpUnassign, SMESHOp::OpUnionGroups, SMESHOp::OpUnionOfTriangles, SMESHOp::OpUnionOfTwoTriangle, SMESHOp::OpUpdate, SMESHOp::OpVolume, SMESHOp::OpWarpingAngle, SMESHOp::OpWhatIs, SMESH::ProcessIn2DViewers(), SMESH::RemoveFrom2dViewer, SMESH::RemoveHypothesisOrAlgorithmOnMesh(), SMESH::RemoveVisualObjectWithActors(), resourceMgr(), SMESHGUI_Preferences_ScalarBarDlg::ScalarBarProperties(), selectionMgr(), SMESHGUI_GenericHypothesisCreator::setMainShapeEntry(), SMESHGUI_GenericHypothesisCreator::setShapeEntry(), SMESHGUI_MeshInfoDlg::showInfo(), SMDSEntity_0D, SMDSEntity_Ball, SMDSEntity_BiQuad_Penta, SMDSEntity_BiQuad_Quadrangle, SMDSEntity_BiQuad_Triangle, SMDSEntity_Edge, SMDSEntity_Hexa, SMDSEntity_Hexagonal_Prism, SMDSEntity_Last, SMDSEntity_Penta, SMDSEntity_Polygon, SMDSEntity_Pyramid, SMDSEntity_Quad_Edge, SMDSEntity_Quad_Hexa, SMDSEntity_Quad_Penta, SMDSEntity_Quad_Polygon, SMDSEntity_Quad_Pyramid, SMDSEntity_Quad_Quadrangle, SMDSEntity_Quad_Tetra, SMDSEntity_Quad_Triangle, SMDSEntity_Quadrangle, SMDSEntity_Tetra, SMDSEntity_Triangle, SMDSEntity_TriQuad_Hexa, SMESH::SObjectToObject(), SMESH_HOMARD_UTILS::updateObjBrowser(), SMESH::UpdateView(), SMESH::VOLUME, and SMESHGUI_MeasureDlg::Volume.

Referenced by SMESHGUI_MeshOp::checkSubMeshConcurrency().

◆ onHypothesisEdit

void SMESHGUI::onHypothesisEdit ( int  result)
privateslot

Actions after hypothesis edition Updates object browser after hypothesis edition.

References Modified(), and SMESH_HOMARD_UTILS::updateObjBrowser().

Referenced by OnGUIEvent().

◆ OnKeyPress()

bool SMESHGUI::OnKeyPress ( QKeyEvent *  ,
SUIT_ViewWindow *   
)
virtual

◆ OnMouseMove()

bool SMESHGUI::OnMouseMove ( QMouseEvent *  ,
SUIT_ViewWindow *   
)
virtual

◆ OnMousePress()

bool SMESHGUI::OnMousePress ( QMouseEvent *  ,
SUIT_ViewWindow *   
)
virtual

◆ onOperationAborted

void SMESHGUI::onOperationAborted ( SUIT_Operation *  )
privateslot

Set default selection mode.

SLOT called when operation aborted. Sets default selection mode

◆ onOperationCommited

void SMESHGUI::onOperationCommited ( SUIT_Operation *  )
privateslot

Set default selection mode.

SLOT called when operation committed. Sets default selection mode

◆ onUpdateControlActions

void SMESHGUI::onUpdateControlActions ( )
privateslot

Actions after choosing menu of control modes Updates control mode actions according to current selection.

References SMESH_Actor::eNone, SMESH::FindActorByEntry(), Handle(), and selectionMgr().

Referenced by initialize().

◆ onViewClosed

void SMESHGUI::onViewClosed ( SUIT_ViewWindow *  pview)
slot

Signal handler closing(SUIT_ViewWindow*) of a view.

Parameters
pviewview being closed

References SMESH::ClearPlot2Viewers(), and EmitSignalCloseView().

Referenced by connectView().

◆ onViewManagerActivated

void SMESHGUI::onViewManagerActivated ( SUIT_ViewManager *  mgr)
privateslot

◆ onViewManagerRemoved

void SMESHGUI::onViewManagerRemoved ( SUIT_ViewManager *  theViewManager)
privateslot

References myClippingPlaneInfoMap.

Referenced by initialize().

◆ preferencesChanged()

void SMESHGUI::preferencesChanged ( const QString &  sect,
const QString &  name 
)
virtual

◆ ProcessEvents()

void SMESHGUI::ProcessEvents ( vtkObject *  theObject,
unsigned long  theEvent,
void *  theClientData,
void *  theCallData 
)
staticprotected

◆ renameAllowed()

bool SMESHGUI::renameAllowed ( const QString &  entry) const
virtual

◆ renameObject()

bool SMESHGUI::renameObject ( const QString &  entry,
const QString &  name 
)
virtual

Rename object by entry.

Parameters
entryentry of the object
namenew name of the object

Return true if rename operation finished successfully, false otherwise.

References SMESH::_PTR(), SMESH::ALGORITHM, SMESH::FindActorByEntry(), GetSMESHGen(), SMESH::GROUP, Handle(), SMESH::HYPOTHESIS, SMESH::MESH, SMESH::SUBMESH, SMESH::SUBMESH_COMPOUND, SMESH::SUBMESH_EDGE, SMESH::SUBMESH_FACE, SMESH::SUBMESH_SOLID, SMESH::SUBMESH_VERTEX, and SMESHGUI_Selection::type().

◆ ResetState()

void SMESHGUI::ResetState ( )

References myState.

Referenced by SMESHGUI_AddMeshElementDlg::DeactivateActiveDialog(), SMESHGUI_AddQuadraticElementDlg::DeactivateActiveDialog(), SMESHGUI_BuildCompoundDlg::DeactivateActiveDialog(), SMESHGUI_CopyMeshDlg::DeactivateActiveDialog(), SMESHGUI_CreatePolyhedralVolumeDlg::DeactivateActiveDialog(), SMESHGUI_ExtrusionAlongPathDlg::DeactivateActiveDialog(), SMESHGUI_ExtrusionDlg::DeactivateActiveDialog(), SMESHGUI_FaceGroupsSeparatedByEdgesDlg::DeactivateActiveDialog(), SMESHGUI_MergeDlg::DeactivateActiveDialog(), SMESHGUI_NodesDlg::DeactivateActiveDialog(), SMESHGUI_OffsetDlg::DeactivateActiveDialog(), SMESHGUI_RemoveElementsDlg::DeactivateActiveDialog(), SMESHGUI_RemoveNodesDlg::DeactivateActiveDialog(), SMESHGUI_RenumberingDlg::DeactivateActiveDialog(), SMESHGUI_RevolutionDlg::DeactivateActiveDialog(), SMESHGUI_RotationDlg::DeactivateActiveDialog(), SMESHGUI_ScaleDlg::DeactivateActiveDialog(), SMESHGUI_SewingDlg::DeactivateActiveDialog(), SMESHGUI_SmoothingDlg::DeactivateActiveDialog(), SMESHGUI_SymmetryDlg::DeactivateActiveDialog(), SMESHGUI_TranslationDlg::DeactivateActiveDialog(), SMESHGUI_FilterDlg::enterEvent(), SMESHGUI_GroupDlg::enterEvent(), SMESHGUI_DuplicateNodesDlg::onDeactivate(), SMESHGUI_GroupDlg::onDeactivate(), SMESHGUI_CreatePatternDlg::onOk(), SMESHGUI_FilterDlg::onOk(), SMESHGUI_FilterLibraryDlg::onOk(), SMESHGUI_CreatePatternDlg::onSave(), SMESHGUI_GroupDlg::onSelectAll(), SMESHGUI_AddMeshElementDlg::reject(), SMESHGUI_AddQuadraticElementDlg::reject(), SMESHGUI_BuildCompoundDlg::reject(), SMESHGUI_CopyMeshDlg::reject(), SMESHGUI_CreatePatternDlg::reject(), SMESHGUI_CreatePolyhedralVolumeDlg::reject(), SMESHGUI_DeleteGroupDlg::reject(), SMESHGUI_DuplicateNodesDlg::reject(), SMESHGUI_ExtrusionAlongPathDlg::reject(), SMESHGUI_ExtrusionDlg::reject(), SMESHGUI_FaceGroupsSeparatedByEdgesDlg::reject(), SMESHGUI_FilterDlg::reject(), SMESHGUI_FilterLibraryDlg::reject(), SMESHGUI_GroupDlg::reject(), SMESHGUI_GroupOpDlg::reject(), SMESHGUI_MergeDlg::reject(), SMESHGUI_MeshPatternDlg::reject(), SMESHGUI_MultiEditDlg::reject(), SMESHGUI_NodesDlg::reject(), SMESHGUI_OffsetDlg::reject(), SMESHGUI_RemoveElementsDlg::reject(), SMESHGUI_RemoveNodesDlg::reject(), SMESHGUI_RenumberingDlg::reject(), SMESHGUI_RevolutionDlg::reject(), SMESHGUI_RotationDlg::reject(), SMESHGUI_ScaleDlg::reject(), SMESHGUI_SewingDlg::reject(), SMESHGUI_SingleEditDlg::reject(), SMESHGUI_SmoothingDlg::reject(), SMESHGUI_SymmetryDlg::reject(), and SMESHGUI_TranslationDlg::reject().

◆ resourceMgr()

◆ restoreVisualParameters()

void SMESHGUI::restoreVisualParameters ( int  savePoint)
virtual

Restore visual parameters.

This method is called after the study document is opened. Restore visual parameters from AttributeParameter attribute(s)

References SMESH::_PTR(), SMESH::Absolute, TPlaneData::AbsoluteOrientation, TPlaneInfo::ActorList, SMESH::ClippingPlaneInfo::ActorList, SMESHGUI_ClippingDlg::AddPlane(), TPlaneData::Angle, displayer(), TPlaneData::Distance, TPlaneData::Dx, SMESH::OrientedPlane::Dx, TPlaneData::Dy, SMESH::OrientedPlane::Dy, TPlaneData::Dz, SMESH::OrientedPlane::Dz, SMESH_Actor::eAllEntity, gDigitsSep, SMESH::GetColor(), gPathSep, gSeparator, Handle(), TPlaneData::Id, SMESH::if(), TPlaneData::isOpenGLClipping, SMESH::OrientedPlane::IsOpenGLClipping, TPlaneData::Mode, SMESH::OrientedPlane::myAbsoluteOrientation, SMESH::OrientedPlane::myAngle, myClippingPlaneInfoMap, myComponentSMESH, SMESH::OrientedPlane::myDistance, myMarkerMap, SMESH::OrientedPlane::myRelativeOrientation, SMESH::OrientedPlane::New(), SMESH::ClippingPlaneInfo::Plane, TPlaneInfo::PlaneId, SMESH::OrientedPlane::PlaneMode, SMESH::Relative, TPlaneData::RelativeOrientation, SMESH_Actor::RemoveAllClippingPlanes(), SMESH_Actor::Set0DColor(), SMESH_Actor::Set0DSize(), SMESH_Actor::SetBallColor(), SMESH_Actor::SetBallScale(), SMESH_Actor::SetBallSize(), SMESH_Actor::SetEdgeColor(), SMESH_Actor::SetEntityMode(), SMESH_Actor::SetFacesOrientation3DVectors(), SMESH_Actor::SetFacesOrientationColor(), SMESH_Actor::SetFacesOrientationScale(), SMESH_Actor::SetLineWidth(), SMESH_Actor::SetNodeColor(), SMESH_Actor::SetOutlineColor(), SMESH_Actor::SetOutlineWidth(), SMESH_Actor::SetShrinkFactor(), SMESH_Actor::SetSufaceColor(), SMESH_Actor::SetVolumeColor(), TPlaneInfo::ViewManager, TPlaneData::X, SMESH::OrientedPlane::X, TPlaneData::Y, SMESH::OrientedPlane::Y, TPlaneData::Z, and SMESH::OrientedPlane::Z.

◆ reusableOperation()

bool SMESHGUI::reusableOperation ( const int  id)
protectedvirtual

◆ selectionMgr()

LightApp_SelectionMgr * SMESHGUI::selectionMgr ( )
static

Referenced by StdMeshersGUI_QuadrangleParamCreator::buildFrame(), contextMenuPopup(), SMESHGUI_MinDistance::deactivate(), SMESHGUI_BoundingBox::deactivate(), SMESHGUI_BasicProperties::deactivate(), SMESHGUI_MeasureDlg::deactivate(), SMESHGUI_MeshInfoDlg::deactivate(), SMESHGUI_CtrlInfoDlg::deactivate(), isSelectionCompatible(), OnEditDelete(), OnGUIEvent(), StdMeshersGUI_PropagationHelperWdg::onListSelectionChanged(), SMESHGUI_DisplayEntitiesDlg::onOk(), StdMeshersGUI_BlockRenumberCreator::onSelectBtnClick(), StdMeshersGUI_BlockRenumberCreator::onSelectionChange(), StdMeshersGUI_CartesianParamCreator::onSelectionChange(), StdMeshersGUI_QuadrangleParamCreator::onSelectionChanged(), SMESHGUI_FilterLibraryDlg::onSelectionDone(), onUpdateControlActions(), SMESHGUI_MeasureDlg::reject(), SMESHGUI_MeshInfoDlg::reject(), SMESHGUI_HomardAdaptDlg::selectionChanged(), SMESHGUI_MinDistance::selectionChanged(), SMESHGUI_BoundingBox::selectionChanged(), SMESHGUI_BasicProperties::selectionChanged(), SMESHGUI_Angle::selectionChanged(), SMESHGUI_DisplayEntitiesDlg::SMESHGUI_DisplayEntitiesDlg(), SMESHGUI_MeshInfoDlg::updateInfo(), SMESHGUI_CtrlInfoDlg::updateInfo(), SMESHGUI_HomardAdaptDlg::updateSelection(), SMESHGUI_MinDistance::updateSelection(), SMESHGUI_BoundingBox::updateSelection(), SMESHGUI_BasicProperties::updateSelection(), SMESHGUI_Angle::updateSelection(), SMESHGUI_MeshInfoDlg::updateSelection(), SMESHGUI_CtrlInfoDlg::updateSelection(), SMESH::UpdateView(), and StdMeshersGUI_BlockRenumberCreator::~StdMeshersGUI_BlockRenumberCreator().

◆ SetActiveDialogBox()

void SMESHGUI::SetActiveDialogBox ( QDialog aDlg)

References myActiveDialogBox.

Referenced by SMESHGUI_MeasureDlg::activate(), SMESHGUI_BuildCompoundDlg::ActivateThisDialog(), SMESHGUI_CopyMeshDlg::ActivateThisDialog(), SMESHGUI_CreatePolyhedralVolumeDlg::ActivateThisDialog(), SMESHGUI_ExtrusionAlongPathDlg::ActivateThisDialog(), SMESHGUI_ExtrusionDlg::ActivateThisDialog(), SMESHGUI_FaceGroupsSeparatedByEdgesDlg::ActivateThisDialog(), SMESHGUI_MergeDlg::ActivateThisDialog(), SMESHGUI_OffsetDlg::ActivateThisDialog(), SMESHGUI_RemoveElementsDlg::ActivateThisDialog(), SMESHGUI_RemoveNodesDlg::ActivateThisDialog(), SMESHGUI_RenumberingDlg::ActivateThisDialog(), SMESHGUI_RevolutionDlg::ActivateThisDialog(), SMESHGUI_RotationDlg::ActivateThisDialog(), SMESHGUI_ScaleDlg::ActivateThisDialog(), SMESHGUI_SewingDlg::ActivateThisDialog(), SMESHGUI_SmoothingDlg::ActivateThisDialog(), SMESHGUI_SymmetryDlg::ActivateThisDialog(), SMESHGUI_TranslationDlg::ActivateThisDialog(), SMESHGUI_AddMeshElementDlg::DeactivateActiveDialog(), SMESHGUI_AddQuadraticElementDlg::DeactivateActiveDialog(), SMESHGUI_BuildCompoundDlg::DeactivateActiveDialog(), SMESHGUI_CopyMeshDlg::DeactivateActiveDialog(), SMESHGUI_CreatePolyhedralVolumeDlg::DeactivateActiveDialog(), SMESHGUI_ExtrusionAlongPathDlg::DeactivateActiveDialog(), SMESHGUI_ExtrusionDlg::DeactivateActiveDialog(), SMESHGUI_FaceGroupsSeparatedByEdgesDlg::DeactivateActiveDialog(), SMESHGUI_MergeDlg::DeactivateActiveDialog(), SMESHGUI_NodesDlg::DeactivateActiveDialog(), SMESHGUI_OffsetDlg::DeactivateActiveDialog(), SMESHGUI_RemoveElementsDlg::DeactivateActiveDialog(), SMESHGUI_RemoveNodesDlg::DeactivateActiveDialog(), SMESHGUI_RenumberingDlg::DeactivateActiveDialog(), SMESHGUI_RevolutionDlg::DeactivateActiveDialog(), SMESHGUI_RotationDlg::DeactivateActiveDialog(), SMESHGUI_ScaleDlg::DeactivateActiveDialog(), SMESHGUI_SewingDlg::DeactivateActiveDialog(), SMESHGUI_SmoothingDlg::DeactivateActiveDialog(), SMESHGUI_SymmetryDlg::DeactivateActiveDialog(), SMESHGUI_TranslationDlg::DeactivateActiveDialog(), SMESHGUI_DuplicateNodesDlg::enterEvent(), SMESHGUI_FilterDlg::enterEvent(), SMESHGUI_GroupDlg::enterEvent(), SMESHGUI_AddMeshElementDlg::Init(), SMESHGUI_AddQuadraticElementDlg::Init(), SMESHGUI_BuildCompoundDlg::Init(), SMESHGUI_CreatePolyhedralVolumeDlg::Init(), SMESHGUI_DeleteGroupDlg::Init(), SMESHGUI_DuplicateNodesDlg::Init(), SMESHGUI_GroupOpDlg::Init(), SMESHGUI_MergeDlg::Init(), SMESHGUI_MeshPatternDlg::Init(), SMESHGUI_MultiEditDlg::Init(), SMESHGUI_NodesDlg::Init(), SMESHGUI_RemoveElementsDlg::Init(), SMESHGUI_RemoveNodesDlg::Init(), SMESHGUI_RenumberingDlg::Init(), SMESHGUI_SingleEditDlg::Init(), SMESHGUI_CreatePatternDlg::Init(), SMESHGUI_FilterDlg::Init(), SMESHGUI_GroupDlg::initDialog(), SMESHGUI_DuplicateNodesDlg::onDeactivate(), SMESHGUI_CopyMeshDlg::SMESHGUI_CopyMeshDlg(), SMESHGUI_CreatePolyhedralVolumeDlg::SMESHGUI_CreatePolyhedralVolumeDlg(), SMESHGUI_ExtrusionAlongPathDlg::SMESHGUI_ExtrusionAlongPathDlg(), SMESHGUI_ExtrusionDlg::SMESHGUI_ExtrusionDlg(), SMESHGUI_FaceGroupsSeparatedByEdgesDlg::SMESHGUI_FaceGroupsSeparatedByEdgesDlg(), SMESHGUI_OffsetDlg::SMESHGUI_OffsetDlg(), SMESHGUI_RevolutionDlg::SMESHGUI_RevolutionDlg(), SMESHGUI_RotationDlg::SMESHGUI_RotationDlg(), SMESHGUI_ScaleDlg::SMESHGUI_ScaleDlg(), SMESHGUI_SewingDlg::SMESHGUI_SewingDlg(), SMESHGUI_SmoothingDlg::SMESHGUI_SmoothingDlg(), SMESHGUI_SymmetryDlg::SMESHGUI_SymmetryDlg(), and SMESHGUI_TranslationDlg::SMESHGUI_TranslationDlg().

◆ SetState()

void SMESHGUI::SetState ( int  aState)

◆ SignalActivatedViewManager

void SMESHGUI::SignalActivatedViewManager ( )
signal

◆ SignalCloseAllDialogs

void SMESHGUI::SignalCloseAllDialogs ( )
signal

◆ SignalCloseView

void SMESHGUI::SignalCloseView ( )
signal

Referenced by EmitSignalCloseView().

◆ SignalDeactivateActiveDialog

void SMESHGUI::SignalDeactivateActiveDialog ( )
signal

◆ SignalStudyFrameChanged

void SMESHGUI::SignalStudyFrameChanged ( )
signal

◆ SignalVisibilityChanged

void SMESHGUI::SignalVisibilityChanged ( )
signal

◆ storeVisualParameters()

◆ studyClosed

void SMESHGUI::studyClosed ( SUIT_Study *  s)
virtualslot

◆ switchToOperation()

void SMESHGUI::switchToOperation ( int  id)

Stops current operations and starts a given one.

Parameters
id- The id of the operation to start

References activeStudy().

◆ update()

void SMESHGUI::update ( const int  flags)
virtual

Update something in accordance with update flags.

Parameters
theFlags- update flags

Update viewer or/and object browser etc. in accordance with update flags ( see LightApp_UpdateFlags enumeration ).

References SMESH::UpdateView().

◆ viewManagers()

void SMESHGUI::viewManagers ( QStringList &  list) const
virtual

◆ windows()

void SMESHGUI::windows ( QMap< int, int > &  aMap) const
virtual

Field Documentation

◆ myActiveDialogBox

QDialog* SMESHGUI::myActiveDialogBox
private

◆ myClippingPlaneInfoMap

SMESHGUI_ClippingPlaneInfoMap SMESHGUI::myClippingPlaneInfoMap
private

◆ myComponentSMESH

SMESH::SMESH_Gen_var SMESHGUI::myComponentSMESH = SMESH::SMESH_Gen::_nil()
staticprivate

◆ myDisplayer

LightApp_Displayer* SMESHGUI::myDisplayer
private

Referenced by displayer(), and SMESHGUI().

◆ myEventCallbackCommand

vtkSmartPointer<vtkCallbackCommand> SMESHGUI::myEventCallbackCommand
private

Referenced by addActorAsObserver(), and SMESHGUI().

◆ myFilterLibraryDlg

SMESHGUI_FilterLibraryDlg* SMESHGUI::myFilterLibraryDlg
private

Referenced by OnGUIEvent(), and SMESHGUI().

◆ myMarkerMap

VTK::MarkerMap SMESHGUI::myMarkerMap
private

◆ myPriority

double SMESHGUI::myPriority
private

Referenced by addActorAsObserver(), and SMESHGUI().

◆ myRules

QMap<int, QString> SMESHGUI::myRules
private

Referenced by createPopupItem(), and initialize().

◆ myState

int SMESHGUI::myState
private