VTK
dox/Common/ExecutionModel/vtkImageToStructuredPoints.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkImageToStructuredPoints.h
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 =========================================================================*/
00029 #ifndef __vtkImageToStructuredPoints_h
00030 #define __vtkImageToStructuredPoints_h
00031 
00032 #include "vtkCommonExecutionModelModule.h" // For export macro
00033 #include "vtkImageAlgorithm.h"
00034 
00035 class vtkImageData;
00036 class vtkStructuredPoints;
00037 
00038 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkImageToStructuredPoints : public vtkImageAlgorithm
00039 {
00040 public:
00041   static vtkImageToStructuredPoints *New();
00042   vtkTypeMacro(vtkImageToStructuredPoints,vtkImageAlgorithm);
00043   void PrintSelf(ostream& os, vtkIndent indent);
00044 
00046 
00047   void SetVectorInputData(vtkImageData *input);
00048   vtkImageData *GetVectorInput();
00050 
00052   vtkStructuredPoints* GetStructuredPointsOutput();
00053 
00054 protected:
00055   vtkImageToStructuredPoints();
00056   ~vtkImageToStructuredPoints();
00057 
00058   // to translate the wholeExtent to have min 0 ( I do not like this hack).
00059   int Translate[3];
00060 
00061   virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00062   virtual int RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00063   virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00064 
00065   virtual int FillOutputPortInformation(int, vtkInformation*);
00066   virtual int FillInputPortInformation(int, vtkInformation*);
00067 
00068 private:
00069   vtkImageToStructuredPoints(const vtkImageToStructuredPoints&);  // Not implemented.
00070   void operator=(const vtkImageToStructuredPoints&);  // Not implemented.
00071 };
00072 
00073 
00074 #endif
00075 
00076