VTK
dox
Charts
Core
vtkCompositeTransferFunctionItem.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkCompositeTransferFunctionItem.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
16
#ifndef vtkCompositeTransferFunctionItem_h
17
#define vtkCompositeTransferFunctionItem_h
18
19
#include "vtkChartsCoreModule.h"
// For export macro
20
#include "
vtkColorTransferFunctionItem.h
"
21
22
class
vtkPiecewiseFunction
;
23
24
// Description:
25
// vtkPlot::Color and vtkPlot::Brush have no effect here.
26
class
VTKCHARTSCORE_EXPORT
vtkCompositeTransferFunctionItem
:
public
vtkColorTransferFunctionItem
27
{
28
public
:
29
static
vtkCompositeTransferFunctionItem
*
New
();
30
vtkTypeMacro(
vtkCompositeTransferFunctionItem
,
vtkColorTransferFunctionItem
);
31
virtual
void
PrintSelf
(ostream &os,
vtkIndent
indent);
32
33
void
SetOpacityFunction(
vtkPiecewiseFunction
* opacity);
34
vtkGetObjectMacro(OpacityFunction,
vtkPiecewiseFunction
);
35
36
protected
:
37
vtkCompositeTransferFunctionItem
();
38
virtual
~
vtkCompositeTransferFunctionItem
();
39
40
// Description:
41
// Returns true if we are rendering in log space.
42
// Since vtkPiecewiseFunction doesn't support log, we show this transfer
43
// function in non-log space always.
44
virtual
bool
UsingLogScale
() {
return
false
; }
45
46
// Description:
47
// Reimplemented to return the range of the piecewise function
48
virtual
void
ComputeBounds
(
double
bounds[4]);
49
50
virtual
void
ComputeTexture
();
51
vtkPiecewiseFunction
*
OpacityFunction
;
52
53
private
:
54
vtkCompositeTransferFunctionItem
(
const
vtkCompositeTransferFunctionItem
&) VTK_DELETE_FUNCTION;
55
void
operator=(
const
vtkCompositeTransferFunctionItem
&) VTK_DELETE_FUNCTION;
56
};
57
58
#endif
vtkCompositeTransferFunctionItem
Definition:
vtkCompositeTransferFunctionItem.h:26
vtkColorTransferFunctionItem
Definition:
vtkColorTransferFunctionItem.h:28
vtkColorTransferFunctionItem::PrintSelf
virtual void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:39
vtkCompositeTransferFunctionItem::UsingLogScale
virtual bool UsingLogScale()
Definition:
vtkCompositeTransferFunctionItem.h:44
vtkPiecewiseFunction
Defines a 1D piecewise function.
Definition:
vtkPiecewiseFunction.h:51
vtkColorTransferFunctionItem::ComputeTexture
virtual void ComputeTexture()
Need to be reimplemented by subclasses, ComputeTexture() is called at paint time if the texture is no...
vtkCompositeTransferFunctionItem::OpacityFunction
vtkPiecewiseFunction * OpacityFunction
Definition:
vtkCompositeTransferFunctionItem.h:51
vtkColorTransferFunctionItem::ComputeBounds
virtual void ComputeBounds(double bounds[4])
vtkColorTransferFunctionItem::New
static vtkColorTransferFunctionItem * New()
vtkColorTransferFunctionItem.h
Generated by
1.8.17