-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathgdraw.html
124 lines (112 loc) · 8.46 KB
/
gdraw.html
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>gdraw.h</TITLE>
<STYLE TYPE="TEXT/CSS">
<!--
.IE3-DUMMY { CONT-SIZE: 100%; }
BODY { FONT-FAMILY: Verdana,Arial,Helvetica,Sans-Serif; BACKGROUND-COLOR: #E0E0E0; }
P { FONT-FAMILY: Verdana,Arial,Helvetica,Sans-Serif; }
H1 { FONT-FAMILY: Verdana,Arial,Helvetica,Sans-Serif; }
H2 { FONT-FAMILY: Verdana,Arial,Helvetica,Sans-Serif; }
H3 { FONT-FAMILY: Verdana,Arial,Helvetica,Sans-Serif; }
H4 { FONT-FAMILY: Verdana,Arial,Helvetica,Sans-Serif; }
H5 { FONT-FAMILY: Verdana,Arial,Helvetica,Sans-Serif; }
H6 { FONT-FAMILY: Verdana,Arial,Helvetica,Sans-Serif; }
UL { FONT-FAMILY: Verdana,Arial,Helvetica,Sans-Serif; }
TD { FONT-FAMILY: Verdana,Arial,Helvetica,Sans-Serif; BACKGROUND-COLOR: #FFFFFF; }
.NOBORDER { BACKGROUND-COLOR: #E0E0E0; PADDING: 0pt; }
.NOBORDER TD { FONT-FAMILY: Verdana,Arial,Helvetica,Sans-Serif; BACKGROUND-COLOR: #E0E0E0; PADDING: 0pt; }
.CODE { FONT-FAMILY: Courier New; }
-->
</STYLE>
</HEAD>
<BODY TEXT="#000000" BGCOLOR="#E0E0E0">
<FONT SIZE="5"><B>The <gdraw.h> Header File</B></FONT>
<HR>
<P><B>Routines for graph screen drawing</B></P>
<P><B>Note:</B> This header file is prepared for use, but not documented yet.
These functions are still useless without support of some other functions
which are not properly defined yet, so I didn't document this header file.</P>
<H3><U>Functions</U></H3>
<DL INDENT="20"><DT><B><A HREF="#GD_Circle">GD_Circle</A></B><BR><BR><DT><B><A HREF="#GD_Contour">GD_Contour</A></B><BR><BR><DT><B><A HREF="#GD_Eraser">GD_Eraser</A></B><BR><BR><DT><B><A HREF="#GD_HVLine">GD_HVLine</A></B><BR><BR><DT><B><A HREF="#GD_Line">GD_Line</A></B><BR><BR><DT><B><A HREF="#GD_Pen">GD_Pen</A></B><BR><BR><DT><B><A HREF="#GD_Select">GD_Select</A></B><BR><BR><DT><B><A HREF="#GD_Text">GD_Text</A></B><BR><BR><DT><B><A HREF="#GR3_paint3d">GR3_paint3d</A></B><DD>Draws the current 3D graph.<IMG WIDTH="1" HEIGHT="20" ALIGN="TOP"><DT><B><A HREF="#GR3_xyToWindow">GR3_xyToWindow</A></B><DD>Converts 3D coordinates to window coordinates.<IMG WIDTH="1" HEIGHT="20" ALIGN="TOP"><DT><B><A HREF="#GZ_Box">GZ_Box</A></B><DD>This function performs the Zoom Box command.<IMG WIDTH="1" HEIGHT="20" ALIGN="TOP"><DT><B><A HREF="#GZ_Center">GZ_Center</A></B><DD>Changes the zoom settings of the graph.</DL>
<H3><U>Predefined Types</U></H3>
<DL INDENT="20"><DT><B><A HREF="#GraphModes">GraphModes</A></B><DD>Describes different graphing modes.</DL>
<HR>
<H3><A NAME="GD_Circle"><U>GD_Circle</U></A></H3>
<P><TABLE BORDER="1" CELLPADDING="2"><TR><TD CLASS="CODE"><B><A HREF="keywords.html#void">void</A></B> GD_Circle (<B><A HREF="keywords.html#void">void</A></B>);</TD></TR></TABLE></P>
<HR>
<H3><A NAME="GD_Contour"><U>GD_Contour</U></A></H3>
<P><TABLE BORDER="1" CELLPADDING="2"><TR><TD CLASS="CODE"><B><A HREF="keywords.html#void">void</A></B> GD_Contour (<B><A HREF="keywords.html#void">void</A></B>);</TD></TR></TABLE></P>
<HR>
<H3><A NAME="GD_Eraser"><U>GD_Eraser</U></A></H3>
<P><TABLE BORDER="1" CELLPADDING="2"><TR><TD CLASS="CODE"><B><A HREF="keywords.html#void">void</A></B> GD_Eraser (<B><A HREF="keywords.html#void">void</A></B>);</TD></TR></TABLE></P>
<HR>
<H3><A NAME="GD_HVLine"><U>GD_HVLine</U></A></H3>
<P><TABLE BORDER="1" CELLPADDING="2"><TR><TD CLASS="CODE"><B><A HREF="keywords.html#void">void</A></B> GD_HVLine (<B><A HREF="keywords.html#short">short</A></B> Orientation);</TD></TR></TABLE></P>
<HR>
<H3><A NAME="GD_Line"><U>GD_Line</U></A></H3>
<P><TABLE BORDER="1" CELLPADDING="2"><TR><TD CLASS="CODE"><B><A HREF="keywords.html#void">void</A></B> GD_Line (<B><A HREF="keywords.html#void">void</A></B>);</TD></TR></TABLE></P>
<HR>
<H3><A NAME="GD_Pen"><U>GD_Pen</U></A></H3>
<P><TABLE BORDER="1" CELLPADDING="2"><TR><TD CLASS="CODE"><B><A HREF="keywords.html#void">void</A></B> GD_Pen (<B><A HREF="keywords.html#void">void</A></B>);</TD></TR></TABLE></P>
<HR>
<H3><A NAME="GD_Select"><U>GD_Select</U></A></H3>
<P><TABLE BORDER="1" CELLPADDING="2"><TR><TD CLASS="CODE"><B><A HREF="keywords.html#void">void</A></B> GD_Select (<B><A HREF="keywords.html#void">void</A></B>);</TD></TR></TABLE></P>
<HR>
<H3><A NAME="GD_Text"><U>GD_Text</U></A></H3>
<P><TABLE BORDER="1" CELLPADDING="2"><TR><TD CLASS="CODE"><B><A HREF="keywords.html#void">void</A></B> GD_Text (<B><A HREF="keywords.html#void">void</A></B>);</TD></TR></TABLE></P>
<HR>
<H3><A NAME="GR3_paint3d"><U>GR3_paint3d</U></A></H3>
<P><TABLE BORDER="1" CELLPADDING="2"><TR><TD CLASS="CODE"><B><A HREF="keywords.html#void">void</A></B> GR3_paint3d (<B><A HREF="keywords.html#void">void</A></B>);</TD></TR></TABLE></P>
<P><B>Draws the current 3D graph.</B></P>
<P>GR3_paint3d draws the currently active 3D graph using the current mode,
format, and zoom settings. If the graph is not already calculated, it will
display the calculation status.
<BR><BR>
<B>Note:</B> the graph application should be active when this function is
executed. You can do this by executing:</P>
<PRE>EV_startApp (EV_getAppID ("TIGRAPH"), AP_START_CURRENT);
</PRE>
<HR>
<H3><A NAME="GR3_xyToWindow"><U>GR3_xyToWindow</U></A></H3>
<P><TABLE BORDER="1" CELLPADDING="2"><TR><TD CLASS="CODE"><B><A HREF="keywords.html#void">void</A></B> GR3_xyToWindow (<B><A HREF="keywords.html#float">float</A></B> xc, <B><A HREF="keywords.html#float">float</A></B> yc, <B><A HREF="keywords.html#float">float</A></B>* zc, <B><A HREF="keywords.html#short">short</A></B> *WinX, <B><A HREF="keywords.html#short">short</A></B> *WinY);</TD></TR></TABLE></P>
<P><B>Converts 3D coordinates to window coordinates.</B></P>
<P>GR3_xyToWindow takes the 3D-graph point (<I>xc</I>,<I>yc</I>) and determines:</P>
<OL>
<LI><P>the Z-coordinate (<I>zc</I>) at the point;</P></LI>
<LI><P>the (<I>WinX</I>,<I>WinY</I>) pair of window coordinates for the location
of this point on the 3D graph currently displayed.</P></LI>
</OL>
<HR>
<H3><A NAME="GZ_Box"><U>GZ_Box</U></A></H3>
<P><TABLE BORDER="1" CELLPADDING="2"><TR><TD CLASS="CODE"><B><A HREF="keywords.html#void">void</A></B> GZ_Box (<B><A HREF="keywords.html#void">void</A></B>);</TD></TR></TABLE></P>
<P><B>This function performs the Zoom Box command.</B></P>
<P>This is the equivalent of the Zoom Box command. After a keypress,
it will display the graph screen. If there is none (i.e. no function graphed), and there aren't
any graphs selected, then you will be presented with a blank screen. If there is a function (or
more) selected, then it will present you with a "dummy axis" (a smaller one).</P>
<HR>
<H3><A NAME="GZ_Center"><U>GZ_Center</U></A></H3>
<P><TABLE BORDER="1" CELLPADDING="2"><TR><TD CLASS="CODE"><B><A HREF="keywords.html#void">void</A></B> GZ_Center (<B><A HREF="keywords.html#void">void</A></B>);</TD></TR></TABLE></P>
<P><B>Changes the zoom settings of the graph.</B></P>
<P>This function basically changes the zoom settings of the graph. The first time the function is
called, it changes the graph to the standard settings. The next time it is called, if there is a
function selected, it increases <CODE>xmin</CODE> and <CODE>xmax</CODE> by 10, and increases <CODE>ymin</CODE> and <CODE>ymax</CODE> also. If there
is no function selected, it remains at the standard. It seems that this function has some
internal values for <CODE>xmin</CODE> and <CODE>xmax</CODE>, and any changes are ignored, meaning that, if you call it
twice and change the values for <CODE>xmin</CODE> and <CODE>xmax</CODE>, and call this function a third time, the changes you made
will be ignored.</P>
<HR>
<H3><A NAME="GraphModes"><U>GraphModes</U></A></H3>
<P><TABLE BORDER="1" CELLPADDING="2"><TR><TD CLASS="CODE"><B><A HREF="keywords.html#enum">enum</A></B> GraphModes {GR_FUNC = 1, GR_PAR = 2, GR_POL = 3, GR_SEQ = 4, GR_3D = 5, GR_DE = 6};</TD></TR></TABLE></P>
<P><B>Describes different graphing modes.</B></P>
<P>This is an enumeration describing the modes of the Graph screen.
It is currently used in <A HREF="vat.html#CheckReservedName">CheckReservedName</A> and <A HREF="vat.html#CheckSysFunc">CheckSysFunc</A> from <A HREF="vat.html">vat.h</A> and also in <A HREF="graphing.html#GR_WIN_VARS">GR_WIN_VARS</A> from <A HREF="graphing.html">graphing.h</A>.
<BR><BR>
The meaning of the different flags is given in the description of <A HREF="graphing.html#GR_WIN_VARS">GR_WIN_VARS</A>.</P>
<P>See also: <A HREF="graphing.html#GR_WIN_VARS">GR_WIN_VARS</A>, <A HREF="vat.html#CheckReservedName">CheckReservedName</A>, <A HREF="vat.html#CheckSysFunc">CheckSysFunc</A></P>
<HR>
<H3><A HREF="index.html">Return to the main index</A></H3>
</BODY>
</HTML>