Version: 6.3.1
Public Member Functions | Protected Attributes

SMESH.Controls.Comparator Class Reference

#include <SMESH_ControlsDef.hxx>

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

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

Detailed Description

Definition at line 529 of file SMESH_ControlsDef.hxx.


Constructor & Destructor Documentation

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.

{}

Member Function Documentation

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]
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.

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

Definition at line 2837 of file SMESH_Controls.cxx.

References SMESH.Controls.Comparator.myFunctor.

{
  myFunctor = theFunct;
}

Field Documentation

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