VTK  9.3.1
vtkMoleculeAlgorithm.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
21 #ifndef vtkMoleculeAlgorithm_h
22 #define vtkMoleculeAlgorithm_h
23 
24 #include "vtkAlgorithm.h"
25 #include "vtkCommonExecutionModelModule.h" // For export macro
26 
27 VTK_ABI_NAMESPACE_BEGIN
28 class vtkDataSet;
29 class vtkMolecule;
30 
31 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkMoleculeAlgorithm : public vtkAlgorithm
32 {
33 public:
34  static vtkMoleculeAlgorithm* New();
36  void PrintSelf(ostream& os, vtkIndent indent) override;
37 
39 
42  vtkMolecule* GetOutput();
43  vtkMolecule* GetOutput(int);
44  virtual void SetOutput(vtkMolecule* d);
46 
52 
53  // this method is not recommended for use, but lots of old style filters
54  // use it
55  vtkDataObject* GetInput();
56  vtkDataObject* GetInput(int port);
57  vtkMolecule* GetMoleculeInput(int port);
58 
60 
69  void SetInputData(vtkDataObject*);
70  void SetInputData(int, vtkDataObject*);
72 
74 
80  void AddInputData(vtkDataObject*);
81  void AddInputData(int, vtkDataObject*);
83 
84 protected:
86  ~vtkMoleculeAlgorithm() override;
87 
88  // convenience method
89  virtual int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
90  vtkInformationVector* outputVector);
91 
96  virtual int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
97  vtkInformationVector* outputVector);
98 
103  virtual int RequestUpdateExtent(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
104 
105  // see algorithm for more info
107  int FillInputPortInformation(int port, vtkInformation* info) override;
108 
109 private:
111  void operator=(const vtkMoleculeAlgorithm&) = delete;
112 };
113 
114 VTK_ABI_NAMESPACE_END
115 #endif
Store vtkAlgorithm input/output information.
class describing a molecule
Definition: vtkMolecule.h:83
abstract class to specify dataset behavior
Definition: vtkDataSet.h:52
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Superclass for algorithms that operate on vtkMolecules.
int vtkTypeBool
Definition: vtkABI.h:64
virtual vtkTypeBool ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:51
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.
a simple class to control print indentation
Definition: vtkIndent.h:28
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
general representation of visualization data
Definition: vtkDataObject.h:54