source: molecuilder/src/bondgraph.hpp@ 2e06c4

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

Added all commands defined in ParseCommandLineOptions() as Actions.

  • Actions are not yet used, except verbose, version and help.
  • Files are present and included in Makefile.am
  • not unit tests written so far
  • no action has been tested so far (except for MapOfActions)
  • structure introduced to to transition from ParseCommandLineOptions to actions.
  • program name and config file are fixed arguments.

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 BondedParticle;
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.