SMESH::Controls::NumericalFunctor Class Referenceabstract

#include <SMESH_ControlsDef.hxx>

Public Member Functions

virtual double GetBadRate (double Value, int nbNodes) const =0
 
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...
 
bool GetPoints (const int theId, TSequenceOfXYZ &theRes) const
 
long GetPrecision () const
 
virtual SMDSAbs_ElementType GetType () const =0
 
virtual double GetValue (const TSequenceOfXYZ &thePoints)
 
virtual double GetValue (long theElementId)
 
 NumericalFunctor ()
 
double Round (const double &value)
 
virtual void SetMesh (const SMDS_Mesh *theMesh)
 
void SetPrecision (const long thePrecision)
 
- Public Member Functions inherited from SMESH::Controls::Functor
virtual SMDSAbs_ElementType GetType () const =0
 
virtual void SetMesh (const SMDS_Mesh *theMesh)=0
 
virtual ~Functor ()
 

Static Public Member Functions

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

Protected Attributes

const SMDS_MeshElementmyCurrElement
 
const SMDS_MeshmyMesh
 
long myPrecision
 
double myPrecisionValue
 

Constructor & Destructor Documentation

◆ NumericalFunctor()

NumericalFunctor::NumericalFunctor ( )

References myPrecision.

Member Function Documentation

◆ GetBadRate()

◆ GetHistogram()

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().

◆ GetPoints() [1/2]

◆ GetPoints() [2/2]

◆ GetPrecision()

long NumericalFunctor::GetPrecision ( ) const

References myPrecision.

◆ GetType()

◆ GetValue() [1/2]

◆ GetValue() [2/2]

◆ Round()

double NumericalFunctor::Round ( const double &  value)

◆ SetMesh()

void NumericalFunctor::SetMesh ( const SMDS_Mesh theMesh)
virtual

◆ SetPrecision()

void NumericalFunctor::SetPrecision ( const long  thePrecision)

References myPrecision, and myPrecisionValue.

Member Data Documentation

◆ myCurrElement

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

◆ myMesh

◆ myPrecision

◆ myPrecisionValue

double SMESH::Controls::NumericalFunctor::myPrecisionValue
protected

Referenced by Round(), and SetPrecision().


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