OGS
VtkFilterFactory.h
Go to the documentation of this file.
1
15#pragma once
16
17#include <QString>
18#include <QVector>
19#include <vtkSetGet.h>
20
22class vtkAlgorithm;
23struct VtkFilterInfo;
24
27{
28public:
29 //VtkFilterFactory();
30 //virtual ~VtkFilterFactory();
31
35 static QVector<VtkFilterInfo> GetFilterList();
36
38 static VtkCompositeFilter* CreateCompositeFilter(QString type, vtkAlgorithm* inputAlgorithm);
39
41 static vtkAlgorithm* CreateSimpleFilter(QString type);
42};
43
46{
53 VtkFilterInfo(QString name, QString readableName, QString description,
55 {
56 this->name = name;
57 this->readableName = readableName;
58 this->description = description;
59 this->inputDataObjectType = inputDataObjectType;
60 this->outputDataObjectType = outputDataObjectType;
61 }
62
65 {
66 this->name = QString();
67 this->readableName = QString();
68 this->description = QString();
69 this->inputDataObjectType = -1;
70 this->outputDataObjectType = -1;
71 }
72
75 {
77 {
78 case VTK_POLY_DATA: return QString("vtkPolyData");
79 case VTK_STRUCTURED_POINTS: return QString("vtkStructuredPoints");
80 case VTK_STRUCTURED_GRID: return QString("vtkStructuredGrid");
81 case VTK_RECTILINEAR_GRID: return QString("vtkRectilinearGrid");
82 case VTK_UNSTRUCTURED_GRID: return QString("vtkUnstructuredGrid");
83 case VTK_IMAGE_DATA: return QString("vtkImageData");
84 case VTK_DATA_SET: return QString("vtkDataSet");
85 default: return QString("Data type not defined!");
86 }
87 }
88
89 QString name;
90 QString readableName;
91 QString description;
94};
Is used to combine several filter in one VtkVisPipelineItem. You can use vtk filter and custom filter...
Creates registered filter objects by name.
static QVector< VtkFilterInfo > GetFilterList()
Returns all registered filters. New VtkCompositeFilter or filter inherited from VtkAlgorithmPropertie...
static VtkCompositeFilter * CreateCompositeFilter(QString type, vtkAlgorithm *inputAlgorithm)
Creates a composite filter by name.
static vtkAlgorithm * CreateSimpleFilter(QString type)
Creates a normal filter name.
Holds meta information about a filter.
VtkFilterInfo()
Default constructor.
QString OutputDataObjectTypeAsString() const
Returns the data type as a string.
VtkFilterInfo(QString name, QString readableName, QString description, int inputDataObjectType, int outputDataObjectType)
Constructor.