~ubuntu-branches/ubuntu/wily/grass/wily

« back to all changes in this revision

Viewing changes to include/defs/raster3d.h

Tags: 7.0.0~rc1+ds1-1~exp1
* New upstream release candidate.
* Repack upstream tarball, remove precompiled Python objects.
* Add upstream metadata.
* Update gbp.conf and Vcs-Git URL to use the experimental branch.
* Update watch file for GRASS 7.0.
* Drop build dependencies for Tcl/Tk, add build dependencies:
  python-numpy, libnetcdf-dev, netcdf-bin, libblas-dev, liblapack-dev
* Update Vcs-Browser URL to use cgit instead of gitweb.
* Update paths to use grass70.
* Add configure options: --with-netcdf, --with-blas, --with-lapack,
  remove --with-tcltk-includes.
* Update patches for GRASS 7.
* Update copyright file, changes:
  - Update copyright years
  - Group files by license
  - Remove unused license sections
* Add patches for various typos.
* Fix desktop file with patch instead of d/rules.
* Use minimal dh rules.
* Bump Standards-Version to 3.9.6, no changes.
* Use dpkg-maintscript-helper to replace directories with symlinks.
  (closes: #776349)
* Update my email to use @debian.org address.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef GRASS_RASTER3DDEFS_H
 
2
#define GRASS_RASTER3DDEFS_H
 
3
 
 
4
/* cache.c */
 
5
void Rast3d_cache_reset(RASTER3D_cache *);
 
6
void Rast3d_cache_dispose(RASTER3D_cache *);
 
7
void *Rast3d_cache_new(int, int, int, write_fn *, void *, read_fn *, void *);
 
8
void Rast3d_cache_set_remove_fun(RASTER3D_cache *, write_fn *, void *);
 
9
void Rast3d_cache_set_load_fun(RASTER3D_cache *, read_fn *, void *);
 
10
void *Rast3d_cache_new_read(int, int, int, read_fn *, void *);
 
11
int Rast3d_cache_lock(RASTER3D_cache *, int);
 
12
void Rast3d_cache_lock_intern(RASTER3D_cache *, int);
 
13
int Rast3d_cache_unlock(RASTER3D_cache *, int);
 
14
int Rast3d_cache_unlock_all(RASTER3D_cache *);
 
15
int Rast3d_cache_lock_all(RASTER3D_cache *);
 
16
void Rast3d_cache_autolock_on(RASTER3D_cache *);
 
17
void Rast3d_cache_autolock_off(RASTER3D_cache *);
 
18
void Rast3d_cache_set_min_unlock(RASTER3D_cache *, int);
 
19
int Rast3d_cache_remove_elt(RASTER3D_cache *, int);
 
20
int Rast3d_cache_flush(RASTER3D_cache *, int);
 
21
int Rast3d_cache_remove_all(RASTER3D_cache *);
 
22
int Rast3d_cache_flush_all(RASTER3D_cache *);
 
23
void *Rast3d_cache_elt_ptr(RASTER3D_cache *, int);
 
24
int Rast3d_cache_load(RASTER3D_cache *, int);
 
25
int Rast3d_cache_get_elt(RASTER3D_cache *, int, void *);
 
26
int Rast3d_cache_put_elt(RASTER3D_cache *, int, const void *);
 
27
 
 
28
/* cachehash.c */
 
29
void Rast3d_cache_hash_reset(Rast3d_cache_hash *);
 
30
void Rast3d_cache_hash_dispose(Rast3d_cache_hash *);
 
31
void *Rast3d_cache_hash_new(int);
 
32
void Rast3d_cache_hash_remove_name(Rast3d_cache_hash *, int);
 
33
void Rast3d_cache_hash_load_name(Rast3d_cache_hash *, int, int);
 
34
int Rast3d_cache_hash_name2index(Rast3d_cache_hash *, int);
 
35
 
 
36
/* changeprecision.c */
 
37
void Rast3d_change_precision(void *, int, const char *);
 
38
 
 
39
/* changetype.c */
 
40
void Rast3d_change_type(void *, const char *);
 
41
 
 
42
/* filecompare.c */
 
43
void Rast3d_compare_files(const char *, const char *, const char *, const char *);
 
44
 
 
45
/* filename.c */
 
46
void Rast3d_filename(char *, const char *, const char *, const char *);
 
47
 
 
48
/* fpcompress.c */
 
49
void Rast3d_fpcompress_print_binary(char *, int);
 
50
void Rast3d_fpcompress_dissect_xdr_double(unsigned char *);
 
51
int Rast3d_fpcompress_write_xdr_nums(int, char *, int, int, char *, int);
 
52
int Rast3d_fpcompress_read_xdr_nums(int, char *, int, int, int, char *, int);
 
53
 
 
54
/* alloc.c */
 
55
void *Rast3d_malloc(int);
 
56
void *Rast3d_realloc(void *, int);
 
57
void Rast3d_free(void *);
 
58
 
 
59
/* cache.c */
 
60
int Rast3d_init_cache(RASTER3D_Map *, int);
 
61
int Rast3d_dispose_cache(RASTER3D_Map *);
 
62
int Rast3d_flush_all_tiles(RASTER3D_Map *);
 
63
 
 
64
/* cats.c */
 
65
int Rast3d_write_cats(const char *, struct Categories *);
 
66
int Rast3d_read_cats(const char *, const char *, struct Categories *);
 
67
 
 
68
/* close.c */
 
69
int Rast3d_close(RASTER3D_Map *);
 
70
 
 
71
/* color.c */
 
72
int Rast3d_remove_color(const char *);
 
73
int Rast3d_read_colors(const char *, const char *, struct Colors *);
 
74
int Rast3d_write_colors(const char *, const char *, struct Colors *);
 
75
 
 
76
/* defaults.c */
 
77
void Rast3d_set_compression_mode(int, int);
 
78
void Rast3d_get_compression_mode(int *, int *);
 
79
void Rast3d_set_cache_size(int);
 
80
int Rast3d_get_cache_size(void);
 
81
void Rast3d_set_cache_limit(int);
 
82
int Rast3d_get_cache_limit(void);
 
83
void Rast3d_set_file_type(int);
 
84
int Rast3d_get_file_type(void);
 
85
void Rast3d_set_tile_dimension(int, int, int);
 
86
void Rast3d_get_tile_dimension(int *, int *, int *);
 
87
void Rast3d_set_error_fun(void (*)(const char *));
 
88
void Rast3d_init_defaults(void);
 
89
 
 
90
/* doubleio.c */
 
91
int Rast3d_write_doubles(int, int, const double *, int);
 
92
int Rast3d_read_doubles(int, int, double *, int);
 
93
 
 
94
/* error.c */
 
95
void Rast3d_skip_error(const char *);
 
96
void Rast3d_print_error(const char *);
 
97
void Rast3d_fatal_error(const char *, ...) __attribute__ ((format(printf, 1, 2)))
 
98
    __attribute__ ((noreturn));
 
99
void Rast3d_fatal_error_noargs(const char *) __attribute__ ((noreturn));
 
100
void Rast3d_error(const char *, ...) __attribute__ ((format(printf, 1, 2)));
 
101
 
 
102
/* fpxdr.c */
 
103
int Rast3d_is_xdr_null_num(const void *, int);
 
104
int Rast3d_is_xdr_null_float(const float *);
 
105
int Rast3d_is_xdr_null_double(const double *);
 
106
void Rast3d_set_xdr_null_num(void *, int);
 
107
void Rast3d_set_xdr_null_double(double *);
 
108
void Rast3d_set_xdr_null_float(float *);
 
109
int Rast3d_init_fp_xdr(RASTER3D_Map *, int);
 
110
int Rast3d_init_copy_to_xdr(RASTER3D_Map *, int);
 
111
int Rast3d_copy_to_xdr(const void *, int);
 
112
int Rast3d_init_copy_from_xdr(RASTER3D_Map *, int);
 
113
int Rast3d_copy_from_xdr(int, void *);
 
114
 
 
115
/* history.c */
 
116
int Rast3d_write_history(const char *, struct History *);
 
117
int Rast3d_read_history(const char *, const char *, struct History *);
 
118
 
 
119
/* intio.c */
 
120
int Rast3d_write_ints(int, int, const int *, int);
 
121
int Rast3d_read_ints(int, int, int *, int);
 
122
 
 
123
/* keys.c */
 
124
int Rast3d_key_get_int(struct Key_Value *, const char *, int *);
 
125
int Rast3d_key_get_double(struct Key_Value *, const char *, double *);
 
126
int Rast3d_key_get_string(struct Key_Value *, const char *, char **);
 
127
int Rast3d_key_get_value(struct Key_Value *, const char *, char *, char *, int,
 
128
            int, int *);
 
129
int Rast3d_key_set_int(struct Key_Value *, const char *, const int *);
 
130
int Rast3d_key_set_double(struct Key_Value *, const char *, const double *);
 
131
int Rast3d_key_set_string(struct Key_Value *, const char *, char *const *);
 
132
int Rast3d_key_set_value(struct Key_Value *, const char *, const char *,
 
133
            const char *, int, int, const int *);
 
134
/* long.c */
 
135
int Rast3d_long_encode(long *, unsigned char *, int);
 
136
void Rast3d_long_decode(unsigned char *, long *, int, int);
 
137
 
 
138
/* mapset.c */
 
139
void Rast3d_make_mapset_map_directory(const char *);
 
140
 
 
141
/* mask.c */
 
142
int Rast3d_mask_close(void);
 
143
int Rast3d_mask_file_exists(void);
 
144
int Rast3d_mask_open_old(void);
 
145
int Rast3d_mask_reopen(int);
 
146
int Rast3d_is_masked(RASTER3D_Map *, int, int, int);
 
147
void Rast3d_mask_num(RASTER3D_Map *, int, int, int, void *, int);
 
148
void Rast3d_mask_float(RASTER3D_Map *, int, int, int, float *);
 
149
void Rast3d_mask_double(RASTER3D_Map *, int, int, int, double *);
 
150
void Rast3d_mask_tile(RASTER3D_Map *, int, void *, int);
 
151
void Rast3d_mask_on(RASTER3D_Map *);
 
152
void Rast3d_mask_off(RASTER3D_Map *);
 
153
int Rast3d_mask_is_on(RASTER3D_Map *);
 
154
int Rast3d_mask_is_off(RASTER3D_Map *);
 
155
const char *Rast3d_mask_file(void);
 
156
int Rast3d_mask_map_exists(void);
 
157
 
 
158
/* maskfn.c */
 
159
int Rast3d_mask_d_select(DCELL *, d_Mask *);
 
160
DCELL Rast3d_mask_match_d_interval(DCELL, d_Interval *);
 
161
void Rast3d_parse_vallist(char **, d_Mask **);
 
162
 
 
163
/* misc.c */
 
164
int Rast3d_g3d_type2cell_type(int);
 
165
void Rast3d_copy_float2Double(const float *, int, double *, int, int);
 
166
void Rast3d_copy_double2Float(const double *, int, float *, int, int);
 
167
void Rast3d_copy_values(const void *, int, int, void *, int, int, int);
 
168
int Rast3d_length(int);
 
169
int Rast3d_extern_length(int);
 
170
 
 
171
/* null.c */
 
172
int Rast3d_is_null_value_num(const void *, int);
 
173
void Rast3d_set_null_value(void *, int, int);
 
174
 
 
175
/* open2.c */
 
176
void *Rast3d_open_new_param(const char *, int , int, RASTER3D_Region *, int, int, int, int, int, int);
 
177
/* open.c */
 
178
void *Rast3d_open_cell_old_no_header(const char *, const char *);
 
179
void *Rast3d_open_cell_old(const char *, const char *, RASTER3D_Region *, int, int);
 
180
void *Rast3d_open_cell_new(const char *, int, int, RASTER3D_Region *);
 
181
void *Rast3d_open_new_opt_tile_size(const char *, int , RASTER3D_Region * , int , int );
 
182
 
 
183
/* param.c */
 
184
void Rast3d_set_standard3d_input_params(void);
 
185
int Rast3d_get_standard3d_params(int *, int *, int *, int *, int *,
 
186
                int *, int *, int *, int *, int *);
 
187
void Rast3d_set_window_params(void);
 
188
char *Rast3d_get_window_params(void);
 
189
 
 
190
/* range.c */
 
191
void Rast3d_range_update_from_tile(RASTER3D_Map *, const void *, int, int, int, int,
 
192
                  int, int, int, int);
 
193
int Rast3d_read_range(const char *, const char *, struct FPRange *);
 
194
int Rast3d_range_load(RASTER3D_Map *);
 
195
void Rast3d_range_min_max(RASTER3D_Map *, double *, double *);
 
196
int Rast3d_range_write(RASTER3D_Map *);
 
197
int Rast3d_range_init(RASTER3D_Map *);
 
198
 
 
199
/* region.c */
 
200
void Rast3d_get_region_value(RASTER3D_Map *, double, double, double, void *, int);
 
201
void Rast3d_adjust_region(RASTER3D_Region *);
 
202
void Rast3d_region_copy(RASTER3D_Region *, RASTER3D_Region *);
 
203
void Rast3d_incorporate2d_region(struct Cell_head *, RASTER3D_Region *);
 
204
void Rast3d_region_from_to_cell_head(struct Cell_head *, RASTER3D_Region *);
 
205
void Rast3d_adjust_region_res(RASTER3D_Region *);
 
206
void Rast3d_extract2d_region(RASTER3D_Region *, struct Cell_head *);
 
207
void Rast3d_region_to_cell_head(RASTER3D_Region *, struct Cell_head *);
 
208
int Rast3d_read_region_map(const char *, const char *, RASTER3D_Region *);
 
209
int Rast3d_is_valid_location(RASTER3D_Region *, double, double, double);
 
210
void Rast3d_location2coord(RASTER3D_Region *, double, double, double, int *, int *, int *);
 
211
void Rast3d_location2coord_double(RASTER3D_Region *, double, double, double, double *, double *, double *);
 
212
void Rast3d_location2coord2(RASTER3D_Region *, double, double, double, int *, int *, int *);
 
213
void Rast3d_coord2location(RASTER3D_Region *, double, double, double, double *, double *, double *);
 
214
/* resample.c */
 
215
void Rast3d_nearest_neighbor(RASTER3D_Map *, int, int, int, void *, int);
 
216
void Rast3d_set_resampling_fun(RASTER3D_Map *, void (*)());
 
217
void Rast3d_get_resampling_fun(RASTER3D_Map *, void (**)());
 
218
void Rast3d_get_nearest_neighbor_fun_ptr(void (**)());
 
219
 
 
220
/* volume.c */
 
221
void Rast3d_get_volume_a(void *, double[2][2][2][3], int, int, int, void *, int);
 
222
void Rast3d_get_volume(void *, double, double, double, double, double, double,
 
223
           double, double, double, double, double, double, int, int,
 
224
           int, void *, int);
 
225
void Rast3d_get_aligned_volume(void *, double, double, double, double, double,
 
226
              double, int, int, int, void *, int);
 
227
void Rast3d_make_aligned_volume_file(void *, const char *, double, double, double,
 
228
                   double, double, double, int, int, int);
 
229
/* window.c */
 
230
void Rast3d_get_value(RASTER3D_Map *, int, int, int, void *, int);
 
231
float Rast3d_get_float(RASTER3D_Map *, int, int, int);
 
232
double Rast3d_get_double(RASTER3D_Map *, int, int, int);
 
233
void Rast3d_get_window_value(RASTER3D_Map *, double, double, double, void *, int);
 
234
 
 
235
 
 
236
RASTER3D_Region *Rast3d_window_ptr(void);
 
237
void Rast3d_set_window(RASTER3D_Region *);
 
238
void Rast3d_set_window_map(RASTER3D_Map *, RASTER3D_Region *);
 
239
void Rast3d_get_window(RASTER3D_Region *);
 
240
 
 
241
/* windowio.c */
 
242
void Rast3d_use_window_params(void);
 
243
int Rast3d_read_window(RASTER3D_Region *, const char *);
 
244
 
 
245
/* int Rast3d_writeWindow (RASTER3D_Region *, char *); */
 
246
/* getblock.c */
 
247
void Rast3d_get_block_nocache(RASTER3D_Map *, int, int, int, int, int, int, void *,
 
248
             int);
 
249
void Rast3d_get_block(RASTER3D_Map *, int, int, int, int, int, int, void *, int);
 
250
 
 
251
/* header.c */
 
252
int Rast3d_read_header(RASTER3D_Map *, int *, int *, double *, double *, double *,
 
253
           double *, double *, double *, int *, int *, int *,
 
254
           double *, double *, double *, int *, int *, int *, int *,
 
255
           int *, int *, int *, int *, int *, int *, int *, char **, int *, int *);
 
256
int Rast3d_write_header(RASTER3D_Map *, int, int, double, double, double, double,
 
257
            double, double, int, int, int, double, double, double,
 
258
            int, int, int, int, int, int, int, int, int, int, int,
 
259
            char *, int, int);
 
260
int Rast3d_rewrite_header(RASTER3D_Map * map);
 
261
int Rast3d_cache_size_encode(int, int);
 
262
int Rast3d__compute_cache_size(RASTER3D_Map *, int);
 
263
int Rast3d_fill_header(RASTER3D_Map *, int, int, int, int, int, int, int, int, int,
 
264
           int, int, int, int, int, int, int, double, double, double,
 
265
           double, double, double, int, int, int, double, double,
 
266
           double, char *, int, int);
 
267
/* headerinfo.c */
 
268
void Rast3d_get_coords_map(RASTER3D_Map *, int *, int *, int *);
 
269
void Rast3d_get_coords_map_window(RASTER3D_Map *, int *, int *, int *);
 
270
void Rast3d_get_nof_tiles_map(RASTER3D_Map *, int *, int *, int *);
 
271
void Rast3d_get_region_map(RASTER3D_Map *, double *, double *, double *, double *,
 
272
              double *, double *);
 
273
void Rast3d_get_window_map(RASTER3D_Map *, double *, double *, double *, double *,
 
274
              double *, double *);
 
275
void Rast3d_get_tile_dimensions_map(RASTER3D_Map *, int *, int *, int *);
 
276
int Rast3d_tile_type_map(RASTER3D_Map *);
 
277
int Rast3d_file_type_map(RASTER3D_Map *);
 
278
int Rast3d_tile_precision_map(RASTER3D_Map *);
 
279
int Rast3d_tile_use_cache_map(RASTER3D_Map *);
 
280
void Rast3d_print_header(RASTER3D_Map *);
 
281
void Rast3d_get_region_struct_map(RASTER3D_Map *, RASTER3D_Region *);
 
282
const char* Rast3d_get_unit(RASTER3D_Map * map);
 
283
int Rast3d_get_vertical_unit2(RASTER3D_Map * map);
 
284
const char* Rast3d_get_vertical_unit(RASTER3D_Map * map);
 
285
void Rast3d_set_unit(RASTER3D_Map * map, const char *);
 
286
void Rast3d_set_vertical_unit(RASTER3D_Map * map, const char *);
 
287
void Rast3d_set_vertical_unit2(RASTER3D_Map * map, int);
 
288
 
 
289
/* index.c */
 
290
int Rast3d_flush_index(RASTER3D_Map *);
 
291
int Rast3d_init_index(RASTER3D_Map *, int);
 
292
 
 
293
/* retile.c */
 
294
void Rast3d_retile(void *, const char *, int, int, int);
 
295
 
 
296
/* rle.c */
 
297
int Rast3d_rle_count_only(char *, int, int);
 
298
void Rast3d_rle_encode(char *, char *, int, int);
 
299
void Rast3d_rle_decode(char *, char *, int, int, int *, int *);
 
300
 
 
301
/* tilealloc.c */
 
302
void *Rast3d_alloc_tiles_type(RASTER3D_Map *, int, int);
 
303
void *Rast3d_alloc_tiles(RASTER3D_Map *, int);
 
304
void Rast3d_free_tiles(void *);
 
305
 
 
306
/* tileio.c */
 
307
void *Rast3d_get_tile_ptr(RASTER3D_Map *, int);
 
308
int Rast3d_tile_load(RASTER3D_Map *, int);
 
309
int Rast3d__remove_tile(RASTER3D_Map *, int);
 
310
float Rast3d_get_float_region(RASTER3D_Map *, int, int, int);
 
311
double Rast3d_get_double_region(RASTER3D_Map *, int, int, int);
 
312
void Rast3d_get_value_region(RASTER3D_Map *, int, int, int, void *, int);
 
313
 
 
314
/* tilemath.c */
 
315
void Rast3d_compute_optimal_tile_dimension(RASTER3D_Region *, int, int *, int *, int *, int);
 
316
void Rast3d_tile_index2tile(RASTER3D_Map *, int, int *, int *, int *);
 
317
int Rast3d_tile2tile_index(RASTER3D_Map *, int, int, int);
 
318
void Rast3d_tile_coord_origin(RASTER3D_Map *, int, int, int, int *, int *, int *);
 
319
void Rast3d_tile_index_origin(RASTER3D_Map *, int, int *, int *, int *);
 
320
void Rast3d_coord2tile_coord(RASTER3D_Map *, int, int, int, int *, int *, int *, int *,
 
321
             int *, int *);
 
322
void Rast3d_coord2tile_index(RASTER3D_Map *, int, int, int, int *, int *);
 
323
int Rast3d_coord_in_range(RASTER3D_Map *, int, int, int);
 
324
int Rast3d_tile_index_in_range(RASTER3D_Map *, int);
 
325
int Rast3d_tile_in_range(RASTER3D_Map *, int, int, int);
 
326
int Rast3d_compute_clipped_tile_dimensions(RASTER3D_Map *, int, int *, int *, int *,
 
327
                     int *, int *, int *);
 
328
 
 
329
/* tilenull.c */
 
330
void Rast3d_set_null_tile_type(RASTER3D_Map *, void *, int);
 
331
void Rast3d_set_null_tile(RASTER3D_Map *, void *);
 
332
 
 
333
/* tileread.c */
 
334
int Rast3d_read_tile(RASTER3D_Map *, int, void *, int);
 
335
int Rast3d_read_tile_float(RASTER3D_Map *, int, void *);
 
336
int Rast3d_read_tile_double(RASTER3D_Map *, int, void *);
 
337
int Rast3d_lock_tile(RASTER3D_Map *, int);
 
338
int Rast3d_unlock_tile(RASTER3D_Map *, int);
 
339
int Rast3d_unlock_all(RASTER3D_Map *);
 
340
void Rast3d_autolock_on(RASTER3D_Map *);
 
341
void Rast3d_autolock_off(RASTER3D_Map *);
 
342
void Rast3d_min_unlocked(RASTER3D_Map *, int);
 
343
int Rast3d_begin_cycle(RASTER3D_Map *);
 
344
int Rast3d_end_cycle(RASTER3D_Map *);
 
345
 
 
346
/* tilewrite.c */
 
347
int Rast3d_write_tile(RASTER3D_Map *, int, const void *, int);
 
348
int Rast3d_write_tile_float(RASTER3D_Map *, int, const void *);
 
349
int Rast3d_write_tile_double(RASTER3D_Map *, int, const void *);
 
350
int Rast3d_flush_tile(RASTER3D_Map *, int);
 
351
int Rast3d_flush_tile_cube(RASTER3D_Map *, int, int, int, int, int, int);
 
352
int Rast3d_flush_tiles_in_cube(RASTER3D_Map *, int, int, int, int, int, int);
 
353
int Rast3d_put_float(RASTER3D_Map *, int, int, int, float);
 
354
int Rast3d_put_double(RASTER3D_Map *, int, int, int, double);
 
355
int Rast3d_put_value(RASTER3D_Map *, int, int, int, const void *, int);
 
356
 
 
357
/* writeascii.c */
 
358
void Rast3d_write_ascii(void *, const char *);
 
359
 
 
360
#endif /* RASTER3DDEFS */