VTK
dox
Charts
Core
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
37
class
vtkColorTransferFunction
;
38
39
class
VTKCHARTSCORE_EXPORT
vtkColorTransferControlPointsItem
:
public
vtkControlPointsItem
40
{
41
public
:
42
vtkTypeMacro(
vtkColorTransferControlPointsItem
,
vtkControlPointsItem
);
43
void
PrintSelf
(ostream &os,
vtkIndent
indent)
override
;
44
48
static
vtkColorTransferControlPointsItem
*
New
();
49
53
void
SetColorTransferFunction(
vtkColorTransferFunction
*
function
);
55
58
vtkGetObjectMacro(ColorTransferFunction,
vtkColorTransferFunction
);
60
64
vtkIdType
GetNumberOfPoints
()
const override
;
65
71
void
GetControlPoint
(
vtkIdType
index
,
double
*
point
)
const override
;
72
78
void
SetControlPoint
(
vtkIdType
index
,
double
*
point
)
override
;
79
85
vtkIdType
AddPoint
(
double
* newPos)
override
;
86
92
vtkIdType
RemovePoint
(
double
* pos)
override
;
93
95
100
vtkSetMacro(ColorFill,
bool
);
101
vtkGetMacro(ColorFill,
bool
);
103
104
protected
:
105
vtkColorTransferControlPointsItem
();
106
~
vtkColorTransferControlPointsItem
()
override
;
107
108
void
emitEvent
(
unsigned
long
event,
void
* params)
override
;
109
110
vtkMTimeType
GetControlPointsMTime
()
override
;
111
112
void
DrawPoint
(
vtkContext2D
* painter,
vtkIdType
index
)
override
;
113
void
EditPoint
(
float
tX,
float
tY)
override
;
114
119
void
ComputeBounds(
double
* bounds)
override
;
120
121
vtkColorTransferFunction
*
ColorTransferFunction
;
122
123
bool
ColorFill
;
124
private
:
125
vtkColorTransferControlPointsItem
(
const
vtkColorTransferControlPointsItem
&) =
delete
;
126
void
operator=(
const
vtkColorTransferControlPointsItem
&) =
delete
;
127
};
128
129
#endif
vtkControlPointsItem::GetControlPoint
virtual void GetControlPoint(vtkIdType index, double *point) const =0
Returns the x and y coordinates as well as the midpoint and sharpness of the control point correspond...
vtkControlPointsItem::GetNumberOfPoints
virtual vtkIdType GetNumberOfPoints() const =0
Returns the total number of points.
vtkIdType
int vtkIdType
Definition:
vtkType.h:347
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkControlPointsItem::SetControlPoint
virtual void SetControlPoint(vtkIdType index, double *point)=0
Sets the x and y coordinates as well as the midpoint and sharpness of the control point corresponding...
vtkControlPointsItem::DrawPoint
virtual void DrawPoint(vtkContext2D *painter, vtkIdType index)
vtkContext2D
Class for drawing 2D primitives to a graphical context.
Definition:
vtkContext2D.h:58
vtkControlPointsItem::AddPoint
virtual vtkIdType AddPoint(double *newPos)=0
Add a point to the function.
vtkColorTransferFunction
Defines a transfer function for mapping a property to an RGB color value.
Definition:
vtkColorTransferFunction.h:54
vtkColorTransferControlPointsItem::ColorFill
bool ColorFill
Definition:
vtkColorTransferControlPointsItem.h:123
vtkControlPointsItem
Abstract class for control points items.
Definition:
vtkControlPointsItem.h:45
vtkColorTransferControlPointsItem
Control points for vtkColorTransferFunction.
Definition:
vtkColorTransferControlPointsItem.h:39
vtkControlPointsItem::emitEvent
virtual void emitEvent(unsigned long event, void *params=nullptr)=0
vtkX3D::point
Definition:
vtkX3D.h:236
vtkControlPointsItem::EditPoint
virtual void EditPoint(float vtkNotUsed(tX), float vtkNotUsed(tY))
vtkControlPointsItem::RemovePoint
virtual vtkIdType RemovePoint(double *pos)=0
Remove a point of the function.
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:39
vtkColorTransferControlPointsItem::ColorTransferFunction
vtkColorTransferFunction * ColorTransferFunction
Definition:
vtkColorTransferControlPointsItem.h:121
vtkControlPointsItem::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkX3D::index
Definition:
vtkX3D.h:246
vtkControlPointsItem::GetControlPointsMTime
virtual vtkMTimeType GetControlPointsMTime()=0
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition:
vtkType.h:302
vtkControlPointsItem.h
Generated by
1.8.16