COVISE Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
covReadFiles.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 read 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 _COVISE_READFILELIB
21 #define _COVISE_READFILELIB
22 
23 #include "coFileExport.h"
24 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
31 extern int FILEEXPORT covCloseInFile(int fd);
32 extern int FILEEXPORT covOpenInFile(const char *filename);
33 
34 extern int FILEEXPORT covReadDescription(int fd, char *name);
35 extern int FILEEXPORT covReadNumAttributes(int fd, int *num, int *size);
36 extern int FILEEXPORT covReadAttributes(int fd, char **atNam, char **atVal, int num, int size);
37 
38 extern int FILEEXPORT covReadSizeUNSGRD(int fd, int *numElem, int *numConn, int *numVert);
39 extern int FILEEXPORT covReadUNSGRD(int fd, int numElem, int numConn, int numVert,
40  int *el, int *cl, int *tl,
41  float *x, float *y, float *z);
42 extern int FILEEXPORT covSkipUNSGRD(int fd, int numElem, int numConn, int numVert);
43 
44 extern int FILEEXPORT covReadGeometryBegin(int fd, int *has_geometry, int *has_colors, int *has_normals, int *has_texture);
45 extern int FILEEXPORT covReadOldGeometryBegin(int fd, int *has_geometry, int *has_colors, int *has_normals);
46 
47 extern int FILEEXPORT covReadSetBegin(int fd, int *numElem);
48 
49 extern int FILEEXPORT covReadSizePOINTS(int fd, int *numElem);
50 extern int FILEEXPORT covReadPOINTS(int fd, int numElem, float *x, float *y, float *z);
51 extern int FILEEXPORT covSkipPOINTS(int fd, int numElem);
52 
53 extern int FILEEXPORT covReadSizeSPHERES(int fd, int *numElem);
54 extern int FILEEXPORT covReadSPHERES(int fd, int numElem, float *x, float *y, float *z, float *radius);
55 extern int FILEEXPORT covSkipSPHERES(int fd, int numElem);
56 
57 extern int FILEEXPORT covReadSizeDOTEXT(int fd, int *numElem);
58 extern int FILEEXPORT covReadDOTEXT(int fd, int numElem, char *data);
59 extern int FILEEXPORT covSkipDOTEXT(int fd, int numElem);
60 
61 extern int FILEEXPORT covReadSizePOLYGN(int fd, int *numPolygons, int *numCorners, int *numPoints);
62 extern int FILEEXPORT covReadPOLYGN(int fd, int numPolygons, int *polyList, int numCorners, int *cornerList, int numPoints, float *x, float *y, float *z);
63 extern int FILEEXPORT covSkipPOLYGN(int fd, int numPolygons, int numCorners, int numPoints);
64 
65 extern int FILEEXPORT covReadSizeLINES(int fd, int *numLines, int *numCorners, int *numPoints);
66 extern int FILEEXPORT covReadLINES(int fd, int numLines, int *lineList, int numCorners, int *cornerList,
67  int numPoints, float *x, float *y, float *z);
68 extern int FILEEXPORT covSkipLINES(int fd, int numLines, int numCorners, int numPoints);
69 
70 extern int FILEEXPORT covReadTRI(int fd, int numCorners, int *cornerList,
71  int numPoints, float *x, float *y, float *z);
72 
73 extern int FILEEXPORT covReadQUADS(int fd, int numCorners, int *cornerList,
74  int numPoints, float *x, float *y, float *z);
75 extern int FILEEXPORT covSkipQUADS(int fd, int numCorners, int numPoints);
76 
77 extern int FILEEXPORT covReadSizeTRIANG(int fd, int *numStrips, int *numCorners, int *numPoints);
78 extern int FILEEXPORT covReadTRIANG(int fd, int numStrips, int *stripList, int numCorners, int *cornerList,
79  int numPoints, float *x, float *y, float *z);
80 extern int FILEEXPORT covSkipTRIANG(int fd, int numStrips, int numCorners, int numPoints);
81 
82 extern int FILEEXPORT covReadUNIGRD(int fd, int *xsize, int *ysize, int *zsize, float *xmin, float *xmax, float *ymin, float *ymax, float *zmin, float *zmax);
83 
84 extern int FILEEXPORT covReadSizeRCTGRD(int fd, int *xsize, int *ysize, int *zsize);
85 extern int FILEEXPORT covReadRCTGRD(int fd, int xsize, int ysize, int zsize, float *x, float *y, float *z);
86 extern int FILEEXPORT covSkipRCTGRD(int fd, int xsize, int ysize, int zsize);
87 
88 extern int FILEEXPORT covReadSizeSTRGRD(int fd, int *xsize, int *ysize, int *zsize);
89 extern int FILEEXPORT covReadSTRGRD(int fd, int xsize, int ysize, int zsize, float *x, float *y, float *z);
90 extern int FILEEXPORT covSkipSTRGRD(int fd, int xsize, int ysize, int zsize);
91 
92 extern int FILEEXPORT covReadSizeUSTTDT(int fd, int *numElem, int *type);
93 extern int FILEEXPORT covReadUSTTDT(int fd, int numElem, int type, float *x);
94 extern int FILEEXPORT covSkipUSTTDT(int fd, int numElem, int type);
95 
96 extern int FILEEXPORT covReadSizeUSTSDT(int fd, int *numElem);
97 extern int FILEEXPORT covReadUSTSDT(int fd, int numElem, float *x);
98 extern int FILEEXPORT covSkipUSTSDT(int fd, int numElem);
99 
100 extern int FILEEXPORT covReadSizeINTDT(int fd, int *numElem);
101 extern int FILEEXPORT covReadINTDT(int fd, int numElem, int *x);
102 extern int FILEEXPORT covSkipINTDT(int fd, int numElem);
103 
104 extern int FILEEXPORT covReadSizeBYTEDT(int fd, int *numElem);
105 extern int FILEEXPORT covReadBYTEDT(int fd, int numElem, unsigned char *x);
106 extern int FILEEXPORT covSkipBYTEDT(int fd, int numElem);
107 
108 extern int FILEEXPORT covReadSizeUSTVDT(int fd, int *numElem);
109 extern int FILEEXPORT covReadUSTVDT(int fd, int numElem, float *x, float *y, float *z);
110 extern int FILEEXPORT covSkipUSTVDT(int fd, int numElem);
111 
112 extern int FILEEXPORT covReadSizeSTRSDT(int fd, int *numElem, int *xsize, int *ysize, int *zsize);
113 extern int FILEEXPORT covReadSTRSDT(int fd, int numElem, float *data, int xsize, int ysize, int zsize);
114 extern int FILEEXPORT covSkipSTRSDT(int fd, int numElem, int xsize, int ysize, int zsize);
115 
116 extern int FILEEXPORT covReadSizeSTRVDT(int fd, int *numElem, int *xsize, int *ysize, int *zsize);
117 extern int FILEEXPORT covReadSTRVDT(int fd, int numElem, float *data_x, float *data_y, float *data_z, int xsize, int ysize, int zsize);
118 extern int FILEEXPORT covSkipSTRVDT(int fd, int numElem, int xsize, int ysize, int zsize);
119 
120 extern int FILEEXPORT covReadSizeRGBADT(int fd, int *numElem);
121 extern int FILEEXPORT covReadRGBADT(int fd, int numElem, int *colors);
122 extern int FILEEXPORT covSkipRGBADT(int fd, int numElem);
123 
124 extern int FILEEXPORT covReadSizeIMAGE(int fd, int *PixelImageWidth, int *PixelImageHeight, int *PixelImageSize,
125  int *PixelImageFormatId, int *PixImageBufferLength);
126 extern int FILEEXPORT covReadIMAGE(int fd, int PixelImageWidth, int PixelImageHeight, int PixelImageSize,
127  int PixelImageFormatId, int PixImageBufferLength, char *PixelImageBuffer);
128 extern int FILEEXPORT covSkipIMAGE(int fd, int PixelImageWidth, int PixelImageHeight, int PixelImageSize,
129  int PixelImageFormatId, int PixImageBufferLength);
130 
131 extern int FILEEXPORT covReadSizeTEXTUR(int fd, int *NumberOfBorderPixels, int *NumberOfComponents, int *Level,
132  int *NumberOfCoordinates, int *NumberOfVertices);
133 extern int FILEEXPORT covReadTEXTUR(int fd, int NumberOfBorderPixels, int NumberOfComponents, int Level,
134  int NumberOfCoordinates, int NumberOfVertices, int *VertexIndices,
135  float **Coords);
136 extern int FILEEXPORT covSkipTEXTUR(int fd, int NumberOfBorderPixels, int NumberOfComponents, int Level,
137  int NumberOfCoordinates, int NumberOfVertices);
138 
139 extern int FILEEXPORT covReadDimINTARR(int fd, int *numDim);
140 extern int FILEEXPORT covReadSizeINTARR(int fd, int numDim, int *sizes, int *numElem);
141 extern int FILEEXPORT covReadINTARR(int fd, int numDim, int numElem, int *dim_array, int *data);
142 extern int FILEEXPORT covSkipINTARR(int fd, int numDim, int numElem, int *dim_array, int *data);
143 
144 extern int FILEEXPORT covReadSizeOCTREE(int fd, int *numCellLists, int *numMacroCellLists, int *numCellBBoxes, int *numGridBBoxes);
145 extern int FILEEXPORT covReadOCTREE(int fd, int *numCellLists, int *numMacroCellLists, int *numCellBBoxes, int *numGridBBoxes, int *cellLists, int *macroCellLists, float *cellBBoxes, float *gridBBoxes, int *fX, int *fY, int *fZ, int *max_no_levels);
146 extern int FILEEXPORT covSkipOCTREE(int fd, int *numCellLists, int *numMacroCellLists, int *numCellBBoxes, int *numGridBBoxes, int *cellLists, int *macroCellLists, float *cellBBoxes, float *gridBBoxes, int *fX, int *fY, int *fZ, int *max_no_levels);
147 
148 extern int FILEEXPORT covReadOBJREF(int fd, int *num);
149 
150 #ifdef __cplusplus
151 }
152 #endif
153 #endif
int covReadSizeTEXTUR(int fd, int *NumberOfBorderPixels, int *NumberOfComponents, int *Level, int *NumberOfCoordinates, int *NumberOfVertices)
Definition: covFiles.c:1619
int FILEEXPORT covSkipBYTEDT(int fd, int numElem)
int covReadTRI(int fd, int numCorners, int *cornerList, int numPoints, float *x, float *y, float *z)
Definition: covFiles.c:931
int covReadAttributes(int fd, char **atNam, char **atVal, int num, int size)
Definition: covFiles.c:326
int covOpenInFile(const char *filename)
Definition: covFiles.c:197
int covReadBYTEDT(int fd, int numElem, unsigned char *x)
Definition: covFiles.c:1778
int covReadDOTEXT(int fd, int numElem, char *data)
Definition: covFiles.c:751
GLuint const GLchar * name
Definition: khronos-glext.h:6722
int covSkipPOLYGN(int fd, int numPolygons, int numCorners, int numPoints)
Definition: covFiles.c:878
int covReadSizeSTRSDT(int fd, int *numElem, int *xsize, int *ysize, int *zsize)
Definition: covFiles.c:1369
int covSkipSPHERES(int fd, int numSphere)
Definition: covFiles.c:641
int FILEEXPORT covSkipOCTREE(int fd, int *numCellLists, int *numMacroCellLists, int *numCellBBoxes, int *numGridBBoxes, int *cellLists, int *macroCellLists, float *cellBBoxes, float *gridBBoxes, int *fX, int *fY, int *fZ, int *max_no_levels)
int covReadUSTVDT(int fd, int numElem, float *x, float *y, float *z)
Definition: covFiles.c:1316
int covReadSTRVDT(int fd, int numElem, float *data_x, float *data_y, float *data_z, int xsize, int ysize, int zsize)
Definition: covFiles.c:1433
int FILEEXPORT covSkipSTRSDT(int fd, int numElem, int xsize, int ysize, int zsize)
int covReadSizeINTDT(int fd, int *numElem)
Definition: covFiles.c:1732
int covReadQUADS(int fd, int numCorners, int *cornerList, int numPoints, float *x, float *y, float *z)
Definition: covFiles.c:955
int covReadUSTSDT(int fd, int numElem, float *x)
Definition: covFiles.c:1203
GLint GLint GLint GLint GLint GLint y
Definition: khronos-glext.h:6346
int covReadRGBADT(int fd, int numElem, int *colors)
Definition: covFiles.c:1479
int covSkipUSTVDT(int fd, int numElem)
Definition: covFiles.c:1321
int covSkipUNSGRD(int fd, int numElem, int numConn, int numVert)
Definition: covFiles.c:578
int FILEEXPORT covSkipTEXTUR(int fd, int NumberOfBorderPixels, int NumberOfComponents, int Level, int NumberOfCoordinates, int NumberOfVertices)
int covReadOCTREE(int fd, int *numCellLists, int *numMacroCellLists, int *numCellBBoxes, int *numGridBBoxes, int *cellLists, int *macroCellLists, float *cellBBoxes, float *gridBBoxes, int *fX, int *fY, int *fZ, int *max_no_levels)
Definition: covFiles.c:1877
int FILEEXPORT covSkipIMAGE(int fd, int PixelImageWidth, int PixelImageHeight, int PixelImageSize, int PixelImageFormatId, int PixImageBufferLength)
int covReadSizeBYTEDT(int fd, int *numElem)
Definition: covFiles.c:1773
int covReadGeometryBegin(int fd, int *has_geometry, int *has_colors, int *has_normals, int *has_texture)
Definition: covFiles.c:426
GLclampd zmax
Definition: khronos-glext.h:11392
int covReadTRIANG(int fd, int numStrips, int *stripList, int numCorners, int *cornerList, int numPoints, float *x, float *y, float *z)
Definition: covFiles.c:979
int FILEEXPORT covSkipQUADS(int fd, int numCorners, int numPoints)
int covReadSizeSTRGRD(int fd, int *xsize, int *ysize, int *zsize)
Definition: covFiles.c:1148
#define FILEEXPORT
Definition: coExport.h:87
int covSkipPOINTS(int fd, int numElem)
Definition: covFiles.c:709
int FILEEXPORT covSkipDOTEXT(int fd, int numElem)
int FILEEXPORT covSkipSTRGRD(int fd, int xsize, int ysize, int zsize)
int covReadSizeUSTTDT(int fd, int *numElem, int *type)
Definition: covFiles.c:1249
GLdouble GLdouble z
Definition: khronos-glext.h:6565
int covReadSizeSPHERES(int fd, int *numElem)
Definition: covFiles.c:646
int covReadTEXTUR(int fd, int NumberOfBorderPixels, int NumberOfComponents, int Level, int NumberOfCoordinates, int NumberOfVertices, int *VertexIndices, float **Coords)
Definition: covFiles.c:1627
int covReadDescription(int fd, char *name)
Definition: covFiles.c:337
int covReadOldGeometryBegin(int fd, int *has_geometry, int *has_colors, int *has_normals)
Definition: covFiles.c:431
int covReadSizeIMAGE(int fd, int *PixelImageWidth, int *PixelImageHeight, int *PixelImageSize, int *PixelImageFormatId, int *PixImageBufferLength)
Definition: covFiles.c:1535
int covReadSizeLINES(int fd, int *numLines, int *numCorners, int *numPoints)
Definition: covFiles.c:895
int covReadUNIGRD(int fd, int *xsize, int *ysize, int *zsize, float *xmin, float *xmax, float *ymin, float *ymax, float *zmin, float *zmax)
Definition: covFiles.c:1039
GLsizeiptr size
Definition: khronos-glext.h:6610
int covReadNumAttributes(int fd, int *num, int *size)
Definition: covFiles.c:331
int covReadSPHERES(int fd, int numSphere, float *x, float *y, float *z, float *radius)
Definition: covFiles.c:636
int covReadSizeRCTGRD(int fd, int *xsize, int *ysize, int *zsize)
Definition: covFiles.c:1091
GLint GLint GLint GLint GLint x
Definition: khronos-glext.h:6346
int FILEEXPORT covSkipRGBADT(int fd, int numElem)
int covReadSetBegin(int fd, int *numElem)
Definition: covFiles.c:475
int covReadINTDT(int fd, int numElem, int *x)
Definition: covFiles.c:1737
int FILEEXPORT covSkipINTDT(int fd, int numElem)
int FILEEXPORT covSkipTRIANG(int fd, int numStrips, int numCorners, int numPoints)
int covReadSizeDOTEXT(int fd, int *numElem)
Definition: covFiles.c:746
GLenum type
Definition: khronos-glext.h:6279
int covReadDimINTARR(int fd, int *numDim)
Definition: covFiles.c:1684
int covReadUNSGRD(int fd, int numElem, int numConn, int numVert, int *el, int *cl, int *tl, float *x, float *y, float *z)
Definition: covFiles.c:570
int covReadSizeRGBADT(int fd, int *numElem)
Definition: covFiles.c:1474
int covReadRCTGRD(int fd, int xsize, int ysize, int zsize, float *x, float *y, float *z)
Definition: covFiles.c:1096
int FILEEXPORT covSkipRCTGRD(int fd, int xsize, int ysize, int zsize)
int covReadSizeTRIANG(int fd, int *numStrips, int *numCorners, int *numPoints)
Definition: covFiles.c:973
int covReadSizeOCTREE(int fd, int *numCellLists, int *numMacroCellLists, int *numCellBBoxes, int *numGridBBoxes)
Definition: covFiles.c:1897
int covReadSTRGRD(int fd, int xsize, int ysize, int zsize, float *x, float *y, float *z)
Definition: covFiles.c:1153
int covReadSizeUSTVDT(int fd, int *numElem)
Definition: covFiles.c:1311
int covReadPOINTS(int fd, int numElem, float *x, float *y, float *z)
Definition: covFiles.c:704
int covReadIMAGE(int fd, int PixelImageWidth, int PixelImageHeight, int PixelImageSize, int PixelImageFormatId, int PixImageBufferLength, char *PixelImageBuffer)
Definition: covFiles.c:1542
int covReadSizePOINTS(int fd, int *numElem)
Definition: covFiles.c:699
int covReadSizeUNSGRD(int fd, int *numElem, int *numConn, int *numVert)
Definition: covFiles.c:564
int FILEEXPORT covSkipUSTTDT(int fd, int numElem, int type)
int covReadSizeUSTSDT(int fd, int *numElem)
Definition: covFiles.c:1198
int covReadLINES(int fd, int numLines, int *lineList, int numCorners, int *cornerList, int numPoints, float *x, float *y, float *z)
Definition: covFiles.c:901
int covSkipLINES(int fd, int numLines, int numCorners, int numPoints)
Definition: covFiles.c:908
int covReadINTARR(int fd, int numDim, int numElem, int *dim_array, int *data)
Definition: covFiles.c:1694
int FILEEXPORT covSkipSTRVDT(int fd, int numElem, int xsize, int ysize, int zsize)
int covReadSizeSTRVDT(int fd, int *numElem, int *xsize, int *ysize, int *zsize)
Definition: covFiles.c:1428
GLuint GLuint num
Definition: khronos-glext.h:10593
GLsizei GLsizei GLenum GLenum const GLvoid * data
Definition: khronos-glext.h:6354
int FILEEXPORT covSkipINTARR(int fd, int numDim, int numElem, int *dim_array, int *data)
int covReadPOLYGN(int fd, int numPolygons, int *polyList, int numCorners, int *cornerList, int numPoints, float *x, float *y, float *z)
Definition: covFiles.c:872
int covCloseInFile(int fd)
Definition: covFiles.c:237
int covSkipUSTSDT(int fd, int numElem)
Definition: covFiles.c:1208
int covReadOBJREF(int fd, int *objNum)
Definition: covFiles.c:1932
int covReadSizePOLYGN(int fd, int *numPolygons, int *numCorners, int *numPoints)
Definition: covFiles.c:866
int covReadSizeINTARR(int fd, int numDim, int *sizes, int *numElem)
Definition: covFiles.c:1689
int covReadSTRSDT(int fd, int numElem, float *data, int xsize, int ysize, int zsize)
Definition: covFiles.c:1374
int covReadUSTTDT(int fd, int numElem, int type, float *x)
Definition: covFiles.c:1254