Version: 9.16.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

◆ Conversion

Enumerator
EXPONENT 
CUT_NEGATIVE 

Constructor & Destructor Documentation

◆ StdMeshersGUI_DistrPreview()

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

◆ ~StdMeshersGUI_DistrPreview()

StdMeshersGUI_DistrPreview::~StdMeshersGUI_DistrPreview ( )
virtual

Member Function Documentation

◆ calc()

double StdMeshersGUI_DistrPreview::calc ( bool ok)
private

References myValues, myVars, and OCC_CATCH_SIGNALS.

Referenced by funcValue().

◆ convert()

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

References CUT_NEGATIVE, EXPONENT, myConv, and OCC_CATCH_SIGNALS.

Referenced by update().

◆ createTable()

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

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

Referenced by update().

◆ function()

QString StdMeshersGUI_DistrPreview::function ( ) const

References myFunction.

◆ funcValue()

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

References calc(), and myValues.

Referenced by createTable().

◆ Handle()

StdMeshersGUI_DistrPreview::Handle ( ExprIntrp_GenExp  )
private

◆ init()

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

References isCorrectArg(), and OCC_CATCH_SIGNALS.

Referenced by setParams().

◆ isDone()

bool StdMeshersGUI_DistrPreview::isDone ( ) const

References myIsDone.

◆ isTableFunc()

bool StdMeshersGUI_DistrPreview::isTableFunc ( ) const

References myIsTable.

Referenced by update().

◆ nbSeg()

int StdMeshersGUI_DistrPreview::nbSeg ( ) const

References myNbSeg.

Referenced by setParams().

◆ pointsCount()

int StdMeshersGUI_DistrPreview::pointsCount ( ) const

References myPoints.

◆ setConversion()

void StdMeshersGUI_DistrPreview::setConversion ( Conversion  conv,
const bool  upd = true 
)

◆ setParams() [1/2]

bool StdMeshersGUI_DistrPreview::setParams ( const QString &  func,
const int  nbSeg,
const int  points = 50,
const bool  upd = true 
)

◆ setParams() [2/2]

bool StdMeshersGUI_DistrPreview::setParams ( const SMESH::double_array f,
const int  nbSeg,
const bool  upd = true 
)

◆ showError()

void StdMeshersGUI_DistrPreview::showError ( )
private

References myDensity, myDistr, and myMsg.

Referenced by update().

◆ tableFunc()

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

References myTableFunc.

◆ update()

void StdMeshersGUI_DistrPreview::update ( )
protected

Field Documentation

◆ myConv

Conversion StdMeshersGUI_DistrPreview::myConv
private

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

◆ myDensity

QwtPlotCurve* StdMeshersGUI_DistrPreview::myDensity
private

◆ myDistr

QwtPlotCurve* StdMeshersGUI_DistrPreview::myDistr
private

◆ myFunction

QString StdMeshersGUI_DistrPreview::myFunction
private

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

◆ myHypo

StdMeshers::StdMeshers_NumberOfSegments_var StdMeshersGUI_DistrPreview::myHypo
private

◆ myIsDone

bool StdMeshersGUI_DistrPreview::myIsDone
private

Referenced by isDone(), and update().

◆ myIsTable

bool StdMeshersGUI_DistrPreview::myIsTable
private

Referenced by isTableFunc(), and setParams().

◆ myMsg

QwtPlotMarker* StdMeshersGUI_DistrPreview::myMsg
private

◆ myNbSeg

int StdMeshersGUI_DistrPreview::myNbSeg
private

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

◆ myPoints

int StdMeshersGUI_DistrPreview::myPoints
private

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

◆ myTableFunc

SMESH::double_array StdMeshersGUI_DistrPreview::myTableFunc
private

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

◆ myValues

TColStd_Array1OfReal StdMeshersGUI_DistrPreview::myValues
private

Referenced by calc(), and funcValue().

◆ myVars

Expr_Array1OfNamedUnknown StdMeshersGUI_DistrPreview::myVars
private

Referenced by calc(), and StdMeshersGUI_DistrPreview().