source: git/src/cvrotimg.h @ 1b71c05

RELEASE/1.0
Last change on this file since 1b71c05 was 1b71c05, checked in by Olly Betts <olly@…>, 14 years ago

src/: Update FSF address in (C) notices in source files.

git-svn-id: file:///home/survex-svn/survex/branches/1.0@3463 4b37db11-9a0c-4f06-9ece-9ab7cdaee568

  • Property mode set to 100644
File size: 1.8 KB
RevLine 
[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 */
26typedef INT32_T coord;
27
28/* Data structures */
29typedef 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]37void set_codes(coord move_, coord draw_, coord stop_);
[647407d]38
[8540a77]39bool load_data(const char *fnmData, const char *survey,
40               point Huge **ppLegs, point Huge **ppSLegs, point Huge **ppStns);
[647407d]41
[190e379]42void reset_limits(point *pmin, point *pmax);
[7eb515a]43
[190e379]44void update_limits(point *pmin, point *pmax,
45                   point Huge *pLegs, point Huge *pStns);
46
[a9f5117]47double scale_to_screen(const point *pmin, const point *pmax,
48                       int xcMac, int ycMac, double y_stretch);
[7eb515a]49
50extern coord Xorg, Yorg, Zorg; /* position of centre of survey */
51extern coord Xrad, Yrad, Zrad; /* "radii" */
52
[647407d]53#endif
Note: See TracBrowser for help on using the repository browser.