]> SALOME platform Git repositories - plugins/ghs3dprlplugin.git/blob - src/tepal2med/ghs3dprl_mesh_wrap.h
Salome HOME
Imported using TkCVS
[plugins/ghs3dprlplugin.git] / src / tepal2med / ghs3dprl_mesh_wrap.h
1
2 #ifndef GHS3DPRL_MESH_WRAP_H
3 #define GHS3DPRL_MESH_WRAP_H
4
5 #include <qdict.h>
6 #include <qregexp.h>
7
8 //Med File V 2.2 attributes
9 #undef MED_H
10 #undef MED_PROTO_H
11 namespace med_2_2 {
12   extern "C" {
13 #include <med.h>
14 #include <med_proto.h>
15   }
16 }
17
18 using namespace med_2_2;
19
20 class CVWtab
21 //contains size=size of vector and the vector (med_int or med_float)
22 {
23 public:
24    long size,type;
25    med_int *tmint;   //integer med
26    med_float *tmflo; //float med
27    QString filename;
28
29    CVWtab(long nb, med_int *pmint);
30    CVWtab(long nb, med_float *pmflo);
31    ~CVWtab();
32    bool CVWtab_deallocate();
33    bool is_equal(CVWtab *tab2);
34 };
35
36 class ghs3dprl_mesh_wrap
37 {
38 public:
39    QString casename,path;
40    long
41       nofile,nbfiles,
42       nbelem_limit_swap,
43       verbose;
44    QDict<CVWtab> mestab;
45
46    //low level
47    bool list_keys_mesh_wrap(); //list keys
48    bool list_onekey_mesh_wrap(const QString &key);
49    long remove_key_mesh_wrap(const QRegExp &rxp);
50    long remove_all_keys_mesh_wrap();
51    bool insert_key(const QString &key,CVWtab *tab);
52    CVWtab* restore_key(const QString &key);
53
54    //test level
55    bool test_msg_wrap();
56    bool test_vertices_wrap();
57
58    //hight level
59    long SwapOutOfMemory_key_mesh_wrap(const QRegExp &rxp);
60    bool ReadFileGLO(const QString FileName);
61    bool ReadFileFACES(const QString FileName);
62    bool ReadFileNOBOITE(const QString FileName);
63    bool ReadFileNOBOITEB(const QString FileName);
64    bool ReadFilePOINTS(const QString FileName);
65    bool Write_MEDfiles();
66 };
67
68 #endif