VTK  9.5.20251125
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
29
30#ifndef vtkThresholdScalars_h
31#define vtkThresholdScalars_h
32
33#include "vtkDataSetAlgorithm.h"
34#include "vtkFiltersCoreModule.h" // For export macro
35
36VTK_ABI_NAMESPACE_BEGIN
37class vtkIntervalSet; // Support PIMPLd set of intervals
38
39class VTKFILTERSCORE_EXPORT vtkThresholdScalars : public vtkDataSetAlgorithm
40{
41public:
43
48 void PrintSelf(ostream& os, vtkIndent indent) override;
51
53
61 vtkIdType AddInterval(double s0, double s1, int labelId);
62 void RemoveInterval(vtkIdType intervalId);
65
67
71 vtkSetMacro(BackgroundLabel, int);
72 vtkGetMacro(BackgroundLabel, int);
74
75protected:
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
88private:
90 void operator=(const vtkThresholdScalars&) = delete;
91};
92
93VTK_ABI_NAMESPACE_END
94#endif
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
static vtkThresholdScalars * New()
Standard methods for class instantiation, obtaining type information, and printing the object.
void RemoveAllIntervals()
Methods to create and manage threshold intervals.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for class instantiation, obtaining type information, and printing the object.
vtkIdType AddInterval(double s0, double s1, int labelId)
Methods to create and manage threshold intervals.
void RemoveInterval(vtkIdType intervalId)
Methods to create and manage threshold intervals.
~vtkThresholdScalars() override
vtkIntervalSet * Intervals
int vtkIdType
Definition vtkType.h:367