-// Copyright (C) 2007-2020 CEA/DEN, EDF R&D
+// Copyright (C) 2007-2023 CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
double myAnisotropicRatio, myTinyEdgeLength, myTinyEdgeOptimisLength, myBadElementAspectRatio, myCorrectSurfaceIntersectionMaxCost;
bool myOptimizeMesh, myQuadraticMesh;
bool mySmpsurface,mySmpedge,mySmppoint,myEnforcedVertex,myInternalEnforcedVerticesAllFaces;
- long myElementType;
+ int myElementType;
bool myUseSurfaceProximity;
int myNbSurfaceProximityLayers;
double mySurfaceProximityRatio;
TGroupNameEnfVertexListMap groupNameEnfVertexListMap;
*/
TPreCadPeriodicityVector preCadPeriodicityVector;
- QStringList hyperpatches;
+ QStringList hyperpatches, hyperEntries;
QString myName;
} BlsurfHypothesisData;
void onSelectEnforcedVertex();
void clearEnforcedVertexWidgets();
void onInternalVerticesClicked(int);
+ // Enforced mesh tab
+ void onAddEnforcedMesh();
+ void onRemoveEnforcedMesh();
+ void onEnforcedMeshSelected();
+ void onEnfMeshTableSelected();
// Periodicity tab
void onPeriodicityByVerticesChecked(bool);
void onAddPeriodicity();
static LightApp_SelectionMgr* selectionMgr();
void avoidSimultaneousSelection(ListOfWidgets &myCustomWidgets) const;
void AddPreCadSequenceToVector(BlsurfHypothesisData& h_data, BLSURFPlugin::TPeriodicityList_var preCadFacePeriodicityVector, bool onFace) const;
- void addHyPatchToTable(const QString& tags);
+ void addHyPatchToTable(const QString& tags, const QString& entries);
bool hasGeom() const;
+ void addEnforcedMesh( SMESH::SMESH_IDSource_ptr mesh, const QString& groupName );
+
private:
QTabWidget* myTabWidget;
QCheckBox *myInternalEnforcedVerticesAllFaces;
QLineEdit *myInternalEnforcedVerticesAllFacesGroup;
+
+ // Enforced meshes
+ QWidget* myEnfMeshGroup;
+ StdMeshersGUI_ObjectReferenceParamWdg *myEnfMeshWdg;
+ QTableWidget* myEnfMeshTableWdg;
+ QLineEdit* myEnforcedGroupName;
+ QPushButton* myAddEnfMeshButton;
+ QPushButton* myRemoveEnfMeshButton;
+
+
+
// map = entry , size map
QMap<QString, QString> mySMPMap; // Map <face entry, size>
QMap<QString, TAttractorVec > myATTMap; // Map <face entry, att. entry, etc>
class EnforcedTreeWidgetDelegate : public QItemDelegate
{
- Q_OBJECT
+ Q_OBJECT
public:
EnforcedTreeWidgetDelegate(QObject *parent = 0);
const QModelIndex &index) const;
void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option,
- const QModelIndex &index) const;
+ const QModelIndex &index) const;
bool vertexExists(QAbstractItemModel *model, const QModelIndex &index, QString value) const;
};