VTK: Imaging/Stencil/vtkImplicitFunctionToImageStencil.h Source File

| VTK 9.3.1

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
24 class vtkImplicitFunction;
25
26 class VTKIMAGINGSTENCIL_EXPORT vtkImplicitFunctionToImageStencil : public vtkImageStencilSource
27 {
28 public:
29 static vtkImplicitFunctionToImageStencil* New();
30 vtkTypeMacro(vtkImplicitFunctionToImageStencil, vtkImageStencilSource);
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:
55 vtkImplicitFunctionToImageStencil();
56 ~vtkImplicitFunctionToImageStencil() override;
57
58 int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
59
60 vtkImplicitFunction* Input;
61 double Threshold;
62
63 private:
64 vtkImplicitFunctionToImageStencil(const vtkImplicitFunctionToImageStencil&) = delete;
65 void operator=(const vtkImplicitFunctionToImageStencil&) = delete;
66 };
67
68 VTK_ABI_NAMESPACE_END
69 #endif
vtkImageStencilSource
generate an image stencil
Definition: vtkImageStencilSource.h:31
vtkImplicitFunctionToImageStencil
clip an image with a function
Definition: vtkImplicitFunctionToImageStencil.h:27
vtkImplicitFunctionToImageStencil::GetMTime
vtkMTimeType GetMTime() override
Override GetMTime() to account for the implicit function.
vtkImplicitFunctionToImageStencil::SetInput
virtual void SetInput(vtkImplicitFunction *)
Specify the implicit function to convert into a stencil.
vtkImplicitFunctionToImageStencil::vtkImplicitFunctionToImageStencil
vtkImplicitFunctionToImageStencil()
vtkImplicitFunctionToImageStencil::~vtkImplicitFunctionToImageStencil
~vtkImplicitFunctionToImageStencil() override
vtkImplicitFunctionToImageStencil::Threshold
double Threshold
Definition: vtkImplicitFunctionToImageStencil.h:61
vtkImplicitFunctionToImageStencil::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
vtkImplicitFunctionToImageStencil::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkImplicitFunctionToImageStencil::Input
vtkImplicitFunction * Input
Definition: vtkImplicitFunctionToImageStencil.h:60
vtkImplicitFunctionToImageStencil::New
static vtkImplicitFunctionToImageStencil * New()
vtkImplicitFunction
abstract interface for implicit functions
Definition: vtkImplicitFunction.h:59
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:40
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:72
vtkImageStencilSource.h
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:270