Version: 6.3.1
Public Member Functions | Protected Attributes

SMESH.Controls.LogicalBinary Class Reference

#include <SMESH_ControlsDef.hxx>

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

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

Detailed Description

Definition at line 607 of file SMESH_ControlsDef.hxx.


Constructor & Destructor Documentation

LogicalBinary::LogicalBinary ( )

Definition at line 2932 of file SMESH_Controls.cxx.

{}
LogicalBinary::~LogicalBinary ( ) [virtual]

Definition at line 2935 of file SMESH_Controls.cxx.

{}

Member Function Documentation

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

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