FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
gnuplot-old/src/graph3d.h at axis_branch_base · gnuplot/gnuplot-old · GitHub
gnuplot
gnuplot-old
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
gnuplot-old
/
src
/
graph3d.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
136 lines (108 loc) · 4.23 KB
Breadcrumbs
gnuplot-old
/
src
/
graph3d.h
Copy path
File metadata and controls
136 lines (108 loc) · 4.23 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
/*
* $Id: graph3d.h,v 1.6.2.6 2000/10/24 18:58:12 broeker Exp $
*/
/* GNUPLOT - graph3d.h */
/*[
* Copyright 1999 Thomas Williams, Colin Kelley
*
* Permission to use, copy, and distribute this software and its
* documentation for any purpose with or without fee is hereby granted,
* provided that the above copyright notice appear in all copies and
* that both that copyright notice and this permission notice appear
* in supporting documentation.
*
* Permission to modify the software is granted, but not the right to
* distribute the complete modified source code. Modifications are to
* be distributed as patches to the released version. Permission to
* distribute binaries produced by compiling modified sources is granted,
* provided you
* 1. distribute the corresponding source modifications from the
* released version in the form of a patch file along with the binaries,
* 2. add special version identification to distinguish your version
* in addition to the base release version number,
* 3. provide your name and address as the primary contact for the
* support of your modified version, and
* 4. retain our contact information in regard to use of the base
* software.
* Permission to distribute the released version of the source code along
* with corresponding source modifications in the form of a patch file is
* granted with same provisions 2 through 4 for binary distributions.
*
* This software is provided "as is" without express or implied warranty
* to the extent permitted by applicable law.
]*/
#ifndef
GNUPLOT_GRAPH3D_H
# define
GNUPLOT_GRAPH3D_H
/* #if... / #include / #define collection: */
#include
"syscfg.h"
#include
"gp_types.h"
#include
"gadgets.h"
#include
"term_api.h"
/* Function macros to map from user 3D space into normalized -1..1 */
#define
map_x3d
(
x
) ((x-X_AXIS.min)*xscale3d-1.0)
#define
map_y3d
(
y
) ((y-Y_AXIS.min)*yscale3d-1.0)
#define
map_z3d
(
z
) ((z-floor_z)*zscale3d-1.0)
/* Type definitions */
typedef
enum
en_contour_placement
{
/* Where to place contour maps if at all. */
CONTOUR_NONE
,
CONTOUR_BASE
,
CONTOUR_SRF
,
CONTOUR_BOTH
,
}
t_contour_placement
;
typedef
double
transform_matrix
[
4
][
4
];
/* HBB 990826: added */
typedef
struct
gnuplot_contours
{
struct
gnuplot_contours
*
next
;
struct
coordinate
GPHUGE
*
coords
;
char
isNewLevel
;
char
label
[
32
];
int
num_pts
;
}
gnuplot_contours
;
typedef
struct
iso_curve
{
struct
iso_curve
*
next
;
int
p_max
;
/* how many points are allocated */
int
p_count
;
/* count of points in points */
struct
coordinate
GPHUGE
*
points
;
}
iso_curve
;
typedef
struct
surface_points
{
struct
surface_points
*
next_sp
;
/* linked list */
int
token
;
/* last token nr, for second pass */
enum
PLOT_TYPE
plot_type
;
enum
PLOT_STYLE
plot_style
;
char
*
title
;
int
title_no_enhanced
;
/* don't typeset title in enhanced mode */
struct
lp_style_type
lp_properties
;
int
has_grid_topology
;
/* Data files only - num of isolines read from file. For
* functions, num_iso_read is the number of 'primary' isolines (in
* x direction) */
int
num_iso_read
;
struct
gnuplot_contours
*
contours
;
/* NULL if not doing contours. */
struct
iso_curve
*
iso_crvs
;
/* the actual data */
}
surface_points
;
/* Variables of graph3d.c needed by other modules: */
extern
int
xmiddle
,
ymiddle
,
xscaler
,
yscaler
;
extern
double
floor_z
;
extern
transform_matrix
trans_mat
;
extern
double
xscale3d
,
yscale3d
,
zscale3d
;
extern
t_contour_placement
draw_contour
;
extern
TBOOLEAN
label_contours
;
extern
TBOOLEAN
draw_surface
;
/* is hidden3d display wanted? */
extern
TBOOLEAN
hidden3d
;
extern
float
surface_rot_z
;
extern
float
surface_rot_x
;
extern
float
surface_scale
;
extern
float
surface_zscale
;
extern
float
ticslevel
;
#define
ISO_SAMPLES
10
/* default number of isolines per splot */
extern
int
iso_samples_1
;
extern
int
iso_samples_2
;
#ifdef
USE_MOUSE
extern
int
axis3d_o_x
,
axis3d_o_y
,
axis3d_x_dx
,
axis3d_x_dy
,
axis3d_y_dx
,
axis3d_y_dy
;
#endif
/* Prototypes from file "graph3d.c" */
void
do_3dplot
__PROTO
((
struct
surface_points
*
plots
,
int
pcount
,
int
quick
));
void
map3d_position
__PROTO
((
struct
position
*
pos
,
unsigned
int
*
x
,
unsigned
int
*
y
,
const
char
*
what
));
#endif
/* GNUPLOT_GRAPH3D_H */
Back
|
FazBrowse Home
|
New Git URL