VTK
dox/Chemistry/vtkMoleculeAlgorithm.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkMoleculeAlgorithm.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 =========================================================================*/
00032 #ifndef __vtkMoleculeAlgorithm_h
00033 #define __vtkMoleculeAlgorithm_h
00034 
00035 #include "vtkAlgorithm.h"
00036 
00037 class vtkDataSet;
00038 class vtkMolecule;
00039 
00040 class VTK_CHEMISTRY_EXPORT vtkMoleculeAlgorithm : public vtkAlgorithm
00041 {
00042 public:
00043   static vtkMoleculeAlgorithm *New();
00044   vtkTypeMacro(vtkMoleculeAlgorithm,vtkAlgorithm);
00045   void PrintSelf(ostream& os, vtkIndent indent);
00046 
00048 
00049   vtkMolecule* GetOutput();
00050   vtkMolecule* GetOutput(int);
00051   virtual void SetOutput(vtkDataObject* d);
00053 
00055 
00056   virtual int ProcessRequest(vtkInformation*,
00057                              vtkInformationVector**,
00058                              vtkInformationVector*);
00060 
00061   // this method is not recommended for use, but lots of old style filters
00062   // use it
00063   vtkDataObject* GetInput();
00064   vtkDataObject *GetInput(int port);
00065   vtkMolecule *GetMoleculeInput(int port);
00066 
00068 
00075   void SetInput(vtkDataObject *);
00076   void SetInput(int, vtkDataObject*);
00078 
00080 
00084   void AddInput(vtkDataObject *);
00085   void AddInput(int, vtkDataObject*);
00087 
00088 protected:
00089   vtkMoleculeAlgorithm();
00090   ~vtkMoleculeAlgorithm();
00091 
00092   // convenience method
00093   virtual int RequestInformation(vtkInformation* request,
00094                                  vtkInformationVector** inputVector,
00095                                  vtkInformationVector* outputVector);
00096 
00098 
00100   virtual int RequestData(vtkInformation* request,
00101                           vtkInformationVector** inputVector,
00102                           vtkInformationVector* outputVector);
00104 
00106 
00108   virtual int RequestUpdateExtent(vtkInformation*,
00109                                   vtkInformationVector**,
00110                                   vtkInformationVector*);
00112 
00114 
00115   virtual void ExecuteData(vtkDataObject *output);
00116   virtual void Execute();
00118 
00119   // see algorithm for more info
00120   virtual int FillOutputPortInformation(int port, vtkInformation* info);
00121   virtual int FillInputPortInformation(int port, vtkInformation* info);
00122 
00123 private:
00124   vtkMoleculeAlgorithm(const vtkMoleculeAlgorithm&);  // Not implemented.
00125   void operator=(const vtkMoleculeAlgorithm&);  // Not implemented.
00126 };
00127 
00128 #endif