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 -------------------------------------------------------------------------*/
76 #ifndef vtkApplyColors_h
77 #define vtkApplyColors_h
78 
79 #include "vtkViewsInfovisModule.h" // For export macro
81 
82 class vtkScalarsToColors;
84 
86 {
87 public:
88  static vtkApplyColors *New();
90  void PrintSelf(ostream& os, vtkIndent indent);
91 
93 
95  virtual void SetPointLookupTable(vtkScalarsToColors* lut);
96  vtkGetObjectMacro(PointLookupTable, vtkScalarsToColors);
98 
100 
102  vtkSetMacro(UsePointLookupTable, bool);
103  vtkGetMacro(UsePointLookupTable, bool);
104  vtkBooleanMacro(UsePointLookupTable, bool);
106 
108 
110  vtkSetMacro(ScalePointLookupTable, bool);
111  vtkGetMacro(ScalePointLookupTable, bool);
112  vtkBooleanMacro(ScalePointLookupTable, bool);
114 
116 
118  vtkSetVector3Macro(DefaultPointColor, double);
119  vtkGetVector3Macro(DefaultPointColor, double);
121 
123 
125  vtkSetMacro(DefaultPointOpacity, double);
126  vtkGetMacro(DefaultPointOpacity, double);
128 
130 
132  vtkSetVector3Macro(SelectedPointColor, double);
133  vtkGetVector3Macro(SelectedPointColor, double);
135 
137 
139  vtkSetMacro(SelectedPointOpacity, double);
140  vtkGetMacro(SelectedPointOpacity, double);
142 
144 
146  vtkSetStringMacro(PointColorOutputArrayName);
147  vtkGetStringMacro(PointColorOutputArrayName);
149 
151 
153  virtual void SetCellLookupTable(vtkScalarsToColors* lut);
154  vtkGetObjectMacro(CellLookupTable, vtkScalarsToColors);
156 
158 
160  vtkSetMacro(UseCellLookupTable, bool);
161  vtkGetMacro(UseCellLookupTable, bool);
162  vtkBooleanMacro(UseCellLookupTable, bool);
164 
166 
168  vtkSetMacro(ScaleCellLookupTable, bool);
169  vtkGetMacro(ScaleCellLookupTable, bool);
170  vtkBooleanMacro(ScaleCellLookupTable, bool);
172 
174 
176  vtkSetVector3Macro(DefaultCellColor, double);
177  vtkGetVector3Macro(DefaultCellColor, double);
179 
181 
183  vtkSetMacro(DefaultCellOpacity, double);
184  vtkGetMacro(DefaultCellOpacity, double);
186 
188 
190  vtkSetVector3Macro(SelectedCellColor, double);
191  vtkGetVector3Macro(SelectedCellColor, double);
193 
195 
197  vtkSetMacro(SelectedCellOpacity, double);
198  vtkGetMacro(SelectedCellOpacity, double);
200 
202 
204  vtkSetStringMacro(CellColorOutputArrayName);
205  vtkGetStringMacro(CellColorOutputArrayName);
207 
209 
212  vtkSetMacro(UseCurrentAnnotationColor, bool);
213  vtkGetMacro(UseCurrentAnnotationColor, bool);
214  vtkBooleanMacro(UseCurrentAnnotationColor, bool);
216 
218  virtual long unsigned int GetMTime();
219 
220 protected:
221  vtkApplyColors();
222  ~vtkApplyColors();
223 
225 
226  int RequestData(
229 
232 
233  void ProcessColorArray(
234  vtkUnsignedCharArray* colorArr,
235  vtkScalarsToColors* lut,
236  vtkAbstractArray* arr,
237  unsigned char color[4],
238  bool scale);
239 
242  double DefaultPointColor[3];
244  double DefaultCellColor[3];
246  double SelectedPointColor[3];
248  double SelectedCellColor[3];
257 
258 private:
259  vtkApplyColors(const vtkApplyColors&); // Not implemented.
260  void operator=(const vtkApplyColors&); // Not implemented.
261 };
262 
263 #endif
bool UseCurrentAnnotationColor
Superclass for algorithms that produce output of the same type as input.
Store vtkAlgorithm input/output information.
Abstract superclass for all arrays.
double SelectedCellOpacity
char * PointColorOutputArrayName
double DefaultCellOpacity
double DefaultPointOpacity
Superclass for mapping scalar values to colors.
virtual int FillInputPortInformation(int port, vtkInformation *info)
vtkScalarsToColors * CellLookupTable
virtual unsigned long GetMTime()
a simple class to control print indentation
Definition: vtkIndent.h:38
dynamic, self-adjusting array of unsigned char
void PrintSelf(ostream &os, vtkIndent indent)
char * CellColorOutputArrayName
double SelectedPointOpacity
Store zero or more vtkInformation instances.
apply colors to a data set.
#define VTKVIEWSINFOVIS_EXPORT
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
static vtkPassInputTypeAlgorithm * New()
vtkScalarsToColors * PointLookupTable
bool ScalePointLookupTable