Version: 6.3.1
Public Member Functions | Protected Attributes

SMESH.Controls.LessThan Class Reference

#include <SMESH_ControlsDef.hxx>

Inheritance diagram for SMESH.Controls.LessThan:
Inheritance graph
[legend]

Public Member Functions

virtual bool IsSatisfy (long theElementId)
virtual void SetMesh (const SMDS_Mesh *theMesh)
virtual void SetMargin (double theValue)
virtual void SetNumFunctor (NumericalFunctorPtr theFunct)
virtual SMDSAbs_ElementType GetType () const
double GetMargin ()

Protected Attributes

double myMargin
NumericalFunctorPtr myFunctor

Detailed Description

Definition at line 551 of file SMESH_ControlsDef.hxx.


Member Function Documentation

double Comparator::GetMargin ( ) [inherited]

Definition at line 2847 of file SMESH_Controls.cxx.

References SMESH.Controls.Comparator.myMargin.

{
  return myMargin;
}
SMDSAbs_ElementType Comparator::GetType ( ) const [virtual, inherited]

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;
}
bool LessThan::IsSatisfy ( long  theElementId) [virtual]

Implements SMESH.Controls.Comparator.

Definition at line 2857 of file SMESH_Controls.cxx.

References SMESH.Controls.Comparator.myFunctor, and SMESH.Controls.Comparator.myMargin.

{
  return myFunctor && myFunctor->GetValue( theId ) < myMargin;
}
void Comparator::SetMargin ( double  theValue) [virtual, inherited]

Definition at line 2832 of file SMESH_Controls.cxx.

References SMESH.Controls.Comparator.myMargin.

{
  myMargin = theValue;
}
void Comparator::SetMesh ( const SMDS_Mesh theMesh) [virtual, inherited]

Implements SMESH.Controls.Functor.

Definition at line 2826 of file SMESH_Controls.cxx.

References SMESH.Controls.Comparator.myFunctor.

{
  if ( myFunctor )
    myFunctor->SetMesh( theMesh );
}
void Comparator::SetNumFunctor ( NumericalFunctorPtr  theFunct) [virtual, inherited]

Definition at line 2837 of file SMESH_Controls.cxx.

References SMESH.Controls.Comparator.myFunctor.

{
  myFunctor = theFunct;
}

Field Documentation

double SMESH.Controls.Comparator.myMargin [protected, inherited]
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS