VTK
dox
Filters
Texture
vtkThresholdTextureCoords.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkThresholdTextureCoords.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
=========================================================================*/
44
#ifndef vtkThresholdTextureCoords_h
45
#define vtkThresholdTextureCoords_h
46
47
#include "vtkFiltersTextureModule.h"
// For export macro
48
#include "
vtkDataSetAlgorithm.h
"
49
50
class
VTKFILTERSTEXTURE_EXPORT
vtkThresholdTextureCoords
:
public
vtkDataSetAlgorithm
51
{
52
public
:
53
static
vtkThresholdTextureCoords
*
New
();
54
vtkTypeMacro(
vtkThresholdTextureCoords
,
vtkDataSetAlgorithm
);
55
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
56
60
void
ThresholdByLower(
double
lower);
61
65
void
ThresholdByUpper(
double
upper);
66
70
void
ThresholdBetween(
double
lower,
double
upper);
71
73
76
vtkGetMacro(UpperThreshold,
double
);
77
vtkGetMacro(LowerThreshold,
double
);
79
81
84
vtkSetClampMacro(TextureDimension,
int
,1,3);
85
vtkGetMacro(TextureDimension,
int
);
87
89
92
vtkSetVector3Macro(InTextureCoord,
double
);
93
vtkGetVectorMacro(InTextureCoord,
double
,3);
95
97
101
vtkSetVector3Macro(OutTextureCoord,
double
);
102
vtkGetVectorMacro(OutTextureCoord,
double
,3);
104
105
protected
:
106
vtkThresholdTextureCoords
();
107
~vtkThresholdTextureCoords
()
override
{}
108
109
// Usual data generation method
110
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*)
override
;
111
112
double
LowerThreshold
;
113
double
UpperThreshold
;
114
115
int
TextureDimension
;
116
117
double
InTextureCoord[3];
118
double
OutTextureCoord[3];
119
120
int
(
vtkThresholdTextureCoords
::*ThresholdFunction)(
double
s);
121
122
int
Lower
(
double
s) {
return
( s <= this->LowerThreshold ? 1 : 0 );};
123
int
Upper
(
double
s) {
return
( s >= this->UpperThreshold ? 1 : 0 );};
124
int
Between
(
double
s) {
return
( s >= this->LowerThreshold ?
125
( s <= this->UpperThreshold ? 1 : 0 ) : 0 );};
126
private
:
127
vtkThresholdTextureCoords
(
const
vtkThresholdTextureCoords
&) =
delete
;
128
void
operator=(
const
vtkThresholdTextureCoords
&) =
delete
;
129
};
130
131
#endif
vtkThresholdTextureCoords::Upper
int Upper(double s)
Definition:
vtkThresholdTextureCoords.h:123
vtkInformationVector
Store zero or more vtkInformation instances.
Definition:
vtkInformationVector.h:41
vtkThresholdTextureCoords::Lower
int Lower(double s)
Definition:
vtkThresholdTextureCoords.h:122
vtkThresholdTextureCoords::UpperThreshold
double UpperThreshold
Definition:
vtkThresholdTextureCoords.h:113
vtkDataSetAlgorithm::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
Definition:
vtkDataSetAlgorithm.h:180
vtkThresholdTextureCoords::Between
int Between(double s)
Definition:
vtkThresholdTextureCoords.h:124
vtkDataSetAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition:
vtkDataSetAlgorithm.h:48
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:39
vtkDataSetAlgorithm::New
static vtkDataSetAlgorithm * New()
vtkInformation
Store vtkAlgorithm input/output information.
Definition:
vtkInformation.h:86
vtkThresholdTextureCoords::TextureDimension
int TextureDimension
Definition:
vtkThresholdTextureCoords.h:115
vtkThresholdTextureCoords::~vtkThresholdTextureCoords
~vtkThresholdTextureCoords() override
Definition:
vtkThresholdTextureCoords.h:107
vtkDataSetAlgorithm.h
vtkDataSetAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkThresholdTextureCoords::LowerThreshold
double LowerThreshold
Definition:
vtkThresholdTextureCoords.h:112
int
int
Definition:
vtkVectorOperators.h:164
vtkThresholdTextureCoords
compute 1D, 2D, or 3D texture coordinates based on scalar threshold
Definition:
vtkThresholdTextureCoords.h:50
Generated by
1.8.16