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