VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkCMLMoleculeReader.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 =========================================================================*/ 00024 #ifndef __vtkCMLMoleculeReader_h 00025 #define __vtkCMLMoleculeReader_h 00026 00027 #include "vtkDataReader.h" 00028 00029 class vtkMolecule; 00030 00031 class VTK_CHEMISTRY_EXPORT vtkCMLMoleculeReader : public vtkDataReader 00032 { 00033 public: 00034 static vtkCMLMoleculeReader *New(); 00035 vtkTypeMacro(vtkCMLMoleculeReader,vtkDataReader); 00036 void PrintSelf(ostream& os, vtkIndent indent); 00037 00039 00040 vtkMolecule *GetOutput(); 00041 void SetOutput(vtkMolecule *); 00043 00045 00046 vtkSetStringMacro(FileName); 00047 vtkGetStringMacro(FileName); 00049 00050 protected: 00051 vtkCMLMoleculeReader(); 00052 ~vtkCMLMoleculeReader(); 00053 00054 int RequestData(vtkInformation *, vtkInformationVector **, 00055 vtkInformationVector *); 00056 int FillOutputPortInformation(int, vtkInformation*); 00057 00058 char *FileName; 00059 00060 private: 00061 vtkCMLMoleculeReader(const vtkCMLMoleculeReader&); // Not implemented. 00062 void operator=(const vtkCMLMoleculeReader&); // Not implemented. 00063 }; 00064 00065 #endif