source: molecuilder/src/bondgraph.hpp@ 8bc524

Last change on this file since 8bc524 was 5f697c, checked in by Frederik Heber <heber@…>, 16 years ago

New class BondGraph.

  • Property mode set to 100644
File size: 1.3 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/****************************************** forward declarations *****************************/
23
24class molecule;
25class MatrixContainer;
26
27/********************************************** definitions *********************************/
28
29/********************************************** declarations *******************************/
30
31
32class BondGraph {
33public:
34 BondGraph(bool IsA);
35 ~BondGraph();
36 bool LoadBondLengthTable(ofstream * const out, const string &filename);
37 bool ConstructBondGraph(ofstream * const out, molecule * const mol);
38 double GetBondLength(int firstelement, int secondelement);
39
40 void BondLengthMatrixMinMaxDistance(BondedParticle * const Walker, BondedParticle * const OtherWalker, double &MinDistance, double &MaxDistance, bool IsAngstroem);
41 void CovalentMinMaxDistance(BondedParticle * const Walker, BondedParticle * const OtherWalker, double &MinDistance, double &MaxDistance, bool IsAngstroem);
42
43private:
44 MatrixContainer *BondLengthMatrix;
45 double max_distance;
46 bool IsAngstroem;
47};
48
49#endif /* BONDGRAPH_HPP_ */
Note: See TracBrowser for help on using the repository browser.