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