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 "vtkScalarsToColorsItem.h" 00020 00021 class vtkLookupTable; 00022 00023 // Description: 00024 // vtkPlot::Color, vtkPlot::Brush, vtkScalarsToColors::DrawPolyLine, 00025 // vtkScalarsToColors::MaskAboveCurve have no effect here. 00026 class VTK_CHARTS_EXPORT vtkLookupTableItem: public vtkScalarsToColorsItem 00027 { 00028 public: 00029 static vtkLookupTableItem* New(); 00030 vtkTypeMacro(vtkLookupTableItem, vtkScalarsToColorsItem); 00031 virtual void PrintSelf(ostream &os, vtkIndent indent); 00032 00033 // Description: 00034 // Reimplemented to return the range of the lookup table 00035 virtual void GetBounds(double bounds[4]); 00036 00037 void SetLookupTable(vtkLookupTable* t); 00038 vtkGetObjectMacro(LookupTable, vtkLookupTable); 00039 00040 protected: 00041 vtkLookupTableItem(); 00042 virtual ~vtkLookupTableItem(); 00043 00044 virtual void ComputeTexture(); 00045 vtkLookupTable* LookupTable; 00046 00047 private: 00048 vtkLookupTableItem(const vtkLookupTableItem &); // Not implemented. 00049 void operator=(const vtkLookupTableItem &); // Not implemented. 00050 }; 00051 00052 #endif