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 10
|
---|
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 ConvexizeNonconvexEnvelope(class Tesselation *&TesselStruct, const molecule * const mol, const char * const filename);
|
---|
51 | molecule * FillBoxWithMolecule(MoleculeListClass *List, molecule *filler, config &configuration, const double MaxDistance, const double distance[NDIM], const double boundary, const double RandomAtomDisplacement, const double RandomMolDisplacement, const bool DoRandomRotation);
|
---|
52 | void FindConvexBorder(const molecule* const mol, Tesselation *&TesselStruct, const LinkedCell *LCList, const char *filename);
|
---|
53 | Vector* FindEmbeddingHole(MoleculeListClass *mols, molecule *srcmol);
|
---|
54 | void FindNextSuitablePoint(class BoundaryTriangleSet *BaseTriangle, class BoundaryLineSet *BaseLine, atom*& OptCandidate, Vector *OptCandidateCenter, double *ShortestAngle, const double RADIUS, LinkedCell *LC);
|
---|
55 | bool FindNonConvexBorder(const molecule* const mol, Tesselation *&TesselStruct, const LinkedCell *&LC, const double RADIUS, const char *tempbasename);
|
---|
56 | Boundaries *GetBoundaryPoints(const molecule *mol, Tesselation *&TesselStruct);
|
---|
57 | double * GetDiametersOfCluster(const Boundaries *BoundaryPtr, const molecule *mol, Tesselation *&TesselStruct, const bool IsAngstroem);
|
---|
58 | void PrepareClustersinWater(config *configuration, molecule *mol, double ClusterVolume, double celldensity);
|
---|
59 | bool RemoveAllBoundaryPoints(class Tesselation *&TesselStruct, const molecule * const mol, const char * const filename);
|
---|
60 | void StoreTrianglesinFile(const molecule * const mol, const Tesselation * const TesselStruct, const char *filename, const char *extraSuffix);
|
---|
61 | double VolumeOfConvexEnvelope(class Tesselation *TesselStruct, class config *configuration);
|
---|
62 |
|
---|
63 |
|
---|
64 | #endif /*BOUNDARY_HPP_*/
|
---|