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

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 =========================================================================*/
00047 #ifndef __vtkImplicitWindowFunction_h
00048 #define __vtkImplicitWindowFunction_h
00049 
00050 #include "vtkImplicitFunction.h"
00051 
00052 class VTK_FILTERING_EXPORT vtkImplicitWindowFunction : public vtkImplicitFunction
00053 {
00054 public:
00055   vtkTypeRevisionMacro(vtkImplicitWindowFunction,vtkImplicitFunction);
00056   void PrintSelf(ostream& os, vtkIndent indent);
00057 
00059   static vtkImplicitWindowFunction *New();
00060 
00062 
00063   double EvaluateFunction(double x[3]);
00064   double EvaluateFunction(double x, double y, double z)
00065     {return this->vtkImplicitFunction::EvaluateFunction(x, y, z); } ;
00067 
00070   void EvaluateGradient(double x[3], double n[3]);
00071 
00073 
00074   virtual void SetImplicitFunction(vtkImplicitFunction*);
00075   vtkGetObjectMacro(ImplicitFunction,vtkImplicitFunction);
00077 
00079 
00082   vtkSetVector2Macro(WindowRange,double);
00083   vtkGetVectorMacro(WindowRange,double,2);
00085 
00087 
00090   vtkSetVector2Macro(WindowValues,double);
00091   vtkGetVectorMacro(WindowValues,double,2);
00093 
00095   unsigned long GetMTime();
00096 
00097 protected:
00098   vtkImplicitWindowFunction();
00099   ~vtkImplicitWindowFunction();
00100 
00101   virtual void ReportReferences(vtkGarbageCollector*);
00102   virtual void RemoveReferences();
00103 
00104   vtkImplicitFunction *ImplicitFunction;
00105   double WindowRange[2];
00106   double WindowValues[2];
00107 
00108 private:
00109   vtkImplicitWindowFunction(const vtkImplicitWindowFunction&);  // Not implemented.
00110   void operator=(const vtkImplicitWindowFunction&);  // Not implemented.
00111 };
00112 
00113 #endif
00114 
00115