TTK
Loading...
Searching...
No Matches
ttkCinemaDarkroomColorMapping.h
Go to the documentation of this file.
1
21
22#pragma once
23
24// VTK Module
25#include <ttkCinemaDarkroomModule.h>
27
28class TTKCINEMADARKROOM_EXPORT ttkCinemaDarkroomColorMapping
30private:
31 static const std::vector<std::vector<double>> ColorMaps;
32
33 double ValueRange[2]{0, 1};
34 int ColorMap{0};
35 std::string ManualColorMap{""};
36 double SingleColor[3]{0, 0, 0};
37 double NANColor[3]{0, 0, 0};
38
39public:
40 vtkSetVector2Macro(ValueRange, double);
41 vtkGetVector2Macro(ValueRange, double);
42 vtkSetMacro(ColorMap, int);
43 vtkGetMacro(ColorMap, int);
44 vtkSetMacro(ManualColorMap, const std::string &);
45 vtkGetMacro(ManualColorMap, std::string);
46 vtkSetVector3Macro(NANColor, double);
47 vtkGetVector3Macro(NANColor, double);
48 vtkSetVector3Macro(SingleColor, double);
49 vtkGetVector3Macro(SingleColor, double);
50
53
54protected:
57
58 int RequestData(vtkInformation *request,
59 vtkInformationVector **inputVector,
60 vtkInformationVector *outputVector) override;
61};
virtual int RequestData(vtkInformation *ttkNotUsed(request), vtkInformationVector **ttkNotUsed(inputVectors), vtkInformationVector *ttkNotUsed(outputVector))
Definition: ttkAlgorithm.h:390
Performs color mapping of a scalar field.
static ttkCinemaDarkroomColorMapping * New()
~ttkCinemaDarkroomColorMapping() override
Base Class for all CinemaDarkroom Shaders.