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 
31 #ifndef vtkColorTransferControlPointsItem_h
32 #define vtkColorTransferControlPointsItem_h
33 
34 #include "vtkChartsCoreModule.h" // For export macro
35 #include "vtkControlPointsItem.h"
36 
38 
39 class VTKCHARTSCORE_EXPORT vtkColorTransferControlPointsItem: public vtkControlPointsItem
40 {
41 public:
43  void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE;
44 
49 
53  void SetColorTransferFunction(vtkColorTransferFunction* function);
55 
58  vtkGetObjectMacro(ColorTransferFunction, vtkColorTransferFunction);
60 
64  vtkIdType GetNumberOfPoints()const VTK_OVERRIDE;
65 
71  void GetControlPoint(vtkIdType index, double *point)const VTK_OVERRIDE;
72 
78  void SetControlPoint(vtkIdType index, double *point) VTK_OVERRIDE;
79 
85  vtkIdType AddPoint(double* newPos) VTK_OVERRIDE;
86 
92  vtkIdType RemovePoint(double* pos) VTK_OVERRIDE;
93 
95 
100  vtkSetMacro(ColorFill, bool);
101  vtkGetMacro(ColorFill, bool);
103 
104 protected:
106  ~vtkColorTransferControlPointsItem() VTK_OVERRIDE;
107 
113  bool UsingLogScale() VTK_OVERRIDE;
114 
115  void emitEvent(unsigned long event, void* params) VTK_OVERRIDE;
116 
117  vtkMTimeType GetControlPointsMTime() VTK_OVERRIDE;
118 
119  void DrawPoint(vtkContext2D* painter, vtkIdType index) VTK_OVERRIDE;
120  void EditPoint(float tX, float tY) VTK_OVERRIDE;
121 
126  void ComputeBounds(double* bounds) VTK_OVERRIDE;
127 
128  vtkColorTransferFunction* ColorTransferFunction;
129 
130  bool ColorFill;
131 private:
132  vtkColorTransferControlPointsItem(const vtkColorTransferControlPointsItem &) VTK_DELETE_FUNCTION;
133  void operator=(const vtkColorTransferControlPointsItem &) VTK_DELETE_FUNCTION;
134 };
135 
136 #endif
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:300
Abstract class for control points items.
int vtkIdType
Definition: vtkType.h:345
Class for drawing 2D primitives to a graphical context.
Definition: vtkContext2D.h:58
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
Control points for vtkColorTransferFunction.
Defines a transfer function for mapping a property to an RGB color value.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual vtkIdType GetNumberOfPoints() const =0
Returns the total number of points.