VTK
vtkApplyColors.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkApplyColors.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 /*-------------------------------------------------------------------------
16  Copyright 2008 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
77 #ifndef vtkApplyColors_h
78 #define vtkApplyColors_h
79 
80 #include "vtkViewsInfovisModule.h" // For export macro
82 
83 class vtkScalarsToColors;
85 
86 class VTKVIEWSINFOVIS_EXPORT vtkApplyColors : public vtkPassInputTypeAlgorithm
87 {
88 public:
89  static vtkApplyColors *New();
91  void PrintSelf(ostream& os, vtkIndent indent);
92 
94 
99  vtkGetObjectMacro(PointLookupTable, vtkScalarsToColors);
101 
103 
107  vtkSetMacro(UsePointLookupTable, bool);
108  vtkGetMacro(UsePointLookupTable, bool);
109  vtkBooleanMacro(UsePointLookupTable, bool);
111 
113 
117  vtkSetMacro(ScalePointLookupTable, bool);
118  vtkGetMacro(ScalePointLookupTable, bool);
119  vtkBooleanMacro(ScalePointLookupTable, bool);
121 
123 
127  vtkSetVector3Macro(DefaultPointColor, double);
128  vtkGetVector3Macro(DefaultPointColor, double);
130 
132 
136  vtkSetMacro(DefaultPointOpacity, double);
137  vtkGetMacro(DefaultPointOpacity, double);
139 
141 
145  vtkSetVector3Macro(SelectedPointColor, double);
146  vtkGetVector3Macro(SelectedPointColor, double);
148 
150 
154  vtkSetMacro(SelectedPointOpacity, double);
155  vtkGetMacro(SelectedPointOpacity, double);
157 
159 
163  vtkSetStringMacro(PointColorOutputArrayName);
164  vtkGetStringMacro(PointColorOutputArrayName);
166 
168 
173  vtkGetObjectMacro(CellLookupTable, vtkScalarsToColors);
175 
177 
181  vtkSetMacro(UseCellLookupTable, bool);
182  vtkGetMacro(UseCellLookupTable, bool);
183  vtkBooleanMacro(UseCellLookupTable, bool);
185 
187 
191  vtkSetMacro(ScaleCellLookupTable, bool);
192  vtkGetMacro(ScaleCellLookupTable, bool);
193  vtkBooleanMacro(ScaleCellLookupTable, bool);
195 
197 
201  vtkSetVector3Macro(DefaultCellColor, double);
202  vtkGetVector3Macro(DefaultCellColor, double);
204 
206 
210  vtkSetMacro(DefaultCellOpacity, double);
211  vtkGetMacro(DefaultCellOpacity, double);
213 
215 
219  vtkSetVector3Macro(SelectedCellColor, double);
220  vtkGetVector3Macro(SelectedCellColor, double);
222 
224 
228  vtkSetMacro(SelectedCellOpacity, double);
229  vtkGetMacro(SelectedCellOpacity, double);
231 
233 
237  vtkSetStringMacro(CellColorOutputArrayName);
238  vtkGetStringMacro(CellColorOutputArrayName);
240 
242 
247  vtkSetMacro(UseCurrentAnnotationColor, bool);
248  vtkGetMacro(UseCurrentAnnotationColor, bool);
249  vtkBooleanMacro(UseCurrentAnnotationColor, bool);
251 
256 
257 protected:
260 
266 
271 
273  vtkUnsignedCharArray* colorArr,
274  vtkScalarsToColors* lut,
275  vtkAbstractArray* arr,
276  unsigned char color[4],
277  bool scale);
278 
281  double DefaultPointColor[3];
283  double DefaultCellColor[3];
285  double SelectedPointColor[3];
287  double SelectedCellColor[3];
296 
297 private:
298  vtkApplyColors(const vtkApplyColors&) VTK_DELETE_FUNCTION;
299  void operator=(const vtkApplyColors&) VTK_DELETE_FUNCTION;
300 };
301 
302 #endif
Abstract superclass for all arrays.
apply colors to a data set.
void ProcessColorArray(vtkUnsignedCharArray *colorArr, vtkScalarsToColors *lut, vtkAbstractArray *arr, unsigned char color[4], bool scale)
char * PointColorOutputArrayName
virtual void SetPointLookupTable(vtkScalarsToColors *lut)
The lookup table to use for point colors.
vtkScalarsToColors * PointLookupTable
virtual vtkMTimeType GetMTime()
Retrieve the modified time for this filter.
virtual void SetCellLookupTable(vtkScalarsToColors *lut)
The lookup table to use for cell colors.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkScalarsToColors * CellLookupTable
double SelectedCellOpacity
bool UseCurrentAnnotationColor
double SelectedPointOpacity
double DefaultCellOpacity
char * CellColorOutputArrayName
static vtkApplyColors * New()
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Convert the vtkGraph into vtkPolyData.
bool ScalePointLookupTable
double DefaultPointOpacity
int FillInputPortInformation(int port, vtkInformation *info)
Set the input type of the algorithm to vtkGraph.
a simple class to control print indentation
Definition: vtkIndent.h:40
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
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
@ scale
Definition: vtkX3D.h:229
@ color
Definition: vtkX3D.h:221
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248