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
#define VTK_CHARTS_EXPORT
static vtkColorTransferControlPointsItem * New()
Defines a 1D piecewise function.
virtual void GetControlPoint(vtkIdType index, double *point)
virtual unsigned long int GetControlPointsMTime()
virtual void EditPoint(float tX, float tY)
int vtkIdType
Definition: vtkType.h:255
virtual void ComputePoints()
a simple class to control print indentation
Definition: vtkIndent.h:37
Control points for vtkCompositeFunction.
virtual void SetControlPoint(vtkIdType index, double *point)
virtual vtkIdType AddPoint(double *newPos)
Control points for vtkColorTransferFunction.
void SetColorTransferFunction(vtkColorTransferFunction *function)
virtual void PrintSelf(ostream &os, vtkIndent indent)
virtual vtkIdType RemovePoint(double *pos)