VTK
/Users/kitware/Dashboards/MyTests/VTK_BLD_Release_docs/Utilities/Doxygen/dox/Charts/Core/vtkLookupTableItem.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkLookupTableItem.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 =========================================================================*/
00015 
00016 #ifndef vtkLookupTableItem_h
00017 #define vtkLookupTableItem_h
00018 
00019 #include "vtkChartsCoreModule.h" // For export macro
00020 #include "vtkScalarsToColorsItem.h"
00021 
00022 class vtkLookupTable;
00023 
00024 // Description:
00025 // vtkPlot::Color, vtkPlot::Brush, vtkScalarsToColors::DrawPolyLine,
00026 // vtkScalarsToColors::MaskAboveCurve have no effect here.
00027 class VTKCHARTSCORE_EXPORT vtkLookupTableItem: public vtkScalarsToColorsItem
00028 {
00029 public:
00030   static vtkLookupTableItem* New();
00031   vtkTypeMacro(vtkLookupTableItem, vtkScalarsToColorsItem);
00032   virtual void PrintSelf(ostream &os, vtkIndent indent);
00033 
00034   void SetLookupTable(vtkLookupTable* t);
00035   vtkGetObjectMacro(LookupTable, vtkLookupTable);
00036 
00037 protected:
00038   vtkLookupTableItem();
00039   virtual ~vtkLookupTableItem();
00040 
00041   // Description:
00042   // Reimplemented to return the range of the lookup table
00043   virtual void ComputeBounds(double bounds[4]);
00044 
00045 
00046   virtual void ComputeTexture();
00047   vtkLookupTable* LookupTable;
00048 
00049 private:
00050   vtkLookupTableItem(const vtkLookupTableItem &); // Not implemented.
00051   void operator=(const vtkLookupTableItem &); // Not implemented.
00052 };
00053 
00054 #endif