VTK  9.0.20200707
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 =========================================================================*/
35 #ifndef vtkSampleImplicitFunctionFilter_h
36 #define vtkSampleImplicitFunctionFilter_h
37 
38 #include "vtkDataSetAlgorithm.h"
39 #include "vtkFiltersGeneralModule.h" // For export macro
40 
42 class vtkDataArray;
43 
44 class VTKFILTERSGENERAL_EXPORT vtkSampleImplicitFunctionFilter : public vtkDataSetAlgorithm
45 {
46 public:
48 
53  void PrintSelf(ostream& os, vtkIndent indent) override;
55 
57 
60  virtual void SetImplicitFunction(vtkImplicitFunction*);
61  vtkGetObjectMacro(ImplicitFunction, vtkImplicitFunction);
63 
65 
68  vtkSetMacro(ComputeGradients, vtkTypeBool);
69  vtkGetMacro(ComputeGradients, vtkTypeBool);
70  vtkBooleanMacro(ComputeGradients, vtkTypeBool);
72 
74 
78  vtkSetStringMacro(ScalarArrayName);
79  vtkGetStringMacro(ScalarArrayName);
81 
83 
87  vtkSetStringMacro(GradientArrayName);
88  vtkGetStringMacro(GradientArrayName);
90 
94  vtkMTimeType GetMTime() override;
95 
96 protected:
99 
104 
105  void ReportReferences(vtkGarbageCollector*) override;
106 
108  int FillInputPortInformation(int port, vtkInformation* info) override;
109 
110 private:
112  void operator=(const vtkSampleImplicitFunctionFilter&) = delete;
113 };
114 
115 #endif
vtkSampleImplicitFunctionFilter
sample an implicit function over a dataset, generating scalar values and optional gradient vectors
Definition: vtkSampleImplicitFunctionFilter.h:44
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkDataSetAlgorithm::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
Definition: vtkDataSetAlgorithm.h:176
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:49
vtkImplicitFunction
abstract interface for implicit functions
Definition: vtkImplicitFunction.h:60
vtkDataSetAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition: vtkDataSetAlgorithm.h:48
vtkX3D::port
Definition: vtkX3D.h:453
vtkSampleImplicitFunctionFilter::ComputeGradients
vtkTypeBool ComputeGradients
Definition: vtkSampleImplicitFunctionFilter.h:101
vtkDataSetAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkObject::GetMTime
virtual vtkMTimeType GetMTime()
Return this object's modified time.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkDataSetAlgorithm::New
static vtkDataSetAlgorithm * New()
vtkGarbageCollector
Detect and break reference loops.
Definition: vtkGarbageCollector.h:94
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkX3D::info
Definition: vtkX3D.h:382
vtkAlgorithm::ReportReferences
void ReportReferences(vtkGarbageCollector *) override
vtkDataSetAlgorithm.h
vtkDataSetAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSampleImplicitFunctionFilter::ImplicitFunction
vtkImplicitFunction * ImplicitFunction
Definition: vtkSampleImplicitFunctionFilter.h:100
vtkSampleImplicitFunctionFilter::GradientArrayName
char * GradientArrayName
Definition: vtkSampleImplicitFunctionFilter.h:103
vtkSampleImplicitFunctionFilter::ScalarArrayName
char * ScalarArrayName
Definition: vtkSampleImplicitFunctionFilter.h:102
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:285