VTK
dox/Common/vtkLookupTableWithEnabling.h
Go to the documentation of this file.
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 "vtkLookupTable.h"
00039 
00040 class vtkDataArray;
00041 
00042 class VTK_COMMON_EXPORT vtkLookupTableWithEnabling : public vtkLookupTable
00043 {
00044 public:
00045   static vtkLookupTableWithEnabling *New();
00046   
00047   vtkTypeMacro(vtkLookupTableWithEnabling,vtkLookupTable);
00048   void PrintSelf(ostream& os, vtkIndent indent);
00049   
00051 
00055   vtkGetObjectMacro(EnabledArray,vtkDataArray);
00056   virtual void SetEnabledArray(vtkDataArray *enabledArray);
00058 
00060 
00061   void MapScalarsThroughTable2(void *input, unsigned char *output,
00062                                int inputDataType, int numberOfValues,
00063                                int inputIncrement, int outputIncrement);
00065 
00067 
00068   virtual void DisableColor(unsigned char r, unsigned char g, unsigned char b,
00069                    unsigned char *rd, unsigned char *gd, unsigned char *bd);
00071 
00072 protected:
00073   vtkLookupTableWithEnabling(int sze=256, int ext=256);
00074   ~vtkLookupTableWithEnabling();
00075 
00076   vtkDataArray *EnabledArray;
00077   
00078 private:
00079   vtkLookupTableWithEnabling(const vtkLookupTableWithEnabling&);  // Not implemented.
00080   void operator=(const vtkLookupTableWithEnabling&);  // Not implemented.
00081 };
00082 
00083 
00084 #endif
00085 
00086 
00087