OSDN Git Service

831f07e146deeecdec9db1980d1ee4e1e05f971d
[eos/base.git] / src / Objects / DataManip / dsn6File / doc / dsn6File.html
1 <HR>
2 <A NAME="Information">
3 <H2>Information from source codes</H2>
4 </A>
5 <PRE>
6 ../src/dsn6Init.c:
7
8 ../src/dsn6Write.c:
9 </PRE>
10 <HR>
11 <A NAME="include">
12 <H2>dsn6File.h</H2>
13 </A>
14 <PRE>
15 #ifndef DSN6_H\r
16 #define DSN6_H\r
17 #include <stdio.h>\r
18 \r
19 typedef short Dsn6IntegerType;\r
20 typedef unsigned char Dsn6ImageType;\r
21 \r
22 #define Dsn6Header Header.DSN6HeaderCont\r
23 \r
24 typedef struct Dsn6Coord {\r
25         Dsn6IntegerType x;\r
26         Dsn6IntegerType y;\r
27         Dsn6IntegerType z;\r
28 } Dsn6Coord;\r
29 \r
30 typedef struct Dsn6HeaderContent {\r
31         Dsn6Coord Start;\r
32         Dsn6Coord Extent;\r
33         Dsn6Coord SamplingRate;\r
34         Dsn6IntegerType ACellEdge;\r
35         Dsn6IntegerType BCellEdge;\r
36         Dsn6IntegerType CCellEdge;\r
37         Dsn6IntegerType CosAlpha;\r
38         Dsn6IntegerType CosBeta;\r
39         Dsn6IntegerType CosGamma;\r
40         Dsn6IntegerType DensScaling;\r
41         Dsn6IntegerType DensOffset;\r
42         Dsn6IntegerType CellConstantScalingFactor;\r
43         Dsn6IntegerType Weight;\r
44         Dsn6IntegerType dummy[256-19];\r
45 } Dsn6HeaderContent;\r
46 \r
47 typedef union DSN6Header {\r
48         char               byte[512];\r
49         Dsn6IntegerType    data[256];\r
50         Dsn6HeaderContent  DSN6HeaderCont;\r
51 } DSN6Header;\r
52 \r
53 typedef struct Dsn6 {\r
54         DSN6Header     Header;\r
55         Dsn6ImageType* Image;   \r
56         float*         FloatImage;      \r
57 } Dsn6;\r
58 \r
59 extern void dsn6Init(Dsn6* map, int mode);\r
60 extern void dsn6ImageAllocate(Dsn6* map, int mode);\r
61 \r
62 extern void dsn6FileWrite(Dsn6* map, FILE* fpt, int mode);\r
63 #endif /* DSN6_H */\r
64 </PRE>