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

vtkImageToStructuredPoints.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkImageToStructuredPoints.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 =========================================================================*/
00040 #ifndef __vtkImageToStructuredPoints_h
00041 #define __vtkImageToStructuredPoints_h
00042 
00043 #include "vtkSource.h"
00044  
00045 class vtkImageData;
00046 class vtkStructuredPoints;
00047 
00048 class VTK_FILTERING_EXPORT vtkImageToStructuredPoints : public vtkSource
00049 {
00050 public:
00051   static vtkImageToStructuredPoints *New();
00052   vtkTypeRevisionMacro(vtkImageToStructuredPoints,vtkSource);
00053   void PrintSelf(ostream& os, vtkIndent indent);
00054   
00056 
00057   void SetInput(vtkImageData *input);
00058   vtkImageData *GetInput();
00060 
00061 
00063 
00064   void SetVectorInput(vtkImageData *input);
00065   vtkImageData *GetVectorInput();
00067 
00069 
00070   vtkStructuredPoints *GetOutput();
00071   vtkStructuredPoints *GetOutput(int idx);
00073   
00074 protected:
00075   vtkImageToStructuredPoints();
00076   ~vtkImageToStructuredPoints();
00077 
00078   // to translate the wholeExtent to have min 0 ( I do not like this hack).
00079   int Translate[3];
00080   
00081   void Execute();
00082   void ExecuteInformation();
00083   void ComputeInputUpdateExtents(vtkDataObject *data);
00084 
00085   virtual int FillOutputPortInformation(int, vtkInformation*);
00086   virtual int FillInputPortInformation(int, vtkInformation*);
00087 
00088 private:
00089   vtkImageToStructuredPoints(const vtkImageToStructuredPoints&);  // Not implemented.
00090   void operator=(const vtkImageToStructuredPoints&);  // Not implemented.
00091 };
00092 
00093 
00094 #endif
00095 
00096