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 
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 
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:
223 
225 
229 
232 
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
vtkApplyColors::UsePointLookupTable
bool UsePointLookupTable
Definition: vtkApplyColors.h:252
vtkGetObjectMacro
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:232
vtkViewsInfovisModule.h
vtkPassInputTypeAlgorithm.h
vtkApplyColors::UseCellLookupTable
bool UseCellLookupTable
Definition: vtkApplyColors.h:253
vtkApplyColors::GetMTime
virtual long unsigned int GetMTime()
vtkSetVector3Macro
#define vtkSetVector3Macro(name, type)
Definition: vtkSetGet.h:287
vtkApplyColors::vtkApplyColors
vtkApplyColors()
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
VTKVIEWSINFOVIS_EXPORT
#define VTKVIEWSINFOVIS_EXPORT
Definition: vtkViewsInfovisModule.h:15
vtkApplyColors::PointColorOutputArrayName
char * PointColorOutputArrayName
Definition: vtkApplyColors.h:254
vtkApplyColors::UseCurrentAnnotationColor
bool UseCurrentAnnotationColor
Definition: vtkApplyColors.h:256
vtkgl::scale
GLenum GLenum GLenum GLenum GLenum scale
Definition: vtkgl.h:15942
vtkUnsignedCharArray
dynamic, self-adjusting array of unsigned char
Definition: vtkUnsignedCharArray.h:49
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkApplyColors::DefaultCellOpacity
double DefaultCellOpacity
Definition: vtkApplyColors.h:245
vtkApplyColors
apply colors to a data set.
Definition: vtkApplyColors.h:86
vtkApplyColors::CellLookupTable
vtkScalarsToColors * CellLookupTable
Definition: vtkApplyColors.h:241
vtkApplyColors::DefaultPointOpacity
double DefaultPointOpacity
Definition: vtkApplyColors.h:243
vtkApplyColors::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkGetVector3Macro
#define vtkGetVector3Macro(name, type)
Definition: vtkSetGet.h:304
vtkApplyColors::SelectedCellOpacity
double SelectedCellOpacity
Definition: vtkApplyColors.h:249
vtkApplyColors::SetPointLookupTable
virtual void SetPointLookupTable(vtkScalarsToColors *lut)
vtkApplyColors::CellColorOutputArrayName
char * CellColorOutputArrayName
Definition: vtkApplyColors.h:255
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSetStringMacro
#define vtkSetStringMacro(name)
Definition: vtkSetGet.h:104
vtkApplyColors::New
static vtkApplyColors * New()
vtkApplyColors::PointLookupTable
vtkScalarsToColors * PointLookupTable
Definition: vtkApplyColors.h:240
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkScalarsToColors
Superclass for mapping scalar values to colors.
Definition: vtkScalarsToColors.h:63
vtkGetStringMacro
vtkGetStringMacro(ExtensionsString)
vtkgl::color
GLuint color
Definition: vtkgl.h:12351
vtkApplyColors::SelectedPointOpacity
double SelectedPointOpacity
Definition: vtkApplyColors.h:247
vtkAbstractArray
Abstract superclass for all arrays.
Definition: vtkAbstractArray.h:65
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkApplyColors::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info)
vtkApplyColors::~vtkApplyColors
~vtkApplyColors()
vtkApplyColors::ScaleCellLookupTable
bool ScaleCellLookupTable
Definition: vtkApplyColors.h:251
vtkApplyColors::SetCellLookupTable
virtual void SetCellLookupTable(vtkScalarsToColors *lut)
vtkApplyColors::ScalePointLookupTable
bool ScalePointLookupTable
Definition: vtkApplyColors.h:250
vtkApplyColors::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkPassInputTypeAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition: vtkPassInputTypeAlgorithm.h:50
vtkApplyColors::ProcessColorArray
void ProcessColorArray(vtkUnsignedCharArray *colorArr, vtkScalarsToColors *lut, vtkAbstractArray *arr, unsigned char color[4], bool scale)