VTK  9.3.20240328
vtkImplicitWindowFunction.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
24 #ifndef vtkImplicitWindowFunction_h
25 #define vtkImplicitWindowFunction_h
26 
27 #include "vtkCommonDataModelModule.h" // For export macro
28 #include "vtkImplicitFunction.h"
29 
30 VTK_ABI_NAMESPACE_BEGIN
31 class VTKCOMMONDATAMODEL_EXPORT vtkImplicitWindowFunction : public vtkImplicitFunction
32 {
33 public:
35  void PrintSelf(ostream& os, vtkIndent indent) override;
36 
41 
43 
47  double EvaluateFunction(double x[3]) override;
49 
53  void EvaluateGradient(double x[3], double n[3]) override;
54 
56 
60  vtkGetObjectMacro(ImplicitFunction, vtkImplicitFunction);
62 
64 
68  vtkSetVector2Macro(WindowRange, double);
69  vtkGetVectorMacro(WindowRange, double, 2);
71 
73 
78  vtkSetVector2Macro(WindowValues, double);
79  vtkGetVectorMacro(WindowValues, double, 2);
81 
85  vtkMTimeType GetMTime() override;
86 
88 
91  bool UsesGarbageCollector() const override { return true; }
93 
94 protected:
97 
99 
101  double WindowRange[2];
102  double WindowValues[2];
103 
104 private:
106  void operator=(const vtkImplicitWindowFunction&) = delete;
107 };
108 
109 VTK_ABI_NAMESPACE_END
110 #endif
Detect and break reference loops.
abstract interface for implicit functions
virtual double EvaluateFunction(double x[3])=0
Evaluate function at position x-y-z and return value.
implicit function maps another implicit function to lie within a specified range
vtkImplicitFunction * ImplicitFunction
bool UsesGarbageCollector() const override
Participate in garbage collection.
double EvaluateFunction(double x[3]) override
Evaluate window function.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkImplicitWindowFunction * New()
Construct object with window range (0,1) and window values (0,1).
~vtkImplicitWindowFunction() override
vtkMTimeType GetMTime() override
Override modified time retrieval because of object dependencies.
void EvaluateGradient(double x[3], double n[3]) override
Evaluate window function gradient.
void ReportReferences(vtkGarbageCollector *) override
virtual void SetImplicitFunction(vtkImplicitFunction *)
Specify an implicit function to operate on.
a simple class to control print indentation
Definition: vtkIndent.h:108
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:270