00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00047
#ifndef __vtkThresholdTextureCoords_h
00048
#define __vtkThresholdTextureCoords_h
00049
00050
#include "vtkDataSetToDataSetFilter.h"
00051
00052 class VTK_GRAPHICS_EXPORT vtkThresholdTextureCoords :
public vtkDataSetToDataSetFilter
00053 {
00054
public:
00055
static vtkThresholdTextureCoords *
New();
00056 vtkTypeRevisionMacro(vtkThresholdTextureCoords,
vtkDataSetToDataSetFilter);
00057
void PrintSelf(ostream& os,
vtkIndent indent);
00058
00060
void ThresholdByLower(
float lower);
00061
00063
void ThresholdByUpper(
float upper);
00064
00067
void ThresholdBetween(
float lower,
float upper);
00068
00070
00071 vtkGetMacro(UpperThreshold,
float);
00072 vtkGetMacro(LowerThreshold,
float);
00074
00076
00077 vtkSetClampMacro(TextureDimension,
int,1,3);
00078 vtkGetMacro(TextureDimension,
int);
00080
00082
00084 vtkSetVector3Macro(InTextureCoord,
float);
00085 vtkGetVectorMacro(InTextureCoord,
float,3);
00087
00089
00091 vtkSetVector3Macro(OutTextureCoord,
float);
00092 vtkGetVectorMacro(OutTextureCoord,
float,3);
00094
00095
protected:
00096 vtkThresholdTextureCoords();
00097 ~vtkThresholdTextureCoords() {};
00098
00099
00100
void Execute();
00101
00102 float LowerThreshold;
00103 float UpperThreshold;
00104
00105 int TextureDimension;
00106
00107 float InTextureCoord[3];
00108 float OutTextureCoord[3];
00109
00110
00111 int (vtkThresholdTextureCoords::*ThresholdFunction)(
float s);
00112
00113
00114 int Lower(
float s) {
return ( s <= this->LowerThreshold ? 1 : 0 );};
00115 int Upper(
float s) {
return ( s >= this->UpperThreshold ? 1 : 0 );};
00116 int Between(
float s) {
return ( s >= this->LowerThreshold ?
00117 ( s <= this->UpperThreshold ? 1 : 0 ) : 0 );};
00118
private:
00119 vtkThresholdTextureCoords(
const vtkThresholdTextureCoords&);
00120
void operator=(
const vtkThresholdTextureCoords&);
00121 };
00122
00123
#endif