TTK
Loading...
Searching...
No Matches
ttkTriangulationRequest.h
Go to the documentation of this file.
1
22#pragma once
23
24// ttk code includes
25#include <Triangulation.h>
26#include <ttkAlgorithm.h>
27#include <ttkMacros.h>
28
29// VTK Module
30#include <ttkTriangulationRequestModule.h>
31
32class TTKTRIANGULATIONREQUEST_EXPORT ttkTriangulationRequest
33 : public ttkAlgorithm {
34
35public:
36 enum class SIMPLEX {
37 VERTEX = 0,
38 EDGE = 1,
39 TRIANGLE = 2,
40 TETRA = 3,
41 };
42 enum class REQUEST {
43 COMPUTE_SIMPLEX = 0,
44 COMPUTE_FACET = 1,
45 COMPUTE_COFACET = 2,
46 COMPUTE_STAR = 3,
47 COMPUTE_LINK = 4,
48 COMPUTE_BOUNDARY = 5,
49 };
50
53
54 ttkSetEnumMacro(SimplexType, SIMPLEX);
55 vtkGetEnumMacro(SimplexType, SIMPLEX);
56
57 vtkSetMacro(SimplexIdentifier, const std::string &);
58 vtkGetMacro(SimplexIdentifier, std::string);
59
60 ttkSetEnumMacro(RequestType, REQUEST);
61 vtkGetEnumMacro(RequestType, REQUEST);
62
63 vtkSetMacro(KeepAllDataArrays, bool);
64 vtkGetMacro(KeepAllDataArrays, bool);
65
66protected:
68
69 int FillInputPortInformation(int port, vtkInformation *info) override;
70 int FillOutputPortInformation(int port, vtkInformation *info) override;
71 int RequestData(vtkInformation *request,
72 vtkInformationVector **inputVector,
73 vtkInformationVector *outputVector) override;
74
75private:
76 SIMPLEX SimplexType{};
77 REQUEST RequestType{};
78 std::string SimplexIdentifier{0};
79 bool KeepAllDataArrays{true};
80};
Baseclass of all VTK filters that wrap ttk modules.
virtual int RequestData(vtkInformation *ttkNotUsed(request), vtkInformationVector **ttkNotUsed(inputVectors), vtkInformationVector *ttkNotUsed(outputVector))
int FillInputPortInformation(int ttkNotUsed(port), vtkInformation *ttkNotUsed(info)) override
int FillOutputPortInformation(int ttkNotUsed(port), vtkInformation *ttkNotUsed(info)) override
TTK VTK-filter that wraps the triangulation processing package.
static ttkTriangulationRequest * New()
#define ttkSetEnumMacro(name, enumType)
Definition ttkMacros.h:38