TTK
Loading...
Searching...
No Matches
ttkIdentifiers.h
Go to the documentation of this file.
1
22
23#pragma once
24
25// VTK includes -- to adapt
26
27// VTK Module
28#include <ttkIdentifiersModule.h>
29
30// ttk code includes
31#include <Identifiers.h>
32#include <ttkAlgorithm.h>
33
34// in this example, this wrapper takes a data-set on the input and produces a
35// data-set on the output - to adapt.
36// see the documentation of the vtkAlgorithm class to decide from which VTK
37// class your wrapper should inherit.
38
39class TTKIDENTIFIERS_EXPORT ttkIdentifiers : public ttkAlgorithm,
40 protected ttk::Identifiers {
41
42public:
44
46
47 vtkSetMacro(CellFieldName, const std::string &);
48 vtkGetMacro(CellFieldName, std::string);
49
50 vtkSetMacro(VertexFieldName, const std::string &);
51 vtkGetMacro(VertexFieldName, std::string);
52
53protected:
55
56 ~ttkIdentifiers() override;
57
58 int FillInputPortInformation(int port, vtkInformation *info) override;
59
60 int FillOutputPortInformation(int port, vtkInformation *info) override;
61
62 int RequestData(vtkInformation *request,
63 vtkInformationVector **inputVector,
64 vtkInformationVector *outputVector) override;
65
66private:
67 std::string CellFieldName{ttk::CellScalarFieldName},
68 VertexFieldName{ttk::VertexScalarFieldName};
69};
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 that triggers the computation of global identifiers.
static ttkIdentifiers * New()
~ttkIdentifiers() override
const char CellScalarFieldName[]
default name for cell scalar field
Definition: DataTypes.h:38
const char VertexScalarFieldName[]
default name for vertex scalar field
Definition: DataTypes.h:35