#include <SMESH_ControlsDef.hxx>

Public Member Functions | |
| LogicalBinary () | |
| virtual | ~LogicalBinary () |
| virtual void | SetMesh (const SMDS_Mesh *theMesh) |
| virtual void | SetPredicate1 (PredicatePtr thePred) |
| virtual void | SetPredicate2 (PredicatePtr thePred) |
| virtual SMDSAbs_ElementType | GetType () const |
| virtual bool | IsSatisfy (long theElementId)=0 |
Protected Attributes | |
| PredicatePtr | myPredicate1 |
| PredicatePtr | myPredicate2 |
Definition at line 607 of file SMESH_ControlsDef.hxx.
| LogicalBinary::LogicalBinary | ( | ) |
Definition at line 2932 of file SMESH_Controls.cxx.
{}
| LogicalBinary::~LogicalBinary | ( | ) | [virtual] |
Definition at line 2935 of file SMESH_Controls.cxx.
{}
| SMDSAbs_ElementType LogicalBinary::GetType | ( | ) | const [virtual] |
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;
}
| virtual bool SMESH.Controls.Predicate.IsSatisfy | ( | long | theElementId | ) | [pure virtual, inherited] |
Implemented in SMESH.Controls.FreeBorders, SMESH.Controls.BadOrientedVolume, SMESH.Controls.BareBorderVolume, SMESH.Controls.BareBorderFace, SMESH.Controls.OverConstrainedVolume, SMESH.Controls.OverConstrainedFace, SMESH.Controls.FreeEdges, SMESH.Controls.FreeNodes, SMESH.Controls.RangeOfIds, SMESH.Controls.Comparator, SMESH.Controls.LessThan, SMESH.Controls.MoreThan, SMESH.Controls.EqualTo, SMESH.Controls.LogicalNOT, SMESH.Controls.LogicalAND, SMESH.Controls.LogicalOR, SMESH.Controls.ManifoldPart, SMESH.Controls.ElementsOnSurface, SMESH.Controls.ElementsOnShape, SMESH.Controls.FreeFaces, SMESH.Controls.LinearOrQuadratic, SMESH.Controls.GroupColor, SMESH.Controls.ElemGeomType, SMESH.Controls.CoplanarFaces, SMESH.Controls.BelongToGeom, and SMESH.Controls.LyingOnGeom.
Referenced by SMESH_DeviceActor.SetExtControlMode().
| void LogicalBinary::SetMesh | ( | const SMDS_Mesh * | theMesh | ) | [virtual] |
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] |
Definition at line 2947 of file SMESH_Controls.cxx.
References SMESH.Controls.LogicalBinary.myPredicate1.
{
myPredicate1 = thePredicate;
}
| void LogicalBinary::SetPredicate2 | ( | PredicatePtr | thePred | ) | [virtual] |
Definition at line 2952 of file SMESH_Controls.cxx.
References SMESH.Controls.LogicalBinary.myPredicate2.
{
myPredicate2 = thePredicate;
}
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().
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().