[421b7d2] | 1 | /* cvrotimg.h |
---|
[d1b1380] | 2 | * Header file for |
---|
| 3 | * Reads a .3d image file into two linked lists of blocks, suitable for use |
---|
| 4 | * by caverot.c |
---|
[bd1913f] | 5 | * Copyright (C) 1994-2001 Olly Betts |
---|
[846746e] | 6 | * |
---|
[89231c4] | 7 | * This program is free software; you can redistribute it and/or modify |
---|
| 8 | * it under the terms of the GNU General Public License as published by |
---|
| 9 | * the Free Software Foundation; either version 2 of the License, or |
---|
| 10 | * (at your option) any later version. |
---|
[846746e] | 11 | * |
---|
| 12 | * This program is distributed in the hope that it will be useful, |
---|
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
[89231c4] | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 15 | * GNU General Public License for more details. |
---|
[846746e] | 16 | * |
---|
[89231c4] | 17 | * You should have received a copy of the GNU General Public License |
---|
| 18 | * along with this program; if not, write to the Free Software |
---|
[1b71c05] | 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
---|
[d1b1380] | 20 | */ |
---|
| 21 | |
---|
[647407d] | 22 | #ifndef SVX_CVROTIMG_H_INCLUDED |
---|
| 23 | #define SVX_CVROTIMG_H_INCLUDED |
---|
| 24 | |
---|
| 25 | /* data type used after data is read in */ |
---|
| 26 | typedef INT32_T coord; |
---|
| 27 | |
---|
| 28 | /* Data structures */ |
---|
| 29 | typedef struct { |
---|
| 30 | union { |
---|
| 31 | coord action; /* plot option for this point - draw/move/endofdata */ |
---|
| 32 | char *str; /* string for a label */ |
---|
| 33 | } _; |
---|
| 34 | coord X, Y, Z; /* coordinates */ |
---|
| 35 | } point; |
---|
| 36 | |
---|
[190e379] | 37 | void set_codes(coord move_, coord draw_, coord stop_); |
---|
[647407d] | 38 | |
---|
[8540a77] | 39 | bool load_data(const char *fnmData, const char *survey, |
---|
| 40 | point Huge **ppLegs, point Huge **ppSLegs, point Huge **ppStns); |
---|
[647407d] | 41 | |
---|
[190e379] | 42 | void reset_limits(point *pmin, point *pmax); |
---|
[7eb515a] | 43 | |
---|
[190e379] | 44 | void update_limits(point *pmin, point *pmax, |
---|
| 45 | point Huge *pLegs, point Huge *pStns); |
---|
| 46 | |
---|
[a9f5117] | 47 | double scale_to_screen(const point *pmin, const point *pmax, |
---|
| 48 | int xcMac, int ycMac, double y_stretch); |
---|
[7eb515a] | 49 | |
---|
| 50 | extern coord Xorg, Yorg, Zorg; /* position of centre of survey */ |
---|
| 51 | extern coord Xrad, Yrad, Zrad; /* "radii" */ |
---|
| 52 | |
---|
[647407d] | 53 | #endif |
---|