Back to index

salome-smesh  6.5.0
Public Member Functions | Private Member Functions | Private Attributes
HypothesesSet Class Reference

Class containing set of hypotheses. More...

#include <SMESHGUI_Hypotheses.h>

List of all members.

Public Member Functions

 HypothesesSet (const QString &)
 HypothesesSet (const QString &, const QStringList &, const QStringList &)
QString name () const
void set (bool, const QStringList &)
int count (bool) const
void setIsCustom (bool)
bool getIsCustom () const
int maxDim () const
bool isAlgo () const
void init (bool)
bool more () const
void next ()
QString current () const

Private Member Functions

QStringList * list (bool) const
QStringList * list () const

Private Attributes

QString myHypoSetName
QStringList myHypoList
QStringList myAlgoList
bool myIsAlgo
bool myIsCustom
int myIndex

Detailed Description

Class containing set of hypotheses.

Actually it contains list of hypo types

Definition at line 198 of file SMESHGUI_Hypotheses.h.


Constructor & Destructor Documentation

HypothesesSet::HypothesesSet ( const QString &  theSetName)

Definition at line 720 of file SMESHGUI_Hypotheses.cxx.

  : myHypoSetName( theSetName ),
    myIsAlgo( false ),
    myIsCustom( false )
{
}
HypothesesSet::HypothesesSet ( const QString &  theSetName,
const QStringList &  theHypoList,
const QStringList &  theAlgoList 
)

Definition at line 727 of file SMESHGUI_Hypotheses.cxx.

  : myHypoSetName( theSetName ),
    myHypoList( theHypoList ),
    myAlgoList( theAlgoList ),
    myIsAlgo( false ),
    myIsCustom( false )
{
}

Member Function Documentation

int HypothesesSet::count ( bool  isAlgo) const

Definition at line 758 of file SMESHGUI_Hypotheses.cxx.

{
  return list(isAlgo)->count();
}

Here is the call graph for this function:

Here is the caller graph for this function:

QString HypothesesSet::current ( ) const

Definition at line 784 of file SMESHGUI_Hypotheses.cxx.

{
  return list()->at(myIndex);
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 794 of file SMESHGUI_Hypotheses.cxx.

{
  return myIsCustom;
}

Here is the caller graph for this function:

void HypothesesSet::init ( bool  isAlgo)

Definition at line 768 of file SMESHGUI_Hypotheses.cxx.

{
  myIsAlgo = isAlgo;
  myIndex = -1;
}

Here is the call graph for this function:

Here is the caller graph for this function:

bool HypothesesSet::isAlgo ( ) const

Definition at line 763 of file SMESHGUI_Hypotheses.cxx.

{
  return myIsAlgo;
}

Here is the caller graph for this function:

QStringList * HypothesesSet::list ( bool  is_algo) const [private]

Definition at line 738 of file SMESHGUI_Hypotheses.cxx.

{
  return const_cast<QStringList*>( &( is_algo ? myAlgoList : myHypoList ) );
}
QStringList * HypothesesSet::list ( ) const [private]

Definition at line 743 of file SMESHGUI_Hypotheses.cxx.

{
  return list( myIsAlgo );
}

Here is the caller graph for this function:

int HypothesesSet::maxDim ( ) const

Definition at line 799 of file SMESHGUI_Hypotheses.cxx.

{
  HypothesesSet * thisSet = (HypothesesSet*) this;
  int dim = -1;
  for ( int isAlgo = 0; isAlgo < 2; ++isAlgo )
  {
    thisSet->init( isAlgo );
    while ( thisSet->next(), thisSet->more() )
      if ( HypothesisData* hypData = SMESH::GetHypothesisData( thisSet->current() ))
        for ( int i = 0; i < hypData->Dim.count(); ++i )
          dim = qMax( dim, hypData->Dim[i] );
  }
  return dim;
}

Here is the call graph for this function:

Here is the caller graph for this function:

bool HypothesesSet::more ( ) const

Definition at line 774 of file SMESHGUI_Hypotheses.cxx.

{
  return myIndex < list()->count();
}

Here is the call graph for this function:

Here is the caller graph for this function:

QString HypothesesSet::name ( ) const

Definition at line 748 of file SMESHGUI_Hypotheses.cxx.

{
  return myHypoSetName;
}

Here is the caller graph for this function:

Definition at line 779 of file SMESHGUI_Hypotheses.cxx.

{
  myIndex++;
}

Here is the caller graph for this function:

void HypothesesSet::set ( bool  isAlgo,
const QStringList &  lst 
)

Definition at line 753 of file SMESHGUI_Hypotheses.cxx.

{
  *list(isAlgo) = lst;
}

Here is the call graph for this function:

void HypothesesSet::setIsCustom ( bool  isCustom)

Definition at line 789 of file SMESHGUI_Hypotheses.cxx.

{
  myIsCustom = isCustom;
}

Member Data Documentation

QStringList HypothesesSet::myAlgoList [private]

Definition at line 227 of file SMESHGUI_Hypotheses.h.

QStringList HypothesesSet::myHypoList [private]

Definition at line 227 of file SMESHGUI_Hypotheses.h.

QString HypothesesSet::myHypoSetName [private]

Definition at line 226 of file SMESHGUI_Hypotheses.h.

int HypothesesSet::myIndex [private]

Definition at line 229 of file SMESHGUI_Hypotheses.h.

bool HypothesesSet::myIsAlgo [private]

Definition at line 228 of file SMESHGUI_Hypotheses.h.

bool HypothesesSet::myIsCustom [private]

Definition at line 228 of file SMESHGUI_Hypotheses.h.


The documentation for this class was generated from the following files: