| 1 | /* |
| 2 | * MoleculesToTriangles/CXXSurface/CXXSpace.h |
| 3 | * |
| 4 | * Copyright 2009 by Martin Noble, University of Oxford |
| 5 | * Author: Martin Noble |
| 6 | * |
| 7 | * This file is part of Coot |
| 8 | * |
| 9 | * This program is free software; you can redistribute it and/or modify |
| 10 | * it under the terms of the GNU Lesser General Public License as published |
| 11 | * by the Free Software Foundation; either version 3 of the License, or (at |
| 12 | * your option) any later version. |
| 13 | * |
| 14 | * This program is distributed in the hope that it will be useful, but |
| 15 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 17 | * General Public License for more details. |
| 18 | * |
| 19 | * You should have received a copy of the GNU General Public License |
| 20 | * along with this program; if not, write to the Free Software |
| 21 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
| 22 | * 02110-1301, USA |
| 23 | */ |
| 24 | |
| 25 | #include "CXXCoord.h"cxx . . $ `<file>/MoleculesToTriangles/CXXSurface/CXXCoord.h`/ |
| 26 | #include <iostream> |
| 27 | #include <iomanip> |
| 28 | #include <fstream> |
| 29 | #include "CXXFFTSolventMap.h"cxx . . $ `<file>/MoleculesToTriangles/CXXSurface/CXXFFTSolventMap.h`/ |
| 30 | |
| 31 | #ifndef __MMDB_Manager__cxx . . $ `<external>/4178908375504615306/mmdb_manager.h:42:9`! |
| 32 | #include "mmdb2/mmdb_manager.h" |
| 33 | #include "mmdb2/mmdb_tables.h" |
| 34 | #endif |
| 35 | |
| 36 | #ifndef __CXXException__cxx . . $ `MoleculesToTriangles/CXXSurface/CXXException.h:31:9`! |
| 37 | #include <CXXException.h> |
| 38 | #endif |
| 39 | |
| 40 | class CXXSpacecxx . . $ CXXSpace#:public SolventMapcxx . . $ SolventMap# { |
| 41 | |
| 42 | private: |
| 43 | |
| 44 | |
| 45 | double *chargeGridcxx . . $ CXXSpace#chargeGrid.; // charge density grid |
| 46 | double *solvationGridcxx . . $ CXXSpace#solvationGrid.; // empirical atomic solvation parameters |
| 47 | double *potentialGridcxx . . $ CXXSpace#potentialGrid.; // electrostatic potential grid |
| 48 | CXXCoordcxx . . $ CXXCoord#<CXXCoord_ftypecxx . . $ CXXCoord_ftype#>*dielGridcxx . . $ CXXSpace#dielGrid.; // dielectric constant between i,j,k and i+1,j,k charge grid points in x() |
| 49 | // dielectric constant between i,j,k and i,j+1,k charge grid points in y() |
| 50 | // dielectric constant between i,j,k and i,j,k+1 charge grid points in z() |
| 51 | // of coord ... |
| 52 | double *epsilonKappaSqcxx . . $ CXXSpace#epsilonKappaSq.; // grid containg both the dielectric around a point and the debey-hueckel parmeter |
| 53 | |
| 54 | double dielectricBoundarycxx . . $ CXXSpace#dielectricBoundary.; // constat for dielectric outside box ... |
| 55 | double tempcxx . . $ CXXSpace#temp.; |
| 56 | double saltConccxx . . $ CXXSpace#saltConc.; |
| 57 | |
| 58 | int setSolvationGridcxx . . $ CXXSpace#setSolvationGrid(7d52518b8d882d0f).(int i, int j, int k, double value); |
| 59 | int setChargeGridcxx . . $ CXXSpace#setChargeGrid(7d52518b8d882d0f).(int i, int j, int k, double value); |
| 60 | int setDielGridcxx . . $ CXXSpace#setDielGrid(2e656060a141d62b).(int i, int j, int k, int direction, double value); |
| 61 | int setEpsilonKappaSqcxx . . $ CXXSpace#setEpsilonKappaSq(7d52518b8d882d0f).(int i, int j, int k, double value); |
| 62 | |
| 63 | public: |
| 64 | |
| 65 | CXXSpacecxx . . $ CXXSpace#CXXSpace(49f6e7a06ebc5aa8).() ; |
| 66 | CXXSpacecxx . . $ CXXSpace#CXXSpace(b333ddf4308cdd6a).(float probeRadius, float gridSpacing, |
| 67 | float xMin, float xMax, float yMin, float yMax, float zMin, float zMax); |
| 68 | |
| 69 | int setSolventParameterscxx . . $ CXXSpace#setSolventParameters(1a35796978658aa4).(double saltConc, double temp); |
| 70 | int addDielectricSpherecxx . . $ CXXSpace#addDielectricSphere(d065832d40e48504).(double x, double y, double z, double r); |
| 71 | int addGridChargecxx . . $ CXXSpace#addGridCharge(7d52518b8d882d0f).(int i, int j, int k, double charge); |
| 72 | int setPotentialcxx . . $ CXXSpace#setPotential(7d52518b8d882d0f).(int i, int j, int k, double value); |
| 73 | |
| 74 | |
| 75 | CXXCoordcxx . . $ CXXCoord#<CXXCoord_ftypecxx . . $ CXXCoord_ftype#>getOrigincxx . . $ CXXSpace#getOrigin(580f8dbf914c3fc8).(); |
| 76 | CXXCoordcxx . . $ CXXCoord#<CXXCoord_ftypecxx . . $ CXXCoord_ftype#>getSpaceSpanningVectorXcxx . . $ CXXSpace#getSpaceSpanningVectorX(580f8dbf914c3fc8).(); |
| 77 | CXXCoordcxx . . $ CXXCoord#<CXXCoord_ftypecxx . . $ CXXCoord_ftype#>getSpaceSpanningVectorZcxx . . $ CXXSpace#getSpaceSpanningVectorZ(580f8dbf914c3fc8).(); |
| 78 | CXXCoordcxx . . $ CXXCoord#<CXXCoord_ftypecxx . . $ CXXCoord_ftype#>getSpaceSpanningVectorYcxx . . $ CXXSpace#getSpaceSpanningVectorY(580f8dbf914c3fc8).(); |
| 79 | |
| 80 | int getDimIcxx . . $ CXXSpace#getDimI(b126dc7c1de90089).(); |
| 81 | int getDimJcxx . . $ CXXSpace#getDimJ(b126dc7c1de90089).(); |
| 82 | int getDimKcxx . . $ CXXSpace#getDimK(b126dc7c1de90089).(); |
| 83 | |
| 84 | double getGridChargecxx . . $ CXXSpace#getGridCharge(ec38aeb9d8f90526).(int i, int j, int k); |
| 85 | double getGridSolvationParametercxx . . $ CXXSpace#getGridSolvationParameter(ec38aeb9d8f90526).(int i, int j, int k); |
| 86 | double getBoundaryMapcxx . . $ CXXSpace#getBoundaryMap(ec38aeb9d8f90526).(int i, int j, int k); |
| 87 | double getDielGridcxx . . $ CXXSpace#getDielGrid(827c0b4599f7fb).(int i, int j, int k, int directionn); |
| 88 | double getPotentialcxx . . $ CXXSpace#getPotential(ec38aeb9d8f90526).(int i, int j, int k); |
| 89 | double getEpsilonKappaSqcxx . . $ CXXSpace#getEpsilonKappaSq(ec38aeb9d8f90526).(int i, int j, int k); |
| 90 | |
| 91 | int defineBoundaryConditionscxx . . $ CXXSpace#defineBoundaryConditions(620b9ac44d2573a6).(double dielectricValue); |
| 92 | int introduceMediumcxx . . $ CXXSpace#introduceMedium(e89ebc05548dfaee).(double dielctricInMedium, double dielectricInProtein, double probeRadius); |
| 93 | int dumpSpaceSlicecxx . . $ CXXSpace#dumpSpaceSlice(2326284602b0bb2d).(int dimension, int gridType, int sliceNumber); |
| 94 | |
| 95 | |
| 96 | |
| 97 | }; |