VTK  9.0.1
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 =========================================================================*/
33 #ifndef vtkMoleculeAlgorithm_h
34 #define vtkMoleculeAlgorithm_h
35 
36 #include "vtkAlgorithm.h"
37 #include "vtkCommonExecutionModelModule.h" // For export macro
38 
39 class vtkDataSet;
40 class vtkMolecule;
41 
42 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkMoleculeAlgorithm : public vtkAlgorithm
43 {
44 public:
45  static vtkMoleculeAlgorithm* New();
47  void PrintSelf(ostream& os, vtkIndent indent) override;
48 
50 
53  vtkMolecule* GetOutput();
54  vtkMolecule* GetOutput(int);
55  virtual void SetOutput(vtkMolecule* d);
57 
63 
64  // this method is not recommended for use, but lots of old style filters
65  // use it
66  vtkDataObject* GetInput();
67  vtkDataObject* GetInput(int port);
68  vtkMolecule* GetMoleculeInput(int port);
69 
71 
80  void SetInputData(vtkDataObject*);
81  void SetInputData(int, vtkDataObject*);
83 
85 
91  void AddInputData(vtkDataObject*);
92  void AddInputData(int, vtkDataObject*);
94 
95 protected:
97  ~vtkMoleculeAlgorithm() override;
98 
99  // convenience method
100  virtual int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
101  vtkInformationVector* outputVector);
102 
107  virtual int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
108  vtkInformationVector* outputVector);
109 
114  virtual int RequestUpdateExtent(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
115 
116  // see algorithm for more info
118  int FillInputPortInformation(int port, vtkInformation* info) override;
119 
120 private:
122  void operator=(const vtkMoleculeAlgorithm&) = delete;
123 };
124 
125 #endif
Store vtkAlgorithm input/output information.
class describing a molecule
Definition: vtkMolecule.h:91
abstract class to specify dataset behavior
Definition: vtkDataSet.h:56
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:69
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:62
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:33
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:59