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 
80 
81 class vtkScalarsToColors;
83 
85 {
86 public:
87  static vtkApplyColors *New();
89  void PrintSelf(ostream& os, vtkIndent indent);
90 
92 
94  virtual void SetPointLookupTable(vtkScalarsToColors* lut);
95  vtkGetObjectMacro(PointLookupTable, vtkScalarsToColors);
97 
99 
101  vtkSetMacro(UsePointLookupTable, bool);
102  vtkGetMacro(UsePointLookupTable, bool);
103  vtkBooleanMacro(UsePointLookupTable, bool);
105 
107 
109  vtkSetMacro(ScalePointLookupTable, bool);
110  vtkGetMacro(ScalePointLookupTable, bool);
111  vtkBooleanMacro(ScalePointLookupTable, bool);
113 
115 
117  vtkSetVector3Macro(DefaultPointColor, double);
118  vtkGetVector3Macro(DefaultPointColor, double);
120 
122 
124  vtkSetMacro(DefaultPointOpacity, double);
125  vtkGetMacro(DefaultPointOpacity, double);
127 
129 
131  vtkSetVector3Macro(SelectedPointColor, double);
132  vtkGetVector3Macro(SelectedPointColor, double);
134 
136 
138  vtkSetMacro(SelectedPointOpacity, double);
139  vtkGetMacro(SelectedPointOpacity, double);
141 
143 
145  vtkSetStringMacro(PointColorOutputArrayName);
146  vtkGetStringMacro(PointColorOutputArrayName);
148 
150 
152  virtual void SetCellLookupTable(vtkScalarsToColors* lut);
153  vtkGetObjectMacro(CellLookupTable, vtkScalarsToColors);
155 
157 
159  vtkSetMacro(UseCellLookupTable, bool);
160  vtkGetMacro(UseCellLookupTable, bool);
161  vtkBooleanMacro(UseCellLookupTable, bool);
163 
165 
167  vtkSetMacro(ScaleCellLookupTable, bool);
168  vtkGetMacro(ScaleCellLookupTable, bool);
169  vtkBooleanMacro(ScaleCellLookupTable, bool);
171 
173 
175  vtkSetVector3Macro(DefaultCellColor, double);
176  vtkGetVector3Macro(DefaultCellColor, double);
178 
180 
182  vtkSetMacro(DefaultCellOpacity, double);
183  vtkGetMacro(DefaultCellOpacity, double);
185 
187 
189  vtkSetVector3Macro(SelectedCellColor, double);
190  vtkGetVector3Macro(SelectedCellColor, double);
192 
194 
196  vtkSetMacro(SelectedCellOpacity, double);
197  vtkGetMacro(SelectedCellOpacity, double);
199 
201 
203  vtkSetStringMacro(CellColorOutputArrayName);
204  vtkGetStringMacro(CellColorOutputArrayName);
206 
208 
211  vtkSetMacro(UseCurrentAnnotationColor, bool);
212  vtkGetMacro(UseCurrentAnnotationColor, bool);
213  vtkBooleanMacro(UseCurrentAnnotationColor, bool);
215 
216 protected:
217  vtkApplyColors();
218  ~vtkApplyColors();
219 
221 
222  int RequestData(
225 
228 
229  void ProcessColorArray(
230  vtkUnsignedCharArray* colorArr,
231  vtkScalarsToColors* lut,
232  vtkAbstractArray* arr,
233  unsigned char color[4],
234  bool scale);
235 
238  double DefaultPointColor[3];
240  double DefaultCellColor[3];
242  double SelectedPointColor[3];
244  double SelectedCellColor[3];
253 
254 private:
255  vtkApplyColors(const vtkApplyColors&); // Not implemented.
256  void operator=(const vtkApplyColors&); // Not implemented.
257 };
258 
259 #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 into colors.
virtual int FillInputPortInformation(int port, vtkInformation *info)
vtkScalarsToColors * CellLookupTable
a simple class to control print indentation
Definition: vtkIndent.h:37
dynamic, self-adjusting array of unsigned char
void PrintSelf(ostream &os, vtkIndent indent)
#define VTK_INFOVIS_EXPORT
char * CellColorOutputArrayName
double SelectedPointOpacity
Store zero or more vtkInformation instances.
apply colors to a data set.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
static vtkPassInputTypeAlgorithm * New()
vtkScalarsToColors * PointLookupTable
bool ScalePointLookupTable