VTK  9.1.0
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 =========================================================================*/
33 #ifndef vtkImplicitWindowFunction_h
34 #define vtkImplicitWindowFunction_h
35 
36 #include "vtkCommonDataModelModule.h" // For export macro
37 #include "vtkImplicitFunction.h"
38 
39 class VTKCOMMONDATAMODEL_EXPORT vtkImplicitWindowFunction : public vtkImplicitFunction
40 {
41 public:
43  void PrintSelf(ostream& os, vtkIndent indent) override;
44 
49 
51 
55  double EvaluateFunction(double x[3]) override;
57 
61  void EvaluateGradient(double x[3], double n[3]) override;
62 
64 
68  vtkGetObjectMacro(ImplicitFunction, vtkImplicitFunction);
70 
72 
76  vtkSetVector2Macro(WindowRange, double);
77  vtkGetVectorMacro(WindowRange, double, 2);
79 
81 
86  vtkSetVector2Macro(WindowValues, double);
87  vtkGetVectorMacro(WindowValues, double, 2);
89 
93  vtkMTimeType GetMTime() override;
94 
96 
99  void Register(vtkObjectBase* o) override;
100  void UnRegister(vtkObjectBase* o) override;
102 
103 protected:
106 
108 
110  double WindowRange[2];
111  double WindowValues[2];
112 
113 private:
115  void operator=(const vtkImplicitWindowFunction&) = delete;
116 };
117 
118 #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
void UnRegister(vtkObjectBase *o) override
Participate in garbage collection.
vtkImplicitFunction * ImplicitFunction
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
void Register(vtkObjectBase *o) override
Participate in garbage collection.
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:34
abstract base class for most VTK objects
Definition: vtkObjectBase.h:70
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287