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 
36 
38 {
39 public:
41  virtual void PrintSelf(ostream &os, vtkIndent indent);
42 
45 
47  void SetColorTransferFunction(vtkColorTransferFunction* function);
49 
50  vtkGetObjectMacro(ColorTransferFunction, vtkColorTransferFunction);
52 
54  virtual vtkIdType GetNumberOfPoints()const;
55 
59  virtual void GetControlPoint(vtkIdType index, double *point)const;
60 
64  virtual void SetControlPoint(vtkIdType index, double *point);
65 
69  virtual vtkIdType AddPoint(double* newPos);
70 
74  virtual vtkIdType RemovePoint(double* pos);
75 
77 
79  vtkSetMacro(ColorFill, bool);
80  vtkGetMacro(ColorFill, bool);
82 
83 protected:
86 
87  virtual void emitEvent(unsigned long event, void* params);
88 
89  virtual unsigned long int GetControlPointsMTime();
90 
91  virtual void DrawPoint(vtkContext2D* painter, vtkIdType index);
92  virtual void EditPoint(float tX, float tY);
93 
95 
96  bool ColorFill;
97 private:
99  void operator=(const vtkColorTransferControlPointsItem &); // Not implemented.
100 };
101 
102 #endif