VTK
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 
67  virtual void SetImplicitFunction(vtkImplicitFunction*);
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:
105  ~vtkImplicitWindowFunction() override;
106 
107  void ReportReferences(vtkGarbageCollector*) override;
108 
110  double WindowRange[2];
111  double WindowValues[2];
112 
113 private:
115  void operator=(const vtkImplicitWindowFunction&) = delete;
116 };
117 
118 #endif
119 
120 
abstract interface for implicit functions
virtual double EvaluateFunction(double x[3])=0
Evaluate function at position x-y-z and return value.
virtual void Register(vtkObjectBase *o)
Increase the reference count (mark as used by another object).
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:302
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.
virtual void UnRegister(vtkObjectBase *o)
Decrease the reference count (release by another object).
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkMTimeType GetMTime() override
Overload standard modified time function.
virtual void ReportReferences(vtkGarbageCollector *)
vtkImplicitFunction * ImplicitFunction
abstract base class for most VTK objects
Definition: vtkObjectBase.h:62
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.