SALOME - SMESH
SMESH_HypoFilter Class Reference

#include <SMESH_HypoFilter.hxx>

Inheritance diagram for SMESH_HypoFilter:
Inheritance graph
Collaboration diagram for SMESH_HypoFilter:
Collaboration graph

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 notNagate=true)
 
SMESH_HypoFilterInit (SMESH_HypoPredicate *aPredicate, bool notNagate=true)
 
SMESH_HypoFilterAnd (SMESH_HypoPredicate *aPredicate)
 
SMESH_HypoFilterAndNot (SMESH_HypoPredicate *aPredicate)
 
SMESH_HypoFilterOr (SMESH_HypoPredicate *aPredicate)
 
SMESH_HypoFilterOrNot (SMESH_HypoPredicate *aPredicate)
 
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)
 
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

std::list< SMESH_HypoPredicate * > myPredicates
 

Detailed Description

Definition at line 54 of file SMESH_HypoFilter.hxx.

Member Enumeration Documentation

◆ Logical

enum SMESH_HypoFilter::Logical
protected
Enumerator
AND 
AND_NOT 
OR 
OR_NOT 

Definition at line 102 of file SMESH_HypoFilter.hxx.

◆ Comparison

Enumerator
EQUAL 
NOT_EQUAL 
MORE 
LESS 

Definition at line 103 of file SMESH_HypoFilter.hxx.

Constructor & Destructor Documentation

◆ SMESH_HypoFilter() [1/3]

SMESH_HypoFilter::SMESH_HypoFilter ( )

◆ SMESH_HypoFilter() [2/3]

SMESH_HypoFilter::SMESH_HypoFilter ( SMESH_HypoPredicate aPredicate,
bool  notNagate = true 
)

◆ ~SMESH_HypoFilter()

SMESH_HypoFilter::~SMESH_HypoFilter ( )

◆ SMESH_HypoFilter() [3/3]

SMESH_HypoFilter::SMESH_HypoFilter ( const SMESH_HypoFilter other)
protected

Definition at line 107 of file SMESH_HypoFilter.hxx.

Member Function Documentation

◆ Init()

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

◆ And()

SMESH_HypoFilter& SMESH_HypoFilter::And ( SMESH_HypoPredicate aPredicate)

◆ AndNot()

SMESH_HypoFilter& SMESH_HypoFilter::AndNot ( SMESH_HypoPredicate aPredicate)

◆ Or()

SMESH_HypoFilter& SMESH_HypoFilter::Or ( SMESH_HypoPredicate aPredicate)

◆ OrNot()

SMESH_HypoFilter& SMESH_HypoFilter::OrNot ( SMESH_HypoPredicate aPredicate)

◆ IsAlgo()

static SMESH_HypoPredicate* SMESH_HypoFilter::IsAlgo ( )
static

◆ IsAuxiliary()

static SMESH_HypoPredicate* SMESH_HypoFilter::IsAuxiliary ( )
static

◆ IsApplicableTo()

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

◆ IsAssignedTo()

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

◆ Is()

static SMESH_HypoPredicate* SMESH_HypoFilter::Is ( const SMESH_Hypothesis theHypo)
static

◆ IsGlobal()

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

◆ IsMoreLocalThan()

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

◆ HasName()

static SMESH_HypoPredicate* SMESH_HypoFilter::HasName ( const std::string &  theName)
static

◆ HasDim()

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

◆ HasType()

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

◆ IsOk()

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

check aHyp or/and aShape it is assigned to

Implements SMESH_HypoPredicate.

◆ IsAny()

bool SMESH_HypoFilter::IsAny ( ) const

return true if contains no predicates

Definition at line 88 of file SMESH_HypoFilter.hxx.

◆ add()

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

Definition at line 109 of file SMESH_HypoFilter.hxx.

References SMESH_HypoPredicate::_logical_op.

Field Documentation

◆ myPredicates

std::list<SMESH_HypoPredicate*> SMESH_HypoFilter::myPredicates
protected

Definition at line 96 of file SMESH_HypoFilter.hxx.