VTK  9.3.20240423
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
27VTK_ABI_NAMESPACE_BEGIN
28class vtkDataSet;
29class vtkMolecule;
30
31class VTKCOMMONEXECUTIONMODEL_EXPORT vtkMoleculeAlgorithm : public vtkAlgorithm
32{
33public:
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
84protected:
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
108 int FillOutputPortInformation(int port, vtkInformation* info) override;
109 int FillInputPortInformation(int port, vtkInformation* info) override;
110
111private:
113 void operator=(const vtkMoleculeAlgorithm&) = delete;
114};
115
116VTK_ABI_NAMESPACE_END
117#endif
Superclass for all sources, filters, and sinks in VTK.
general representation of visualization data
abstract class to specify dataset behavior
Definition vtkDataSet.h:166
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(int port)
vtkMolecule * GetMoleculeInput(int port)
vtkTypeBool ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
see vtkAlgorithm for details
static vtkMoleculeAlgorithm * New()
vtkMolecule * GetOutput(int)
Get the output data object for a port on this algorithm.
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
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.
~vtkMoleculeAlgorithm() override
vtkDataObject * GetInput()
vtkMolecule * GetOutput()
Get the output data object for a port on this algorithm.
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.
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.
class describing a molecule
Definition vtkMolecule.h:84
int vtkTypeBool
Definition vtkABI.h:64