| [8eb17a] | 1 | #ifndef BOUNDARY_HPP_
 | 
|---|
 | 2 | #define BOUNDARY_HPP_
 | 
|---|
 | 3 | 
 | 
|---|
| [f66195] | 4 | using namespace std;
 | 
|---|
 | 5 | 
 | 
|---|
 | 6 | /*********************************************** includes ***********************************/
 | 
|---|
 | 7 | 
 | 
|---|
| [8eb17a] | 8 | // include config.h
 | 
|---|
 | 9 | #ifdef HAVE_CONFIG_H
 | 
|---|
 | 10 | #include <config.h>
 | 
|---|
 | 11 | #endif
 | 
|---|
 | 12 | 
 | 
|---|
| [f66195] | 13 | #include <fstream>
 | 
|---|
 | 14 | #include <iostream>
 | 
|---|
 | 15 | 
 | 
|---|
| [8eb17a] | 16 | // STL headers
 | 
|---|
 | 17 | #include <map>
 | 
|---|
 | 18 | 
 | 
|---|
| [f66195] | 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 *********************************/
 | 
|---|
| [357fba] | 35 | 
 | 
|---|
 | 36 | #define DEBUG 1
 | 
|---|
| [262bae] | 37 | #define DoSingleStepOutput 0
 | 
|---|
| [b998c3] | 38 | #define SingleStepWidth 10
 | 
|---|
| [8eb17a] | 39 | 
 | 
|---|
| [edb93c] | 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 | 
 | 
|---|
| [f66195] | 48 | /********************************************** declarations *******************************/
 | 
|---|
 | 49 | 
 | 
|---|
| [e138de] | 50 | double ConvexizeNonconvexEnvelope(class Tesselation *&TesselStruct, const molecule * const mol, const char * const filename);
 | 
|---|
| [775d133] | 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);
 | 
|---|
| [e138de] | 52 | void FindConvexBorder(const molecule* const mol, Tesselation *&TesselStruct, const LinkedCell *LCList, const char *filename);
 | 
|---|
 | 53 | Vector* FindEmbeddingHole(MoleculeListClass *mols, molecule *srcmol);
 | 
|---|
| [776b64] | 54 | void FindNextSuitablePoint(class BoundaryTriangleSet *BaseTriangle, class BoundaryLineSet *BaseLine, atom*& OptCandidate, Vector *OptCandidateCenter, double *ShortestAngle, const double RADIUS, LinkedCell *LC);
 | 
|---|
| [4fc93f] | 55 | bool FindNonConvexBorder(const molecule* const mol, Tesselation *&TesselStruct, const LinkedCell *&LC, const double RADIUS, const char *tempbasename);
 | 
|---|
| [e138de] | 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);
 | 
|---|
| [71b20e] | 60 | void StoreTrianglesinFile(const molecule * const mol, const Tesselation * const TesselStruct, const char *filename, const char *extraSuffix);
 | 
|---|
| [e138de] | 61 | double VolumeOfConvexEnvelope(class Tesselation *TesselStruct, class config *configuration);
 | 
|---|
| [0077b5] | 62 | 
 | 
|---|
| [8eb17a] | 63 | 
 | 
|---|
 | 64 | #endif /*BOUNDARY_HPP_*/
 | 
|---|