Salome HOME
0019296: EDF 681 SMESH
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_ComputeDlg.h
index 9a84f8a1c26b919fbf8160449528def81f33af30..85102f3b155c89ccf0cfbc758b63e654e60c3ea2 100644 (file)
@@ -50,6 +50,7 @@ class QTableWidget;
 class QLabel;
 class QtxComboBox;
 class SMESHGUI_ComputeDlg;
+class SMESHGUI_MeshInfosBox;
 class SMESHGUI_PrecomputeDlg;
 class SMESHGUI_MeshEditPreview;
 
@@ -82,6 +83,14 @@ protected:
                                                    SMESH::compute_error_array_var&,
                                                    const bool,
                                                    const QString& );
+  SMESHGUI_ComputeDlg*           evaluateDlg() const;
+  void                           evaluateMesh();
+  void                           showEvaluateResult(const SMESH::long_array& theRes,
+                                                   const bool,
+                                                   const bool,
+                                                   SMESH::compute_error_array_var&,
+                                                   const bool,
+                                                   const QString&);
     
 protected slots:
   virtual bool                   onApply();
@@ -136,6 +145,12 @@ public:
 
   virtual LightApp_Dialog*       dlg() const;
 
+  /**
+   * \brief returns map of assigned algorithms modes
+   */
+  static void                    getAssignedAlgos(_PTR(SObject) theMesh,
+                                                  QMap<int,int>& theModeMap);
+
 protected:
   virtual void                   startOperation();
   virtual void                   stopOperation();
@@ -158,50 +173,22 @@ private:
 };
 
 /*!
- * \brief Box showing mesh info
+ * \brief Operation to evaluate a mesh and show result
  */
-
-class SMESHGUI_EXPORT SMESHGUI_MeshInfosBox : public QGroupBox
+class SMESHGUI_EXPORT SMESHGUI_EvaluateOp: public SMESHGUI_BaseComputeOp
 {
   Q_OBJECT
 
 public:
-  SMESHGUI_MeshInfosBox( const bool, QWidget* );
+  SMESHGUI_EvaluateOp();
+  virtual ~SMESHGUI_EvaluateOp();
 
-  void    SetInfoByMesh( SMESH::SMESH_Mesh_var );
+  virtual LightApp_Dialog*       dlg() const;
 
-private:
-  bool    myFull;
-  QLabel* myNbNode;
-  QLabel* myNbEdge;
-  QLabel* myNbLinEdge;
-  QLabel* myNbQuadEdge;
-  QLabel* myNbTrai;
-  QLabel* myNbLinTrai;
-  QLabel* myNbQuadTrai;
-  QLabel* myNbQuad;
-  QLabel* myNbLinQuad;
-  QLabel* myNbQuadQuad;
-  QLabel* myNbFace;
-  QLabel* myNbLinFace;
-  QLabel* myNbQuadFace;
-  QLabel* myNbPolyg;
-  QLabel* myNbHexa;
-  QLabel* myNbLinHexa;
-  QLabel* myNbQuadHexa;
-  QLabel* myNbTetra;
-  QLabel* myNbLinTetra;
-  QLabel* myNbQuadTetra;
-  QLabel* myNbPyra;
-  QLabel* myNbLinPyra;
-  QLabel* myNbQuadPyra;
-  QLabel* myNbPrism;
-  QLabel* myNbLinPrism;
-  QLabel* myNbQuadPrism;
-  QLabel* myNbVolum;
-  QLabel* myNbLinVolum;
-  QLabel* myNbQuadVolum;
-  QLabel* myNbPolyh;
+protected:
+  virtual void                   startOperation();
+
+protected slots:
 };
 
 /*!
@@ -213,11 +200,11 @@ class SMESHGUI_EXPORT SMESHGUI_ComputeDlg : public SMESHGUI_Dialog
   Q_OBJECT
 
 public:
-  SMESHGUI_ComputeDlg( QWidget* );
+  SMESHGUI_ComputeDlg( QWidget*, bool );
   virtual ~SMESHGUI_ComputeDlg();
 
 protected:
-  QFrame*                      createMainFrame( QWidget* );
+  QFrame*                      createMainFrame( QWidget*, bool );
 
   QLabel*                      myMeshName;
   QGroupBox*                   myMemoryLackGroup;
@@ -259,5 +246,4 @@ private:
   QtxComboBox*                 myPreviewMode;
 };
 
-
 #endif // SMESHGUI_COMPUTEDLG_H