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(vtkAbstractArray* array1, vtkAbstractArray* array2);
74 
76 
77 private:
78  vtkMoleculeAppend(const vtkMoleculeAppend&) = delete;
79  void operator=(const vtkMoleculeAppend&) = delete;
80 };
81 
82 #endif
vtkMoleculeAlgorithm
Superclass for algorithms that operate on vtkMolecules.
Definition: vtkMoleculeAlgorithm.h:42
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkMoleculeAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkMoleculeAppend
Appends one or more molecules into a single molecule.
Definition: vtkMoleculeAppend.h:36
vtkMoleculeAlgorithm.h
vtkMoleculeAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkMoleculeAppend::GetInput
vtkDataObject * GetInput()
Definition: vtkMoleculeAppend.h:49
vtkAbstractArray
Abstract superclass for all arrays.
Definition: vtkAbstractArray.h:75
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:64
vtkMoleculeAppend::MergeCoincidentAtoms
bool MergeCoincidentAtoms
Definition: vtkMoleculeAppend.h:75
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:58
vtkMoleculeAlgorithm::New
static vtkMoleculeAlgorithm * New()
vtkMoleculeAlgorithm::GetInput
vtkDataObject * GetInput()