VTK  9.3.20240420
vtkPointSetToMoleculeFilter.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/*
4 * @class vtkPointSetToMoleculeFilter
5 * @brief Converts a pointset into a molecule.
6 *
7 * vtkPointSetToMoleculeFilter is a filter that takes a vtkPointSet as input
8 * and generates a vtkMolecule.
9 * Each point of the given vtkPointSet will become an atom of the vtkMolecule.
10 * The vtkPointSet should provide a point data array (default is scalar one)
11 * to specify the atomic number of each atom.
12
13 @par Tests:
14 @ref c2_vtk_t_vtkPointSetToMoleculeFilter "vtkPointSetToMoleculeFilter (Tests)"
15 */
16
17#ifndef vtkPointSetToMoleculeFilter_h
18#define vtkPointSetToMoleculeFilter_h
19
20#include "vtkDomainsChemistryModule.h" // For export macro
22
23VTK_ABI_NAMESPACE_BEGIN
24class VTKDOMAINSCHEMISTRY_EXPORT vtkPointSetToMoleculeFilter : public vtkMoleculeAlgorithm
25{
26public:
29 void PrintSelf(ostream& os, vtkIndent indent) override;
30
32
37 vtkGetMacro(ConvertLinesIntoBonds, bool);
38 vtkSetMacro(ConvertLinesIntoBonds, bool);
39 vtkBooleanMacro(ConvertLinesIntoBonds, bool);
41
42protected:
44 ~vtkPointSetToMoleculeFilter() override = default;
45
46 int FillInputPortInformation(int port, vtkInformation* info) override;
47
49
51
52private:
54 void operator=(const vtkPointSetToMoleculeFilter&) = delete;
55};
56
57VTK_ABI_NAMESPACE_END
58#endif
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that operate on vtkMolecules.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
~vtkPointSetToMoleculeFilter() override=default
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
static vtkPointSetToMoleculeFilter * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.