![]() |
MineLink
|
Abstracts range filter function. More...
#include <filters.h>


Public Member Functions | |
| RangeFilter (const string &attr_name, const float &min_value, const float &max_value, const bool &strictlb=true) | |
| defines a range filter for a given attribute name, a range defined by a given min value and a given max value. More... | |
| void | AddRange (const string &attr_name, const float &min_value, const float &max_value, const bool &strictlb=true) |
| adds a range filter for a given attribute name, a range defined by a given min value and a given max value. More... | |
| virtual bool | Eval (const delphos::Block &block) const |
| Method that determine how the blocks are filtered. More... | |
Public Member Functions inherited from delphos::AxisRangeFilter | |
| AxisRangeFilter (const char &axis, const float &min_value, const float &max_value, const bool &strictlb=true) | |
| defines an axis range filter for a given axis, a range defined by a given min value and given max value. More... | |
| void | AddAxisRange (const char &axis, const float &min_value, const float &max_value, const bool &strictlb=true) |
| add an axis range filter for a given axis, a range defined by a given min value and a given max value. More... | |
Public Member Functions inherited from delphos::BlockFilter | |
| virtual | ~BlockFilter () |
| Destroys a block filter. | |
Abstracts range filter function.
| delphos::RangeFilter::RangeFilter | ( | const string & | attr_name, |
| const float & | min_value, | ||
| const float & | max_value, | ||
| const bool & | strictlb = true |
||
| ) |
defines a range filter for a given attribute name, a range defined by a given min value and a given max value.
| attr_name | An attribute name. |
| min_value | A minimum value for the axis. |
| max_value | A maximum value for the axis. |
| strictlb | A boolean that is equal to true when the minimum value for the axis is rejected. |
| void delphos::RangeFilter::AddRange | ( | const string & | attr_name, |
| const float & | min_value, | ||
| const float & | max_value, | ||
| const bool & | strictlb = true |
||
| ) |
adds a range filter for a given attribute name, a range defined by a given min value and a given max value.
| attr_name | An attribute name. |
| min_value | A minimum value for the axis. |
| max_value | A maximum value for the axis. |
| strictlb | A boolean that is equal to true when the minimum value for the axis is rejected. |
|
virtual |
Method that determine how the blocks are filtered.
The method return true if the block is kept, false if it is not.
Reimplemented from delphos::AxisRangeFilter.
Reimplemented in delphos::AccessibilityAndRangeFilter.