COVISE Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
StarFile.h
Go to the documentation of this file.
1 /* This file is part of COVISE.
2 
3  You can use it under the terms of the GNU Lesser General Public License
4  version 2.1 or later, see lgpl-2.1.txt.
5 
6  * License: LGPL 2+ */
7 
8 #ifndef __STAR_FILE_H_
9 #define __STAR_FILE_H_
10 #include <util/ChoiceList.h>
11 
12 #include "util/coTypes.h"
13 
14 namespace covise
15 {
16 
18 {
19 private:
20  StarFile(const StarFile &);
21  StarFile &operator=(const StarFile &);
22 
23 public:
24  enum // 1
25  {
26  VELOCITY = 1,
27  VMAG, // 2
28  U,
29  V,
30  W, // 3 4 5
31  PRESSURE, // 6
32  TE,
33  ED, // 7 8
36  DENSITY, // 9 10 11
38  CP,
39  COND, // 12 13 14
41  DROP_VEL, // 15 16
43  DROP_DIAM, // 17 18
45  DROP_NO, // 19 20
46  DROP_MASS, // 21
47  SCALAR // 22
48  };
49 
50  StarFile(){};
51  virtual ~StarFile(){};
52 
53  virtual ChoiceList *get_choice(const char **, int) const = 0;
54 
55  char *secure_strdup(const char *string);
56  char *secure_strcat(char *s1, const char *s2);
57  char *secure_strcpy(char *s1, const char *s2);
58  char *secure_strncpy(char *s1, const char *s2, int n);
59  int secure_strcmp(const char *s1, const char *s2);
60 };
61 
63 {
64 public:
65  struct CellTabEntry
66  {
67  int vertex[8];
68  int ictID;
69  };
70 
71  struct SammTabEntry
72  {
73  int vertex[12];
74  int ictID;
75  };
76 
77  struct BounTabEntry
78  {
79  int vertex[4];
80  int region, patch;
81  };
82 
84  {
85  float coord[3];
86  };
87 
89  {
90  int ctype, colorIdx, poroIdx, matIdx, spnIdx, grpIdx, dummy[4];
91  };
92 
93  struct RegionSize
94  {
95  int numPoly, numTria;
96  };
97 };
98 }
99 #endif
int ictID
Definition: StarFile.h:74
int region
Definition: StarFile.h:80
#define STAREXPORT
Definition: coExport.h:188
Definition: StarFile.h:71
int numTria
Definition: StarFile.h:95
GLuint coord
Definition: khronos-glext.h:10486
Definition: StarFile.h:65
static const int s2
Definition: SammConv.cpp:38
Definition: StarFile.h:35
static Repl dummy("","")
int spnIdx
Definition: StarFile.h:90
GLdouble n
Definition: khronos-glext.h:8447
Definition: StarFile.h:38
virtual ~StarFile()
Definition: StarFile.h:51
Definition: StarFile.h:77
Definition: StarFile.h:42
Definition: StarFile.h:27
Definition: StarFile.h:46
Definition: StarFile.h:43
Definition: StarFile.h:39
Definition: StarFile.h:29
Definition: StarFile.h:44
Definition: StarFile.h:36
Definition: StarFile.h:37
Definition: StarFile.h:93
Definition: StarFile.h:34
Definition: StarFile.h:83
Definition: StarFile.h:62
StarFile()
Definition: StarFile.h:50
int ictID
Definition: StarFile.h:68
Definition: StarFile.h:40
Definition: StarFile.h:31
Definition: StarFile.h:45
Definition: StarFile.h:28
Definition: StarFile.h:88
Definition: StarFile.h:32
GLuint GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat s1
Definition: khronos-glext.h:13144
Definition: StarFile.h:30
Definition: ChoiceList.h:18
Definition: StarFile.h:41
Definition: StarFile.h:33
Definition: StarFile.h:17