VTK  9.2.6
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=========================================================================*/
32
33#ifndef vtkImplicitWindowFunction_h
34#define vtkImplicitWindowFunction_h
35
36#include "vtkCommonDataModelModule.h" // For export macro
37#include "vtkImplicitFunction.h"
38
39class VTKCOMMONDATAMODEL_EXPORT vtkImplicitWindowFunction : public vtkImplicitFunction
40{
41public:
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
70
72
76 vtkSetVector2Macro(WindowRange, double);
77 vtkGetVectorMacro(WindowRange, double, 2);
79
81
86 vtkSetVector2Macro(WindowValues, double);
87 vtkGetVectorMacro(WindowValues, double, 2);
89
94
96
99 bool UsesGarbageCollector() const override { return true; }
101
102protected:
105
107
109 double WindowRange[2];
110 double WindowValues[2];
111
112private:
114 void operator=(const vtkImplicitWindowFunction&) = delete;
115};
116
117#endif
virtual double EvaluateFunction(double x[3])=0
Evaluate function at position x-y-z and return value.
static vtkImplicitWindowFunction * New()
Construct object with window range (0,1) and window values (0,1).
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:34
friend class vtkGarbageCollector
Some classes need to clear the reference counts manually due to the way they work.
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:287