OGS
VtkCompositeElementSelectionFilter.h
Go to the documentation of this file.
1
15#pragma once
16
17#include "VtkCompositeFilter.h"
18
19#include <vector>
20
21class vtkThreshold;
22
24
27{
28public:
29 explicit VtkCompositeElementSelectionFilter(vtkAlgorithm* inputAlgorithm);
31
32 void init() override;
33
34 // Sets the range for the quality measure (default is [0,1] but this may vary for area- and volume-metrics).
35 void setRange(double min_val, double max_val) { _range = std::make_pair(min_val, max_val); }
36
37 void setSelectionArray(const std::string &selection_name, const std::vector<double> &selection = std::vector<double>());
38
39 void SetUserVectorProperty(QString name, QList<QVariant> values) override;
40
41private:
44
45 std::pair<double, double> _range;
46 std::string _selection_name;
47 std::vector<double> _selection;
48};
Definition of the VtkCompositeFilter class.
Calculates and stores a colour lookup table.
This filter selects/thresholds elements based on the selected array.
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.
Is used to combine several filter in one VtkVisPipelineItem. You can use vtk filter and custom filter...