Version: 9.16.0
HypothesesSet Class Reference

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
 

Detailed Description

Class containing set of hypotheses.

Actually it contains list of hypo types

Member Enumeration Documentation

◆ SetType

Enumerator
MAIN 
ALT 
INTERN 
NB_HYP_TYPES 

Constructor & Destructor Documentation

◆ HypothesesSet()

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 
)

Member Function Documentation

◆ current()

QString HypothesesSet::current ( ) const

◆ getAlgoAvailable()

bool HypothesesSet::getAlgoAvailable ( SetType  type)

◆ getCommonHypoSetHypoType()

const char * HypothesesSet::getCommonHypoSetHypoType ( )
static

◆ getIsCustom()

bool HypothesesSet::getIsCustom ( ) const

References myIsCustom.

Referenced by SMESH::mangledHypoSetName().

◆ getPreferredHypType()

HypothesesSet::SetType HypothesesSet::getPreferredHypType ( )
static

◆ hasAlgo()

bool HypothesesSet::hasAlgo ( SetType  type) const

References myAlgoList.

Referenced by SMESHGUI_MeshOp::updateHypoSets().

◆ init()

void HypothesesSet::init ( bool  isAlgo,
SetType  setType 
)

◆ isQuadDominated()

bool HypothesesSet::isQuadDominated ( ) const

References myQuadDominated.

Referenced by SMESHGUI_MeshOp::onHypoSet().

◆ list() [1/2]

QStringList * HypothesesSet::list ( ) const
private

References list(), myHypType, and myIsAlgo.

Referenced by current(), HypothesesSet(), list(), and more().

◆ list() [2/2]

QStringList * HypothesesSet::list ( bool  is_algo,
SetType  setType 
) const
private

References myAlgoList, and myHypoList.

◆ maxDim()

int HypothesesSet::maxDim ( ) const

◆ more()

◆ name()

QString HypothesesSet::name ( ) const

◆ next()

◆ setAlgoAvailable()

void HypothesesSet::setAlgoAvailable ( SetType  type,
bool  isAvailable 
)

◆ setIsCustom()

void HypothesesSet::setIsCustom ( bool  isCustom)

References myIsCustom.

◆ toUseCommonSize()

bool HypothesesSet::toUseCommonSize ( ) const

References myUseCommonSize.

Referenced by SMESHGUI_MeshOp::onHypoSet().

Field Documentation

◆ myAlgoList

QStringList HypothesesSet::myAlgoList[3]
private

Referenced by hasAlgo(), and list().

◆ myHypoList

QStringList HypothesesSet::myHypoList[3]
private

Referenced by list().

◆ myHypoSetName

QString HypothesesSet::myHypoSetName
private

Referenced by name().

◆ myHypType

SetType HypothesesSet::myHypType
private

Referenced by HypothesesSet(), init(), and list().

◆ myIndex

int HypothesesSet::myIndex
private

Referenced by current(), init(), more(), and next().

◆ myIsAlgo

bool HypothesesSet::myIsAlgo
private

Referenced by HypothesesSet(), init(), and list().

◆ myIsAlgoAvailable

bool HypothesesSet::myIsAlgoAvailable[3]
private

◆ myIsCustom

bool HypothesesSet::myIsCustom
private

Referenced by getIsCustom(), and setIsCustom().

◆ myQuadDominated

bool HypothesesSet::myQuadDominated
private

Referenced by isQuadDominated().

◆ myUseCommonSize

bool HypothesesSet::myUseCommonSize
private

Referenced by toUseCommonSize().