Version: 8.3.0
SMESH_HypoFilter Class Reference

#include <SMESH_HypoFilter.hxx>

Inheritance diagram for SMESH_HypoFilter:

Data Structures

struct  ApplicablePredicate
 
struct  DimPredicate
 
struct  InstancePredicate
 
struct  IsAssignedToPredicate
 
struct  IsAuxiliaryPredicate
 
struct  IsMoreLocalThanPredicate
 
struct  NamePredicate
 
struct  templPredicate
 
struct  TypePredicate
 

Public Member Functions

 SMESH_HypoFilter ()
 
 SMESH_HypoFilter (SMESH_HypoPredicate *aPredicate, bool notNegate=true)
 
SMESH_HypoFilterInit (SMESH_HypoPredicate *aPredicate, bool notNegate=true)
 
SMESH_HypoFilterAnd (SMESH_HypoPredicate *aPredicate)
 
SMESH_HypoFilterAndNot (SMESH_HypoPredicate *aPredicate)
 
SMESH_HypoFilterOr (SMESH_HypoPredicate *aPredicate)
 
SMESH_HypoFilterOrNot (SMESH_HypoPredicate *aPredicate)
 
bool IsEmpty () const
 
bool IsOk (const SMESH_Hypothesis *aHyp, const TopoDS_Shape &aShape) const
 check aHyp or/and aShape it is assigned to More...
 
bool IsAny () const
 return true if contains no predicates More...
 
 ~SMESH_HypoFilter ()
 

Static Public Member Functions

static SMESH_HypoPredicateIsAlgo ()
 
static SMESH_HypoPredicateIsAuxiliary ()
 
static SMESH_HypoPredicateIsApplicableTo (const TopoDS_Shape &theShape)
 
static SMESH_HypoPredicateIsAssignedTo (const TopoDS_Shape &theShape)
 
static SMESH_HypoPredicateIs (const SMESH_Hypothesis *theHypo)
 
static SMESH_HypoPredicateIsGlobal (const TopoDS_Shape &theMainShape)
 
static SMESH_HypoPredicateIsMoreLocalThan (const TopoDS_Shape &theShape, const SMESH_Mesh &theMesh)
 
static SMESH_HypoPredicateHasName (const std::string &theName)
 
static SMESH_HypoPredicateHasDim (const int theDim)
 
static SMESH_HypoPredicateHasType (const int theHypType)
 

Protected Types

enum  Logical { AND, AND_NOT, OR, OR_NOT }
 
enum  Comparison { EQUAL, NOT_EQUAL, MORE, LESS }
 

Protected Member Functions

 SMESH_HypoFilter (const SMESH_HypoFilter &other)
 
void add (Logical bool_op, SMESH_HypoPredicate *pred)
 

Protected Attributes

SMESH_HypoPredicatemyPredicates [100]
 
int myNbPredicates
 

Member Enumeration Documentation

Enumerator
EQUAL 
NOT_EQUAL 
MORE 
LESS 
enum SMESH_HypoFilter::Logical
protected
Enumerator
AND 
AND_NOT 
OR 
OR_NOT 

Constructor & Destructor Documentation

SMESH_HypoFilter::SMESH_HypoFilter ( )
SMESH_HypoFilter::SMESH_HypoFilter ( SMESH_HypoPredicate aPredicate,
bool  notNegate = true 
)
explicit

References add(), AND, and AND_NOT.

SMESH_HypoFilter::~SMESH_HypoFilter ( )

References myNbPredicates, and myPredicates.

SMESH_HypoFilter::SMESH_HypoFilter ( const SMESH_HypoFilter other)
protected

Member Function Documentation

void SMESH_HypoFilter::add ( Logical  bool_op,
SMESH_HypoPredicate pred 
)
protected
SMESH_HypoPredicate * SMESH_HypoFilter::HasType ( const int  theHypType)
static
bool SMESH_HypoFilter::IsAny ( ) const

return true if contains no predicates

SMESH_HypoPredicate * SMESH_HypoFilter::IsApplicableTo ( const TopoDS_Shape &  theShape)
static
SMESH_HypoPredicate * SMESH_HypoFilter::IsAssignedTo ( const TopoDS_Shape &  theShape)
static
bool SMESH_HypoFilter::IsEmpty ( ) const
SMESH_HypoPredicate * SMESH_HypoFilter::IsGlobal ( const TopoDS_Shape &  theMainShape)
static
SMESH_HypoPredicate * SMESH_HypoFilter::IsMoreLocalThan ( const TopoDS_Shape &  theShape,
const SMESH_Mesh theMesh 
)
static
bool SMESH_HypoFilter::IsOk ( const SMESH_Hypothesis aHyp,
const TopoDS_Shape &  aShape 
) const
virtual
SMESH_HypoFilter & SMESH_HypoFilter::Or ( SMESH_HypoPredicate aPredicate)
SMESH_HypoFilter & SMESH_HypoFilter::OrNot ( SMESH_HypoPredicate aPredicate)

References add(), and OR_NOT.

Field Documentation

int SMESH_HypoFilter::myNbPredicates
protected

Referenced by Init(), IsOk(), and ~SMESH_HypoFilter().

SMESH_HypoPredicate* SMESH_HypoFilter::myPredicates[100]
protected

Referenced by Init(), IsOk(), and ~SMESH_HypoFilter().