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 =========================================================================*/
35 #ifndef __vtkImplicitWindowFunction_h
36 #define __vtkImplicitWindowFunction_h
37 
38 #include "vtkImplicitFunction.h"
39 
41 {
42 public:
44  void PrintSelf(ostream& os, vtkIndent indent);
45 
48 
50 
51  double EvaluateFunction(double x[3]);
52  double EvaluateFunction(double x, double y, double z)
53  {return this->vtkImplicitFunction::EvaluateFunction(x, y, z); } ;
55 
58  void EvaluateGradient(double x[3], double n[3]);
59 
61 
62  virtual void SetImplicitFunction(vtkImplicitFunction*);
63  vtkGetObjectMacro(ImplicitFunction,vtkImplicitFunction);
65 
67 
70  vtkSetVector2Macro(WindowRange,double);
71  vtkGetVectorMacro(WindowRange,double,2);
73 
75 
78  vtkSetVector2Macro(WindowValues,double);
79  vtkGetVectorMacro(WindowValues,double,2);
81 
83  unsigned long GetMTime();
84 
86 
87  virtual void Register(vtkObjectBase* o);
88  virtual void UnRegister(vtkObjectBase* o);
90 
91 protected:
94 
96 
98  double WindowRange[2];
99  double WindowValues[2];
100 
101 private:
102  vtkImplicitWindowFunction(const vtkImplicitWindowFunction&); // Not implemented.
103  void operator=(const vtkImplicitWindowFunction&); // Not implemented.
104 };
105 
106 #endif
107 
108 
abstract interface for implicit functions
virtual double EvaluateFunction(double x[3])=0
virtual void Register(vtkObjectBase *o)
#define VTK_FILTERING_EXPORT
unsigned long GetMTime()
implicit function maps another implicit function to lie within a specified range
virtual void EvaluateGradient(double x[3], double g[3])=0
Detect and break reference loops.
virtual void UnRegister(vtkObjectBase *o)
a simple class to control print indentation
Definition: vtkIndent.h:37
virtual void ReportReferences(vtkGarbageCollector *)
vtkImplicitFunction * ImplicitFunction
abstract base class for most VTK objects
Definition: vtkObjectBase.h:59
double EvaluateFunction(double x, double y, double z)
void PrintSelf(ostream &os, vtkIndent indent)
static vtkObject * New()