Version: 6.3.1
Public Member Functions | Protected Attributes

SMESH.Controls.LogicalOR Class Reference

#include <SMESH_ControlsDef.hxx>

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

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

Detailed Description

Definition at line 637 of file SMESH_ControlsDef.hxx.


Member Function Documentation

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;
}

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