VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkLookupTableWithEnabling.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00035 #ifndef vtkLookupTableWithEnabling_h 00036 #define vtkLookupTableWithEnabling_h 00037 00038 #include "vtkRenderingCoreModule.h" // For export macro 00039 #include "vtkLookupTable.h" 00040 00041 class vtkDataArray; 00042 00043 class VTKRENDERINGCORE_EXPORT vtkLookupTableWithEnabling : public vtkLookupTable 00044 { 00045 public: 00046 static vtkLookupTableWithEnabling *New(); 00047 00048 vtkTypeMacro(vtkLookupTableWithEnabling,vtkLookupTable); 00049 void PrintSelf(ostream& os, vtkIndent indent); 00050 00052 00056 vtkGetObjectMacro(EnabledArray,vtkDataArray); 00057 virtual void SetEnabledArray(vtkDataArray *enabledArray); 00059 00061 00062 void MapScalarsThroughTable2(void *input, unsigned char *output, 00063 int inputDataType, int numberOfValues, 00064 int inputIncrement, int outputIncrement); 00066 00068 00069 virtual void DisableColor(unsigned char r, unsigned char g, unsigned char b, 00070 unsigned char *rd, unsigned char *gd, unsigned char *bd); 00072 00073 protected: 00074 vtkLookupTableWithEnabling(int sze=256, int ext=256); 00075 ~vtkLookupTableWithEnabling(); 00076 00077 vtkDataArray *EnabledArray; 00078 00079 private: 00080 vtkLookupTableWithEnabling(const vtkLookupTableWithEnabling&); // Not implemented. 00081 void operator=(const vtkLookupTableWithEnabling&); // Not implemented. 00082 }; 00083 00084 00085 #endif 00086 00087 00088