VTK  9.3.20240221
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:
36  void PrintSelf(ostream& os, vtkIndent indent) override;
37 
39 
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
58 
60 
72 
74 
83 
84 protected:
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 
104 
106 
107  // see algorithm for more info
110 
111 private:
113  void operator=(const vtkMoleculeAlgorithm&) = delete;
114 };
115 
116 VTK_ABI_NAMESPACE_END
117 #endif
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:161
general representation of visualization data
abstract class to specify dataset behavior
Definition: vtkDataSet.h:165
a simple class to control print indentation
Definition: vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that operate on vtkMolecules.
void AddInputData(vtkDataObject *)
Add an input of this algorithm.
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
vtkDataObject * GetInput()
vtkTypeBool ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
see vtkAlgorithm for details
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
static vtkMoleculeAlgorithm * New()
vtkMolecule * GetOutput(int)
Get the output data object for a port on this algorithm.
virtual void SetOutput(vtkMolecule *d)
Get the output data object for a port on this algorithm.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkDataObject * GetInput(int port)
~vtkMoleculeAlgorithm() override
void SetInputData(int, vtkDataObject *)
Set an input of this algorithm.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
void SetInputData(vtkDataObject *)
Set an input of this algorithm.
vtkMolecule * GetMoleculeInput(int port)
virtual int RequestUpdateTime(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
void AddInputData(int, vtkDataObject *)
Add an input of this algorithm.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkMolecule * GetOutput()
Get the output data object for a port on this algorithm.
class describing a molecule
Definition: vtkMolecule.h:84
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
int vtkTypeBool
Definition: vtkABI.h:64