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 "vtkDomainsChemistryModule.h" // For export macro
36 #include "vtkAlgorithm.h"
37 
38 class vtkDataSet;
39 class vtkMolecule;
40 
42 {
43 public:
44  static vtkMoleculeAlgorithm *New();
46  void PrintSelf(ostream& os, vtkIndent indent);
47 
49 
50  vtkMolecule* GetOutput();
51  vtkMolecule* GetOutput(int);
52  virtual void SetOutput(vtkMolecule* d);
54 
56 
57  virtual int ProcessRequest(vtkInformation*,
61 
62  // this method is not recommended for use, but lots of old style filters
63  // use it
64  vtkDataObject* GetInput();
65  vtkDataObject *GetInput(int port);
66  vtkMolecule *GetMoleculeInput(int port);
67 
69 
76  void SetInputData(vtkDataObject *);
77  void SetInputData(int, vtkDataObject*);
79 
81 
85  void AddInputData(vtkDataObject *);
86  void AddInputData(int, vtkDataObject*);
88 
89 protected:
92 
93  // convenience method
94  virtual int RequestInformation(vtkInformation* request,
95  vtkInformationVector** inputVector,
96  vtkInformationVector* outputVector);
97 
99 
101  virtual int RequestData(vtkInformation* request,
102  vtkInformationVector** inputVector,
103  vtkInformationVector* outputVector);
105 
107 
109  virtual int RequestUpdateExtent(vtkInformation*,
113 
114  // see algorithm for more info
117 
118 private:
119  vtkMoleculeAlgorithm(const vtkMoleculeAlgorithm&); // Not implemented.
120  void operator=(const vtkMoleculeAlgorithm&); // Not implemented.
121 };
122 
123 #endif
Store vtkAlgorithm input/output information.
class describing a molecule
Definition: vtkMolecule.h:88
abstract class to specify dataset behavior
Definition: vtkDataSet.h:61
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Superclass for algorithms that operate on vtkMolecules.
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:61
virtual int FillOutputPortInformation(int port, vtkInformation *info)
#define VTKDOMAINSCHEMISTRY_EXPORT
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual int FillInputPortInformation(int port, vtkInformation *info)
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
general representation of visualization data
Definition: vtkDataObject.h:64
void PrintSelf(ostream &os, vtkIndent indent)