TTK
Loading...
Searching...
No Matches
ttkContinuousScatterPlot.h
Go to the documentation of this file.
1
44
45#pragma once
46
47// VTK Module
48#include <ttkContinuousScatterPlotModule.h>
49
50// ttk baseCode includes
52#include <ttkAlgorithm.h>
53
54class vtkDataArray;
55
56class TTKCONTINUOUSSCATTERPLOT_EXPORT ttkContinuousScatterPlot
57 : public ttkAlgorithm,
59
60public:
62
64
65 vtkSetMacro(WithDummyValue, bool);
66 vtkGetMacro(WithDummyValue, bool);
67
68 vtkSetMacro(DummyValue, double);
69 vtkGetMacro(DummyValue, double);
70
71 vtkSetMacro(ProjectImageSupport, bool);
72 vtkGetMacro(ProjectImageSupport, bool);
73
74 void SetScatterplotResolution(int N, int M) {
75 ScatterplotResolution[0] = N;
76 ScatterplotResolution[1] = M;
77 ScatterplotResolution[2] = 1;
78 this->Modified();
79 }
80
81protected:
84
85 int FillInputPortInformation(int port, vtkInformation *info) override;
86 int FillOutputPortInformation(int port, vtkInformation *info) override;
87 int RequestData(vtkInformation *request,
88 vtkInformationVector **inputVector,
89 vtkInformationVector *outputVector) override;
90
91private:
92 bool WithDummyValue{false};
93 double DummyValue{0};
94 bool ProjectImageSupport{true};
95 int ScatterplotResolution[3]{1920, 1080, 0};
96
97 template <typename dataType1, class triangulationType>
98 int dispatch(const dataType1 *scalars1,
99 vtkDataArray *inputScalars2,
100 const triangulationType *triangulation);
101};
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 computes the continuous scatterplot of bivariate volumetric data.
~ttkContinuousScatterPlot() override
void SetScatterplotResolution(int N, int M)
static ttkContinuousScatterPlot * New()
TTK processing package that computes the continuous scatterplot of bivariate volumetric data.