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 "vtkChartsCoreModule.h" // For export macro
34 #include "vtkControlPointsItem.h"
35 
37 
38 class VTKCHARTSCORE_EXPORT vtkColorTransferControlPointsItem: public vtkControlPointsItem
39 {
40 public:
42  virtual void PrintSelf(ostream &os, vtkIndent indent);
43 
46 
48  void SetColorTransferFunction(vtkColorTransferFunction* function);
50 
51  vtkGetObjectMacro(ColorTransferFunction, vtkColorTransferFunction);
53 
55  virtual vtkIdType GetNumberOfPoints()const;
56 
60  virtual void GetControlPoint(vtkIdType index, double *point)const;
61 
65  virtual void SetControlPoint(vtkIdType index, double *point);
66 
70  virtual vtkIdType AddPoint(double* newPos);
71 
75  virtual vtkIdType RemovePoint(double* pos);
76 
78 
80  vtkSetMacro(ColorFill, bool);
81  vtkGetMacro(ColorFill, bool);
83 
84 protected:
87 
88  virtual void emitEvent(unsigned long event, void* params);
89 
90  virtual unsigned long int GetControlPointsMTime();
91 
92  virtual void DrawPoint(vtkContext2D* painter, vtkIdType index);
93  virtual void EditPoint(float tX, float tY);
94 
96 
97  bool ColorFill;
98 private:
100  void operator=(const vtkColorTransferControlPointsItem &); // Not implemented.
101 };
102 
103 #endif