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

  Program:   Visualization Toolkit
  Module:    vtkColorTransferFunctionItem.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 vtkColorTransferFunctionItem_h
#define vtkColorTransferFunctionItem_h
18

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

class vtkColorTransferFunction;
class vtkImageData;

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

  void SetColorTransferFunction(vtkColorTransferFunction* t);
  vtkGetObjectMacro(ColorTransferFunction, vtkColorTransferFunction);
37

38 39 40 41
protected:
  vtkColorTransferFunctionItem();
  virtual ~vtkColorTransferFunctionItem();

42 43 44 45 46
  // Description:
  // Returns true if we are rendering in log space.
  virtual bool UsingLogScale();


47 48 49
  // Description:
  // Reimplemented to return the range of the lookup table
  virtual void ComputeBounds(double bounds[4]);
50

51 52
  virtual void ComputeTexture();
  vtkColorTransferFunction* ColorTransferFunction;
53
private:
54
  vtkColorTransferFunctionItem(const vtkColorTransferFunctionItem&) VTK_DELETE_FUNCTION;
55
  void operator=(const vtkColorTransferFunctionItem&) VTK_DELETE_FUNCTION;
56 57 58
};

#endif