VTK  9.3.1
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 
59  virtual void SetImplicitFunction(vtkImplicitFunction*);
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:
96  ~vtkImplicitWindowFunction() override;
97 
98  void ReportReferences(vtkGarbageCollector*) override;
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
abstract interface for implicit functions
virtual double EvaluateFunction(double x[3])=0
Evaluate function at position x-y-z and return value.
bool UsesGarbageCollector() const override
Participate in garbage collection.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:270
implicit function maps another implicit function to lie within a specified range
virtual void EvaluateGradient(double x[3], double g[3])=0
Evaluate function gradient at position x-y-z and pass back vector.
Detect and break reference loops.
a simple class to control print indentation
Definition: vtkIndent.h:28
vtkMTimeType GetMTime() override
Overload standard modified time function.
virtual void ReportReferences(vtkGarbageCollector *)
vtkImplicitFunction * ImplicitFunction
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.