Version: 8.3.0
BLSURFPluginGUI_HypothesisCreator Class Reference

Class for creation of MG-CADSurf hypotheses.

#include <BLSURFPluginGUI_HypothesisCreator.h>

Inheritance diagram for BLSURFPluginGUI_HypothesisCreator:
Inheritance graph

Public Member Functions

 BLSURFPluginGUI_HypothesisCreator (const QString &)
 {BLSURFPluginGUI_HypothesisCreator constructor} More...
 
virtual ~BLSURFPluginGUI_HypothesisCreator ()
 
virtual bool checkParams (QString &msg) const
 
virtual QString helpPage () const
 

Protected Slots

void onStateChange ()
 BLSURFPluginGUI_HypothesisCreator::deactivateSelection(QWidget*, QWidget*) This method stop the selection of the widgets StdMeshersGUI_ObjectReferenceParamWdg. More...
 
void onAddOption ()
 
void onChangeOptionName (int, int)
 
void onMapGeomContentModified ()
 
void onSmpItemClicked (QTreeWidgetItem *, int)
 
void onTabChanged (int)
 
void onAttractorClicked (int)
 
void onConstSizeClicked (int)
 
void onAddMap ()
 
void onRemoveMap ()
 
void onModifyMap ()
 
void onSetSizeMap (QTreeWidgetItem *, int)
 
QTreeWidgetItem * addEnforcedFace (std::string theFaceEntry, std::string theFaceName)
 
BLSURFPluginGUI_HypothesisCreator::addEnforcedFace(entry, shapeName, useInternalVertices)

This method adds a face containing enforced vertices in the tree widget. More...

 
void addEnforcedVertex (double x=0, double y=0, double z=0, std::string vertexName="", std::string geomEntry="", std::string groupName="")
 BLSURFPluginGUI_HypothesisCreator::addEnforcedVertex(entry, shapeName, x, y, z) This method adds an enforced vertex (x,y,z) to shapeName in the tree widget. More...
 
void onAddEnforcedVertices ()
 
BLSURFPluginGUI_HypothesisCreator::onAddEnforcedVertices()

This method is called when a item is added into the enforced vertices tree widget More...

 
void onRemoveEnforcedVertex ()
 
BLSURFPluginGUI_HypothesisCreator::onRemoveEnforcedVertex()

This method is called when a item is removed from the enforced vertices tree widget More...

 
void synchronizeCoords ()
 
BLSURFPluginGUI_HypothesisCreator::synchronizeCoords()

This method synchronizes the QLineEdit/SMESHGUI_SpinBox widgets content with the coordinates of the enforced vertex clicked in the tree widget. More...

 
void updateEnforcedVertexValues (QTreeWidgetItem *, int)
 BLSURFPluginGUI_HypothesisCreator::updateEnforcedVertexValues(item, column) This method updates the tooltip of a modified item. More...
 
void onSelectEnforcedVertex ()
 
void clearEnforcedVertexWidgets ()
 This method resets the content of the X, Y, Z widgets;. More...
 
void onInternalVerticesClicked (int)
 
void onPeriodicityByVerticesChecked (bool)
 
BLSURFPluginGUI_HypothesisCreator::onPeriodicityByVerticesChecked()

This method enable clears the field for periodicity by vertices More...

 
void onAddPeriodicity ()
 
BLSURFPluginGUI_HypothesisCreator::onAddPeriodicity()

This method is called when a item is added into the periodicity table widget More...

 
void onRemovePeriodicity ()
 
BLSURFPluginGUI_HypothesisCreator::onRemovePeriodicity()

This method is called when a item is removed from the periodicity tree widget More...

 
void onPeriodicityTreeClicked (QTreeWidgetItem *, int)
 
BLSURFPluginGUI_HypothesisCreator::onPeriodicityRadioButtonChanged()

This method enable the proper shape selection widget to Face or Edge shapes More...

 
void onPeriodicityContentModified ()
 
BLSURFPluginGUI_HypothesisCreator::onPeriodicityContentModified()

This method gives the focus to the next selection widget when a content is modified in a selection widget. More...

 
void onHyPatchFaceSelection (bool)
 SLOT: Activate selection of faces in the Viewer. More...
 
void onHyPatchGroupSelection (bool)
 SLOT: Deactivate selection of faces in the Viewer. More...
 
void onHyPatchSelectionChanged ()
 SLOT: show IDs of selected faces in Tags LineEdit. More...
 
void onHyPatchAdd ()
 SLOT: Add the Tags to the HyperPatch table. More...
 
void onHyPatchRemove ()
 SLOT: remove selected rows from the HyperPatch table. More...
 

Protected Member Functions

virtual QFrame * buildFrame ()
 
virtual void retrieveParams () const
 
BLSURFPluginGUI_HypothesisCreator::retrieveParams()

This method updates the GUI widgets with the hypothesis data More...

 
virtual QString storeParams () const
 
BLSURFPluginGUI_HypothesisCreator::storeParams()

This method updates the hypothesis data with the GUI widgets content. More...

 
virtual QString caption () const
 
virtual QPixmap icon () const
 
virtual QString type () const
 

Private Member Functions

bool readParamsFromHypo (BlsurfHypothesisData &) const
 
BLSURFPluginGUI_HypothesisCreator::readParamsFromHypo(h_data)

Updates the hypothesis data from hypothesis values. More...

 
QString readParamsFromWidgets (BlsurfHypothesisData &) const
 BLSURFPluginGUI_HypothesisCreator::readParamsFromWidgets(h_data) Stores the widgets content to the hypothesis data. More...
 
bool storeParamsToHypo (const BlsurfHypothesisData &) const
 
BLSURFPluginGUI_HypothesisCreator::storeParamsToHypo(h_data)

Saves the hypothesis data to hypothesis values. More...

 
bool sizeMapsValidation ()
 
bool sizeMapValidationFromRow (int, bool displayError=true)
 
bool sizeMapValidationFromEntry (QString, bool displayError=true)
 
GeomSelectionTools * getGeomSelectionTool () const
 {Get or create the geom selection tool for active study} More...
 
GEOM::GEOM_Gen_var getGeomEngine ()
 
bool insertElement (GEOM::GEOM_Object_var, bool modify=false)
 
bool insertAttractor (GEOM::GEOM_Object_var, GEOM::GEOM_Object_var, bool modify=false)
 
int findRowFromEntry (QString entry)
 
CORBA::Object_var entryToObject (QString entry)
 
void avoidSimultaneousSelection (ListOfWidgets &myCustomWidgets) const
 
void AddPreCadSequenceToVector (BlsurfHypothesisData &h_data, BLSURFPlugin::TPeriodicityList_var preCadFacePeriodicityVector, bool onFace) const
 
void addHyPatchToTable (const QString &tags)
 Add a row to myHyPatchTable. More...
 
bool hasGeom () const
 

Static Private Member Functions

static LightApp_SelectionMgr * selectionMgr ()
 

Private Attributes

QTabWidget * myTabWidget
 
QWidgetmyStdGroup
 
BLSURFPluginGUI_StdWidgetmyStdWidget
 
QLineEdit * myName
 
QWidgetmyAdvGroup
 
BLSURFPluginGUI_AdvWidgetmyAdvWidget
 
QWidgetmySmpGroup
 
QTreeWidgetmySizeMapTable
 
QPushButton * addMapButton
 
QPushButton * removeMapButton
 
QPushButton * modifyMapButton
 
QTabWidget * smpTab
 
QWidgetmyAttractorGroup
 
QWidgetmySmpStdGroup
 
QCheckBox * myAttractorCheck
 
QCheckBox * myConstSizeCheck
 
QGroupBox * myDistanceGroup
 
SMESHGUI_SpinBox * myAttSizeSpin
 
SMESHGUI_SpinBox * myAttDistSpin
 
SMESHGUI_SpinBox * myAttDistSpin2
 
SMESHGUI_SpinBox * mySmpSizeSpin
 
QLabel * myAttDistLabel
 
QLabel * myAttDistLabel2
 
QLabel * myAttSizeLabel
 
StdMeshersGUI_ObjectReferenceParamWdg * myGeomSelWdg1
 
StdMeshersGUI_ObjectReferenceParamWdg * myGeomSelWdg2
 
StdMeshersGUI_ObjectReferenceParamWdg * myAttSelWdg
 
StdMeshersGUI_ObjectReferenceParamWdg * myDistSelWdg
 
GEOM::GEOM_Object_var mySMapObject
 
GEOM::GEOM_Object_var myAttObject
 
GEOM::GEOM_Object_var myDistObject
 
QWidgetmyEnfGroup
 
StdMeshersGUI_ObjectReferenceParamWdg * myEnfFaceWdg
 
GEOM::GEOM_Object_var myEnfFace
 
StdMeshersGUI_ObjectReferenceParamWdg * myEnfVertexWdg
 
GEOM::GEOM_Object_var myEnfVertex
 
QTreeWidgetmyEnforcedTreeWidget
 
SMESHGUI_SpinBox * myXCoord
 
SMESHGUI_SpinBox * myYCoord
 
SMESHGUI_SpinBox * myZCoord
 
QLineEdit * myGroupName
 
QPushButton * addVertexButton
 
QPushButton * removeVertexButton
 
QCheckBox * myInternalEnforcedVerticesAllFaces
 
QLineEdit * myInternalEnforcedVerticesAllFacesGroup
 
QMap< QString, QString > mySMPMap
 
QMap< QString, TAttractorVecmyATTMap
 
QMap< QString, TopAbs_ShapeEnum > mySMPShapeTypeMap
 
GeomSelectionTools * GeomToolSelected
 
LightApp_SelectionMgr * aSel
 
QWidgetmyPeriodicityGroup
 
QSplitter * myPeriodicitySplitter
 
QTreeWidgetmyPeriodicityTreeWidget
 
QWidgetmyPeriodicityRightWidget
 
QGridLayout * myPeriodicityRightGridLayout
 
QGroupBox * myPeriodicityGroupBox1
 
QGroupBox * myPeriodicityGroupBox2
 
QGridLayout * aPeriodicityLayout1
 
QGridLayout * myPeriodicityGroupBox1Layout
 
QGridLayout * myPeriodicityGroupBox2Layout
 
QRadioButton * myPeriodicityOnFaceRadioButton
 
QRadioButton * myPeriodicityOnEdgeRadioButton
 
QLabel * myPeriodicityMainSourceLabel
 
QLabel * myPeriodicityMainTargetLabel
 
QLabel * myPeriodicitySourceLabel
 
QLabel * myPeriodicityTargetLabel
 
StdMeshersGUI_ObjectReferenceParamWdg * myPeriodicitySourceFaceWdg
 
GEOM::GEOM_Object_var myPeriodicityFace
 
StdMeshersGUI_ObjectReferenceParamWdg * myPeriodicityTargetFaceWdg
 
GEOM::GEOM_Object_var myPeriodicityEdge
 
QLabel * myPeriodicityP1SourceLabel
 
QLabel * myPeriodicityP2SourceLabel
 
QLabel * myPeriodicityP3SourceLabel
 
QLabel * myPeriodicityP1TargetLabel
 
QLabel * myPeriodicityP2TargetLabel
 
QLabel * myPeriodicityP3TargetLabel
 
StdMeshersGUI_ObjectReferenceParamWdg * myPeriodicityP1SourceWdg
 
StdMeshersGUI_ObjectReferenceParamWdg * myPeriodicityP2SourceWdg
 
StdMeshersGUI_ObjectReferenceParamWdg * myPeriodicityP3SourceWdg
 
StdMeshersGUI_ObjectReferenceParamWdg * myPeriodicityP1TargetWdg
 
StdMeshersGUI_ObjectReferenceParamWdg * myPeriodicityP2TargetWdg
 
StdMeshersGUI_ObjectReferenceParamWdg * myPeriodicityP3TargetWdg
 
ListOfWidgets myPeriodicitySelectionWidgets
 
QPushButton * myPeriodicityAddButton
 
QPushButton * myPeriodicityRemoveButton
 
QSpacerItem * myPeriodicityVerticalSpacer
 
QTableWidget * myHyPatchTable
 
StdMeshersGUI_SubShapeSelectorWdg * myHyPatchFaceSelector
 
QLineEdit * myHyPatchTagsLE
 
QPushButton * myHyPatchFaceSelBtn
 
QPushButton * myHyPatchGroupSelBtn
 
BLSURFPlugin::string_array_var myOptions
 
BLSURFPlugin::string_array_var myPreCADOptions
 
BLSURFPlugin::string_array_var myCustomOptions
 
PyObject * main_mod
 
PyObject * main_dict
 

Constructor & Destructor Documentation

BLSURFPluginGUI_HypothesisCreator::BLSURFPluginGUI_HypothesisCreator ( const QString &  theHypType)
Parameters
theHypTypeName of the hypothesis type (here BLSURF_Parameters)

References aSel, GeomToolSelected, getGeomSelectionTool(), main_dict, main_mod, and mySMPMap.

BLSURFPluginGUI_HypothesisCreator::~BLSURFPluginGUI_HypothesisCreator ( )
virtual

Member Function Documentation

QString BLSURFPluginGUI_HypothesisCreator::helpPage ( ) const
virtual
QFrame * BLSURFPluginGUI_HypothesisCreator::buildFrame ( )
protectedvirtual

References addMapButton, addVertexButton, ADV_TAB, aPeriodicityLayout1, ATT_CHECK, ATT_TAB, avoidSimultaneousSelection(), CONST_SIZE_CHECK, ENF_TAB, ENF_VER_BTN, ENF_VER_ENTRY_COLUMN, ENF_VER_FACE_ENTRY_COLUMN, ENF_VER_GROUP, ENF_VER_INTERNAL_ALL_FACES, ENF_VER_INTERNAL_ALL_FACES_GROUP, ENF_VER_NB_COLUMNS, ENF_VER_NB_LINES, ENF_VER_VERTEX, ENF_VER_X_COORD, ENF_VER_Y_COORD, ENF_VER_Z_COORD, hasGeom(), HYPERPATCH_TAB, modifyMapButton, myAdvGroup, myAdvWidget, myAttDistLabel, myAttDistLabel2, myAttDistSpin, myAttDistSpin2, myAttractorCheck, myAttractorGroup, myAttSelWdg, myAttSizeLabel, myAttSizeSpin, myConstSizeCheck, myEnfGroup, myEnforcedTreeWidget, myEnfVertexWdg, myGeomSelWdg1, myGeomSelWdg2, myGroupName, myHyPatchFaceSelBtn, myHyPatchFaceSelector, myHyPatchGroupSelBtn, myHyPatchTable, myHyPatchTagsLE, myInternalEnforcedVerticesAllFaces, myInternalEnforcedVerticesAllFacesGroup, myName, myPeriodicityAddButton, myPeriodicityGroup, myPeriodicityGroupBox1, myPeriodicityGroupBox1Layout, myPeriodicityGroupBox2, myPeriodicityGroupBox2Layout, myPeriodicityMainSourceLabel, myPeriodicityMainTargetLabel, myPeriodicityOnEdgeRadioButton, myPeriodicityOnFaceRadioButton, myPeriodicityP1SourceLabel, myPeriodicityP1SourceWdg, myPeriodicityP1TargetLabel, myPeriodicityP1TargetWdg, myPeriodicityP2SourceLabel, myPeriodicityP2SourceWdg, myPeriodicityP2TargetLabel, myPeriodicityP2TargetWdg, myPeriodicityP3SourceLabel, myPeriodicityP3SourceWdg, myPeriodicityP3TargetLabel, myPeriodicityP3TargetWdg, myPeriodicityRemoveButton, myPeriodicityRightGridLayout, myPeriodicityRightWidget, myPeriodicitySelectionWidgets, myPeriodicitySourceFaceWdg, myPeriodicitySourceLabel, myPeriodicitySplitter, myPeriodicityTargetFaceWdg, myPeriodicityTargetLabel, myPeriodicityTreeWidget, myPeriodicityVerticalSpacer, mySizeMapTable, mySmpGroup, mySmpSizeSpin, mySmpStdGroup, myStdGroup, myStdWidget, myTabWidget, myXCoord, myYCoord, myZCoord, onAddEnforcedVertices(), onAddMap(), onAddOption(), onAddPeriodicity(), onAttractorClicked(), onConstSizeClicked(), onHyPatchAdd(), onHyPatchFaceSelection(), onHyPatchGroupSelection(), onHyPatchRemove(), onHyPatchSelectionChanged(), onInternalVerticesClicked(), onMapGeomContentModified(), onModifyMap(), onPeriodicityByVerticesChecked(), onPeriodicityContentModified(), onPeriodicityTreeClicked(), onRemoveEnforcedVertex(), onRemoveMap(), onRemovePeriodicity(), onSelectEnforcedVertex(), onSetSizeMap(), onSmpItemClicked(), onStateChange(), onTabChanged(), PERIODICITY_NB_COLUMN, PERIODICITY_P1_SOURCE_COLUMN, PERIODICITY_P1_TARGET_COLUMN, PERIODICITY_P2_SOURCE_COLUMN, PERIODICITY_P2_TARGET_COLUMN, PERIODICITY_P3_SOURCE_COLUMN, PERIODICITY_P3_TARGET_COLUMN, PERIODICITY_SHAPE_TYPE, PERIODICITY_TAB, PhysicalLocalSize, removeMapButton, removeVertexButton, SMP_ADD_BTN, SMP_ATT_DIST, SMP_ATT_RAD, SMP_ATT_SHAPE, SMP_ATT_SIZE, SMP_ENTRY_COLUMN, SMP_GEOM_BTN_1, SMP_GEOM_BTN_2, SMP_NAME_COLUMN, SMP_NB_LINES, SMP_SIZE, SMP_SIZEMAP_COLUMN, SMP_SPACE, SMP_SPACE2, SMP_STD_TAB, SMP_TAB, SMP_TAB_WDG, smpTab, STD_TAB, synchronizeCoords(), and updateEnforcedVertexValues().

void BLSURFPluginGUI_HypothesisCreator::retrieveParams ( ) const
protectedvirtual

References addEnforcedVertex(), addHyPatchToTable(), BLSURFPluginGUI_AdvWidget::AddOption(), TEnfVertex::coords, BlsurfHypothesisData::faceEntryEnfVertexListMap, TEnfVertex::geomEntry, getGeomSelectionTool(), TEnfVertex::grpName, BlsurfHypothesisData::hyperpatches, myAdvWidget, BlsurfHypothesisData::myAllowQuadrangles, BlsurfHypothesisData::myAngleMesh, BlsurfHypothesisData::myAnisotropic, BlsurfHypothesisData::myAnisotropicRatio, myATTMap, BlsurfHypothesisData::myBadElementAspectRatio, BlsurfHypothesisData::myChordalError, BlsurfHypothesisData::myCorrectSurfaceIntersection, BlsurfHypothesisData::myCorrectSurfaceIntersectionMaxCost, myCustomOptions, myEnforcedTreeWidget, BlsurfHypothesisData::myForceBadElementRemoval, BlsurfHypothesisData::myGeometricMesh, BlsurfHypothesisData::myGMFFileName, BlsurfHypothesisData::myGradation, BlsurfHypothesisData::myInternalEnforcedVerticesAllFaces, myInternalEnforcedVerticesAllFaces, BlsurfHypothesisData::myInternalEnforcedVerticesAllFacesGroup, myInternalEnforcedVerticesAllFacesGroup, BlsurfHypothesisData::myMaxSize, BlsurfHypothesisData::myMaxSizeRel, BlsurfHypothesisData::myMinSize, BlsurfHypothesisData::myMinSizeRel, BlsurfHypothesisData::myName, myName, BlsurfHypothesisData::myOptimiseTinyEdges, BlsurfHypothesisData::myOptimizeMesh, myOptions, myPeriodicityTreeWidget, BlsurfHypothesisData::myPhysicalMesh, BlsurfHypothesisData::myPhySize, BlsurfHypothesisData::myPhySizeRel, myPreCADOptions, BlsurfHypothesisData::myQuadraticMesh, BlsurfHypothesisData::myRemoveTinyEdges, mySizeMapTable, mySMPMap, myStdWidget, BlsurfHypothesisData::myTinyEdgeLength, BlsurfHypothesisData::myTinyEdgeOptimisLength, BlsurfHypothesisData::myUseGradation, BlsurfHypothesisData::myUseVolumeGradation, BlsurfHypothesisData::myVerbosity, BlsurfHypothesisData::myVolumeGradation, TEnfVertex::name, BLSURFPluginGUI_StdWidget::onGeometricMeshChanged(), BLSURFPluginGUI_StdWidget::onPhysicalMeshChanged(), onStateChange(), OPTION_NAME_COLUMN, BlsurfHypothesisData::preCadPeriodicityVector, readParamsFromHypo(), BLSURFPluginGUI_StdWidget::resizeWidgets(), SMP_ENTRY_COLUMN, SMP_NAME_COLUMN, SMP_SIZEMAP_COLUMN, TBL_CUSTOM, TBL_MESHING, and TBL_PRECAD.

QString BLSURFPluginGUI_HypothesisCreator::storeParams ( ) const
protectedvirtual
QString BLSURFPluginGUI_HypothesisCreator::caption ( ) const
protectedvirtual
QPixmap BLSURFPluginGUI_HypothesisCreator::icon ( ) const
protectedvirtual
QString BLSURFPluginGUI_HypothesisCreator::type ( ) const
protectedvirtual
void BLSURFPluginGUI_HypothesisCreator::onStateChange ( )
protectedslot
void BLSURFPluginGUI_HypothesisCreator::onAddOption ( )
protectedslot
void BLSURFPluginGUI_HypothesisCreator::onChangeOptionName ( int  row,
int  column 
)
protectedslot
void BLSURFPluginGUI_HypothesisCreator::onMapGeomContentModified ( )
protectedslot
void BLSURFPluginGUI_HypothesisCreator::onSmpItemClicked ( QTreeWidgetItem *  item,
int  col 
)
protectedslot
void BLSURFPluginGUI_HypothesisCreator::onAttractorClicked ( int  state)
protectedslot
void BLSURFPluginGUI_HypothesisCreator::onConstSizeClicked ( int  state)
protectedslot
void BLSURFPluginGUI_HypothesisCreator::onRemoveMap ( )
protectedslot
void BLSURFPluginGUI_HypothesisCreator::onSetSizeMap ( QTreeWidgetItem *  item,
int  col 
)
protectedslot
QTreeWidgetItem * BLSURFPluginGUI_HypothesisCreator::addEnforcedFace ( std::string  theFaceEntry,
std::string  theFaceName 
)
protectedslot
void BLSURFPluginGUI_HypothesisCreator::addEnforcedVertex ( double  x = 0,
double  y = 0,
double  z = 0,
std::string  vertexName = "",
std::string  geomEntry = "",
std::string  groupName = "" 
)
protectedslot
void BLSURFPluginGUI_HypothesisCreator::onRemoveEnforcedVertex ( )
protectedslot
void BLSURFPluginGUI_HypothesisCreator::synchronizeCoords ( )
protectedslot
void BLSURFPluginGUI_HypothesisCreator::updateEnforcedVertexValues ( QTreeWidgetItem *  item,
int  column 
)
protectedslot

The QLineEdit widgets content is synchronized with the coordinates of the enforced vertex clicked in the tree widget.

References clearEnforcedVertexWidgets(), ENF_VER_ENTRY_COLUMN, ENF_VER_GROUP_COLUMN, ENF_VER_NAME_COLUMN, ENF_VER_X_COLUMN, ENF_VER_Y_COLUMN, ENF_VER_Z_COLUMN, myGroupName, myXCoord, myYCoord, and myZCoord.

void BLSURFPluginGUI_HypothesisCreator::onSelectEnforcedVertex ( )
protectedslot
void BLSURFPluginGUI_HypothesisCreator::clearEnforcedVertexWidgets ( )
protectedslot

References myXCoord, myYCoord, and myZCoord.

void BLSURFPluginGUI_HypothesisCreator::onInternalVerticesClicked ( int  state)
protectedslot
void BLSURFPluginGUI_HypothesisCreator::onPeriodicityByVerticesChecked ( bool  checked)
protectedslot
void BLSURFPluginGUI_HypothesisCreator::onRemovePeriodicity ( )
protectedslot
void BLSURFPluginGUI_HypothesisCreator::onPeriodicityTreeClicked ( QTreeWidgetItem *  item,
int  row 
)
protectedslot
void BLSURFPluginGUI_HypothesisCreator::onPeriodicityContentModified ( )
protectedslot
void BLSURFPluginGUI_HypothesisCreator::onHyPatchFaceSelection ( bool  on)
protectedslot
void BLSURFPluginGUI_HypothesisCreator::onHyPatchGroupSelection ( bool  on)
protectedslot
void BLSURFPluginGUI_HypothesisCreator::onHyPatchSelectionChanged ( )
protectedslot
void BLSURFPluginGUI_HypothesisCreator::onHyPatchAdd ( )
protectedslot
void BLSURFPluginGUI_HypothesisCreator::onHyPatchRemove ( )
protectedslot

References myHyPatchTable.

bool BLSURFPluginGUI_HypothesisCreator::readParamsFromHypo ( BlsurfHypothesisData h_data) const
private

References AddPreCadSequenceToVector(), BLSURFPlugin::TAttractorParams::attEntry, BLSURFPlugin::TAttractorParams::constDist, TEnfVertex::coords, BlsurfHypothesisData::enfVertexList, BLSURFPlugin::TAttractorParams::faceEntry, BlsurfHypothesisData::faceEntryEnfVertexListMap, TEnfVertex::geomEntry, getGeomSelectionTool(), TEnfVertex::grpName, BlsurfHypothesisData::hyperpatches, BLSURFPlugin::TAttractorParams::infDist, BlsurfHypothesisData::myAllowQuadrangles, BlsurfHypothesisData::myAngleMesh, BlsurfHypothesisData::myAnisotropic, BlsurfHypothesisData::myAnisotropicRatio, myATTMap, BlsurfHypothesisData::myBadElementAspectRatio, BlsurfHypothesisData::myChordalError, BlsurfHypothesisData::myCorrectSurfaceIntersection, BlsurfHypothesisData::myCorrectSurfaceIntersectionMaxCost, myCustomOptions, BlsurfHypothesisData::myForceBadElementRemoval, BlsurfHypothesisData::myGeometricMesh, BlsurfHypothesisData::myGMFFileName, BlsurfHypothesisData::myGradation, BlsurfHypothesisData::myInternalEnforcedVerticesAllFaces, BlsurfHypothesisData::myInternalEnforcedVerticesAllFacesGroup, BlsurfHypothesisData::myMaxSize, BlsurfHypothesisData::myMaxSizeRel, BlsurfHypothesisData::myMinSize, BlsurfHypothesisData::myMinSizeRel, BlsurfHypothesisData::myName, BlsurfHypothesisData::myOptimiseTinyEdges, BlsurfHypothesisData::myOptimizeMesh, myOptions, BlsurfHypothesisData::myPhysicalMesh, BlsurfHypothesisData::myPhySize, BlsurfHypothesisData::myPhySizeRel, myPreCADOptions, BlsurfHypothesisData::myQuadraticMesh, BlsurfHypothesisData::myRemoveTinyEdges, mySMPMap, mySMPShapeTypeMap, BlsurfHypothesisData::myTinyEdgeLength, BlsurfHypothesisData::myTinyEdgeOptimisLength, BlsurfHypothesisData::myUseGradation, BlsurfHypothesisData::myUseVolumeGradation, BlsurfHypothesisData::myVerbosity, BlsurfHypothesisData::myVolumeGradation, TEnfVertex::name, BlsurfHypothesisData::preCadPeriodicityVector, and BLSURFPlugin::TAttractorParams::startSize.

QString BLSURFPluginGUI_HypothesisCreator::readParamsFromWidgets ( BlsurfHypothesisData h_data) const
private

References TEnfVertex::coords, ENF_VER_ENTRY_COLUMN, ENF_VER_GROUP_COLUMN, ENF_VER_NAME_COLUMN, ENF_VER_X_COLUMN, ENF_VER_Y_COLUMN, ENF_VER_Z_COLUMN, BlsurfHypothesisData::enfVertexList, BlsurfHypothesisData::faceEntryEnfVertexListMap, TEnfVertex::geomEntry, TEnfVertex::grpName, BlsurfHypothesisData::hyperpatches, myAdvWidget, BlsurfHypothesisData::myAllowQuadrangles, BlsurfHypothesisData::myAngleMesh, BlsurfHypothesisData::myAnisotropic, BlsurfHypothesisData::myAnisotropicRatio, BlsurfHypothesisData::myBadElementAspectRatio, BlsurfHypothesisData::myChordalError, BlsurfHypothesisData::myCorrectSurfaceIntersection, BlsurfHypothesisData::myCorrectSurfaceIntersectionMaxCost, myEnforcedTreeWidget, BlsurfHypothesisData::myForceBadElementRemoval, BlsurfHypothesisData::myGeometricMesh, BlsurfHypothesisData::myGMFFileName, BlsurfHypothesisData::myGradation, myHyPatchTable, BlsurfHypothesisData::myInternalEnforcedVerticesAllFaces, myInternalEnforcedVerticesAllFaces, BlsurfHypothesisData::myInternalEnforcedVerticesAllFacesGroup, myInternalEnforcedVerticesAllFacesGroup, BlsurfHypothesisData::myMaxSize, BlsurfHypothesisData::myMaxSizeRel, BlsurfHypothesisData::myMinSize, BlsurfHypothesisData::myMinSizeRel, BlsurfHypothesisData::myName, myName, BlsurfHypothesisData::myOptimiseTinyEdges, BlsurfHypothesisData::myOptimizeMesh, myPeriodicityTreeWidget, BlsurfHypothesisData::myPhysicalMesh, BlsurfHypothesisData::myPhySize, BlsurfHypothesisData::myPhySizeRel, BlsurfHypothesisData::myQuadraticMesh, BlsurfHypothesisData::myRemoveTinyEdges, mySizeMapTable, mySMPMap, myStdWidget, BlsurfHypothesisData::myTinyEdgeLength, BlsurfHypothesisData::myTinyEdgeOptimisLength, BlsurfHypothesisData::myUseGradation, BlsurfHypothesisData::myUseVolumeGradation, BlsurfHypothesisData::myVerbosity, BlsurfHypothesisData::myVolumeGradation, TEnfVertex::name, BlsurfHypothesisData::preCadPeriodicityVector, and SMP_ENTRY_COLUMN.

bool BLSURFPluginGUI_HypothesisCreator::storeParamsToHypo ( const BlsurfHypothesisData h_data) const
private

References DefaultGeom, BlsurfHypothesisData::faceEntryEnfVertexListMap, BlsurfHypothesisData::hyperpatches, BlsurfHypothesisData::myAllowQuadrangles, BlsurfHypothesisData::myAngleMesh, BlsurfHypothesisData::myAnisotropic, BlsurfHypothesisData::myAnisotropicRatio, myATTMap, BlsurfHypothesisData::myBadElementAspectRatio, BlsurfHypothesisData::myChordalError, BlsurfHypothesisData::myCorrectSurfaceIntersection, BlsurfHypothesisData::myCorrectSurfaceIntersectionMaxCost, BlsurfHypothesisData::myForceBadElementRemoval, BlsurfHypothesisData::myGeometricMesh, BlsurfHypothesisData::myGMFFileName, BlsurfHypothesisData::myGradation, BlsurfHypothesisData::myInternalEnforcedVerticesAllFaces, BlsurfHypothesisData::myInternalEnforcedVerticesAllFacesGroup, BlsurfHypothesisData::myMaxSize, BlsurfHypothesisData::myMaxSizeRel, BlsurfHypothesisData::myMinSize, BlsurfHypothesisData::myMinSizeRel, BlsurfHypothesisData::myName, BlsurfHypothesisData::myOptimiseTinyEdges, BlsurfHypothesisData::myOptimizeMesh, BlsurfHypothesisData::myPhysicalMesh, BlsurfHypothesisData::myPhySize, BlsurfHypothesisData::myPhySizeRel, BlsurfHypothesisData::myQuadraticMesh, BlsurfHypothesisData::myRemoveTinyEdges, mySMPMap, mySMPShapeTypeMap, BlsurfHypothesisData::myTinyEdgeLength, BlsurfHypothesisData::myTinyEdgeOptimisLength, BlsurfHypothesisData::myUseGradation, BlsurfHypothesisData::myUseVolumeGradation, BlsurfHypothesisData::myVerbosity, BlsurfHypothesisData::myVolumeGradation, PERIODICITY_OBJ_SOURCE_COLUMN, PERIODICITY_OBJ_TARGET_COLUMN, PERIODICITY_P1_SOURCE_COLUMN, PERIODICITY_P1_TARGET_COLUMN, PERIODICITY_P2_SOURCE_COLUMN, PERIODICITY_P2_TARGET_COLUMN, PERIODICITY_P3_SOURCE_COLUMN, PERIODICITY_P3_TARGET_COLUMN, PERIODICITY_SHAPE_TYPE, PhysicalGlobalSize, PhysicalLocalSize, and BlsurfHypothesisData::preCadPeriodicityVector.

bool BLSURFPluginGUI_HypothesisCreator::sizeMapsValidation ( )
private
bool BLSURFPluginGUI_HypothesisCreator::sizeMapValidationFromRow ( int  myRow,
bool  displayError = true 
)
private
bool BLSURFPluginGUI_HypothesisCreator::sizeMapValidationFromEntry ( QString  myEntry,
bool  displayError = true 
)
private
GeomSelectionTools * BLSURFPluginGUI_HypothesisCreator::getGeomSelectionTool ( ) const
private

References GeomToolSelected.

GEOM::GEOM_Gen_var BLSURFPluginGUI_HypothesisCreator::getGeomEngine ( )
private
bool BLSURFPluginGUI_HypothesisCreator::insertElement ( GEOM::GEOM_Object_var  anObject,
bool  modify = false 
)
private
bool BLSURFPluginGUI_HypothesisCreator::insertAttractor ( GEOM::GEOM_Object_var  aFace,
GEOM::GEOM_Object_var  anAttractor,
bool  modify = false 
)
private
int BLSURFPluginGUI_HypothesisCreator::findRowFromEntry ( QString  entry)
private

References mySizeMapTable, and SMP_ENTRY_COLUMN.

CORBA::Object_var BLSURFPluginGUI_HypothesisCreator::entryToObject ( QString  entry)
private
LightApp_SelectionMgr * BLSURFPluginGUI_HypothesisCreator::selectionMgr ( )
staticprivate
void BLSURFPluginGUI_HypothesisCreator::avoidSimultaneousSelection ( ListOfWidgets &  myCustomWidgets) const
private
void BLSURFPluginGUI_HypothesisCreator::addHyPatchToTable ( const QString &  tags)
private

References myHyPatchTable.

bool BLSURFPluginGUI_HypothesisCreator::hasGeom ( ) const
private

Field Documentation

QTabWidget* BLSURFPluginGUI_HypothesisCreator::myTabWidget
private
QWidget* BLSURFPluginGUI_HypothesisCreator::myStdGroup
private
BLSURFPluginGUI_StdWidget* BLSURFPluginGUI_HypothesisCreator::myStdWidget
private
QLineEdit* BLSURFPluginGUI_HypothesisCreator::myName
private
QWidget* BLSURFPluginGUI_HypothesisCreator::myAdvGroup
private
BLSURFPluginGUI_AdvWidget* BLSURFPluginGUI_HypothesisCreator::myAdvWidget
private
QWidget* BLSURFPluginGUI_HypothesisCreator::mySmpGroup
private
QTreeWidget* BLSURFPluginGUI_HypothesisCreator::mySizeMapTable
private
QPushButton* BLSURFPluginGUI_HypothesisCreator::addMapButton
private
QPushButton* BLSURFPluginGUI_HypothesisCreator::removeMapButton
private
QPushButton* BLSURFPluginGUI_HypothesisCreator::modifyMapButton
private
QTabWidget* BLSURFPluginGUI_HypothesisCreator::smpTab
private
QWidget* BLSURFPluginGUI_HypothesisCreator::myAttractorGroup
private
QWidget* BLSURFPluginGUI_HypothesisCreator::mySmpStdGroup
private
QCheckBox* BLSURFPluginGUI_HypothesisCreator::myAttractorCheck
private
QCheckBox* BLSURFPluginGUI_HypothesisCreator::myConstSizeCheck
private
QGroupBox* BLSURFPluginGUI_HypothesisCreator::myDistanceGroup
private
SMESHGUI_SpinBox* BLSURFPluginGUI_HypothesisCreator::myAttSizeSpin
private
SMESHGUI_SpinBox* BLSURFPluginGUI_HypothesisCreator::myAttDistSpin
private
SMESHGUI_SpinBox* BLSURFPluginGUI_HypothesisCreator::myAttDistSpin2
private
SMESHGUI_SpinBox* BLSURFPluginGUI_HypothesisCreator::mySmpSizeSpin
private
QLabel* BLSURFPluginGUI_HypothesisCreator::myAttDistLabel
private
QLabel* BLSURFPluginGUI_HypothesisCreator::myAttDistLabel2
private
QLabel* BLSURFPluginGUI_HypothesisCreator::myAttSizeLabel
private
StdMeshersGUI_ObjectReferenceParamWdg* BLSURFPluginGUI_HypothesisCreator::myGeomSelWdg1
private
StdMeshersGUI_ObjectReferenceParamWdg* BLSURFPluginGUI_HypothesisCreator::myGeomSelWdg2
private
StdMeshersGUI_ObjectReferenceParamWdg* BLSURFPluginGUI_HypothesisCreator::myAttSelWdg
private
StdMeshersGUI_ObjectReferenceParamWdg* BLSURFPluginGUI_HypothesisCreator::myDistSelWdg
private
GEOM::GEOM_Object_var BLSURFPluginGUI_HypothesisCreator::mySMapObject
private
GEOM::GEOM_Object_var BLSURFPluginGUI_HypothesisCreator::myAttObject
private
GEOM::GEOM_Object_var BLSURFPluginGUI_HypothesisCreator::myDistObject
private
QWidget* BLSURFPluginGUI_HypothesisCreator::myEnfGroup
private
StdMeshersGUI_ObjectReferenceParamWdg* BLSURFPluginGUI_HypothesisCreator::myEnfFaceWdg
private
GEOM::GEOM_Object_var BLSURFPluginGUI_HypothesisCreator::myEnfFace
private
StdMeshersGUI_ObjectReferenceParamWdg* BLSURFPluginGUI_HypothesisCreator::myEnfVertexWdg
private
GEOM::GEOM_Object_var BLSURFPluginGUI_HypothesisCreator::myEnfVertex
private
QTreeWidget* BLSURFPluginGUI_HypothesisCreator::myEnforcedTreeWidget
private
SMESHGUI_SpinBox* BLSURFPluginGUI_HypothesisCreator::myXCoord
private
SMESHGUI_SpinBox* BLSURFPluginGUI_HypothesisCreator::myYCoord
private
SMESHGUI_SpinBox* BLSURFPluginGUI_HypothesisCreator::myZCoord
private
QLineEdit* BLSURFPluginGUI_HypothesisCreator::myGroupName
private
QPushButton* BLSURFPluginGUI_HypothesisCreator::addVertexButton
private
QPushButton* BLSURFPluginGUI_HypothesisCreator::removeVertexButton
private
QCheckBox* BLSURFPluginGUI_HypothesisCreator::myInternalEnforcedVerticesAllFaces
private
QLineEdit* BLSURFPluginGUI_HypothesisCreator::myInternalEnforcedVerticesAllFacesGroup
private
QMap<QString, QString> BLSURFPluginGUI_HypothesisCreator::mySMPMap
private
QMap<QString, TAttractorVec > BLSURFPluginGUI_HypothesisCreator::myATTMap
private
QMap<QString, TopAbs_ShapeEnum> BLSURFPluginGUI_HypothesisCreator::mySMPShapeTypeMap
private
GeomSelectionTools* BLSURFPluginGUI_HypothesisCreator::GeomToolSelected
private
LightApp_SelectionMgr* BLSURFPluginGUI_HypothesisCreator::aSel
private
QWidget* BLSURFPluginGUI_HypothesisCreator::myPeriodicityGroup
private
QSplitter* BLSURFPluginGUI_HypothesisCreator::myPeriodicitySplitter
private
QTreeWidget* BLSURFPluginGUI_HypothesisCreator::myPeriodicityTreeWidget
private
QWidget* BLSURFPluginGUI_HypothesisCreator::myPeriodicityRightWidget
private
QGridLayout* BLSURFPluginGUI_HypothesisCreator::myPeriodicityRightGridLayout
private
QGroupBox* BLSURFPluginGUI_HypothesisCreator::myPeriodicityGroupBox1
private
QGroupBox* BLSURFPluginGUI_HypothesisCreator::myPeriodicityGroupBox2
private
QGridLayout* BLSURFPluginGUI_HypothesisCreator::aPeriodicityLayout1
private
QGridLayout* BLSURFPluginGUI_HypothesisCreator::myPeriodicityGroupBox1Layout
private
QGridLayout* BLSURFPluginGUI_HypothesisCreator::myPeriodicityGroupBox2Layout
private
QRadioButton* BLSURFPluginGUI_HypothesisCreator::myPeriodicityOnFaceRadioButton
private
QRadioButton* BLSURFPluginGUI_HypothesisCreator::myPeriodicityOnEdgeRadioButton
private
QLabel* BLSURFPluginGUI_HypothesisCreator::myPeriodicityMainSourceLabel
private
QLabel* BLSURFPluginGUI_HypothesisCreator::myPeriodicityMainTargetLabel
private
QLabel* BLSURFPluginGUI_HypothesisCreator::myPeriodicitySourceLabel
private
QLabel* BLSURFPluginGUI_HypothesisCreator::myPeriodicityTargetLabel
private
StdMeshersGUI_ObjectReferenceParamWdg* BLSURFPluginGUI_HypothesisCreator::myPeriodicitySourceFaceWdg
private
GEOM::GEOM_Object_var BLSURFPluginGUI_HypothesisCreator::myPeriodicityFace
private
StdMeshersGUI_ObjectReferenceParamWdg* BLSURFPluginGUI_HypothesisCreator::myPeriodicityTargetFaceWdg
private
GEOM::GEOM_Object_var BLSURFPluginGUI_HypothesisCreator::myPeriodicityEdge
private
QLabel* BLSURFPluginGUI_HypothesisCreator::myPeriodicityP1SourceLabel
private
QLabel* BLSURFPluginGUI_HypothesisCreator::myPeriodicityP2SourceLabel
private
QLabel* BLSURFPluginGUI_HypothesisCreator::myPeriodicityP3SourceLabel
private
QLabel* BLSURFPluginGUI_HypothesisCreator::myPeriodicityP1TargetLabel
private
QLabel* BLSURFPluginGUI_HypothesisCreator::myPeriodicityP2TargetLabel
private
QLabel* BLSURFPluginGUI_HypothesisCreator::myPeriodicityP3TargetLabel
private
StdMeshersGUI_ObjectReferenceParamWdg* BLSURFPluginGUI_HypothesisCreator::myPeriodicityP1SourceWdg
private
StdMeshersGUI_ObjectReferenceParamWdg* BLSURFPluginGUI_HypothesisCreator::myPeriodicityP2SourceWdg
private
StdMeshersGUI_ObjectReferenceParamWdg* BLSURFPluginGUI_HypothesisCreator::myPeriodicityP3SourceWdg
private
StdMeshersGUI_ObjectReferenceParamWdg* BLSURFPluginGUI_HypothesisCreator::myPeriodicityP1TargetWdg
private
StdMeshersGUI_ObjectReferenceParamWdg* BLSURFPluginGUI_HypothesisCreator::myPeriodicityP2TargetWdg
private
StdMeshersGUI_ObjectReferenceParamWdg* BLSURFPluginGUI_HypothesisCreator::myPeriodicityP3TargetWdg
private
ListOfWidgets BLSURFPluginGUI_HypothesisCreator::myPeriodicitySelectionWidgets
private
QPushButton* BLSURFPluginGUI_HypothesisCreator::myPeriodicityAddButton
private
QPushButton* BLSURFPluginGUI_HypothesisCreator::myPeriodicityRemoveButton
private
QSpacerItem* BLSURFPluginGUI_HypothesisCreator::myPeriodicityVerticalSpacer
private
QTableWidget* BLSURFPluginGUI_HypothesisCreator::myHyPatchTable
private
StdMeshersGUI_SubShapeSelectorWdg* BLSURFPluginGUI_HypothesisCreator::myHyPatchFaceSelector
private
QLineEdit* BLSURFPluginGUI_HypothesisCreator::myHyPatchTagsLE
private
QPushButton* BLSURFPluginGUI_HypothesisCreator::myHyPatchFaceSelBtn
private
QPushButton* BLSURFPluginGUI_HypothesisCreator::myHyPatchGroupSelBtn
private
BLSURFPlugin::string_array_var BLSURFPluginGUI_HypothesisCreator::myOptions
private
BLSURFPlugin::string_array_var BLSURFPluginGUI_HypothesisCreator::myPreCADOptions
private
BLSURFPlugin::string_array_var BLSURFPluginGUI_HypothesisCreator::myCustomOptions
private
PyObject* BLSURFPluginGUI_HypothesisCreator::main_mod
private
PyObject* BLSURFPluginGUI_HypothesisCreator::main_dict
private