1 | #ifndef BOUNDARY_HPP_
|
---|
2 | #define BOUNDARY_HPP_
|
---|
3 |
|
---|
4 | using namespace std;
|
---|
5 |
|
---|
6 | /*********************************************** includes ***********************************/
|
---|
7 |
|
---|
8 | // include config.h
|
---|
9 | #ifdef HAVE_CONFIG_H
|
---|
10 | #include <config.h>
|
---|
11 | #endif
|
---|
12 |
|
---|
13 | #include <fstream>
|
---|
14 | #include <iostream>
|
---|
15 |
|
---|
16 | // STL headers
|
---|
17 | #include <map>
|
---|
18 |
|
---|
19 | #include "defs.hpp"
|
---|
20 |
|
---|
21 | /****************************************** forward declarations *****************************/
|
---|
22 |
|
---|
23 | class atom;
|
---|
24 | class BoundaryPointSet;
|
---|
25 | class BoundaryLineSet;
|
---|
26 | class BoundaryTriangleSet;
|
---|
27 | class config;
|
---|
28 | class LinkedCell;
|
---|
29 | class molecule;
|
---|
30 | class MoleculeListClass;
|
---|
31 | class Tesselation;
|
---|
32 | class Vector;
|
---|
33 |
|
---|
34 | /********************************************** definitions *********************************/
|
---|
35 |
|
---|
36 | #define DEBUG 1
|
---|
37 | #define DoSingleStepOutput 0
|
---|
38 | #define SingleStepWidth 1
|
---|
39 |
|
---|
40 | #define DistancePair pair < double, atom* >
|
---|
41 | #define DistanceMap multimap < double, atom* >
|
---|
42 | #define DistanceTestPair pair < DistanceMap::iterator, bool>
|
---|
43 |
|
---|
44 | #define Boundaries map <double, DistancePair >
|
---|
45 | #define BoundariesPair pair<double, DistancePair >
|
---|
46 | #define BoundariesTestPair pair< Boundaries::iterator, bool>
|
---|
47 |
|
---|
48 | /********************************************** declarations *******************************/
|
---|
49 |
|
---|
50 | double VolumeOfConvexEnvelope(ofstream *out, class Tesselation *TesselStruct, class config *configuration);
|
---|
51 | double * GetDiametersOfCluster(ofstream *out, Boundaries *BoundaryPtr, molecule *mol, bool IsAngstroem);
|
---|
52 | void PrepareClustersinWater(ofstream *out, config *configuration, molecule *mol, double ClusterVolume, double celldensity);
|
---|
53 | molecule * FillBoxWithMolecule(ofstream *out, MoleculeListClass *List, molecule *filler, config &configuration, double distance[NDIM], double RandAtomDisplacement, double RandMolDisplacement, bool DoRandomRotation);
|
---|
54 | void FindConvexBorder(ofstream *out, molecule* mol, class LinkedCell *LCList, const char *filename);
|
---|
55 | void FindNonConvexBorder(ofstream *out, molecule* mol, class LinkedCell *LC, const double RADIUS, const char *tempbasename);
|
---|
56 | double ConvexizeNonconvexEnvelope(ofstream *out, class Tesselation *TesselStruct, molecule *mol, char *filename);
|
---|
57 | void FindNextSuitablePoint(class BoundaryTriangleSet *BaseTriangle, class BoundaryLineSet *BaseLine, atom*& OptCandidate, Vector *OptCandidateCenter, double *ShortestAngle, const double RADIUS, LinkedCell *LC);
|
---|
58 | Boundaries *GetBoundaryPoints(ofstream *out, molecule *mol);
|
---|
59 | void StoreTrianglesinFile(ofstream *out, molecule *mol, const char *filename, const char *extraSuffix);
|
---|
60 | bool RemoveAllBoundaryPoints(ofstream *out, class Tesselation *TesselStruct, molecule *mol, char *filename);
|
---|
61 |
|
---|
62 |
|
---|
63 | #endif /*BOUNDARY_HPP_*/
|
---|