VTK  9.7.1
vtkMoleculeAppend.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
3 
21 #ifndef vtkMoleculeAppend_h
22 #define vtkMoleculeAppend_h
23 
24 #include "vtkFiltersCoreModule.h" // For export macro
25 #include "vtkMoleculeAlgorithm.h"
26 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
27 
28 VTK_ABI_NAMESPACE_BEGIN
29 class VTKFILTERSCORE_EXPORT VTK_MARSHALAUTO vtkMoleculeAppend : public vtkMoleculeAlgorithm
30 {
31 public:
32  static vtkMoleculeAppend* New();
34  void PrintSelf(ostream& os, vtkIndent indent) override;
35 
37 
42  vtkDataObject* GetInput(int idx);
43  vtkDataObject* GetInput() { return this->GetInput(0); }
45 
47 
52  vtkGetMacro(MergeCoincidentAtoms, bool);
53  vtkSetMacro(MergeCoincidentAtoms, bool);
54  vtkBooleanMacro(MergeCoincidentAtoms, bool);
55  // @}
56 
57 protected:
59  ~vtkMoleculeAppend() override = default;
60 
62 
63  // see vtkAlgorithm for docs.
64  int FillInputPortInformation(int, vtkInformation*) override;
65 
66  // Check arrays information : name, type and number of components.
67  bool CheckArrays(vtkAbstractArray* array1, vtkAbstractArray* array2);
68 
70 
71 private:
72  vtkMoleculeAppend(const vtkMoleculeAppend&) = delete;
73  void operator=(const vtkMoleculeAppend&) = delete;
74 };
75 
76 VTK_ABI_NAMESPACE_END
77 #endif
Appends one or more molecules into a single molecule.
Store vtkAlgorithm input/output information.
Abstract superclass for all arrays.
vtkDataObject * GetInput()
static vtkMoleculeAlgorithm * New()
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.
a simple class to control print indentation
Definition: vtkIndent.h:28
vtkDataObject * GetInput()
Get one input to this filter.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
Store zero or more vtkInformation instances.
#define VTK_MARSHALAUTO
general representation of visualization data
Definition: vtkDataObject.h:55
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.