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

vtkDataSetToDataObjectFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkDataSetToDataObjectFilter.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 =========================================================================*/
00061 #ifndef __vtkDataSetToDataObjectFilter_h
00062 #define __vtkDataSetToDataObjectFilter_h
00063 
00064 #include "vtkDataObjectSource.h"
00065 
00066 class vtkDataSet;
00067 
00068 class VTK_GRAPHICS_EXPORT vtkDataSetToDataObjectFilter : public vtkDataObjectSource
00069 {
00070 public:
00071   vtkTypeRevisionMacro(vtkDataSetToDataObjectFilter,vtkDataObjectSource);
00072   void PrintSelf(ostream& os, vtkIndent indent);
00073 
00075   static vtkDataSetToDataObjectFilter *New();
00076 
00078 
00079   vtkSetMacro(Geometry,int);
00080   vtkGetMacro(Geometry,int);
00081   vtkBooleanMacro(Geometry,int);
00083 
00085 
00086   vtkSetMacro(Topology,int);
00087   vtkGetMacro(Topology,int);
00088   vtkBooleanMacro(Topology,int);
00090 
00092 
00093   vtkSetMacro(FieldData,int);
00094   vtkGetMacro(FieldData,int);
00095   vtkBooleanMacro(FieldData,int);
00097 
00099 
00100   vtkSetMacro(PointData,int);
00101   vtkGetMacro(PointData,int);
00102   vtkBooleanMacro(PointData,int);
00104 
00106 
00107   vtkSetMacro(CellData,int);
00108   vtkGetMacro(CellData,int);
00109   vtkBooleanMacro(CellData,int);
00111 
00113 
00114   virtual void SetInput(vtkDataSet *input);
00115   vtkDataSet *GetInput();
00117 
00118 protected:
00119   vtkDataSetToDataObjectFilter();
00120   ~vtkDataSetToDataObjectFilter();
00121 
00122   void Execute(); //generate output data
00123   void ComputeInputUpdateExtents(vtkDataObject *output);
00124 
00125   virtual int FillInputPortInformation(int, vtkInformation*);
00126   
00127   int Geometry;
00128   int Topology;
00129   int PointData;
00130   int CellData;
00131   int FieldData;
00132 
00133 private:
00134   vtkDataSetToDataObjectFilter(const vtkDataSetToDataObjectFilter&);  // Not implemented.
00135   void operator=(const vtkDataSetToDataObjectFilter&);  // Not implemented.
00136 };
00137 
00138 #endif
00139 
00140