Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

Filtering/vtkImplicitWindowFunction.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkImplicitWindowFunction.h,v $
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00035 #ifndef __vtkImplicitWindowFunction_h
00036 #define __vtkImplicitWindowFunction_h
00037 
00038 #include "vtkImplicitFunction.h"
00039 
00040 class VTK_FILTERING_EXPORT vtkImplicitWindowFunction : public vtkImplicitFunction
00041 {
00042 public:
00043   vtkTypeRevisionMacro(vtkImplicitWindowFunction,vtkImplicitFunction);
00044   void PrintSelf(ostream& os, vtkIndent indent);
00045 
00047   static vtkImplicitWindowFunction *New();
00048 
00050 
00051   double EvaluateFunction(double x[3]);
00052   double EvaluateFunction(double x, double y, double z)
00053     {return this->vtkImplicitFunction::EvaluateFunction(x, y, z); } ;
00055 
00058   void EvaluateGradient(double x[3], double n[3]);
00059 
00061 
00062   virtual void SetImplicitFunction(vtkImplicitFunction*);
00063   vtkGetObjectMacro(ImplicitFunction,vtkImplicitFunction);
00065 
00067 
00070   vtkSetVector2Macro(WindowRange,double);
00071   vtkGetVectorMacro(WindowRange,double,2);
00073 
00075 
00078   vtkSetVector2Macro(WindowValues,double);
00079   vtkGetVectorMacro(WindowValues,double,2);
00081 
00083   unsigned long GetMTime();
00084 
00085 protected:
00086   vtkImplicitWindowFunction();
00087   ~vtkImplicitWindowFunction();
00088 
00089   vtkImplicitFunction *ImplicitFunction;
00090   double WindowRange[2];
00091   double WindowValues[2];
00092 
00093 private:
00094   vtkImplicitWindowFunction(const vtkImplicitWindowFunction&);  // Not implemented.
00095   void operator=(const vtkImplicitWindowFunction&);  // Not implemented.
00096 };
00097 
00098 #endif
00099 
00100