VTK
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 
30 #ifndef vtkMoleculeAppend_h
31 #define vtkMoleculeAppend_h
32 
33 #include "vtkFiltersCoreModule.h" // For export macro
34 #include "vtkMoleculeAlgorithm.h"
35 
36 class VTKFILTERSCORE_EXPORT vtkMoleculeAppend : public vtkMoleculeAlgorithm
37 {
38 public:
39  static vtkMoleculeAppend* New();
41 
43 
48  vtkDataObject* GetInput(int num);
49  vtkDataObject* GetInput() { return this->GetInput(0); }
51 
53 
58  vtkGetMacro(MergeCoincidentAtoms, bool);
59  vtkSetMacro(MergeCoincidentAtoms, bool);
60  vtkBooleanMacro(MergeCoincidentAtoms, bool);
61  // @}
62 
63 protected:
65  ~vtkMoleculeAppend() override = default;
66 
68 
69  // see vtkAlgorithm for docs.
70  int FillInputPortInformation(int, vtkInformation*) override;
71 
72  // Check arrays information : name, type and number of components.
73  bool CheckArrays(vtkDataArray* array1, vtkDataArray* array2);
74 
76 
77 private:
78  vtkMoleculeAppend(const vtkMoleculeAppend&) = delete;
79  void operator=(const vtkMoleculeAppend&) = delete;
80 };
81 
82 #endif
Appends one or more molecules into a single molecule.
Store vtkAlgorithm input/output information.
vtkDataObject * GetInput()
static vtkMoleculeAlgorithm * New()
Superclass for algorithms that operate on vtkMolecules.
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
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:64
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.