#include <SMESH_ControlsDef.hxx>

Public Member Functions | |
| virtual bool | IsSatisfy (long theElementId) |
| virtual void | SetMesh (const SMDS_Mesh *theMesh) |
| virtual void | SetPredicate1 (PredicatePtr thePred) |
| virtual void | SetPredicate2 (PredicatePtr thePred) |
| virtual SMDSAbs_ElementType | GetType () const |
Protected Attributes | |
| PredicatePtr | myPredicate1 |
| PredicatePtr | myPredicate2 |
Definition at line 637 of file SMESH_ControlsDef.hxx.
| SMDSAbs_ElementType LogicalBinary::GetType | ( | ) | const [virtual, inherited] |
Implements SMESH.Controls.Predicate.
Definition at line 2957 of file SMESH_Controls.cxx.
References SMESH.Controls.LogicalBinary.myPredicate1, SMESH.Controls.LogicalBinary.myPredicate2, and SMDSAbs_All.
{
if ( !myPredicate1 || !myPredicate2 )
return SMDSAbs_All;
SMDSAbs_ElementType aType1 = myPredicate1->GetType();
SMDSAbs_ElementType aType2 = myPredicate2->GetType();
return aType1 == aType2 ? aType1 : SMDSAbs_All;
}
| bool LogicalOR::IsSatisfy | ( | long | theElementId | ) | [virtual] |
Implements SMESH.Controls.Predicate.
Definition at line 2987 of file SMESH_Controls.cxx.
References SMESH.Controls.LogicalBinary.myPredicate1, and SMESH.Controls.LogicalBinary.myPredicate2.
{
return
myPredicate1 &&
myPredicate2 &&
(myPredicate1->IsSatisfy( theId ) ||
myPredicate2->IsSatisfy( theId ));
}
| void LogicalBinary::SetMesh | ( | const SMDS_Mesh * | theMesh | ) | [virtual, inherited] |
Implements SMESH.Controls.Functor.
Definition at line 2938 of file SMESH_Controls.cxx.
References SMESH.Controls.LogicalBinary.myPredicate1, and SMESH.Controls.LogicalBinary.myPredicate2.
{
if ( myPredicate1 )
myPredicate1->SetMesh( theMesh );
if ( myPredicate2 )
myPredicate2->SetMesh( theMesh );
}
| void LogicalBinary::SetPredicate1 | ( | PredicatePtr | thePred | ) | [virtual, inherited] |
Definition at line 2947 of file SMESH_Controls.cxx.
References SMESH.Controls.LogicalBinary.myPredicate1.
{
myPredicate1 = thePredicate;
}
| void LogicalBinary::SetPredicate2 | ( | PredicatePtr | thePred | ) | [virtual, inherited] |
Definition at line 2952 of file SMESH_Controls.cxx.
References SMESH.Controls.LogicalBinary.myPredicate2.
{
myPredicate2 = thePredicate;
}
PredicatePtr SMESH.Controls.LogicalBinary.myPredicate1 [protected, inherited] |
Definition at line 617 of file SMESH_ControlsDef.hxx.
Referenced by SMESH.Controls.LogicalBinary.GetType(), SMESH.Controls.LogicalOR.IsSatisfy(), SMESH.Controls.LogicalAND.IsSatisfy(), SMESH.Controls.LogicalBinary.SetMesh(), and SMESH.Controls.LogicalBinary.SetPredicate1().
PredicatePtr SMESH.Controls.LogicalBinary.myPredicate2 [protected, inherited] |
Definition at line 618 of file SMESH_ControlsDef.hxx.
Referenced by SMESH.Controls.LogicalBinary.GetType(), SMESH.Controls.LogicalOR.IsSatisfy(), SMESH.Controls.LogicalAND.IsSatisfy(), SMESH.Controls.LogicalBinary.SetMesh(), and SMESH.Controls.LogicalBinary.SetPredicate2().