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 =========================================================================*/
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  void Register(vtkObjectBase* o) override;
103  void UnRegister(vtkObjectBase* o) override;
105 
106 protected:
108  ~vtkImplicitWindowFunction() override;
109 
110  void ReportReferences(vtkGarbageCollector*) override;
111 
113  double WindowRange[2];
114  double WindowValues[2];
115 
116 private:
118  void operator=(const vtkImplicitWindowFunction&) = delete;
119 };
120 
121 #endif
122 
123 
vtkImplicitWindowFunction
implicit function maps another implicit function to lie within a specified range
Definition: vtkImplicitWindowFunction.h:42
vtkObjectBase::Register
virtual void Register(vtkObjectBase *o)
Increase the reference count (mark as used by another object).
vtkObjectBase::ReportReferences
virtual void ReportReferences(vtkGarbageCollector *)
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkImplicitFunction::EvaluateFunction
virtual double EvaluateFunction(double x[3])=0
Evaluate function at position x-y-z and return value.
vtkImplicitFunction
abstract interface for implicit functions
Definition: vtkImplicitFunction.h:60
vtkImplicitWindowFunction::ImplicitFunction
vtkImplicitFunction * ImplicitFunction
Definition: vtkImplicitWindowFunction.h:112
vtkImplicitFunction::GetMTime
vtkMTimeType GetMTime() override
Overload standard modified time function.
vtkObjectBase
abstract base class for most VTK objects
Definition: vtkObjectBase.h:65
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkImplicitFunction::EvaluateGradient
virtual void EvaluateGradient(double x[3], double g[3])=0
Evaluate function gradient at position x-y-z and pass back vector.
vtkGarbageCollector
Detect and break reference loops.
Definition: vtkGarbageCollector.h:99
vtkImplicitFunction.h
vtkImplicitFunction::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkObjectBase::UnRegister
virtual void UnRegister(vtkObjectBase *o)
Decrease the reference count (release by another object).
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:302