VTK
dox
Filters
Texture
vtkScalarsToTextureFilter.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkScalarsToTextureFilter.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
=========================================================================*/
28
#ifndef vtkScalarsToTextureFilter_h
29
#define vtkScalarsToTextureFilter_h
30
31
#include "vtkFiltersTextureModule.h"
// For export macro
32
#include "
vtkPolyDataAlgorithm.h
"
33
#include "
vtkSmartPointer.h
"
// For smart pointer
34
35
class
vtkImageData
;
36
class
vtkPolyData
;
37
class
vtkScalarsToColors
;
38
39
class
VTKFILTERSTEXTURE_EXPORT
vtkScalarsToTextureFilter
:
public
vtkPolyDataAlgorithm
40
{
41
public
:
42
static
vtkScalarsToTextureFilter
*
New
();
43
vtkTypeMacro(
vtkScalarsToTextureFilter
,
vtkPolyDataAlgorithm
);
44
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
45
47
53
void
SetTransferFunction(
vtkScalarsToColors
* stc);
54
vtkScalarsToColors
* GetTransferFunction();
56
58
62
vtkGetMacro(UseTransferFunction,
bool
);
63
vtkSetMacro(UseTransferFunction,
bool
);
64
vtkBooleanMacro(UseTransferFunction,
bool
);
66
68
72
vtkSetVector2Macro(TextureDimensions,
int
);
73
vtkGetVector2Macro(TextureDimensions,
int
);
75
76
protected
:
77
vtkScalarsToTextureFilter
();
78
~
vtkScalarsToTextureFilter
()
override
=
default
;
79
80
int
FillOutputPortInformation
(
int
port
,
vtkInformation
*
info
)
override
;
81
int
RequestData
(
vtkInformation
* request,
82
vtkInformationVector
** inputVector,
83
vtkInformationVector
* outputVector)
override
;
84
int
RequestInformation
(
vtkInformation
* request,
85
vtkInformationVector
** inputVector,
86
vtkInformationVector
* outputVector)
override
;
87
88
private
:
89
void
operator=(
const
vtkScalarsToTextureFilter
&) =
delete
;
90
vtkScalarsToTextureFilter
(
const
vtkScalarsToTextureFilter
&) =
delete
;
91
92
vtkSmartPointer<vtkScalarsToColors>
TransferFunction;
93
int
TextureDimensions[2];
94
bool
UseTransferFunction =
true
;
95
};
96
#endif
vtkInformationVector
Store zero or more vtkInformation instances.
Definition:
vtkInformationVector.h:41
vtkPolyDataAlgorithm::FillOutputPortInformation
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
vtkSmartPointer< vtkScalarsToColors >
vtkPolyDataAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPolyDataAlgorithm.h
vtkX3D::port
Definition:
vtkX3D.h:447
vtkPolyDataAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkImageData
topologically and geometrically regular array of data
Definition:
vtkImageData.h:45
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:39
vtkSmartPointer.h
vtkScalarsToColors
Superclass for mapping scalar values to colors.
Definition:
vtkScalarsToColors.h:66
vtkInformation
Store vtkAlgorithm input/output information.
Definition:
vtkInformation.h:86
vtkX3D::info
Definition:
vtkX3D.h:376
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition:
vtkPolyData.h:85
vtkScalarsToTextureFilter
generate texture coordinates and a texture image based on a scalar field
Definition:
vtkScalarsToTextureFilter.h:39
vtkPolyDataAlgorithm::New
static vtkPolyDataAlgorithm * New()
vtkPolyDataAlgorithm::RequestInformation
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition:
vtkPolyDataAlgorithm.h:44
Generated by
1.8.16