VTK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
home
boeckb
code
depot
group-kitware
vtk
build-release
Utilities
Doxygen
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
30
#ifndef vtkColorTransferControlPointsItem_h
31
#define vtkColorTransferControlPointsItem_h
32
33
#include "
vtkChartsCoreModule.h
"
// For export macro
34
#include "
vtkControlPointsItem.h
"
35
36
class
vtkColorTransferFunction
;
37
38
class
VTKCHARTSCORE_EXPORT
vtkColorTransferControlPointsItem
:
public
vtkControlPointsItem
39
{
40
public
:
41
vtkTypeMacro(
vtkColorTransferControlPointsItem
,
vtkControlPointsItem
);
42
virtual
void
PrintSelf
(ostream &os,
vtkIndent
indent);
43
45
static
vtkColorTransferControlPointsItem
*
New
();
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
:
85
vtkColorTransferControlPointsItem
();
86
virtual
~
vtkColorTransferControlPointsItem
();
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
104
vtkColorTransferFunction
*
ColorTransferFunction
;
105
106
bool
ColorFill
;
107
private
:
108
vtkColorTransferControlPointsItem
(
const
vtkColorTransferControlPointsItem
&);
// Not implemented.
109
void
operator=(
const
vtkColorTransferControlPointsItem
&);
// Not implemented.
110
};
111
112
#endif
vtkControlPointsItem::GetControlPoint
virtual void GetControlPoint(vtkIdType index, double *point) const =0
vtkControlPointsItem::EditPoint
virtual void EditPoint(float vtkNotUsed(tX), float vtkNotUsed(tY))
vtkColorTransferControlPointsItem::ColorTransferFunction
vtkColorTransferFunction * ColorTransferFunction
Definition:
vtkColorTransferControlPointsItem.h:104
vtkControlPointsItem
Abstract class for control points items.
Definition:
vtkControlPointsItem.h:43
vtkIdType
int vtkIdType
Definition:
vtkType.h:275
vtkControlPointsItem::DrawPoint
virtual void DrawPoint(vtkContext2D *painter, vtkIdType index)
vtkControlPointsItem::UsingLogScale
virtual bool UsingLogScale()
Definition:
vtkControlPointsItem.h:365
vtkContext2D
Class for drawing 2D primitives to a graphical context.
Definition:
vtkContext2D.h:56
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:38
vtkControlPointsItem::GetNumberOfPoints
virtual vtkIdType GetNumberOfPoints() const =0
vtkControlPointsItem::GetControlPointsMTime
virtual unsigned long int GetControlPointsMTime()=0
vtkColorTransferControlPointsItem
Control points for vtkColorTransferFunction.
Definition:
vtkColorTransferControlPointsItem.h:38
vtkControlPointsItem::PrintSelf
virtual void PrintSelf(ostream &os, vtkIndent indent)
vtkControlPointsItem::RemovePoint
virtual vtkIdType RemovePoint(double *pos)=0
vtkColorTransferFunction
Defines a transfer function for mapping a property to an RGB color value.
Definition:
vtkColorTransferFunction.h:57
vtkControlPointsItem::SetControlPoint
virtual void SetControlPoint(vtkIdType index, double *point)=0
vtkControlPointsItem::AddPoint
virtual vtkIdType AddPoint(double *newPos)=0
vtkX3D::point
Definition:
vtkX3D.h:236
vtkColorTransferControlPointsItem::ColorFill
bool ColorFill
Definition:
vtkColorTransferControlPointsItem.h:106
vtkObject::New
static vtkObject * New()
vtkControlPointsItem::emitEvent
virtual void emitEvent(unsigned long event, void *params=0)=0
vtkX3D::index
Definition:
vtkX3D.h:246
VTKCHARTSCORE_EXPORT
#define VTKCHARTSCORE_EXPORT
Definition:
vtkChartsCoreModule.h:15
vtkControlPointsItem.h
vtkChartsCoreModule.h
Generated by
1.8.9.1