48#ifndef vtkThresholdTextureCoords_h
49#define vtkThresholdTextureCoords_h
52#include "vtkFiltersTextureModule.h"
54VTK_ABI_NAMESPACE_BEGIN
81 vtkGetMacro(UpperThreshold,
double);
82 vtkGetMacro(LowerThreshold,
double);
89 vtkSetClampMacro(TextureDimension,
int, 1, 3);
90 vtkGetMacro(TextureDimension,
int);
97 vtkSetVector3Macro(InTextureCoord,
double);
98 vtkGetVectorMacro(InTextureCoord,
double, 3);
106 vtkSetVector3Macro(OutTextureCoord,
double);
107 vtkGetVectorMacro(OutTextureCoord,
double, 3);
122 double InTextureCoord[3];
123 double OutTextureCoord[3];
127 int Lower(
double s) {
return (s <= this->LowerThreshold ? 1 : 0); }
128 int Upper(
double s) {
return (s >= this->UpperThreshold ? 1 : 0); }
131 return (s >= this->LowerThreshold ? (s <= this->UpperThreshold ? 1 : 0) : 0);
Superclass for algorithms that produce output of the same type as input.
a simple class to control print indentation
compute 1D, 2D, or 3D texture coordinates based on scalar threshold
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void ThresholdBetween(double lower, double upper)
Criterion is cells whose scalars are between lower and upper thresholds.
static vtkThresholdTextureCoords * New()
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
vtkThresholdTextureCoords()
void ThresholdByLower(double lower)
Criterion is cells whose scalars are less than lower threshold.
void ThresholdByUpper(double upper)
Criterion is cells whose scalars are less than upper threshold.
~vtkThresholdTextureCoords() override=default