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