27 #ifndef SMESHGUI_MESHOP_H
28 #define SMESHGUI_MESHOP_H
51 enum HypType{ Algo = 0, MainHyp, AddHyp, NbHypTypes };
54 typedef std::pair<SMESH::SMESH_Hypothesis_var, QString>
THypItem;
74 virtual bool isValid( SUIT_Operation* )
const;
78 void onCreateHyp(
const int,
const int );
79 void onEditHyp(
const int,
const int );
80 void onHypoSet(
const QString& );
81 void onGeomSelectionByMesh(
bool );
82 void onPublishShapeByMeshDlg( SUIT_Operation* );
83 void onCloseShapeByMeshDlg( SUIT_Operation* );
84 void onAlgoSelected(
const int,
const int = -1 );
86 void onHypoCreated(
int );
87 void onHypoEdited(
int );
88 void onAlgoSetByMeshType(
const int,
const int );
97 GEOM::GEOM_Object_var);
100 void availableHyps(
const int,
106 const QString& =
"");
107 void existingHyps(
const int,
117 void createHypothesis(
const int,
const int,
120 bool createMesh( QString&, QStringList& );
121 bool createSubMesh( QString&, QStringList& );
122 bool editMeshOrSubMesh( QString& );
123 bool checkSubMeshConcurrency( SMESH::SMESH_Mesh_ptr mesh,
124 SMESH::SMESH_subMesh_ptr submesh,
127 int currentHyp(
const int,
const int )
const;
128 bool isSelectedHyp(
int,
int,
int )
const;
129 int nbDlgHypTypes(
const int )
const;
130 bool isAccessibleDim(
const int )
const;
131 void setCurrentHyp(
const int,
const int,
const int,
const bool=
false);
132 void setDefaultName(
const QString& prefix=
"" )
const;
133 SMESH::SMESH_Hypothesis_var getAlgo(
const int );
136 int find(
const SMESH::SMESH_Hypothesis_var&,
138 SMESH::SMESH_Hypothesis_var getInitParamsHypothesis(
const QString&,
139 const QString& )
const;
141 bool isSubshapeOk()
const;
142 char* isSubmeshIgnored()
const;
145 void createMeshTypeList( QStringList& );
146 void setAvailableMeshType( const QStringList& );
147 void setFilteredAlgoData( const
int, const
int );
148 QString currentMeshTypeName( const
int ) const;
157 bool myHasConcurrentSubBefore;
164 QString myLastGeomToSelect;
166 bool myIgnoreAlgoSelection;
168 int myDim, myType, myMaxShapeDim;
170 QString myObjectToSelect;
173 #endif // SMESHGUI_MESHOP_H