Class containing set of hypotheses. More...
#include <SMESHGUI_Hypotheses.h>
Public Types | |
| enum | SetType { MAIN , ALT , INTERN , NB_HYP_TYPES } |
Public Member Functions | |
| HypothesesSet (const QString &name, bool useCommonSize, bool isQuadDominated, const QStringList &mainHypos, const QStringList &mainAlgos, const QStringList &altHypos, const QStringList &altAlgos, const QStringList &intHypos, const QStringList &intAlgos) | |
| QString | name () const |
| bool | toUseCommonSize () const |
| bool | isQuadDominated () const |
| bool | hasAlgo (SetType type) const |
| int | maxDim () const |
| void | setIsCustom (bool) |
| bool | getIsCustom () const |
| void | setAlgoAvailable (SetType type, bool isAvailable) |
| bool | getAlgoAvailable (SetType type) |
| void | init (bool, SetType) |
| bool | more () const |
| void | next () |
| QString | current () const |
Static Public Member Functions | |
| static SetType | getPreferredHypType () |
| static const char * | getCommonHypoSetHypoType () |
Private Member Functions | |
| QStringList * | list (bool, SetType) const |
| QStringList * | list () const |
Private Attributes | |
| bool | myUseCommonSize |
| bool | myQuadDominated |
| QString | myHypoSetName |
| QStringList | myHypoList [3] |
| QStringList | myAlgoList [3] |
| bool | myIsAlgoAvailable [3] |
| SetType | myHypType |
| bool | myIsAlgo |
| bool | myIsCustom |
| int | myIndex |
Class containing set of hypotheses.
Actually it contains list of hypo types
| HypothesesSet::HypothesesSet | ( | const QString & | name, |
| bool | useCommonSize, | ||
| bool | isQuadDominated, | ||
| const QStringList & | mainHypos, | ||
| const QStringList & | mainAlgos, | ||
| const QStringList & | altHypos, | ||
| const QStringList & | altAlgos, | ||
| const QStringList & | intHypos, | ||
| const QStringList & | intAlgos | ||
| ) |
References SMESHUtils::Increment(), list(), MAIN, myHypType, myIsAlgo, and NB_HYP_TYPES.
| QString HypothesesSet::current | ( | ) | const |
References list(), and myIndex.
Referenced by SMESHGUI_MeshOp::createSubMeshOnInternalEdges(), maxDim(), SMESHGUI_MeshOp::onHypoSet(), and SMESHGUI_MeshOp::updateHypoSets().
References MAIN, myIsAlgoAvailable, and NB_HYP_TYPES.
Referenced by SMESHGUI_MeshOp::onHypoSet(), and SMESHGUI_MeshOp::updateHypoSets().
|
static |
Referenced by SMESHGUI_GenericHypothesisCreator::editHypothesis(), and SMESHGUI_MeshOp::getAverageSize().
| bool HypothesesSet::getIsCustom | ( | ) | const |
References myIsCustom.
Referenced by SMESH::mangledHypoSetName().
|
static |
Referenced by SMESHGUI_MeshOp::onHypoSet(), and SMESHGUI_MeshOp::updateHypoSets().
References myAlgoList.
Referenced by SMESHGUI_MeshOp::updateHypoSets().
References myHypType, myIndex, and myIsAlgo.
Referenced by SMESHGUI_MeshOp::createSubMeshOnInternalEdges(), maxDim(), SMESHGUI_MeshOp::onHypoSet(), and SMESHGUI_MeshOp::updateHypoSets().
| bool HypothesesSet::isQuadDominated | ( | ) | const |
References myQuadDominated.
Referenced by SMESHGUI_MeshOp::onHypoSet().
|
private |
References myAlgoList, and myHypoList.
| int HypothesesSet::maxDim | ( | ) | const |
References current(), SMESH::GetHypothesisData(), init(), more(), and next().
Referenced by SMESH::GetHypothesesSets(), and SMESH::mangledHypoSetName().
| bool HypothesesSet::more | ( | ) | const |
References list(), and myIndex.
Referenced by SMESHGUI_MeshOp::createSubMeshOnInternalEdges(), maxDim(), SMESHGUI_MeshOp::onHypoSet(), and SMESHGUI_MeshOp::updateHypoSets().
| QString HypothesesSet::name | ( | ) | const |
References myHypoSetName.
Referenced by SMESH::GetHypothesesSet(), and SMESH::mangledHypoSetName().
| void HypothesesSet::next | ( | ) |
References myIndex.
Referenced by SMESHGUI_MeshOp::createSubMeshOnInternalEdges(), maxDim(), SMESHGUI_MeshOp::onHypoSet(), and SMESHGUI_MeshOp::updateHypoSets().
References MAIN, myIsAlgoAvailable, and NB_HYP_TYPES.
Referenced by SMESHGUI_MeshOp::updateHypoSets().
| void HypothesesSet::setIsCustom | ( | bool | isCustom | ) |
References myIsCustom.
| bool HypothesesSet::toUseCommonSize | ( | ) | const |
References myUseCommonSize.
Referenced by SMESHGUI_MeshOp::onHypoSet().
|
private |
Referenced by list().
|
private |
Referenced by name().
|
private |
Referenced by HypothesesSet(), init(), and list().
|
private |
Referenced by HypothesesSet(), init(), and list().
|
private |
Referenced by getAlgoAvailable(), and setAlgoAvailable().
|
private |
Referenced by getIsCustom(), and setIsCustom().
|
private |
Referenced by isQuadDominated().
|
private |
Referenced by toUseCommonSize().