#include <SMESH_HypoFilter.hxx>
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_HypoFilter & | Init (SMESH_HypoPredicate *aPredicate, bool notNegate=true) |
SMESH_HypoFilter & | And (SMESH_HypoPredicate *aPredicate) |
SMESH_HypoFilter & | AndNot (SMESH_HypoPredicate *aPredicate) |
SMESH_HypoFilter & | Or (SMESH_HypoPredicate *aPredicate) |
SMESH_HypoFilter & | OrNot (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_HypoPredicate * | IsAlgo () |
static SMESH_HypoPredicate * | IsAuxiliary () |
static SMESH_HypoPredicate * | IsApplicableTo (const TopoDS_Shape &theShape) |
static SMESH_HypoPredicate * | IsAssignedTo (const TopoDS_Shape &theShape) |
static SMESH_HypoPredicate * | Is (const SMESH_Hypothesis *theHypo) |
static SMESH_HypoPredicate * | IsGlobal (const TopoDS_Shape &theMainShape) |
static SMESH_HypoPredicate * | IsMoreLocalThan (const TopoDS_Shape &theShape, const SMESH_Mesh &theMesh) |
static SMESH_HypoPredicate * | HasName (const std::string &theName) |
static SMESH_HypoPredicate * | HasDim (const int theDim) |
static SMESH_HypoPredicate * | HasType (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_HypoPredicate * | myPredicates [100] |
int | myNbPredicates |
|
protected |
|
protected |
SMESH_HypoFilter::SMESH_HypoFilter | ( | ) |
|
explicit |
SMESH_HypoFilter::~SMESH_HypoFilter | ( | ) |
References myNbPredicates, and myPredicates.
|
protected |
|
protected |
References SMESH_HypoPredicate::_logical_op.
Referenced by And(), AndNot(), Init(), Or(), OrNot(), and SMESH_HypoFilter().
SMESH_HypoFilter & SMESH_HypoFilter::And | ( | SMESH_HypoPredicate * | aPredicate | ) |
SMESH_HypoFilter & SMESH_HypoFilter::AndNot | ( | SMESH_HypoPredicate * | aPredicate | ) |
References add(), and AND_NOT.
Referenced by SMESH_subMesh::AlgoStateEngine(), SMESH_Algo::GetCompatibleHypoFilter(), and SMESH_subMesh::getSimilarAttached().
|
static |
References EQUAL.
Referenced by SMESH_subMesh::getSimilarAttached(), StdMeshers_ProjectionUtils::MakeComputed(), and StdMeshers_ProjectionUtils::SourceNotComputedError().
|
static |
|
static |
References EQUAL.
Referenced by SMESH_subMesh::AlgoStateEngine(), and SMESH_subMesh::getSimilarAttached().
SMESH_HypoFilter & SMESH_HypoFilter::Init | ( | SMESH_HypoPredicate * | aPredicate, |
bool | notNegate = true |
||
) |
|
static |
|
static |
bool SMESH_HypoFilter::IsAny | ( | ) | const |
return true if contains no predicates
|
static |
Referenced by SMESH_subMesh::AlgoStateEngine(), and SMESH_subMesh::getSimilarAttached().
|
static |
|
static |
bool SMESH_HypoFilter::IsEmpty | ( | ) | const |
Referenced by StdMeshers_Propagation::GetFilter(), and IsOk().
|
static |
|
static |
Referenced by SMESH_subMesh::cleanDependsOn().
|
virtual |
check aHyp or/and aShape it is assigned to
Implements SMESH_HypoPredicate.
References SMESH_HypoPredicate::_logical_op, AND, AND_NOT, IsEmpty(), SMESH_HypoPredicate::IsOk(), myNbPredicates, myPredicates, OR, and OR_NOT.
Referenced by StdMeshers_Regular_1D::CheckHypothesis(), and SMESH_Mesh::NotifySubMeshesHypothesisModification().
SMESH_HypoFilter & SMESH_HypoFilter::Or | ( | SMESH_HypoPredicate * | aPredicate | ) |
Referenced by SMESH_subMesh::AlgoStateEngine(), and SMESH_Algo::GetCompatibleHypoFilter().
SMESH_HypoFilter & SMESH_HypoFilter::OrNot | ( | SMESH_HypoPredicate * | aPredicate | ) |
|
protected |
Referenced by Init(), IsOk(), and ~SMESH_HypoFilter().
|
protected |
Referenced by Init(), IsOk(), and ~SMESH_HypoFilter().