VTK
dox/Domains/Chemistry/vtkCMLMoleculeReader.h
Go to the documentation of this file.
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 "vtkDomainsChemistryModule.h" // For export macro
00028 #include "vtkMoleculeAlgorithm.h"
00029 
00030 class vtkMolecule;
00031 
00032 class VTKDOMAINSCHEMISTRY_EXPORT vtkCMLMoleculeReader : public vtkMoleculeAlgorithm
00033 {
00034 public:
00035   static vtkCMLMoleculeReader *New();
00036   vtkTypeMacro(vtkCMLMoleculeReader,vtkMoleculeAlgorithm);
00037   void PrintSelf(ostream& os, vtkIndent indent);
00038 
00040 
00041   vtkMolecule *GetOutput();
00042   void SetOutput(vtkMolecule *);
00044 
00046 
00047   vtkSetStringMacro(FileName);
00048   vtkGetStringMacro(FileName);
00050 
00051 protected:
00052   vtkCMLMoleculeReader();
00053   ~vtkCMLMoleculeReader();
00054 
00055   int RequestData(vtkInformation *, vtkInformationVector **,
00056                   vtkInformationVector *);
00057   int FillOutputPortInformation(int, vtkInformation*);
00058 
00059   char *FileName;
00060 
00061 private:
00062   vtkCMLMoleculeReader(const vtkCMLMoleculeReader&);  // Not implemented.
00063   void operator=(const vtkCMLMoleculeReader&);  // Not implemented.
00064 };
00065 
00066 #endif