VTK  9.2.5
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
42class VTKCOMMONDATAMODEL_EXPORT vtkImplicitWindowFunction : public vtkImplicitFunction
43{
44public:
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
97
99
102 bool UsesGarbageCollector() const override { return true; }
104
105protected:
108
110
112 double WindowRange[2];
113 double WindowValues[2];
114
115private:
117 void operator=(const vtkImplicitWindowFunction&) = delete;
118};
119
120#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
static vtkImplicitWindowFunction * New()
Construct object with window range (0,1) and window values (0,1).
vtkImplicitFunction * ImplicitFunction
bool UsesGarbageCollector() const override
Participate in garbage collection.
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.
~vtkImplicitWindowFunction() override
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:40
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287