OGS
VtkAppendArrayFilter.h
Go to the documentation of this file.
1
15#pragma once
16
17// ** INCLUDES **
19
20#include <vtkUnstructuredGridAlgorithm.h>
21
22#include <vector>
23
26class VtkAppendArrayFilter : public vtkUnstructuredGridAlgorithm, public VtkAlgorithmProperties
27{
28public:
31
32 vtkTypeMacro(VtkAppendArrayFilter, vtkUnstructuredGridAlgorithm);
33
35 void PrintSelf(ostream& os, vtkIndent indent) override;
36
38 void SetUserProperty(QString name, QVariant value) override
39 {
40 Q_UNUSED(name);
41 Q_UNUSED(value);
42 }
43
44 void SetArray(const std::string& array_name,
45 const std::vector<double>& new_array);
46
47protected:
50
52 int RequestData(vtkInformation* request,
53 vtkInformationVector** inputVector,
54 vtkInformationVector* outputVector) override;
55
56private:
57 std::vector<double> _array;
58 std::string _array_name;
59};
Definition of the VtkAlgorithmProperties class.
Contains properties for the visualization of objects as VtkVisPipelineItems.
static VtkAppendArrayFilter * New()
Create new objects with New() because of VTKs object reference counting.
std::vector< double > _array
void SetArray(const std::string &array_name, const std::vector< double > &new_array)
vtkTypeMacro(VtkAppendArrayFilter, vtkUnstructuredGridAlgorithm)
void SetUserProperty(QString name, QVariant value) override
Sets user properties.
~VtkAppendArrayFilter() override
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
The filter logic.
void PrintSelf(ostream &os, vtkIndent indent) override
Prints the mesh data to an output stream.