VTK  9.3.1
vtkSampleImplicitFunctionFilter.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
26 #ifndef vtkSampleImplicitFunctionFilter_h
27 #define vtkSampleImplicitFunctionFilter_h
28 
29 #include "vtkDataSetAlgorithm.h"
30 #include "vtkFiltersGeneralModule.h" // For export macro
31 
32 VTK_ABI_NAMESPACE_BEGIN
34 class vtkDataArray;
35 
36 class VTKFILTERSGENERAL_EXPORT vtkSampleImplicitFunctionFilter : public vtkDataSetAlgorithm
37 {
38 public:
40 
45  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
49 
52  virtual void SetImplicitFunction(vtkImplicitFunction*);
53  vtkGetObjectMacro(ImplicitFunction, vtkImplicitFunction);
55 
57 
60  vtkSetMacro(ComputeGradients, vtkTypeBool);
61  vtkGetMacro(ComputeGradients, vtkTypeBool);
62  vtkBooleanMacro(ComputeGradients, vtkTypeBool);
64 
66 
70  vtkSetStringMacro(ScalarArrayName);
71  vtkGetStringMacro(ScalarArrayName);
73 
75 
79  vtkSetStringMacro(GradientArrayName);
80  vtkGetStringMacro(GradientArrayName);
82 
86  vtkMTimeType GetMTime() override;
87 
88 protected:
91 
96 
97  void ReportReferences(vtkGarbageCollector*) override;
98 
100  int FillInputPortInformation(int port, vtkInformation* info) override;
101 
102 private:
104  void operator=(const vtkSampleImplicitFunctionFilter&) = delete;
105 };
106 
107 VTK_ABI_NAMESPACE_END
108 #endif
abstract interface for implicit functions
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:270
void ReportReferences(vtkGarbageCollector *) override
Detect and break reference loops.
int vtkTypeBool
Definition: vtkABI.h:64
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:28
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:44
virtual vtkMTimeType GetMTime()
Return this object's modified time.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
sample an implicit function over a dataset, generating scalar values and optional gradient vectors ...
Store zero or more vtkInformation instances.
Superclass for algorithms that produce output of the same type as input.
static vtkDataSetAlgorithm * New()
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.