VTK  9.3.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 
27 VTK_ABI_NAMESPACE_BEGIN
28 class VTKFILTERSCORE_EXPORT vtkMoleculeAppend : public vtkMoleculeAlgorithm
29 {
30 public:
31  static vtkMoleculeAppend* New();
33  void PrintSelf(ostream& os, vtkIndent indent) override;
34 
36 
41  vtkDataObject* GetInput(int idx);
42  vtkDataObject* GetInput() { return this->GetInput(0); }
44 
46 
51  vtkGetMacro(MergeCoincidentAtoms, bool);
52  vtkSetMacro(MergeCoincidentAtoms, bool);
53  vtkBooleanMacro(MergeCoincidentAtoms, bool);
54  // @}
55 
56 protected:
58  ~vtkMoleculeAppend() override = default;
59 
61 
62  // see vtkAlgorithm for docs.
63  int FillInputPortInformation(int, vtkInformation*) override;
64 
65  // Check arrays information : name, type and number of components.
66  bool CheckArrays(vtkAbstractArray* array1, vtkAbstractArray* array2);
67 
69 
70 private:
71  vtkMoleculeAppend(const vtkMoleculeAppend&) = delete;
72  void operator=(const vtkMoleculeAppend&) = delete;
73 };
74 
75 VTK_ABI_NAMESPACE_END
76 #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.
general representation of visualization data
Definition: vtkDataObject.h:54
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.