Typedefs | |
using | FilterValueBitset = std::bitset< FilterValueLength > |
A std::bitset sized to provide one bit per FilterValue value. More... | |
Enumerations | |
enum class | FilterValue { All = 0 , Geometric = 1 , Datums = 2 , Named = 3 , NonDriving = 4 , Coincident = 5 , PointOnObject = 6 , Vertical = 7 , Horizontal = 8 , Parallel = 9 , Perpendicular = 10 , Tangent = 11 , Equality = 12 , Symmetric = 13 , Block = 14 , HorizontalDistance = 15 , VerticalDistance = 16 , Distance = 17 , Radius = 18 , Weight = 19 , Diameter = 20 , Angle = 21 , SnellsLaw = 22 , InternalAlignment = 23 , NumFilterValue } |
enum class | SpecialFilterValue { Multiple = FilterValueLength , Selection , AssociatedConstraints , NumSpecialFilterValue } |
Functions | |
template<typename... Args> | |
constexpr decltype(auto) | buildBitset (Args... args) |
Helper function expanding a parameter pack value of enum classes to create a integral underlying type having the bits corresponding to the parameter pack set. More... | |
bool | checkFilterBitset (FilterValueBitset set, FilterValue filter) |
Helper function to test whether a FilterValue value is set in a FilterValueBitset. More... | |
template<typename T > | |
auto | getFilterIntegral (T filterValue) |
Helper function to retrieve the underlying integral type of a filter value. More... | |
template<typename T > | |
bool | isFilterMatch (T filterValue, std::underlying_type_t< T > integralTypeValue) |
Helper function to test whether a provided integral value corresponds to the provided filter value. More... | |
Variables | |
constexpr std::array< FilterValueBitset, FilterValueLength > | filterAggregates |
Array of FilterValue bit sets of size the the number of FilterValues indicating for each FilterValue, which other FilterValues are comprised therein. More... | |
constexpr auto | FilterValueLength = static_cast<std::underlying_type_t<FilterValue>>(FilterValue::NumFilterValue) |
constexpr auto | SpecialFilterValue = static_cast<std::underlying_type_t<FilterValue>>(SpecialFilterValue::NumSpecialFilterValue) |
using SketcherGui::ConstraintFilter::FilterValueBitset = typedef std::bitset<FilterValueLength> |
A std::bitset sized to provide one bit per FilterValue value.
|
strong |
|
strong |
|
constexpr |
Helper function expanding a parameter pack value of enum classes to create a integral underlying type having the bits corresponding to the parameter pack set.
bool SketcherGui::ConstraintFilter::checkFilterBitset | ( | FilterValueBitset | set, |
FilterValue | filter | ||
) |
Helper function to test whether a FilterValue value is set in a FilterValueBitset.
auto SketcherGui::ConstraintFilter::getFilterIntegral | ( | T | filterValue | ) |
Helper function to retrieve the underlying integral type of a filter value.
Referenced by SketcherGui::TaskSketcherConstraints::on_multipleFilterButton_clicked().
bool SketcherGui::ConstraintFilter::isFilterMatch | ( | T | filterValue, |
std::underlying_type_t< T > | integralTypeValue | ||
) |
Helper function to test whether a provided integral value corresponds to the provided filter value.
Referenced by SketcherGui::TaskSketcherConstraints::on_comboBoxFilter_currentIndexChanged(), and SketcherGui::TaskSketcherConstraints::on_multipleFilterButton_clicked().
|
constexpr |
Array of FilterValue bit sets of size the the number of FilterValues indicating for each FilterValue, which other FilterValues are comprised therein.
It defines the dependencies between filters.
Referenced by SketcherGui::ConstraintMultiFilterDialog::on_listMultiFilter_itemChanged().
|
constexpr |
|
constexpr |