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 
50 
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
vtkChartsCoreModule.h
vtkGetObjectMacro
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:232
vtkColorTransferControlPointsItem::vtkColorTransferControlPointsItem
vtkColorTransferControlPointsItem()
vtkIdType
int vtkIdType
Definition: vtkType.h:275
vtkColorTransferControlPointsItem::SetColorTransferFunction
void SetColorTransferFunction(vtkColorTransferFunction *function)
vtkColorTransferControlPointsItem::PrintSelf
virtual void PrintSelf(ostream &os, vtkIndent indent)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkContext2D
Class for drawing 2D primitives to a graphical context.
Definition: vtkContext2D.h:57
vtkColorTransferControlPointsItem::UsingLogScale
virtual bool UsingLogScale()
vtkColorTransferFunction
Defines a transfer function for mapping a property to an RGB color value.
Definition: vtkColorTransferFunction.h:58
vtkgl::event
struct _cl_event * event
Definition: vtkgl.h:14387
vtkColorTransferControlPointsItem::ColorFill
bool ColorFill
Definition: vtkColorTransferControlPointsItem.h:106
vtkColorTransferControlPointsItem::EditPoint
virtual void EditPoint(float tX, float tY)
vtkControlPointsItem
Abstract class for control points items.
Definition: vtkControlPointsItem.h:44
vtkColorTransferControlPointsItem::RemovePoint
virtual vtkIdType RemovePoint(double *pos)
vtkColorTransferControlPointsItem
Control points for vtkColorTransferFunction.
Definition: vtkColorTransferControlPointsItem.h:39
vtkX3D::point
@ point
Definition: vtkX3D.h:236
vtkColorTransferControlPointsItem::DrawPoint
virtual void DrawPoint(vtkContext2D *painter, vtkIdType index)
vtkColorTransferControlPointsItem::SetControlPoint
virtual void SetControlPoint(vtkIdType index, double *point)
vtkgl::params
GLenum const GLfloat * params
Definition: vtkgl.h:11333
vtkColorTransferControlPointsItem::ComputeBounds
virtual void ComputeBounds(double *bounds)
vtkColorTransferControlPointsItem::~vtkColorTransferControlPointsItem
virtual ~vtkColorTransferControlPointsItem()
vtkColorTransferControlPointsItem::New
static vtkColorTransferControlPointsItem * New()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkColorTransferControlPointsItem::GetControlPointsMTime
virtual unsigned long int GetControlPointsMTime()
vtkColorTransferControlPointsItem::AddPoint
virtual vtkIdType AddPoint(double *newPos)
vtkColorTransferControlPointsItem::GetControlPoint
virtual void GetControlPoint(vtkIdType index, double *point) const
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkgl::index
GLuint index
Definition: vtkgl.h:11983
vtkColorTransferControlPointsItem::ColorTransferFunction
vtkColorTransferFunction * ColorTransferFunction
Definition: vtkColorTransferControlPointsItem.h:104
VTKCHARTSCORE_EXPORT
#define VTKCHARTSCORE_EXPORT
Definition: vtkChartsCoreModule.h:15
vtkColorTransferControlPointsItem::GetNumberOfPoints
virtual vtkIdType GetNumberOfPoints() const
vtkColorTransferControlPointsItem::emitEvent
virtual void emitEvent(unsigned long event, void *params)
vtkControlPointsItem.h