| 1 | /****************************************************************************/cxx . . $ `<file>/src/medit/medit.h`/ |
| 2 | /* This file is part of FreeFEM. */ |
| 3 | /* */ |
| 4 | /* FreeFEM is free software: you can redistribute it and/or modify */ |
| 5 | /* it under the terms of the GNU Lesser General Public License as */ |
| 6 | /* published by the Free Software Foundation, either version 3 of */ |
| 7 | /* the License, or (at your option) any later version. */ |
| 8 | /* */ |
| 9 | /* FreeFEM is distributed in the hope that it will be useful, */ |
| 10 | /* but WITHOUT ANY WARRANTY; without even the implied warranty of */ |
| 11 | /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */ |
| 12 | /* GNU Lesser General Public License for more details. */ |
| 13 | /* */ |
| 14 | /* You should have received a copy of the GNU Lesser General Public License */ |
| 15 | /* along with FreeFEM. If not, see <http://www.gnu.org/licenses/>. */ |
| 16 | /****************************************************************************/ |
| 17 | /* SUMMARY : ... */ |
| 18 | /* LICENSE : LGPLv3 */ |
| 19 | /* ORG : LJLL Universite Pierre et Marie Curie, Paris, FRANCE */ |
| 20 | /* AUTHORS : Pascal Frey */ |
| 21 | /* E-MAIL : [email protected] */ |
| 22 | |
| 23 | #ifndef _MEDIT_H_ |
| 24 | #define _MEDIT_H_cxx . . $ `src/medit/medit.h:24:9`! |
| 25 | |
| 26 | #define GL_SILENCE_DEPRECATIONcxx . . $ `src/medit/medit.h:26:9`! |
| 27 | #include <assert.h> |
| 28 | #include <stdio.h> |
| 29 | #include <stdlib.h> |
| 30 | #include <float.h> |
| 31 | #include <math.h> |
| 32 | #include <time.h> |
| 33 | #include <string.h> |
| 34 | #include <float.h> |
| 35 | #include <signal.h> |
| 36 | #include <ctype.h> |
| 37 | |
| 38 | #ifdef WIN32 |
| 39 | #include <windows.h> |
| 40 | #endif |
| 41 | #ifdef __APPLE__ |
| 42 | #include <OpenGL/gl.h> |
| 43 | #include <OpenGL/glu.h> |
| 44 | #include <GLUT/glut.h> |
| 45 | #else |
| 46 | #include <GL/gl.h> |
| 47 | #include <GL/glu.h> |
| 48 | #include <GL/glut.h> |
| 49 | #endif |
| 50 | |
| 51 | #include "chrono.h"cxx . . $ `<file>/src/medit/chrono.h`/ |
| 52 | #include "memory.h"cxx . . $ `<file>/src/libMesh/memory.h`/ |
| 53 | #include "mesh.h"cxx . . $ `<file>/src/medit/mesh.h`/ |
| 54 | #include "grafic.h"cxx . . $ `<file>/src/medit/grafic.h`/ |
| 55 | #include "image.h"cxx . . $ `<file>/src/medit/image.h`/ |
| 56 | #include "sproto.h"cxx . . $ `<file>/src/medit/sproto.h`/ |
| 57 | |
| 58 | #define ME_VERcxx . . $ `src/medit/medit.h:58:9`! "3.0a" |
| 59 | #define ME_RELcxx . . $ `src/medit/medit.h:59:9`! "Nov. 30, 2007" |
| 60 | #define ME_CPYcxx . . $ `src/medit/medit.h:60:9`! "Copyright (c) LJLL, 1999-2007" |
| 61 | #define ME_STRcxx . . $ `src/medit/medit.h:61:9`! "&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&" |
| 62 | #define DEFAULT_FILEcxx . . $ `src/medit/medit.h:62:9`! "DEFAULT.medit" |
| 63 | |
| 64 | #define MAX_MESHcxx . . $ `src/medit/medit.h:64:9`! 32 |
| 65 | #define MAX_SCENEcxx . . $ `src/medit/medit.h:65:9`! 32 |
| 66 | #define MAX_OBJcxx . . $ `src/medit/medit.h:66:9`! 32 |
| 67 | #define MAX_MATERIALcxx . . $ `src/medit/medit.h:67:9`! 128 |
| 68 | #define DEFAULT_MATcxx . . $ `src/medit/medit.h:68:9`! 0 |
| 69 | |
| 70 | #define DTORcxx . . $ `src/medit/medit.h:70:9`! 0.0174532925 |
| 71 | #define RTODcxx . . $ `src/medit/medit.h:71:9`! 57.29577951308232 |
| 72 | #define EPScxx . . $ `src/medit/medit.h:72:9`! 1.e-06 |
| 73 | #define EPS2cxx . . $ `src/medit/medit.h:73:9`! 2.e-10 |
| 74 | |
| 75 | #ifndef TRUE |
| 76 | #define TRUEcxx . . $ `src/medit/medit.h:76:9`! 1 |
| 77 | #define FALSEcxx . . $ `src/medit/medit.h:77:9`! 0 |
| 78 | #endif |
| 79 | #ifdef M_PIcxx . . $ `<external>/11263917310783833665/math.h:1289:10`! |
| 80 | #undef M_PIcxx . . $ `<external>/11263917310783833665/math.h:1289:10`! |
| 81 | #undef M_PI_2cxx . . $ `<external>/11263917310783833665/math.h:1290:10`! |
| 82 | #endif |
| 83 | #define M_PIcxx . . $ `src/medit/medit.h:83:9`! 3.14159265358979323846 /* pi */ |
| 84 | #define M_PI_2cxx . . $ `src/medit/medit.h:84:9`! 1.57079632679489661923 /* pi/2 */ |
| 85 | |
| 86 | #ifdef min |
| 87 | #undef min |
| 88 | #undef max |
| 89 | #endif |
| 90 | #define mincxx . . $ `src/medit/medit.h:90:9`!(a, b) (((a) < (b)) ? (a) : (b)) |
| 91 | #define maxcxx . . $ `src/medit/medit.h:91:9`!(a, b) (((b) > (a)) ? (b) : (a)) |
| 92 | |
| 93 | /* check if numbers are equal */ |
| 94 | #define egalcxx . . $ `src/medit/medit.h:94:9`!(x, y) \ |
| 95 | ((((x) == 0.0f) \ |
| 96 | ? (fabs(y) < EPS) \ |
| 97 | : (((y) == 0.0f) ? (fabs(x) < EPS) : (fabs((x) - (y)) / (fabs(x) + fabs(y)) < EPS2)))) |
| 98 | |
| 99 | /* options */ |
| 100 | enumcxx . . $ $anonymous_type_50b033e0ea021630_0# { STANDARDcxx . . $ STANDARD. = 1, SEQUENCEcxx . . $ SEQUENCE., VERYBIGcxx . . $ VERYBIG., MORPHINGcxx . . $ MORPHING., SCHNAUZERcxx . . $ SCHNAUZER., ISOSURFcxx . . $ ISOSURF., PARTICLEcxx . . $ PARTICLE. }; |
| 101 | |
| 102 | /* structure canvas */ |
| 103 | typedef struct canvascxx . . $ canvas# { |
| 104 | pMeshcxx . . $ pMesh# meshcxx . . $ canvas#mesh.[MAX_MESHcxx . . $ `src/medit/medit.h:64:9`!]; |
| 105 | pScenecxx . . $ pScene# scenecxx . . $ canvas#scene.[MAX_SCENEcxx . . $ `src/medit/medit.h:65:9`!]; |
| 106 | int nbmcxx . . $ canvas#nbm., nbscxx . . $ canvas#nbs.; |
| 107 | } Canvascxx . . $ Canvas#; |
| 108 | typedef Canvascxx . . $ Canvas# *pCanvascxx . . $ pCanvas#; |
| 109 | |
| 110 | #endif |
| 111 | |
| 112 | #ifdef __cplusplus |
| 113 | } |
| 114 | #endif |