vtkLookupTableItem.h 1.6 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
/*=========================================================================

  Program:   Visualization Toolkit
  Module:    vtkLookupTableItem.h

  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
  All rights reserved.
  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.

     This software is distributed WITHOUT ANY WARRANTY; without even
     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
     PURPOSE.  See the above copyright notice for more information.

=========================================================================*/

16 17
#ifndef vtkLookupTableItem_h
#define vtkLookupTableItem_h
18

19
#include "vtkChartsCoreModule.h" // For export macro
20 21 22 23
#include "vtkScalarsToColorsItem.h"

class vtkLookupTable;

24 25 26
// Description:
// vtkPlot::Color, vtkPlot::Brush, vtkScalarsToColors::DrawPolyLine,
// vtkScalarsToColors::MaskAboveCurve have no effect here.
27
class VTKCHARTSCORE_EXPORT vtkLookupTableItem: public vtkScalarsToColorsItem
28 29 30 31
{
public:
  static vtkLookupTableItem* New();
  vtkTypeMacro(vtkLookupTableItem, vtkScalarsToColorsItem);
32
  void PrintSelf(ostream &os, vtkIndent indent) override;
33 34 35 36 37 38

  void SetLookupTable(vtkLookupTable* t);
  vtkGetObjectMacro(LookupTable, vtkLookupTable);

protected:
  vtkLookupTableItem();
39
  ~vtkLookupTableItem() override;
40

41 42
  // Description:
  // Reimplemented to return the range of the lookup table
43
  void ComputeBounds(double bounds[4]) override;
44 45


46
  void ComputeTexture() override;
47
  vtkLookupTable* LookupTable;
48 49

private:
50 51
  vtkLookupTableItem(const vtkLookupTableItem &) = delete;
  void operator=(const vtkLookupTableItem &) = delete;
52 53 54
};

#endif