VTK  9.2.6
vtkImplicitWindowFunction.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImplicitWindowFunction.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 =========================================================================*/
36 #ifndef vtkImplicitWindowFunction_h
37 #define vtkImplicitWindowFunction_h
38 
39 #include "vtkCommonDataModelModule.h" // For export macro
40 #include "vtkImplicitFunction.h"
41 
42 class VTKCOMMONDATAMODEL_EXPORT vtkImplicitWindowFunction : public vtkImplicitFunction
43 {
44 public:
46  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
52 
54 
58  double EvaluateFunction(double x[3]) override;
60 
64  void EvaluateGradient(double x[3], double n[3]) override;
65 
67 
70  virtual void SetImplicitFunction(vtkImplicitFunction*);
71  vtkGetObjectMacro(ImplicitFunction, vtkImplicitFunction);
73 
75 
79  vtkSetVector2Macro(WindowRange, double);
80  vtkGetVectorMacro(WindowRange, double, 2);
82 
84 
89  vtkSetVector2Macro(WindowValues, double);
90  vtkGetVectorMacro(WindowValues, double, 2);
92 
96  vtkMTimeType GetMTime() override;
97 
99 
102  bool UsesGarbageCollector() const override { return true; }
104 
105 protected:
107  ~vtkImplicitWindowFunction() override;
108 
109  void ReportReferences(vtkGarbageCollector*) override;
110 
112  double WindowRange[2];
113  double WindowValues[2];
114 
115 private:
117  void operator=(const vtkImplicitWindowFunction&) = delete;
118 };
119 
120 #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:287
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:39
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.