COVISE Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
covFiles.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 /**************************************************************************
9  * Libary to create files in COVISE format *
10  * *
11  * (C) 2001 *
12  * VirCinity IT-Consulting GmbH *
13  * Nobelstrasse 15 *
14  * D-70569 Stuttgart *
15  * Germany *
16  * Author: S. Kufer *
17  * Date: 28. Juli 2001 *
18  **************************************************************************/
19 
20 #ifndef COV_FILES_H
21 #define COV_FILES_H
22 
23 #include "coFileExport.h"
24 
25 #ifdef __cplusplus
26 extern FILEEXPORT "C"
27 {
28 #endif
29 
30  struct CovFile
31  {
32  int fd;
33  int mode;
34  int byteswap;
35  };
36 
37  extern FILEEXPORT int covIoAttrib(int fd, int mode, int *num, int *size, char **atNam,
38  char **atVal);
39  extern FILEEXPORT int covWriteAttrib(int fd, int num, char **atNam, char **atVal);
40  extern FILEEXPORT int covIoGeometryBegin(int fd, int mode, int *has_geometry, int *has_colors, int *has_normals, int *has_texture);
41  extern FILEEXPORT int covIoGeometryEnd(int fd, int mode, char **atNam, char **atVal, int numAttr);
42 
43  extern FILEEXPORT int covIoSetBegin(int fd, int mode, int *numElem);
44  extern FILEEXPORT int covIoSetEnd(int fd, int mode, char **atNam, char **atVal, int numAttr);
45 
46  extern FILEEXPORT int covIoUNSGRD(int fd, int mode, int *numElem, int *numConn, int *numVert,
47  int *el, int *cl, int *tl,
48  float *x, float *y, float *z,
49  char **atNam, char **atVal, int *numAttr);
50  extern FILEEXPORT int covIoPOINTS(int fd, int mode, int *numElem, float *x, float *y, float *z, char **atNam, char **atVal, int *numAttr);
51  extern FILEEXPORT int covIoDOTEXT(int fd, int mode, int *numElem, char *data, char **atNam, char **atVal, int *numAttr);
52  extern FILEEXPORT int covIoMetaLines(int fd, int mode, char *type, int *numObjects, int *objectList, int *numCorners, int *cornerList,
53  int *numPoints, float *x, float *y, float *z, char **atNam, char **atVal, int *numAttr);
54  extern FILEEXPORT int covIoUNIGRD(int fd, int mode, int *xsize, int *ysize, int *zsize, float *xmin, float *xmax, float *ymin,
55  float *ymax, float *zmin, float *zmax, char **atNam, char **atVal, int *numAttr);
56  extern FILEEXPORT int covIoRCTGRD(int fd, int mode, int *xsize, int *ysize, int *zsize, float *x, float *y, float *z,
57  char **atNam, char **atVal, int *numAttr);
58  extern FILEEXPORT int covIoSTRGRD(int fd, int mode, int *xsize, int *ysize, int *zsize, float *x, float *y, float *z,
59  char **atNam, char **atVal, int *numAttr);
60 
61  extern FILEEXPORT int covIoUSTTDT(int fd, int mode, int *numElem, int *type, float *x, char **atNam, char **atVal, int *numAttr);
62  extern FILEEXPORT int covIoUSTSDT(int fd, int mode, int *numElem, float *x, char **atNam, char **atVal, int *numAttr);
63  extern FILEEXPORT int covIoUSTVDT(int fd, int mode, int *numElem,
64  float *x, float *y, float *z,
65  char **atNam, char **atVal, int *numAttr);
66 
67  extern FILEEXPORT int covIoSTRSDT(int fd, int mode, int *numElem, float *data, int *xsize, int *ysize, int *zsize,
68  char **atNam, char **atVal, int *numAttr);
69  extern FILEEXPORT int covIoSTRVDT(int fd, int mode, int *numElem, float *data_x, float *data_y, float *data_z, int *xsize, int *ysize, int *zsize,
70  char **atNam, char **atVal, int *numAttr);
71  extern FILEEXPORT int covIoRGBADT(int fd, int mode, int *numElem, int *colors,
72  char **atNam, char **atVal, int *numAttr);
73  extern FILEEXPORT int covIoIMAGE(int fd, int mode, int *PixelImageWidth, int *PixelImageHeight, int *PixelImageSize,
74  int *PixelImageFormatId, int *PixelImageBufferLength, char *PixelImageBuffer,
75  char **ImageatNam, char **ImageatVal, int *numAttr);
76  extern FILEEXPORT int covIoTEXTUR(int fd, int mode, int *PixelImageWidth, int *PixelImageHeight, int *PixelImageSize,
77  int *PixelImageFormatId, int *PixImageBufferLength, char *PixelImageBuffer,
78  char **ImageatNam, char **ImageatVal, int *numImageAttr,
79  int *NumberOfBorderPixels, int *NumberOfComponents, int *Level,
80  int *NumberOfCoordinates, int *NumberOfVertices, int *VertexIndices,
81  float **Coords, char **TextatNam, char **TextatVal, int *numTextAttr);
82 
83  extern FILEEXPORT int covIoINTARR(int fd, int mode, int *numDim, int *numElem, int *dim_array, int *data,
84  char **atNam, char **atVal, int *numAttr);
85  extern FILEEXPORT int covIoINTDT(int fd, int mode, int *numElem, int *x, char **atNam, char **atVal, int *numAttr);
86 
87  extern FILEEXPORT int covIoOBJREF(int fd, int mode, int *objNum);
88 
89 #ifdef __cplusplus
90 }
91 #endif
92 #endif
int covIoSTRGRD(int fd, int mode, int *xsize, int *ysize, int *zsize, float *x, float *y, float *z, char **atNam, char **atVal, int *numAttr)
Definition: covFiles.c:1105
int byteswap
Definition: covFiles.h:34
int covIoINTARR(int fd, int mode, int *numDim, int *numElem, int *dim_array, int *data, char **atNam, char **atVal, int *numAttr)
Definition: covFiles.c:1642
int covIoSTRSDT(int fd, int mode, int *numElem, float *data, int *xsize, int *ysize, int *zsize, char **atNam, char **atVal, int *numAttr)
Definition: covFiles.c:1330
FILEEXPORT int covIoGeometryEnd(int fd, int mode, char **atNam, char **atVal, int numAttr)
int covIoRGBADT(int fd, int mode, int *numElem, int *colors, char **atNam, char **atVal, int *numAttr)
Definition: covFiles.c:1443
GLint GLint GLint GLint GLint GLint y
Definition: khronos-glext.h:6346
int covIoINTDT(int fd, int mode, int *numElem, int *x, char **atNam, char **atVal, int *numAttr)
Definition: covFiles.c:1703
int fd
Definition: covFiles.h:32
Definition: covFiles.h:30
GLclampd zmax
Definition: khronos-glext.h:11392
#define FILEEXPORT
Definition: coExport.h:87
GLdouble GLdouble z
Definition: khronos-glext.h:6565
int covIoUSTVDT(int fd, int mode, int *numElem, float *x, float *y, float *z, char **atNam, char **atVal, int *numAttr)
Definition: covFiles.c:1263
int covIoTEXTUR(int fd, int mode, int *PixelImageWidth, int *PixelImageHeight, int *PixelImageSize, int *PixelImageFormatId, int *PixImageBufferLength, char *PixelImageBuffer, char **ImageatNam, char **ImageatVal, int *numImageAttr, int *NumberOfBorderPixels, int *NumberOfComponents, int *Level, int *NumberOfCoordinates, int *NumberOfVertices, int *VertexIndices, float **Coords, char **TextatNam, char **TextatVal, int *numTextAttr)
Definition: covFiles.c:1553
GLsizeiptr size
Definition: khronos-glext.h:6610
GLint GLint GLint GLint GLint x
Definition: khronos-glext.h:6346
GLenum mode
Definition: khronos-glext.h:6908
int covIoSTRVDT(int fd, int mode, int *numElem, float *data_x, float *data_y, float *data_z, int *xsize, int *ysize, int *zsize, char **atNam, char **atVal, int *numAttr)
Definition: covFiles.c:1383
int covIoUSTSDT(int fd, int mode, int *numElem, float *x, char **atNam, char **atVal, int *numAttr)
Definition: covFiles.c:1162
int covIoAttrib(int fd, int mode, int *num, int *size, char **atNam, char **atVal)
Definition: covFiles.c:242
GLenum type
Definition: khronos-glext.h:6279
int covIoUSTTDT(int fd, int mode, int *numElem, int *type, float *x, char **atNam, char **atVal, int *numAttr)
Definition: covFiles.c:1217
int covIoPOINTS(int fd, int mode, int *numElem, float *x, float *y, float *z, char **atNam, char **atVal, int *numAttr)
Definition: covFiles.c:655
int covIoOBJREF(int fd, int mode, int *objNum)
Definition: covFiles.c:1908
int covIoGeometryBegin(int fd, int mode, int *has_geometry, int *has_colors, int *has_normals, int *has_texture)
Definition: covFiles.c:377
int covIoRCTGRD(int fd, int mode, int *xsize, int *ysize, int *zsize, float *x, float *y, float *z, char **atNam, char **atVal, int *numAttr)
Definition: covFiles.c:1049
int covIoIMAGE(int fd, int mode, int *PixelImageWidth, int *PixelImageHeight, int *PixelImageSize, int *PixelImageFormatId, int *PixelImageBufferLength, char *PixelImageBuffer, char **ImageatNam, char **ImageatVal, int *numAttr)
Definition: covFiles.c:1488
int mode
Definition: covFiles.h:33
int covIoDOTEXT(int fd, int mode, int *numElem, char *data, char **atNam, char **atVal, int *numAttr)
Definition: covFiles.c:718
int covWriteAttrib(int fd, int num, char **atNam, char **atVal)
Definition: covFiles.c:320
int covIoMetaLines(int fd, int mode, char *type, int *numObjects, int *objectList, int *numCorners, int *cornerList, int *numPoints, float *x, float *y, float *z, char **atNam, char **atVal, int *numAttr)
Definition: covFiles.c:760
int covIoUNIGRD(int fd, int mode, int *xsize, int *ysize, int *zsize, float *xmin, float *xmax, float *ymin, float *ymax, float *zmin, float *zmax, char **atNam, char **atVal, int *numAttr)
Definition: covFiles.c:990
FILEEXPORT int covIoSetEnd(int fd, int mode, char **atNam, char **atVal, int numAttr)
int covIoSetBegin(int fd, int mode, int *numElem)
Definition: covFiles.c:452
int covIoUNSGRD(int fd, int mode, int *numElem, int *numConn, int *numVert, int *el, int *cl, int *tl, float *x, float *y, float *z, char **atNam, char **atVal, int *numAttr)
Definition: covFiles.c:495
GLuint GLuint num
Definition: khronos-glext.h:10593
GLsizei GLsizei GLenum GLenum const GLvoid * data
Definition: khronos-glext.h:6354