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