VTK  9.2.6
vtkMoleculeAppend.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkMoleculeAppend.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  =========================================================================*/
15 
33 #ifndef vtkMoleculeAppend_h
34 #define vtkMoleculeAppend_h
35 
36 #include "vtkFiltersCoreModule.h" // For export macro
37 #include "vtkMoleculeAlgorithm.h"
38 
39 class VTKFILTERSCORE_EXPORT vtkMoleculeAppend : public vtkMoleculeAlgorithm
40 {
41 public:
42  static vtkMoleculeAppend* New();
44  void PrintSelf(ostream& os, vtkIndent indent) override;
45 
47 
52  vtkDataObject* GetInput(int idx);
53  vtkDataObject* GetInput() { return this->GetInput(0); }
55 
57 
62  vtkGetMacro(MergeCoincidentAtoms, bool);
63  vtkSetMacro(MergeCoincidentAtoms, bool);
64  vtkBooleanMacro(MergeCoincidentAtoms, bool);
65  // @}
66 
67 protected:
69  ~vtkMoleculeAppend() override = default;
70 
72 
73  // see vtkAlgorithm for docs.
74  int FillInputPortInformation(int, vtkInformation*) override;
75 
76  // Check arrays information : name, type and number of components.
77  bool CheckArrays(vtkAbstractArray* array1, vtkAbstractArray* array2);
78 
80 
81 private:
82  vtkMoleculeAppend(const vtkMoleculeAppend&) = delete;
83  void operator=(const vtkMoleculeAppend&) = delete;
84 };
85 
86 #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:39
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:65
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.