SMESH_HypoFilter Class Reference

#include <SMESH_HypoFilter.hxx>

Classes

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

Public Member Functions

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

Static Public Member Functions

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

Protected Types

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

Protected Member Functions

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

Protected Attributes

int myNbPredicates
 
SMESH_HypoPredicatemyPredicates [100]
 

Member Enumeration Documentation

◆ Comparison

Enumerator
EQUAL 
NOT_EQUAL 
MORE 
LESS 

◆ Logical

enum SMESH_HypoFilter::Logical
protected
Enumerator
AND 
AND_NOT 
OR 
OR_NOT 

Constructor & Destructor Documentation

◆ SMESH_HypoFilter() [1/3]

SMESH_HypoFilter::SMESH_HypoFilter ( )

◆ SMESH_HypoFilter() [2/3]

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

References add(), AND, and AND_NOT.

◆ ~SMESH_HypoFilter()

SMESH_HypoFilter::~SMESH_HypoFilter ( )

References myNbPredicates, and myPredicates.

◆ SMESH_HypoFilter() [3/3]

SMESH_HypoFilter::SMESH_HypoFilter ( const SMESH_HypoFilter other)
protected

Member Function Documentation

◆ add()

void SMESH_HypoFilter::add ( Logical  bool_op,
SMESH_HypoPredicate pred 
)
protected

◆ And()

◆ AndNot()

◆ HasDim()

SMESH_HypoPredicate * SMESH_HypoFilter::HasDim ( const int  theDim)
static

◆ HasName()

◆ HasType()

SMESH_HypoPredicate * SMESH_HypoFilter::HasType ( const int  theHypType)
static

◆ Init()

SMESH_HypoFilter & SMESH_HypoFilter::Init ( SMESH_HypoPredicate aPredicate,
bool  notNegate = true 
)

◆ Is()

◆ IsAlgo()

◆ IsAny()

bool SMESH_HypoFilter::IsAny ( ) const

return true if contains no predicates

◆ IsApplicableTo()

SMESH_HypoPredicate * SMESH_HypoFilter::IsApplicableTo ( const TopoDS_Shape &  theShape)
static

◆ IsAssignedTo()

SMESH_HypoPredicate * SMESH_HypoFilter::IsAssignedTo ( const TopoDS_Shape &  theShape)
static

◆ IsAuxiliary()

◆ IsEmpty()

bool SMESH_HypoFilter::IsEmpty ( ) const

◆ IsGlobal()

SMESH_HypoPredicate * SMESH_HypoFilter::IsGlobal ( const TopoDS_Shape &  theMainShape)
static

◆ IsMoreLocalThan()

SMESH_HypoPredicate * SMESH_HypoFilter::IsMoreLocalThan ( const TopoDS_Shape &  theShape,
const SMESH_Mesh theMesh 
)
static

◆ IsOk()

bool SMESH_HypoFilter::IsOk ( const SMESH_Hypothesis aHyp,
const TopoDS_Shape &  aShape 
) const
virtual

◆ Or()

SMESH_HypoFilter & SMESH_HypoFilter::Or ( SMESH_HypoPredicate aPredicate)

References add(), and OR.

◆ OrNot()

SMESH_HypoFilter & SMESH_HypoFilter::OrNot ( SMESH_HypoPredicate aPredicate)

References add(), and OR_NOT.

Member Data Documentation

◆ myNbPredicates

int SMESH_HypoFilter::myNbPredicates
protected

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

◆ myPredicates

SMESH_HypoPredicate* SMESH_HypoFilter::myPredicates[100]
protected

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


The documentation for this class was generated from the following files: