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

Graphics/vtkInterpolateDataSetAttributes.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkInterpolateDataSetAttributes.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 __vtkInterpolateDataSetAttributes_h
00036 #define __vtkInterpolateDataSetAttributes_h
00037 
00038 #include "vtkDataSetToDataSetFilter.h"
00039 
00040 class vtkDataSetCollection;
00041 
00042 class VTK_GRAPHICS_EXPORT vtkInterpolateDataSetAttributes : public vtkDataSetToDataSetFilter
00043 {
00044 public:
00045   static vtkInterpolateDataSetAttributes *New();
00046   vtkTypeRevisionMacro(vtkInterpolateDataSetAttributes,vtkDataSetToDataSetFilter);
00047   void PrintSelf(ostream& os, vtkIndent indent);
00048 
00050   void AddInput(vtkDataSet *in);
00051 
00053   vtkDataSetCollection *GetInputList();
00054   
00056 
00057   vtkSetClampMacro(T,double,0.0,VTK_DOUBLE_MAX);
00058   vtkGetMacro(T,double);
00060 
00061 protected:
00062   vtkInterpolateDataSetAttributes();
00063   ~vtkInterpolateDataSetAttributes();
00064 
00065   void Execute();
00066   
00067   vtkDataSetCollection *InputList; // list of data sets to interpolate 
00068   double T; // interpolation parameter
00069 
00070 private:
00071   // hide the superclass' AddInput() from the user and the compiler
00072   void AddInput(vtkDataObject *)
00073     { vtkErrorMacro( << "AddInput() must be called with a vtkDataSet not a vtkDataObject."); };
00074   void RemoveInput(vtkDataObject *input)
00075     { this->vtkProcessObject::RemoveInput(input); };
00076 private:
00077   vtkInterpolateDataSetAttributes(const vtkInterpolateDataSetAttributes&);  // Not implemented.
00078   void operator=(const vtkInterpolateDataSetAttributes&);  // Not implemented.
00079 };
00080 
00081 #endif
00082 
00083