VTK  9.3.20240424
vtkApplyColors.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-FileCopyrightText: Copyright 2008 Sandia Corporation
3// SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
61#ifndef vtkApplyColors_h
62#define vtkApplyColors_h
63
65#include "vtkViewsInfovisModule.h" // For export macro
66
67VTK_ABI_NAMESPACE_BEGIN
70
71class VTKVIEWSINFOVIS_EXPORT vtkApplyColors : public vtkPassInputTypeAlgorithm
72{
73public:
76 void PrintSelf(ostream& os, vtkIndent indent) override;
77
79
84 vtkGetObjectMacro(PointLookupTable, vtkScalarsToColors);
86
88
92 vtkSetMacro(UsePointLookupTable, bool);
93 vtkGetMacro(UsePointLookupTable, bool);
94 vtkBooleanMacro(UsePointLookupTable, bool);
96
98
102 vtkSetMacro(ScalePointLookupTable, bool);
103 vtkGetMacro(ScalePointLookupTable, bool);
104 vtkBooleanMacro(ScalePointLookupTable, bool);
106
108
112 vtkSetVector3Macro(DefaultPointColor, double);
113 vtkGetVector3Macro(DefaultPointColor, double);
115
117
121 vtkSetMacro(DefaultPointOpacity, double);
122 vtkGetMacro(DefaultPointOpacity, double);
124
126
130 vtkSetVector3Macro(SelectedPointColor, double);
131 vtkGetVector3Macro(SelectedPointColor, double);
133
135
139 vtkSetMacro(SelectedPointOpacity, double);
140 vtkGetMacro(SelectedPointOpacity, double);
142
144
148 vtkSetStringMacro(PointColorOutputArrayName);
149 vtkGetStringMacro(PointColorOutputArrayName);
151
153
158 vtkGetObjectMacro(CellLookupTable, vtkScalarsToColors);
160
162
166 vtkSetMacro(UseCellLookupTable, bool);
167 vtkGetMacro(UseCellLookupTable, bool);
168 vtkBooleanMacro(UseCellLookupTable, bool);
170
172
176 vtkSetMacro(ScaleCellLookupTable, bool);
177 vtkGetMacro(ScaleCellLookupTable, bool);
178 vtkBooleanMacro(ScaleCellLookupTable, bool);
180
182
186 vtkSetVector3Macro(DefaultCellColor, double);
187 vtkGetVector3Macro(DefaultCellColor, double);
189
191
195 vtkSetMacro(DefaultCellOpacity, double);
196 vtkGetMacro(DefaultCellOpacity, double);
198
200
204 vtkSetVector3Macro(SelectedCellColor, double);
205 vtkGetVector3Macro(SelectedCellColor, double);
207
209
213 vtkSetMacro(SelectedCellOpacity, double);
214 vtkGetMacro(SelectedCellOpacity, double);
216
218
222 vtkSetStringMacro(CellColorOutputArrayName);
223 vtkGetStringMacro(CellColorOutputArrayName);
225
227
232 vtkSetMacro(UseCurrentAnnotationColor, bool);
233 vtkGetMacro(UseCurrentAnnotationColor, bool);
234 vtkBooleanMacro(UseCurrentAnnotationColor, bool);
236
241
242protected:
244 ~vtkApplyColors() override;
245
250
254 int FillInputPortInformation(int port, vtkInformation* info) override;
255
257 vtkAbstractArray* arr, unsigned char color[4], bool scale);
258
261 double DefaultPointColor[3];
263 double DefaultCellColor[3];
265 double SelectedPointColor[3];
267 double SelectedCellColor[3];
276
277private:
278 vtkApplyColors(const vtkApplyColors&) = delete;
279 void operator=(const vtkApplyColors&) = delete;
280};
281
282VTK_ABI_NAMESPACE_END
283#endif
Abstract superclass for all arrays.
apply colors to a data set.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Convert the vtkGraph into vtkPolyData.
void ProcessColorArray(vtkUnsignedCharArray *colorArr, vtkScalarsToColors *lut, vtkAbstractArray *arr, unsigned char color[4], bool scale)
char * PointColorOutputArrayName
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void SetPointLookupTable(vtkScalarsToColors *lut)
The lookup table to use for point colors.
vtkScalarsToColors * PointLookupTable
int FillInputPortInformation(int port, vtkInformation *info) override
Set the input type of the algorithm to vtkGraph.
virtual void SetCellLookupTable(vtkScalarsToColors *lut)
The lookup table to use for cell colors.
vtkScalarsToColors * CellLookupTable
double SelectedCellOpacity
bool UseCurrentAnnotationColor
double SelectedPointOpacity
static vtkApplyColors * New()
double DefaultCellOpacity
~vtkApplyColors() override
char * CellColorOutputArrayName
double DefaultPointOpacity
vtkMTimeType GetMTime() override
Retrieve the modified time for this filter.
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce output of the same type as input.
Superclass for mapping scalar values to colors.
dynamic, self-adjusting array of unsigned char
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:270