Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound 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   Language:  C++
00006 
00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
00008   All rights reserved.
00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00010 
00011      This software is distributed WITHOUT ANY WARRANTY; without even 
00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00013      PURPOSE.  See the above copyright notice for more information.
00014 
00015 =========================================================================*/
00052 #ifndef __vtkImplicitWindowFunction_h
00053 #define __vtkImplicitWindowFunction_h
00054 
00055 #include "vtkImplicitFunction.h"
00056 
00057 class VTK_FILTERING_EXPORT vtkImplicitWindowFunction : public vtkImplicitFunction
00058 {
00059 public:
00060   vtkTypeRevisionMacro(vtkImplicitWindowFunction,vtkImplicitFunction);
00061   void PrintSelf(ostream& os, vtkIndent indent);
00062 
00064   static vtkImplicitWindowFunction *New();
00065 
00067 
00068   float EvaluateFunction(float x[3]);
00069   float EvaluateFunction(float x, float y, float z)
00070     {return this->vtkImplicitFunction::EvaluateFunction(x, y, z); } ;
00072 
00075   void EvaluateGradient(float x[3], float n[3]);
00076 
00078 
00079   virtual void SetImplicitFunction(vtkImplicitFunction*);
00080   vtkGetObjectMacro(ImplicitFunction,vtkImplicitFunction);
00082 
00084 
00087   vtkSetVector2Macro(WindowRange,float);
00088   vtkGetVectorMacro(WindowRange,float,2);
00090 
00092 
00095   vtkSetVector2Macro(WindowValues,float);
00096   vtkGetVectorMacro(WindowValues,float,2);
00098 
00100   unsigned long GetMTime();
00101 
00102 protected:
00103   vtkImplicitWindowFunction();
00104   ~vtkImplicitWindowFunction();
00105 
00106   vtkImplicitFunction *ImplicitFunction;
00107   float WindowRange[2];
00108   float WindowValues[2];
00109 
00110 private:
00111   vtkImplicitWindowFunction(const vtkImplicitWindowFunction&);  // Not implemented.
00112   void operator=(const vtkImplicitWindowFunction&);  // Not implemented.
00113 };
00114 
00115 #endif
00116 
00117