Appendix B: Global Variables — Graphing
1231
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
gr_active, gr_other
Declaration:
GR_WIN_VARS *
gr_active
GR_WIN_VARS *
gr_other
Category:
Graphing
Description:
Pointers to GR_WIN_VARS structs that contain most of the data used by
the Graph application and other graph related apps.
gr_active
points to the
GR_WIN_VARS struct containing all the information for the active graph.
gr_other
points to the information for the second graph in two graph mode.
As the calculator user switches between the two windows in two graph
mode, the pointers in
gr_active
and
gr_other
are swapped so that
gr_active
is always referring to the active graph. The members of a
GR_WIN_VARS struct are shown below along with an explanation of the
contents of each. None of the data should be changed directly by an app or
ASM but can be accessed for use. System routines may be called to
change many items (for example,
VarStore
may be used to change the
graph system variables), but some data is for internal use only and should
only be changed by the appropriate system app.
Struct Members and their Contents:
BCD16 flt_xcursor — Graph system variable xc.
BCD16 flt_ycursor — Graph system variable yc.
BCD16 flt_zcursor — Graph system variable zc.
BCD16 flt_tcursor — Graph system variable tc.
BCD16 flt_rcursor — Graph system variable rc.
BCD16 flt_thetacursor — Graph system variable
θ
c.
BCD16 flt_ncursor — Graph system variable nc.
BCD16 recip_delx — 1/
∆
x rounded to 6 significant digits.
BCD16 recip_dely — 1/
∆
y rounded to 6 significant digits.
BCD16 orgxmin — Original xmin, before any panning has
occurred.
BCD16 orgxmax — Original xmax, before any panning has
occurred.
BCD16 panshift — Number of columns panned from
orgxmin.
(continued)