NEURON
coord.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 1987, 1988, 1989, 1990, 1991 Stanford University
3
* Copyright (c) 1991 Silicon Graphics, Inc.
4
*
5
* Permission to use, copy, modify, distribute, and sell this software and
6
* its documentation for any purpose is hereby granted without fee, provided
7
* that (i) the above copyright notices and this permission notice appear in
8
* all copies of the software and related documentation, and (ii) the names of
9
* Stanford and Silicon Graphics may not be used in any advertising or
10
* publicity relating to the software without the specific, prior written
11
* permission of Stanford and Silicon Graphics.
12
*
13
* THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
14
* EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
15
* WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
16
*
17
* IN NO EVENT SHALL STANFORD OR SILICON GRAPHICS BE LIABLE FOR
18
* ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
19
* OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
20
* WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
21
* LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
22
* OF THIS SOFTWARE.
23
*/
24
25
/*
26
* Coordinates for graphics allocation and rendering.
27
*/
28
29
#pragma once
30
31
#include <
InterViews/enter-scope.h
>
32
33
typedef
float
_lib_iv
(
Coord
);
34
typedef
int
_lib_iv
(
IntCoord
);
35
typedef
int
_lib_iv
(
PixelCoord
);
36
37
/*
38
* Should be a static const float, but some compilers don't
39
* do a very good job on that.
40
*/
41
#define fil 10e6
42
43
/*
44
* Old definitions
45
*/
46
typedef
int
_lib_iv2_6
(
Coord
);
47
48
extern
double
inch
,
inches
,
cm
,
mm
,
point
,
points
;
49
static
const
int
pixels
= 1;
PixelCoord
#define PixelCoord
Definition:
_defines.h:23
IntCoord
#define IntCoord
Definition:
_defines.h:22
Coord
#define Coord
Definition:
_defines.h:17
enter-scope.h
inch
double inch
_lib_iv2_6
int _lib_iv2_6(Coord)
Definition:
coord.h:46
mm
double mm
Definition:
coord.h:48
_lib_iv
float _lib_iv(Coord)
Definition:
coord.h:33
pixels
static const int pixels
Definition:
coord.h:49
cm
double cm
Definition:
coord.h:48
point
double point
Definition:
coord.h:48
inches
double inches
Definition:
coord.h:48
points
double points
Definition:
coord.h:48
src
ivos
InterViews
coord.h