VTK
vtkMoleculeAlgorithm.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkMoleculeAlgorithm.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
32 #ifndef __vtkMoleculeAlgorithm_h
33 #define __vtkMoleculeAlgorithm_h
34 
35 #include "vtkAlgorithm.h"
36 
37 class vtkDataSet;
38 class vtkMolecule;
39 
41 {
42 public:
43  static vtkMoleculeAlgorithm *New();
45  void PrintSelf(ostream& os, vtkIndent indent);
46 
48 
49  vtkMolecule* GetOutput();
50  vtkMolecule* GetOutput(int);
51  virtual void SetOutput(vtkDataObject* d);
53 
55 
56  virtual int ProcessRequest(vtkInformation*,
60 
61  // this method is not recommended for use, but lots of old style filters
62  // use it
63  vtkDataObject* GetInput();
64  vtkDataObject *GetInput(int port);
65  vtkMolecule *GetMoleculeInput(int port);
66 
68 
75  void SetInput(vtkDataObject *);
76  void SetInput(int, vtkDataObject*);
78 
80 
84  void AddInput(vtkDataObject *);
85  void AddInput(int, vtkDataObject*);
87 
88 protected:
91 
92  // convenience method
93  virtual int RequestInformation(vtkInformation* request,
94  vtkInformationVector** inputVector,
95  vtkInformationVector* outputVector);
96 
98 
100  virtual int RequestData(vtkInformation* request,
101  vtkInformationVector** inputVector,
102  vtkInformationVector* outputVector);
104 
106 
108  virtual int RequestUpdateExtent(vtkInformation*,
112 
114 
115  virtual void ExecuteData(vtkDataObject *output);
116  virtual void Execute();
118 
119  // see algorithm for more info
122 
123 private:
124  vtkMoleculeAlgorithm(const vtkMoleculeAlgorithm&); // Not implemented.
125  void operator=(const vtkMoleculeAlgorithm&); // Not implemented.
126 };
127 
128 #endif