VTK
vtkColorTransferControlPointsItem.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkColorTransferControlPointsItem.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 
30 #ifndef __vtkColorTransferControlPointsItem_h
31 #define __vtkColorTransferControlPointsItem_h
32 
33 #include "vtkControlPointsItem.h"
34 
35 class vtkColorTransferFunction;
36 
38 {
39 public:
41  virtual void PrintSelf(ostream &os, vtkIndent indent);
42 
45 
47 
48  void SetColorTransferFunction(vtkColorTransferFunction* function);
49  // Description
50  // Get the piecewise function
51  vtkGetObjectMacro(ColorTransferFunction, vtkColorTransferFunction);
53 
57  virtual vtkIdType AddPoint(double* newPos);
58 
62  virtual vtkIdType RemovePoint(double* pos);
63 
65 
67  vtkSetMacro(ColorFill, bool);
68  vtkGetMacro(ColorFill, bool);
70 
71 protected:
74 
75  virtual unsigned long int GetControlPointsMTime();
76 
77  virtual void DrawPoint(vtkContext2D* painter, vtkIdType index);
78  virtual int GetNumberOfPoints()const;
79  virtual void GetControlPoint(vtkIdType index, double *point);
80  virtual void SetControlPoint(vtkIdType index, double *point);
81  virtual void EditPoint(float tX, float tY);
82 
83  vtkColorTransferFunction* ColorTransferFunction;
84 
85  bool ColorFill;
86 private:
88  void operator=(const vtkColorTransferControlPointsItem &); // Not implemented.
89 };
90 
91 #endif
#define VTK_CHARTS_EXPORT
virtual void EditPoint(float vtkNotUsed(tX), float vtkNotUsed(tY))
virtual vtkIdType RemovePoint(double *pos)
Abstract class for control points items.
virtual void GetControlPoint(vtkIdType index, double *point)=0
virtual vtkIdType AddPoint(double *newPos)
int vtkIdType
Definition: vtkType.h:255
virtual void DrawPoint(vtkContext2D *painter, vtkIdType index)
Class for drawing 2D primitives to a graphical context.
Definition: vtkContext2D.h:54
a simple class to control print indentation
Definition: vtkIndent.h:37
virtual unsigned long int GetControlPointsMTime()=0
Control points for vtkColorTransferFunction.
virtual void PrintSelf(ostream &os, vtkIndent indent)
virtual int GetNumberOfPoints() const =0
virtual void SetControlPoint(vtkIdType index, double *point)=0
static vtkObject * New()