VTK
dox/IO/Legacy/vtkTreeReader.h
Go to the documentation of this file.
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 "vtkIOLegacyModule.h" // For export macro
00034 #include "vtkDataReader.h"
00035 
00036 class vtkTree;
00037 
00038 class VTKIOLEGACY_EXPORT vtkTreeReader : public vtkDataReader
00039 {
00040 public:
00041   static vtkTreeReader *New();
00042   vtkTypeMacro(vtkTreeReader,vtkDataReader);
00043   void PrintSelf(ostream& os, vtkIndent indent);
00044 
00046 
00047   vtkTree *GetOutput();
00048   vtkTree *GetOutput(int idx);
00049   void SetOutput(vtkTree *output);
00051 
00052 protected:
00053   vtkTreeReader();
00054   ~vtkTreeReader();
00055 
00056   virtual int RequestData(vtkInformation *, vtkInformationVector **,
00057                           vtkInformationVector *);
00058 
00059   // Since the Outputs[0] has the same UpdateExtent format
00060   // as the generic DataObject we can copy the UpdateExtent
00061   // as a default behavior.
00062   virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **,
00063                                   vtkInformationVector *);
00064 
00065   virtual int FillOutputPortInformation(int, vtkInformation*);
00066 private:
00067   vtkTreeReader(const vtkTreeReader&);  // Not implemented.
00068   void operator=(const vtkTreeReader&);  // Not implemented.
00069 };
00070 
00071 #endif