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 
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:
109 
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::GetMTime
vtkMTimeType GetMTime() override
Override modified time retrieval because of object dependencies.
vtkImplicitWindowFunction
implicit function maps another implicit function to lie within a specified range
Definition: vtkImplicitWindowFunction.h:43
vtkImplicitWindowFunction::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
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:61
vtkImplicitWindowFunction::ReportReferences
void ReportReferences(vtkGarbageCollector *) override
vtkImplicitWindowFunction::ImplicitFunction
vtkImplicitFunction * ImplicitFunction
Definition: vtkImplicitWindowFunction.h:112
vtkImplicitWindowFunction::EvaluateGradient
void EvaluateGradient(double x[3], double n[3]) override
Evaluate window function gradient.
vtkObjectBase
abstract base class for most VTK objects
Definition: vtkObjectBase.h:66
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkImplicitWindowFunction::EvaluateFunction
double EvaluateFunction(double x[3]) override
Evaluate function at position x-y-z and return value.
vtkImplicitWindowFunction::SetImplicitFunction
virtual void SetImplicitFunction(vtkImplicitFunction *)
Specify an implicit function to operate on.
vtkImplicitWindowFunction::vtkImplicitWindowFunction
vtkImplicitWindowFunction()
vtkImplicitWindowFunction::Register
void Register(vtkObjectBase *o) override
Participate in garbage collection.
vtkImplicitWindowFunction::UnRegister
void UnRegister(vtkObjectBase *o) override
Decrease the reference count (release by another object).
vtkGarbageCollector
Detect and break reference loops.
Definition: vtkGarbageCollector.h:100
vtkImplicitWindowFunction::~vtkImplicitWindowFunction
~vtkImplicitWindowFunction() override
vtkImplicitFunction.h
vtkImplicitWindowFunction::New
static vtkImplicitWindowFunction * New()
Construct object with window range (0,1) and window values (0,1).
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:302