TTK
Loading...
Searching...
No Matches
ttkMatrixToHeatMap.h
Go to the documentation of this file.
1
16#pragma once
17
18#include <ttkMatrixToHeatMapModule.h>
19
20#include <ttkAlgorithm.h>
21
22#include <string>
23#include <vector>
24
25class TTKMATRIXTOHEATMAP_EXPORT ttkMatrixToHeatMap : public ttkAlgorithm {
26public:
29
30 void SetScalarFields(const std::string &s) {
31 ScalarFields.emplace_back(s);
32 Modified();
33 }
35 ScalarFields.clear();
36 Modified();
37 }
38
39 vtkSetMacro(SelectFieldsWithRegexp, bool);
40 vtkGetMacro(SelectFieldsWithRegexp, bool);
41
42 vtkSetMacro(RegexpString, const std::string &);
43 vtkGetMacro(RegexpString, std::string);
44
45protected:
47 ~ttkMatrixToHeatMap() override = default;
48
49 int FillInputPortInformation(int port, vtkInformation *info) override;
50 int FillOutputPortInformation(int port, vtkInformation *info) override;
51 int RequestData(vtkInformation *request,
52 vtkInformationVector **inputVector,
53 vtkInformationVector *outputVector) override;
54
55private:
56 bool SelectFieldsWithRegexp{false};
57 std::string RegexpString{".*"};
58 std::vector<std::string> ScalarFields;
59};
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
Generates a Heat Map from a Distance Matrix stored into a vtkTable.
void SetScalarFields(const std::string &s)
static ttkMatrixToHeatMap * New()
~ttkMatrixToHeatMap() override=default