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 
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 
91  virtual bool UsingLogScale();
92 
93  virtual void emitEvent(unsigned long event, void* params);
94 
95  virtual unsigned long int GetControlPointsMTime();
96 
97  virtual void DrawPoint(vtkContext2D* painter, vtkIdType index);
98  virtual void EditPoint(float tX, float tY);
99 
102  virtual void ComputeBounds(double* bounds);
103 
105 
106  bool ColorFill;
107 private:
109  void operator=(const vtkColorTransferControlPointsItem &); // Not implemented.
110 };
111 
112 #endif
virtual void GetControlPoint(vtkIdType index, double *point) const =0
virtual void EditPoint(float vtkNotUsed(tX), float vtkNotUsed(tY))
Abstract class for control points items.
int vtkIdType
Definition: vtkType.h:275
virtual void DrawPoint(vtkContext2D *painter, vtkIdType index)
Class for drawing 2D primitives to a graphical context.
Definition: vtkContext2D.h:56
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual vtkIdType GetNumberOfPoints() const =0
virtual unsigned long int GetControlPointsMTime()=0
Control points for vtkColorTransferFunction.
virtual void PrintSelf(ostream &os, vtkIndent indent)
virtual vtkIdType RemovePoint(double *pos)=0
Defines a transfer function for mapping a property to an RGB color value.
virtual void SetControlPoint(vtkIdType index, double *point)=0
virtual vtkIdType AddPoint(double *newPos)=0
static vtkObject * New()
virtual void emitEvent(unsigned long event, void *params=0)=0
#define VTKCHARTSCORE_EXPORT