VTK
vtkSampleImplicitFunctionFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkSampleImplicitFunctionFilter.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
38 #ifndef vtkSampleImplicitFunctionFilter_h
39 #define vtkSampleImplicitFunctionFilter_h
40 
41 #include "vtkFiltersGeneralModule.h" // For export macro
42 #include "vtkDataSetAlgorithm.h"
43 
45 class vtkDataArray;
46 
47 class VTKFILTERSGENERAL_EXPORT vtkSampleImplicitFunctionFilter : public vtkDataSetAlgorithm
48 {
49 public:
51 
56  void PrintSelf(ostream& os, vtkIndent indent) override;
58 
60 
63  virtual void SetImplicitFunction(vtkImplicitFunction*);
64  vtkGetObjectMacro(ImplicitFunction,vtkImplicitFunction);
66 
68 
71  vtkSetMacro(ComputeGradients,vtkTypeBool);
72  vtkGetMacro(ComputeGradients,vtkTypeBool);
73  vtkBooleanMacro(ComputeGradients,vtkTypeBool);
75 
77 
81  vtkSetStringMacro(ScalarArrayName);
82  vtkGetStringMacro(ScalarArrayName);
84 
86 
90  vtkSetStringMacro(GradientArrayName);
91  vtkGetStringMacro(GradientArrayName);
93 
97  vtkMTimeType GetMTime() override;
98 
99 protected:
102 
107 
108  void ReportReferences(vtkGarbageCollector*) override;
109 
111  vtkInformationVector *) override;
112  int FillInputPortInformation(int port, vtkInformation *info) override;
113 
114 
115 private:
117  void operator=(const vtkSampleImplicitFunctionFilter&) = delete;
118 };
119 
120 #endif
abstract interface for implicit functions
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:302
void ReportReferences(vtkGarbageCollector *) override
Detect and break reference loops.
int vtkTypeBool
Definition: vtkABI.h:69
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:39
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
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.