VTK
9.0.1
Domains
Chemistry
vtkPointSetToMoleculeFilter.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkPointSetToMoleculeFilter.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
/*
16
* @class vtkPointSetToMoleculeFilter
17
* @brief Converts a pointset into a molecule.
18
*
19
* vtkPointSetToMoleculeFilter is a filter that takes a vtkPointSet as input
20
* and generates a vtkMolecule.
21
* Each point of the given vtkPointSet will become an atom of the vtkMolecule.
22
* The vtkPointSet should provide a point data array (default is scalar one)
23
* to specify the atomic number of each atom.
24
*/
25
26
#ifndef vtkPointSetToMoleculeFilter_h
27
#define vtkPointSetToMoleculeFilter_h
28
29
#include "vtkDomainsChemistryModule.h"
// For export macro
30
#include "
vtkMoleculeAlgorithm.h
"
31
32
class
VTKDOMAINSCHEMISTRY_EXPORT
vtkPointSetToMoleculeFilter
:
public
vtkMoleculeAlgorithm
33
{
34
public
:
35
static
vtkPointSetToMoleculeFilter
*
New
();
36
vtkTypeMacro(
vtkPointSetToMoleculeFilter
,
vtkMoleculeAlgorithm
);
37
39
44
vtkGetMacro(ConvertLinesIntoBonds,
bool
);
45
vtkSetMacro(ConvertLinesIntoBonds,
bool
);
46
vtkBooleanMacro(ConvertLinesIntoBonds,
bool
);
48
49
protected
:
50
vtkPointSetToMoleculeFilter
();
51
~
vtkPointSetToMoleculeFilter
()
override
=
default
;
52
53
int
FillInputPortInformation
(
int
port
,
vtkInformation
*
info
)
override
;
54
55
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*)
override
;
56
57
bool
ConvertLinesIntoBonds
;
58
59
private
:
60
vtkPointSetToMoleculeFilter
(
const
vtkPointSetToMoleculeFilter
&) =
delete
;
61
void
operator=(
const
vtkPointSetToMoleculeFilter
&) =
delete
;
62
};
63
64
#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.
vtkPointSetToMoleculeFilter
Definition:
vtkPointSetToMoleculeFilter.h:32
vtkMoleculeAlgorithm.h
vtkX3D::port
@ port
Definition:
vtkX3D.h:453
vtkMoleculeAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkInformation
Store vtkAlgorithm input/output information.
Definition:
vtkInformation.h:73
vtkPointSetToMoleculeFilter::ConvertLinesIntoBonds
bool ConvertLinesIntoBonds
Definition:
vtkPointSetToMoleculeFilter.h:57
vtkX3D::info
@ info
Definition:
vtkX3D.h:382
vtkMoleculeAlgorithm::New
static vtkMoleculeAlgorithm * New()
Generated on Thu Jun 25 2020 08:30:36 for VTK by
1.8.17