OGS
VtkCompositeElementSelectionFilter.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2// SPDX-License-Identifier: BSD-3-Clause
3
4#pragma once
5
7
8#include <vector>
9
10class vtkThreshold;
11
13
16{
17public:
18 explicit VtkCompositeElementSelectionFilter(vtkAlgorithm* inputAlgorithm);
20
21 void init() override;
22
23 // Sets the range for the quality measure (default is [0,1] but this may vary for area- and volume-metrics).
24 void setRange(double min_val, double max_val) { _range = std::make_pair(min_val, max_val); }
25
26 void setSelectionArray(const std::string &selection_name, const std::vector<double> &selection = std::vector<double>());
27
28 void SetUserVectorProperty(QString name, QList<QVariant> values) override;
29
30private:
33
34 std::pair<double, double> _range;
35 std::string _selection_name;
36 std::vector<double> _selection;
37};
Calculates and stores a colour lookup table.
VtkCompositeElementSelectionFilter(vtkAlgorithm *inputAlgorithm)
void setSelectionArray(const std::string &selection_name, const std::vector< double > &selection=std::vector< double >())
~VtkCompositeElementSelectionFilter() override=default
void setRange(double min_val, double max_val)
void SetUserVectorProperty(QString name, QList< QVariant > values) override
Sets a vector user property. This should be implemented by subclasses.
VtkColorLookupTable * GetLookupTable()
Returns a colour lookup table optimised for quality measures.
VtkCompositeFilter(vtkAlgorithm *inputAlgorithm)
Constructor.