Version: 8.3.0
SMESH::Controls::NumericalFunctor Class Referenceabstract

#include <SMESH_ControlsDef.hxx>

Inheritance diagram for SMESH::Controls::NumericalFunctor:

Public Member Functions

 NumericalFunctor ()
 
virtual void SetMesh (const SMDS_Mesh *theMesh)
 
virtual double GetValue (long theElementId)
 
virtual double GetValue (const TSequenceOfXYZ &thePoints)
 
void GetHistogram (int nbIntervals, std::vector< int > &nbEvents, std::vector< double > &funValues, const std::vector< int > &elements, const double *minmax=0, const bool isLogarithmic=false)
 Return histogram of functor values. More...
 
virtual SMDSAbs_ElementType GetType () const =0
 
virtual double GetBadRate (double Value, int nbNodes) const =0
 
long GetPrecision () const
 
void SetPrecision (const long thePrecision)
 
double Round (const double &value)
 
bool GetPoints (const int theId, TSequenceOfXYZ &theRes) const
 

Static Public Member Functions

static bool GetPoints (const SMDS_MeshElement *theElem, TSequenceOfXYZ &theRes)
 

Protected Attributes

const SMDS_MeshmyMesh
 
const SMDS_MeshElementmyCurrElement
 
long myPrecision
 
double myPrecisionValue
 

Constructor & Destructor Documentation

NumericalFunctor::NumericalFunctor ( )

References myPrecision.

Member Function Documentation

void NumericalFunctor::GetHistogram ( int  nbIntervals,
std::vector< int > &  nbEvents,
std::vector< double > &  funValues,
const std::vector< int > &  elements,
const double *  minmax = 0,
const bool  isLogarithmic = false 
)

Return histogram of functor values.

Parameters
nbIntervals- number of intervals
nbEvents- number of mesh elements having values within i-th interval
funValues- boundaries of intervals
elements- elements to check vulue of; empty list means "of all"
minmax- boundaries of diapason of values to divide into intervals

References SMDS_Mesh::elementsIterator(), SMDS_Mesh::GetMeshInfo(), GetType(), GetValue(), myMesh, and SMDS_MeshInfo::NbElements().

long NumericalFunctor::GetPrecision ( ) const

References myPrecision.

double NumericalFunctor::Round ( const double &  value)
void NumericalFunctor::SetMesh ( const SMDS_Mesh theMesh)
virtual

Implements SMESH::Controls::Functor.

References myMesh.

void NumericalFunctor::SetPrecision ( const long  thePrecision)

Field Documentation

const SMDS_MeshElement* SMESH::Controls::NumericalFunctor::myCurrElement
protected
double SMESH::Controls::NumericalFunctor::myPrecisionValue
protected

Referenced by Round(), and SetPrecision().