source: molecuilder/src/bondgraph.hpp@ 25e17e9

Last change on this file since 25e17e9 was 794482, checked in by Frederik Heber <heber@…>, 15 years ago

Moved functions CountBondsOfTwo(), CountBondsOfThree() and CountHydrogenBridgeBonds() from bondgraph.cpp to analysis_bonds.cpp

Signed-off-by: Frederik Heber <heber@…>

  • Property mode set to 100644
File size: 1.6 KB
Line 
1/*
2 * bondgraph.hpp
3 *
4 * Created on: Oct 29, 2009
5 * Author: heber
6 */
7
8#ifndef BONDGRAPH_HPP_
9#define BONDGRAPH_HPP_
10
11using namespace std;
12
13/*********************************************** includes ***********************************/
14
15// include config.h
16#ifdef HAVE_CONFIG_H
17#include <config.h>
18#endif
19
20#include <iostream>
21
22/*********************************************** defines ***********************************/
23
24#define BONDTHRESHOLD 0.4 //!< CSD threshold in bond check which is the width of the interval whose center is the sum of the covalent radii
25
26/****************************************** forward declarations *****************************/
27
28class molecule;
29class periodentafel;
30class MatrixContainer;
31
32/********************************************** definitions *********************************/
33
34/********************************************** declarations *******************************/
35
36
37class BondGraph {
38public:
39 BondGraph(bool IsA);
40 ~BondGraph();
41 bool LoadBondLengthTable(const string &filename);
42 bool ConstructBondGraph(molecule * const mol);
43 double GetBondLength(int firstelement, int secondelement);
44 double SetMaxDistanceToMaxOfCovalentRadii(const molecule * const mol);
45
46 void BondLengthMatrixMinMaxDistance(BondedParticle * const Walker, BondedParticle * const OtherWalker, double &MinDistance, double &MaxDistance, bool IsAngstroem);
47 void CovalentMinMaxDistance(BondedParticle * const Walker, BondedParticle * const OtherWalker, double &MinDistance, double &MaxDistance, bool IsAngstroem);
48
49private:
50 MatrixContainer *BondLengthMatrix;
51 double max_distance;
52 bool IsAngstroem;
53};
54
55#endif /* BONDGRAPH_HPP_ */
Note: See TracBrowser for help on using the repository browser.