43 #ifndef __vtkThresholdTextureCoords_h
44 #define __vtkThresholdTextureCoords_h
46 #include "vtkFiltersTextureModule.h"
47 #include "vtkDataSetAlgorithm.h"
54 void PrintSelf(ostream& os, vtkIndent indent);
57 void ThresholdByLower(
double lower);
60 void ThresholdByUpper(
double upper);
64 void ThresholdBetween(
double lower,
double upper);
68 vtkGetMacro(UpperThreshold,
double);
69 vtkGetMacro(LowerThreshold,
double);
74 vtkSetClampMacro(TextureDimension,
int,1,3);
75 vtkGetMacro(TextureDimension,
int);
81 vtkSetVector3Macro(InTextureCoord,
double);
82 vtkGetVectorMacro(InTextureCoord,
double,3);
88 vtkSetVector3Macro(OutTextureCoord,
double);
89 vtkGetVectorMacro(OutTextureCoord,
double,3);
97 int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
104 double InTextureCoord[3];
105 double OutTextureCoord[3];
111 int Lower(
double s) {
return ( s <= this->LowerThreshold ? 1 : 0 );};
112 int Upper(
double s) {
return ( s >= this->UpperThreshold ? 1 : 0 );};
113 int Between(
double s) {
return ( s >= this->LowerThreshold ?
114 ( s <= this->UpperThreshold ? 1 : 0 ) : 0 );};
compute 1D, 2D, or 3D texture coordinates based on scalar threshold
~vtkThresholdTextureCoords()