VTK
vtkCompositeControlPointsItem.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkCompositeControlPointsItem.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 
31 #ifndef __vtkCompositeControlPointsItem_h
32 #define __vtkCompositeControlPointsItem_h
33 
35 
37 
40 {
41 public:
43  virtual void PrintSelf(ostream &os, vtkIndent indent);
44 
47 
49  virtual void SetColorTransferFunction(vtkColorTransferFunction* function);
50 
52 
53  void SetOpacityFunction(vtkPiecewiseFunction* opacity);
54  vtkGetObjectMacro(OpacityFunction, vtkPiecewiseFunction);
56 
60  virtual vtkIdType AddPoint(double* newPos);
61 
65  virtual vtkIdType RemovePoint(double* pos);
66 
67 protected:
70 
71  virtual unsigned long int GetControlPointsMTime();
72  virtual void ComputePoints();
73 
74  virtual void GetControlPoint(vtkIdType index, double* pos);
75  virtual void SetControlPoint(vtkIdType index, double *point);
76  virtual void EditPoint(float tX, float tY);
77 
78  void MergeColorTransferFunction();
79 
81  bool Updating;
82 private:
84  void operator=(const vtkCompositeControlPointsItem &); // Not implemented.
85 };
86 
87 #endif