TTK
Loading...
Searching...
No Matches
ttkProjectionFromField.h
Go to the documentation of this file.
1
42
43#pragma once
44
45// VTK Module
46#include <ttkProjectionFromFieldModule.h>
47
48// ttk code includes
49#include <ttkAlgorithm.h>
50
51class vtkUnstructuredGrid;
52
53class TTKPROJECTIONFROMFIELD_EXPORT ttkProjectionFromField
54 : public ttkAlgorithm {
55
56public:
58
60
61 vtkSetMacro(UseTextureCoordinates, bool);
62 vtkGetMacro(UseTextureCoordinates, bool);
63
64 vtkSetMacro(Use3DCoordinatesArray, bool);
65 vtkGetMacro(Use3DCoordinatesArray, bool);
66
67 vtkSetMacro(ProjectPersistenceDiagram, bool);
68 vtkGetMacro(ProjectPersistenceDiagram, bool);
69
70protected:
72
73 int FillInputPortInformation(int port, vtkInformation *info) override;
74
75 int FillOutputPortInformation(int port, vtkInformation *info) override;
76
80 int projectPersistenceDiagram(vtkUnstructuredGrid *const inputDiagram,
81 vtkUnstructuredGrid *const outputDiagram);
82
83 int RequestData(vtkInformation *request,
84 vtkInformationVector **inputVector,
85 vtkInformationVector *outputVector) override;
86
87private:
88 bool ProjectPersistenceDiagram{false};
89 bool UseTextureCoordinates{false};
90 bool Use3DCoordinatesArray{false};
91};
Baseclass of all VTK filters that wrap ttk modules.
Definition: ttkAlgorithm.h:34
virtual int RequestData(vtkInformation *ttkNotUsed(request), vtkInformationVector **ttkNotUsed(inputVectors), vtkInformationVector *ttkNotUsed(outputVector))
Definition: ttkAlgorithm.h:390
int FillInputPortInformation(int ttkNotUsed(port), vtkInformation *ttkNotUsed(info)) override
Definition: ttkAlgorithm.h:404
int FillOutputPortInformation(int ttkNotUsed(port), vtkInformation *ttkNotUsed(info)) override
Definition: ttkAlgorithm.h:419
TTK VTK-filter which projects a data-set to 2D given two point-data scalar fields to be used as 2D co...
static ttkProjectionFromField * New()