VTK  9.0.1
vtkSimpleBondPerceiver.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkSimpleBondPerceiver.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 =========================================================================*/
34 #ifndef vtkSimpleBondPerceiver_h
35 #define vtkSimpleBondPerceiver_h
36 
37 #include "vtkDomainsChemistryModule.h" // For export macro
38 #include "vtkMoleculeAlgorithm.h"
39 
40 class vtkDataSet;
41 class vtkMolecule;
42 class vtkPeriodicTable;
43 
44 class VTKDOMAINSCHEMISTRY_EXPORT vtkSimpleBondPerceiver : public vtkMoleculeAlgorithm
45 {
46 public:
49  void PrintSelf(ostream& os, vtkIndent indent) override;
50 
52 
55  vtkSetMacro(Tolerance, float);
56  vtkGetMacro(Tolerance, float);
58 
60 
64  vtkGetMacro(IsToleranceAbsolute, bool);
65  vtkSetMacro(IsToleranceAbsolute, bool);
67 
68 protected:
71 
72  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
73  vtkInformationVector* outputVector) override;
74 
78  virtual void ComputeBonds(vtkMolecule* molecule);
79 
86 
87  float Tolerance;
89 
90 private:
92  void operator=(const vtkSimpleBondPerceiver&) = delete;
93 };
94 
95 #endif
vtkMoleculeAlgorithm
Superclass for algorithms that operate on vtkMolecules.
Definition: vtkMoleculeAlgorithm.h:43
vtkSimpleBondPerceiver::vtkSimpleBondPerceiver
vtkSimpleBondPerceiver()
vtkIdType
int vtkIdType
Definition: vtkType.h:338
vtkSimpleBondPerceiver::IsToleranceAbsolute
bool IsToleranceAbsolute
Definition: vtkSimpleBondPerceiver.h:88
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:36
vtkSimpleBondPerceiver::~vtkSimpleBondPerceiver
~vtkSimpleBondPerceiver() override
vtkSimpleBondPerceiver::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSimpleBondPerceiver::GetCovalentRadiusWithTolerance
double GetCovalentRadiusWithTolerance(vtkPeriodicTable *table, vtkIdType atomicNumber)
Get the covalent radius corresponding to atomic number, modulated by Tolerance.
vtkSimpleBondPerceiver::Tolerance
float Tolerance
Definition: vtkSimpleBondPerceiver.h:87
vtkSimpleBondPerceiver
Create a simple guess of a molecule's topology.
Definition: vtkSimpleBondPerceiver.h:45
vtkMoleculeAlgorithm.h
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:34
vtkSimpleBondPerceiver::New
static vtkSimpleBondPerceiver * New()
vtkMolecule
class describing a molecule
Definition: vtkMolecule.h:92
vtkPeriodicTable
Access to information about the elements.
Definition: vtkPeriodicTable.h:39
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:57
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:65
vtkSimpleBondPerceiver::ComputeBonds
virtual void ComputeBonds(vtkMolecule *molecule)
Compute the bonds of input molecule.
vtkSimpleBondPerceiver::RequestData
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.