#include <SMESH_ControlsDef.hxx>

Public Member Functions | |
| Comparator () | |
| virtual | ~Comparator () |
| virtual void | SetMesh (const SMDS_Mesh *theMesh) |
| virtual void | SetMargin (double theValue) |
| virtual void | SetNumFunctor (NumericalFunctorPtr theFunct) |
| virtual bool | IsSatisfy (long theElementId)=0 |
| virtual SMDSAbs_ElementType | GetType () const |
| double | GetMargin () |
Protected Attributes | |
| double | myMargin |
| NumericalFunctorPtr | myFunctor |
Definition at line 529 of file SMESH_ControlsDef.hxx.
| Comparator::Comparator | ( | ) |
Definition at line 2819 of file SMESH_Controls.cxx.
: myMargin(0) {}
| Comparator::~Comparator | ( | ) | [virtual] |
Definition at line 2823 of file SMESH_Controls.cxx.
{}
| double Comparator::GetMargin | ( | ) |
Definition at line 2847 of file SMESH_Controls.cxx.
References SMESH.Controls.Comparator.myMargin.
{
return myMargin;
}
| SMDSAbs_ElementType Comparator::GetType | ( | ) | const [virtual] |
Implements SMESH.Controls.Predicate.
Definition at line 2842 of file SMESH_Controls.cxx.
References SMESH.Controls.Comparator.myFunctor, and SMDSAbs_All.
{
return myFunctor ? myFunctor->GetType() : SMDSAbs_All;
}
| virtual bool SMESH.Controls.Comparator.IsSatisfy | ( | long | theElementId | ) | [pure virtual] |
Implements SMESH.Controls.Predicate.
Implemented in SMESH.Controls.LessThan, SMESH.Controls.MoreThan, and SMESH.Controls.EqualTo.
| void Comparator::SetMargin | ( | double | theValue | ) | [virtual] |
Definition at line 2832 of file SMESH_Controls.cxx.
References SMESH.Controls.Comparator.myMargin.
{
myMargin = theValue;
}
| void Comparator::SetMesh | ( | const SMDS_Mesh * | theMesh | ) | [virtual] |
Implements SMESH.Controls.Functor.
Definition at line 2826 of file SMESH_Controls.cxx.
References SMESH.Controls.Comparator.myFunctor.
| void Comparator::SetNumFunctor | ( | NumericalFunctorPtr | theFunct | ) | [virtual] |
Definition at line 2837 of file SMESH_Controls.cxx.
References SMESH.Controls.Comparator.myFunctor.
{
myFunctor = theFunct;
}
double SMESH.Controls.Comparator.myMargin [protected] |
Definition at line 541 of file SMESH_ControlsDef.hxx.
Referenced by SMESH.Controls.Comparator.GetMargin(), SMESH.Controls.EqualTo.IsSatisfy(), SMESH.Controls.MoreThan.IsSatisfy(), SMESH.Controls.LessThan.IsSatisfy(), and SMESH.Controls.Comparator.SetMargin().