VTK  9.3.0
vtkImplicitFunctionToImageStencil.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
17 #ifndef vtkImplicitFunctionToImageStencil_h
18 #define vtkImplicitFunctionToImageStencil_h
19 
20 #include "vtkImageStencilSource.h"
21 #include "vtkImagingStencilModule.h" // For export macro
22 
23 VTK_ABI_NAMESPACE_BEGIN
25 
26 class VTKIMAGINGSTENCIL_EXPORT vtkImplicitFunctionToImageStencil : public vtkImageStencilSource
27 {
28 public:
31  void PrintSelf(ostream& os, vtkIndent indent) override;
32 
34 
37  virtual void SetInput(vtkImplicitFunction*);
38  vtkGetObjectMacro(Input, vtkImplicitFunction);
40 
42 
45  vtkSetMacro(Threshold, double);
46  vtkGetMacro(Threshold, double);
48 
52  vtkMTimeType GetMTime() override;
53 
54 protected:
57 
59 
61  double Threshold;
62 
63 private:
65  void operator=(const vtkImplicitFunctionToImageStencil&) = delete;
66 };
67 
68 VTK_ABI_NAMESPACE_END
69 #endif
generate an image stencil
vtkMTimeType GetMTime() override
Override GetMTime() to account for the implicit function.
virtual void SetInput(vtkImplicitFunction *)
Specify the implicit function to convert into a stencil.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkImplicitFunctionToImageStencil * New()
abstract interface for implicit functions
a simple class to control print indentation
Definition: vtkIndent.h:38
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:270