VTK  9.7.1
vtkThresholdScalars.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
30 #ifndef vtkThresholdScalars_h
31 #define vtkThresholdScalars_h
32 
33 #include "vtkDataSetAlgorithm.h"
34 #include "vtkFiltersCoreModule.h" // For export macro
35 
36 VTK_ABI_NAMESPACE_BEGIN
37 class vtkIntervalSet; // Support PIMPLd set of intervals
38 
39 class VTKFILTERSCORE_EXPORT vtkThresholdScalars : public vtkDataSetAlgorithm
40 {
41 public:
43 
48  void PrintSelf(ostream& os, vtkIndent indent) override;
49  static vtkThresholdScalars* New();
51 
53 
61  vtkIdType AddInterval(double s0, double s1, int labelId);
62  void RemoveInterval(vtkIdType intervalId);
63  void RemoveAllIntervals();
65 
67 
71  vtkSetMacro(BackgroundLabel, int);
72  vtkGetMacro(BackgroundLabel, int);
74 
75 protected:
77  ~vtkThresholdScalars() override;
78 
79  // PIMPLd set of intervals
80  vtkIntervalSet* Intervals;
81 
82  // Scalars that don't fall in any interval are assigned
83  // the background label.
85 
87 
88 private:
90  void operator=(const vtkThresholdScalars&) = delete;
91 };
92 
93 VTK_ABI_NAMESPACE_END
94 #endif
Store vtkAlgorithm input/output information.
int vtkIdType
Definition: vtkType.h:363
vtkIntervalSet * Intervals
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
label scalars according to one or more threshold intervals
a simple class to control print indentation
Definition: vtkIndent.h:28
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
Store zero or more vtkInformation instances.
Superclass for algorithms that produce output of the same type as input.
static vtkDataSetAlgorithm * New()