VTK
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 =========================================================================*/
37 #ifndef vtkSimpleBondPerceiver_h
38 #define vtkSimpleBondPerceiver_h
39 
40 #include "vtkDomainsChemistryModule.h" // For export macro
41 #include "vtkMoleculeAlgorithm.h"
42 
43 class vtkDataSet;
44 class vtkMolecule;
45 class vtkPeriodicTable;
46 
47 class VTKDOMAINSCHEMISTRY_EXPORT vtkSimpleBondPerceiver :
49 {
50 public:
51  static vtkSimpleBondPerceiver *New();
53  void PrintSelf(ostream& os, vtkIndent indent) override;
54 
56 
59  vtkSetMacro(Tolerance, float);
60  vtkGetMacro(Tolerance, float);
62 
64 
68  vtkGetMacro(IsToleranceAbsolute, bool);
69  vtkSetMacro(IsToleranceAbsolute, bool);
71 
72 protected:
74  ~vtkSimpleBondPerceiver() override;
75 
76  int RequestData(vtkInformation* request,
77  vtkInformationVector** inputVector,
78  vtkInformationVector* outputVector) override;
79 
83  virtual void ComputeBonds(vtkMolecule* molecule);
84 
90  double GetCovalentRadiusWithTolerance(vtkPeriodicTable* table, vtkIdType atomicNumber);
91 
92  float Tolerance;
94 
95 private:
97  void operator=(const vtkSimpleBondPerceiver&) = delete;
98 };
99 
100 #endif
Access to information about the elements.
Store vtkAlgorithm input/output information.
class describing a molecule
Definition: vtkMolecule.h:94
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
static vtkMoleculeAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int vtkIdType
Definition: vtkType.h:347
Superclass for algorithms that operate on vtkMolecules.
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
Store zero or more vtkInformation instances.
Create a simple guess of a molecule's topology.