00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkTreeReader.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 =========================================================================*/ 00030 #ifndef __vtkTreeReader_h 00031 #define __vtkTreeReader_h 00032 00033 #include "vtkDataReader.h" 00034 00035 class vtkTree; 00036 00037 class VTK_IO_EXPORT vtkTreeReader : public vtkDataReader 00038 { 00039 public: 00040 static vtkTreeReader *New(); 00041 vtkTypeMacro(vtkTreeReader,vtkDataReader); 00042 void PrintSelf(ostream& os, vtkIndent indent); 00043 00045 00046 vtkTree *GetOutput(); 00047 vtkTree *GetOutput(int idx); 00048 void SetOutput(vtkTree *output); 00050 00051 protected: 00052 vtkTreeReader(); 00053 ~vtkTreeReader(); 00054 00055 virtual int RequestData(vtkInformation *, vtkInformationVector **, 00056 vtkInformationVector *); 00057 00058 // Since the Outputs[0] has the same UpdateExtent format 00059 // as the generic DataObject we can copy the UpdateExtent 00060 // as a default behavior. 00061 virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, 00062 vtkInformationVector *); 00063 00064 virtual int FillOutputPortInformation(int, vtkInformation*); 00065 private: 00066 vtkTreeReader(const vtkTreeReader&); // Not implemented. 00067 void operator=(const vtkTreeReader&); // Not implemented. 00068 }; 00069 00070 #endif 00071 00072