| [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
 | 
|---|
| [fcd7b6] | 37 | #define DoSingleStepOutput 0
 | 
|---|
| [f3278b] | 38 | #define SingleStepWidth 1
 | 
|---|
| [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 | 
 | 
|---|
| [d30402] | 50 | double VolumeOfConvexEnvelope(ofstream *out, class Tesselation *TesselStruct, class config *configuration);
 | 
|---|
| [318bfd] | 51 | double * GetDiametersOfCluster(ofstream *out, Boundaries *BoundaryPtr, molecule *mol, bool IsAngstroem);
 | 
|---|
| [edb650] | 52 | void PrepareClustersinWater(ofstream *out, config *configuration, molecule *mol, double ClusterVolume, double celldensity);
 | 
|---|
| [2319ed] | 53 | molecule * FillBoxWithMolecule(ofstream *out, MoleculeListClass *List, molecule *filler, config &configuration, double distance[NDIM], double RandAtomDisplacement, double RandMolDisplacement, bool DoRandomRotation);
 | 
|---|
| [f1cccd] | 54 | void FindConvexBorder(ofstream *out, molecule* mol, class LinkedCell *LCList, const char *filename);
 | 
|---|
| [57066a] | 55 | void FindNonConvexBorder(ofstream *out, molecule* mol, class LinkedCell *LC, const double RADIUS, const char *tempbasename);
 | 
|---|
| [093645] | 56 | double ConvexizeNonconvexEnvelope(ofstream *out, class Tesselation *TesselStruct, molecule *mol, char *filename);
 | 
|---|
| [f1cccd] | 57 | void FindNextSuitablePoint(class BoundaryTriangleSet *BaseTriangle, class BoundaryLineSet *BaseLine, atom*& OptCandidate, Vector *OptCandidateCenter, double *ShortestAngle, const double RADIUS, LinkedCell *LC);
 | 
|---|
| [357fba] | 58 | Boundaries *GetBoundaryPoints(ofstream *out, molecule *mol);
 | 
|---|
| [0077b5] | 59 | void StoreTrianglesinFile(ofstream *out, molecule *mol, const char *filename, const char *extraSuffix);
 | 
|---|
| [d4fa23] | 60 | bool RemoveAllBoundaryPoints(ofstream *out, class Tesselation *TesselStruct, molecule *mol, char *filename);
 | 
|---|
| [ad37ab] | 61 | Vector* FindEmbeddingHole(ofstream *out, MoleculeListClass *mols, molecule *srcmol);
 | 
|---|
| [0077b5] | 62 | 
 | 
|---|
| [8eb17a] | 63 | 
 | 
|---|
 | 64 | #endif /*BOUNDARY_HPP_*/
 | 
|---|