VTK
|
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 "vtkImageAlgorithm.h" 00033 00034 class vtkImageData; 00035 class vtkStructuredPoints; 00036 00037 class VTK_FILTERING_EXPORT vtkImageToStructuredPoints : public vtkImageAlgorithm 00038 { 00039 public: 00040 static vtkImageToStructuredPoints *New(); 00041 vtkTypeMacro(vtkImageToStructuredPoints,vtkImageAlgorithm); 00042 void PrintSelf(ostream& os, vtkIndent indent); 00043 00045 00046 void SetVectorInput(vtkImageData *input); 00047 vtkImageData *GetVectorInput(); 00049 00051 vtkStructuredPoints* GetStructuredPointsOutput(); 00052 00053 protected: 00054 vtkImageToStructuredPoints(); 00055 ~vtkImageToStructuredPoints(); 00056 00057 // to translate the wholeExtent to have min 0 ( I do not like this hack). 00058 int Translate[3]; 00059 00060 virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00061 virtual int RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00062 virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00063 00064 virtual int FillOutputPortInformation(int, vtkInformation*); 00065 virtual int FillInputPortInformation(int, vtkInformation*); 00066 00067 private: 00068 vtkImageToStructuredPoints(const vtkImageToStructuredPoints&); // Not implemented. 00069 void operator=(const vtkImageToStructuredPoints&); // Not implemented. 00070 }; 00071 00072 00073 #endif 00074 00075