COVISE Core
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
14namespace covise
15{
16
18{
19private:
22
23public:
24 enum // 1
25 {
26 VELOCITY = 1,
27 VMAG, // 2
30 W, // 3 4 5
33 ED, // 7 8
36 DENSITY, // 9 10 11
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
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{
64public:
66 {
67 int vertex[8];
68 int ictID;
69 };
70
72 {
73 int vertex[12];
74 int ictID;
75 };
76
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
94 {
95 int numPoly, numTria;
96 };
97};
98}
99#endif
#define STAREXPORT
Definition: coExport.h:212
GLdouble n
Definition: khronos-glext.h:8447
GLuint coord
Definition: khronos-glext.h:10486
GLuint GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat s1
Definition: khronos-glext.h:13144
static Repl dummy("", "")
static const int s2
Definition: SammConv.cpp:38
list of all chemical elements
Definition: coConfig.h:27
Definition: ChoiceList.h:19
Definition: StarFile.h:18
StarFile(const StarFile &)
StarFile & operator=(const StarFile &)
StarFile()
Definition: StarFile.h:50
virtual ChoiceList * get_choice(const char **, int) const =0
virtual ~StarFile()
Definition: StarFile.h:51
@ ED
Definition: StarFile.h:33
@ COND
Definition: StarFile.h:39
@ DROP_DIAM
Definition: StarFile.h:43
@ DROP_TEMP
Definition: StarFile.h:44
@ VMAG
Definition: StarFile.h:27
@ CP
Definition: StarFile.h:38
@ DROP_NO
Definition: StarFile.h:45
@ DENSITY
Definition: StarFile.h:36
@ TEMPERATURE
Definition: StarFile.h:35
@ PRESSURE
Definition: StarFile.h:31
@ DROP_VEL
Definition: StarFile.h:41
@ LAMVIS
Definition: StarFile.h:37
@ DROP_COORD
Definition: StarFile.h:40
@ TE
Definition: StarFile.h:32
@ TVIS
Definition: StarFile.h:34
@ DROP_MASS
Definition: StarFile.h:46
@ U
Definition: StarFile.h:28
@ W
Definition: StarFile.h:30
@ V
Definition: StarFile.h:29
@ DROP_DENS
Definition: StarFile.h:42
Definition: StarFile.h:63
Definition: StarFile.h:66
int ictID
Definition: StarFile.h:68
Definition: StarFile.h:72
int ictID
Definition: StarFile.h:74
Definition: StarFile.h:78
int patch
Definition: StarFile.h:80
Definition: StarFile.h:84
Definition: StarFile.h:89
int ctype
Definition: StarFile.h:90
Definition: StarFile.h:94
int numPoly
Definition: StarFile.h:95