VTK
vtkThresholdPoints.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkThresholdPoints.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 =========================================================================*/
32 #ifndef vtkThresholdPoints_h
33 #define vtkThresholdPoints_h
34 
35 #include "vtkFiltersCoreModule.h" // For export macro
36 #include "vtkPolyDataAlgorithm.h"
37 
39 {
40 public:
43  void PrintSelf(ostream& os, vtkIndent indent);
44 
47  void ThresholdByLower(double lower);
48 
51  void ThresholdByUpper(double upper);
52 
55  void ThresholdBetween(double lower, double upper);
56 
58 
59  vtkSetMacro(UpperThreshold,double);
60  vtkGetMacro(UpperThreshold,double);
62 
64 
65  vtkSetMacro(LowerThreshold,double);
66  vtkGetMacro(LowerThreshold,double);
68 
70 
73  vtkSetMacro(OutputPointsPrecision,int);
74  vtkGetMacro(OutputPointsPrecision,int);
76 
77 protected:
80 
81  // Usual data generation method
83 
85 
89 
90  //BTX
91  int (vtkThresholdPoints::*ThresholdFunction)(double s);
92  //ETX
93 
94  int Lower(double s) {return ( s <= this->LowerThreshold ? 1 : 0 );};
95  int Upper(double s) {return ( s >= this->UpperThreshold ? 1 : 0 );};
96  int Between(double s) {return ( s >= this->LowerThreshold ?
97  ( s <= this->UpperThreshold ? 1 : 0 ) : 0 );};
98 private:
99  vtkThresholdPoints(const vtkThresholdPoints&); // Not implemented.
100  void operator=(const vtkThresholdPoints&); // Not implemented.
101 };
102 
103 #endif
vtkThresholdPoints::OutputPointsPrecision
int OutputPointsPrecision
Definition: vtkThresholdPoints.h:88
vtkThresholdPoints::~vtkThresholdPoints
~vtkThresholdPoints()
Definition: vtkThresholdPoints.h:79
vtkThresholdPoints::New
static vtkThresholdPoints * New()
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkThresholdPoints::vtkThresholdPoints
vtkThresholdPoints()
vtkgl::s
GLdouble s
Definition: vtkgl.h:11594
vtkThresholdPoints::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkThresholdPoints::Lower
int Lower(double s)
Definition: vtkThresholdPoints.h:94
vtkThresholdPoints::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkThresholdPoints::Between
int Between(double s)
Definition: vtkThresholdPoints.h:96
vtkFiltersCoreModule.h
vtkPolyDataAlgorithm.h
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkThresholdPoints::UpperThreshold
double UpperThreshold
Definition: vtkThresholdPoints.h:87
VTKFILTERSCORE_EXPORT
#define VTKFILTERSCORE_EXPORT
Definition: vtkFiltersCoreModule.h:15
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkThresholdPoints::ThresholdByLower
void ThresholdByLower(double lower)
vtkThresholdPoints
extracts points whose scalar value satisfies threshold criterion
Definition: vtkThresholdPoints.h:39
vtkThresholdPoints::LowerThreshold
double LowerThreshold
Definition: vtkThresholdPoints.h:86
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkThresholdPoints::Upper
int Upper(double s)
Definition: vtkThresholdPoints.h:95
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkThresholdPoints::ThresholdByUpper
void ThresholdByUpper(double upper)
vtkThresholdPoints::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
int
int
Definition: vtkVectorOperators.h:164
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:44
vtkThresholdPoints::ThresholdBetween
void ThresholdBetween(double lower, double upper)