Version: 8.3.0
StdMeshers_NumberOfSegments.cxx File Reference
#include "StdMeshers_NumberOfSegments.hxx"
#include "SMESHDS_Mesh.hxx"
#include "SMESHDS_SubMesh.hxx"
#include "SMESH_Comment.hxx"
#include "SMESH_Mesh.hxx"
#include "StdMeshers_Distribution.hxx"
#include <ExprIntrp_GenExp.hxx>
#include <Expr_Array1OfNamedUnknown.hxx>
#include <Expr_NamedUnknown.hxx>
#include <TColStd_Array1OfReal.hxx>
#include <TCollection_AsciiString.hxx>
#include <TopExp.hxx>
#include <TopTools_IndexedMapOfShape.hxx>
#include <Standard_Failure.hxx>
#include <Basics_Utils.hxx>
Include dependency graph for StdMeshers_NumberOfSegments.cxx:

Functions

bool isCorrectArg (const Handle(Expr_GeneralExpression)&expr)
 check if only 't' is unknown variable in expression More...
 
bool process (const TCollection_AsciiString &str, int convMode, bool &syntax, bool &args, bool &non_neg, bool &non_zero, bool &singulars, double &sing_point)
 this function parses the expression 'str' in order to check if syntax is correct ( result in 'syntax' ) and if only 't' is unknown variable in expression ( result in 'args' ) More...
 
ostream & operator<< (ostream &save, StdMeshers_NumberOfSegments &hyp)
 
istream & operator>> (istream &load, StdMeshers_NumberOfSegments &hyp)
 

Variables

const double PRECISION = 1e-7
 

Function Documentation

bool isCorrectArg ( const Handle(Expr_GeneralExpression)&  expr)

check if only 't' is unknown variable in expression

References SMESH::DownCast(), and Handle().

Referenced by StdMeshersGUI_DistrPreview::init(), isCorrectArg(), and process().

ostream& operator<< ( ostream &  save,
StdMeshers_NumberOfSegments hyp 
)
istream& operator>> ( istream &  load,
StdMeshers_NumberOfSegments hyp 
)
bool process ( const TCollection_AsciiString &  str,
int  convMode,
bool syntax,
bool args,
bool non_neg,
bool non_zero,
bool singulars,
double &  sing_point 
)

this function parses the expression 'str' in order to check if syntax is correct ( result in 'syntax' ) and if only 't' is unknown variable in expression ( result in 'args' )

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

Referenced by StdMeshers_NumberOfSegments::CheckExpressionFunction().

Variable Documentation