Workspace 6.21.5
|
Element criterion that will pass for all elements in a provided Region. More...
#include <Mesh/Geometry/elementcriterioninregion.h>
Public Member Functions | |
ElementCriterionInRegion () | |
ElementCriterionInRegion (const ElementCriterionInRegion &criterion) | |
ElementCriterionInRegion (const Region ®ion) | |
~ElementCriterionInRegion () override | |
ElementCriterionInRegion * | clone () const override |
void | destroy () override |
bool | getAllNodesMustPass () const |
ElementCriterionInRegion & | operator= (const ElementCriterionInRegion &criterion) |
bool | pass (const Element &element) const override |
void | setAllNodesMustPass (bool b) |
void | setRegion (const Region ®ion) |
Public Member Functions inherited from ElementCriterion | |
~ElementCriterion () override=default | |
ElementCriterion * | clone () const override=0 |
virtual void | destroy ()=0 |
virtual bool | pass (const Element &element) const =0 |
virtual void | postVisits () |
virtual bool | preVisits (MeshModel &model) |
Public Member Functions inherited from Clonable | |
virtual | ~Clonable ()=default |
virtual Clonable * | clone () const =0 |
Public Member Functions inherited from Observable | |
virtual | ~Observable () |
void | attachObserver (Observer &observer) |
void | destroy () |
void | detachObserver (Observer &observer) |
void | notifyEvent (const ObservableEvent &event) |
Additional Inherited Members | |
Protected Member Functions inherited from Observable | |
Observable () | |
Observable (const Observable &) | |
Set the region for the criterion either in the constructor or by using the setRegion() function. You can choose whether only one node of an element or all nodes of an element must be in the region for it to pass.
ElementCriterionInRegion | ( | const ElementCriterionInRegion & | criterion | ) |
ElementCriterionInRegion | ( | const Region & | region | ) |
|
override |
|
overridevirtual |
We redeclare this function only so that the more derived return type is available without casting.
Implements ElementCriterion.
|
overridevirtual |
Destroys the object. This function is usually implemented by calling operator delete on the object.
Implements ElementCriterion.
bool getAllNodesMustPass | ( | ) | const |
ElementCriterionInRegion & operator= | ( | const ElementCriterionInRegion & | criterion | ) |
|
overridevirtual |
element | The element to be tested against the currently set region. |
When working out whether an element should be considered within a region, a test is performed to check whether each of its nodes is within the region. The criterion can be configured to pass when one or when all nodes are within the region. No attempt is made to determine if element edges, faces, etc. intersect the region - this test is purely based on the element's nodes.
Implements ElementCriterion.
void setAllNodesMustPass | ( | bool | b | ) |
b | If set to true, then all of an element's nodes must be within the region for the element to pass. The default is false, which means only one or more of the element's nodes has to be within the region for the element to pass. |
void setRegion | ( | const Region & | region | ) |
region | The new region to match nodes against. |