VTK
dox/IO/Geometry/vtkGaussianCubeReader.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkGaussianCubeReader.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 =========================================================================*/
00029 #ifndef __vtkGaussianCubeReader_h
00030 #define __vtkGaussianCubeReader_h
00031 
00032 #include "vtkIOGeometryModule.h" // For export macro
00033 #include "vtkMoleculeReaderBase.h"
00034 
00035 class vtkImageData;
00036 class vtkTransform;
00037 
00038 class VTKIOGEOMETRY_EXPORT vtkGaussianCubeReader : public vtkMoleculeReaderBase
00039 {
00040 public:
00041   static vtkGaussianCubeReader *New();
00042   vtkTypeMacro(vtkGaussianCubeReader,vtkMoleculeReaderBase);
00043   void PrintSelf(ostream& os, vtkIndent indent);
00044 
00045   vtkGetObjectMacro(Transform,vtkTransform);
00046   vtkSetStringMacro(FileName);
00047   vtkGetStringMacro(FileName);
00048   vtkImageData *GetGridOutput();
00049 
00050 protected:
00051   vtkGaussianCubeReader();
00052   ~vtkGaussianCubeReader();
00053 
00054   char *FileName;
00055   vtkTransform *Transform;
00056 
00057   virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00058   virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00059 
00060   void ReadSpecificMolecule(FILE* fp);
00061 
00062   virtual int FillOutputPortInformation(int, vtkInformation*);
00063 private:
00064   vtkGaussianCubeReader(const vtkGaussianCubeReader&);  // Not implemented.
00065   void operator=(const vtkGaussianCubeReader&);  // Not implemented.
00066 };
00067 
00068 #endif