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 
28 #ifndef vtkColorTransferControlPointsItem_h
29 #define vtkColorTransferControlPointsItem_h
30 
31 #include "vtkChartsCoreModule.h" // For export macro
32 #include "vtkControlPointsItem.h"
33 
35 
36 class VTKCHARTSCORE_EXPORT vtkColorTransferControlPointsItem: public vtkControlPointsItem
37 {
38 public:
40  void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE;
41 
46 
50  void SetColorTransferFunction(vtkColorTransferFunction* function);
52 
55  vtkGetObjectMacro(ColorTransferFunction, vtkColorTransferFunction);
57 
61  vtkIdType GetNumberOfPoints()const VTK_OVERRIDE;
62 
68  void GetControlPoint(vtkIdType index, double *point)const VTK_OVERRIDE;
69 
75  void SetControlPoint(vtkIdType index, double *point) VTK_OVERRIDE;
76 
82  vtkIdType AddPoint(double* newPos) VTK_OVERRIDE;
83 
89  vtkIdType RemovePoint(double* pos) VTK_OVERRIDE;
90 
92 
97  vtkSetMacro(ColorFill, bool);
98  vtkGetMacro(ColorFill, bool);
100 
101 protected:
103  ~vtkColorTransferControlPointsItem() VTK_OVERRIDE;
104 
110  bool UsingLogScale() VTK_OVERRIDE;
111 
112  void emitEvent(unsigned long event, void* params) VTK_OVERRIDE;
113 
114  vtkMTimeType GetControlPointsMTime() VTK_OVERRIDE;
115 
116  void DrawPoint(vtkContext2D* painter, vtkIdType index) VTK_OVERRIDE;
117  void EditPoint(float tX, float tY) VTK_OVERRIDE;
118 
123  void ComputeBounds(double* bounds) VTK_OVERRIDE;
124 
125  vtkColorTransferFunction* ColorTransferFunction;
126 
127  bool ColorFill;
128 private:
130  void operator=(const vtkColorTransferControlPointsItem &) VTK_DELETE_FUNCTION;
131 };
132 
133 #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:52
a simple class to control print indentation
Definition: vtkIndent.h:33
virtual vtkIdType GetNumberOfPoints() const =0
Returns the total number of points.
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.