Version: 8.3.0
StdMeshersGUI_DistrPreview Class Reference

#include <StdMeshersGUI_DistrPreview.h>

Inheritance diagram for StdMeshersGUI_DistrPreview:

Public Types

enum  Conversion { EXPONENT, CUT_NEGATIVE }
 

Public Member Functions

 StdMeshersGUI_DistrPreview (QWidget *, StdMeshers::StdMeshers_NumberOfSegments_ptr)
 
virtual ~StdMeshersGUI_DistrPreview ()
 
QString function () const
 
bool isTableFunc () const
 
void tableFunc (SMESH::double_array &) const
 
int pointsCount () const
 
int nbSeg () const
 
bool isDone () const
 
bool setParams (const QString &, const int, const int=50, const bool=true)
 
bool setParams (const SMESH::double_array &, const int, const bool=true)
 
void setConversion (Conversion, const bool=true)
 

Protected Member Functions

virtual bool init (const QString &)
 
virtual double funcValue (const double, bool &)
 
virtual bool createTable (SMESH::double_array &)
 
virtual bool convert (double &) const
 
void update ()
 

Private Member Functions

double calc (bool &)
 
void showError ()
 
 Handle (ExprIntrp_GenExp) myExpr
 

Private Attributes

QString myFunction
 
int myPoints
 
int myNbSeg
 
bool myIsTable
 
Conversion myConv
 
SMESH::double_array myTableFunc
 
QwtPlotCurve * myDensity
 
QwtPlotCurve * myDistr
 
QwtPlotMarker * myMsg
 
Expr_Array1OfNamedUnknown myVars
 
TColStd_Array1OfReal myValues
 
bool myIsDone
 
StdMeshers::StdMeshers_NumberOfSegments_var myHypo
 

Member Enumeration Documentation

Enumerator
EXPONENT 
CUT_NEGATIVE 

Constructor & Destructor Documentation

StdMeshersGUI_DistrPreview::StdMeshersGUI_DistrPreview ( QWidget p,
StdMeshers::StdMeshers_NumberOfSegments_ptr  h 
)
StdMeshersGUI_DistrPreview::~StdMeshersGUI_DistrPreview ( )
virtual

Member Function Documentation

double StdMeshersGUI_DistrPreview::calc ( bool ok)
private

References Handle(), myValues, myVars, and OCC_CATCH_SIGNALS.

Referenced by funcValue().

bool StdMeshersGUI_DistrPreview::convert ( double &  v) const
protectedvirtual

References CUT_NEGATIVE, EXPONENT, Handle(), myConv, and OCC_CATCH_SIGNALS.

Referenced by update().

bool StdMeshersGUI_DistrPreview::createTable ( SMESH::double_array func)
protectedvirtual

References MESHCUT::d, funcValue(), and myPoints.

Referenced by update().

QString StdMeshersGUI_DistrPreview::function ( ) const

References myFunction.

double StdMeshersGUI_DistrPreview::funcValue ( const double  t,
bool ok 
)
protectedvirtual

References calc(), and myValues.

Referenced by createTable().

StdMeshersGUI_DistrPreview::Handle ( ExprIntrp_GenExp  )
private

Referenced by calc(), convert(), init(), and update().

bool StdMeshersGUI_DistrPreview::init ( const QString &  str)
protectedvirtual

References Handle(), isCorrectArg(), and OCC_CATCH_SIGNALS.

Referenced by setParams().

bool StdMeshersGUI_DistrPreview::isDone ( ) const

References myIsDone.

bool StdMeshersGUI_DistrPreview::isTableFunc ( ) const

References myIsTable.

Referenced by update().

int StdMeshersGUI_DistrPreview::nbSeg ( ) const

References myNbSeg.

int StdMeshersGUI_DistrPreview::pointsCount ( ) const

References myPoints.

void StdMeshersGUI_DistrPreview::setConversion ( Conversion  conv,
const bool  upd = true 
)
bool StdMeshersGUI_DistrPreview::setParams ( const QString &  func,
const int  nbSeg,
const int  points = 50,
const bool  upd = true 
)
bool StdMeshersGUI_DistrPreview::setParams ( const SMESH::double_array f,
const int  nbSeg,
const bool  upd = true 
)
void StdMeshersGUI_DistrPreview::showError ( )
private

References myDensity, myDistr, and myMsg.

Referenced by update().

void StdMeshersGUI_DistrPreview::tableFunc ( SMESH::double_array f) const

References myTableFunc.

void StdMeshersGUI_DistrPreview::update ( )
protected

Field Documentation

Conversion StdMeshersGUI_DistrPreview::myConv
private

Referenced by convert(), setConversion(), and update().

QwtPlotCurve* StdMeshersGUI_DistrPreview::myDensity
private
QwtPlotCurve* StdMeshersGUI_DistrPreview::myDistr
private
QString StdMeshersGUI_DistrPreview::myFunction
private

Referenced by function(), setParams(), and update().

StdMeshers::StdMeshers_NumberOfSegments_var StdMeshersGUI_DistrPreview::myHypo
private
bool StdMeshersGUI_DistrPreview::myIsDone
private

Referenced by isDone(), and update().

bool StdMeshersGUI_DistrPreview::myIsTable
private

Referenced by isTableFunc(), and setParams().

QwtPlotMarker* StdMeshersGUI_DistrPreview::myMsg
private
int StdMeshersGUI_DistrPreview::myNbSeg
private

Referenced by nbSeg(), setParams(), and update().

int StdMeshersGUI_DistrPreview::myPoints
private

Referenced by createTable(), pointsCount(), and setParams().

SMESH::double_array StdMeshersGUI_DistrPreview::myTableFunc
private

Referenced by setParams(), tableFunc(), and update().

TColStd_Array1OfReal StdMeshersGUI_DistrPreview::myValues
private

Referenced by calc(), and funcValue().

Expr_Array1OfNamedUnknown StdMeshersGUI_DistrPreview::myVars
private

Referenced by calc(), and StdMeshersGUI_DistrPreview().