This file is indexed.

/usr/share/doc/mathgl/mathgl_en/mathgl_en_48.html is in mathgl-doc-en 2.1.3.1-4ubuntu3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html401/loose.dtd">
<html>
<!-- This manual is for MathGL (version 2.1.2), a collection of classes and routines for scientific plotting. Please report any errors in this manual to mathgl.abalakin@gmail.org.

Copyright C 2008-2012 Alexey A. Balakin.

Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.2
or any later version published by the Free Software Foundation;
with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
Texts.  A copy of the license is included in the section entitled "GNU
Free Documentation License."


 -->
<!-- Created on December 22, 2013 by texi2html 1.82
texi2html was written by: 
            Lionel Cons <Lionel.Cons@cern.ch> (original author)
            Karl Berry  <karl@freefriends.org>
            Olaf Bachmann <obachman@mathematik.uni-kl.de>
            and many others.
Maintained by: Many creative people.
Send bugs and suggestions to <texi2html-bug@nongnu.org>
-->
<head>
<title>MathGL 2.1.2: 5.1 mglWindow class</title>

<meta name="description" content="MathGL 2.1.2: 5.1 mglWindow class">
<meta name="keywords" content="MathGL 2.1.2: 5.1 mglWindow class">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="texi2html 1.82">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
<!--
a.summary-letter {text-decoration: none}
blockquote.smallquotation {font-size: smaller}
pre.display {font-family: serif}
pre.format {font-family: serif}
pre.menu-comment {font-family: serif}
pre.menu-preformatted {font-family: serif}
pre.smalldisplay {font-family: serif; font-size: smaller}
pre.smallexample {font-size: smaller}
pre.smallformat {font-family: serif; font-size: smaller}
pre.smalllisp {font-size: smaller}
span.roman {font-family:serif; font-weight:normal;}
span.sansserif {font-family:sans-serif; font-weight:normal;}
ul.toc {list-style: none}
-->
</style>


</head>

<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">

<a name="mglWindow-class"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="mathgl_en_47.html#Widget-classes" title="Previous section in reading order"> &lt; </a>]</td>
<td valign="middle" align="left">[<a href="mathgl_en_49.html#Fl_005fMathGL-class" title="Next section in reading order"> &gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="mathgl_en_47.html#Widget-classes" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
<td valign="middle" align="left">[<a href="mathgl_en_47.html#Widget-classes" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="mathgl_en_51.html#Data-processing" title="Next chapter"> &gt;&gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="mathgl_en.html#Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="mathgl_en_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[<a href="mathgl_en_88.html#Index" title="Index">Index</a>]</td>
<td valign="middle" align="left">[<a href="mathgl_en_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<a name="mglWindow-class-1"></a>
<h2 class="section">5.1 mglWindow class</h2>
<a name="index-mglWindow-1"></a>
<a name="index-window-2"></a>

<p>This class is derived from mglGraph class (see <a href="mathgl_en_29.html#MathGL-core">MathGL core</a>). It is defined in <code>#include &lt;mgl2/window.h&gt;</code>. It provide methods for handling window with MathGL graphics. Similar classes are exist for each widget library: <code>mglQT</code> in <code>#include &lt;mgl2/qt.h&gt;</code>, <code>mglFLTK</code> in <code>#include &lt;mgl2/fltk.h&gt;</code>, <code>mglWX</code> in <code>#include &lt;mgl2/wx.h&gt;</code>.
</p>
<dl>
<dt><a name="index-mglWindow-2"></a><u>Constructor on <code>mglWindow</code>:</u> <b>mglWindow</b><i> (<code>const char *</code>title=<code>&quot;MathGL&quot;</code>)</i></dt>
<dt><a name="index-mglWindow-3"></a><u>Constructor on <code>mglWindow</code>:</u> <b>mglWindow</b><i> (<code>int</code> (*draw)(<code>HMGL</code> gr, <code>void *</code>p), <code>const char *</code>title=<code>&quot;MathGL&quot;</code>, <code>void *</code>par=<code>NULL</code>, <code>int</code> kind=<code>0</code>, <code>void</code> (*reload)(<code>HMGL</code> gr, <code>void *</code>p)=0)</i></dt>
<dt><a name="index-mglWindow-4"></a><u>Constructor on <code>mglWindow</code>:</u> <b>mglWindow</b><i> (<code>int</code> (*draw)(<code>mglGraph *</code>gr), <code>const char *</code>title=<code>&quot;MathGL&quot;</code>, <code>int</code> kind=<code>0</code>)</i></dt>
<dt><a name="index-mglWindow-5"></a><u>Constructor on <code>mglWindow</code>:</u> <b>mglWindow</b><i> (<code>mglDraw *</code>draw, <code>const char *</code>title=<code>&quot;MathGL&quot;</code>, <code>int</code> kind=<code>0</code>)</i></dt>
<dt><a name="index-mgl_005fcreate_005fgraph_005fqt"></a><u>C function:</u> <code>HMGL</code> <b>mgl_create_graph_qt</b><i> (<code>int</code> (*draw)(<code>HMGL</code> gr, <code>void *</code>p), <code>const char *</code>title, <code>void *</code>par, <code>void</code> (*reload)(<code>HMGL</code> gr, <code>void *</code>p))</i></dt>
<dt><a name="index-mgl_005fcreate_005fgraph_005ffltk"></a><u>C function:</u> <code>HMGL</code> <b>mgl_create_graph_fltk</b><i> (<code>int</code> (*draw)(<code>HMGL</code> gr, <code>void *</code>p), <code>const char *</code>title, <code>void *</code>par, <code>void</code> (*reload)(<code>HMGL</code> gr, <code>void *</code>p))</i></dt>
<dt><a name="index-mgl_005fcreate_005fgraph_005fglut"></a><u>C function:</u> <code>HMGL</code> <b>mgl_create_graph_glut</b><i> (<code>int</code> (*draw)(<code>HMGL</code> gr, <code>void *</code>p), <code>const char *</code>title, <code>void *</code>par, <code>void</code> (*reload)(<code>HMGL</code> gr, <code>void *</code>p))</i></dt>
<dd>
<p>Creates a window for plotting. Parameter <var>draw</var> sets a pointer to drawing function (this is the name of function) or instance of <code>mglDraw</code> class. There is support of a list of plots (frames). So as one can prepare a set of frames at first and redraw it fast later (but it requires more memory). Function should return positive number of frames for the list or zero if it will plot directly. Note, that <var>draw</var> can be <code>NULL</code> for displaying static bitmaps only (no animation or slides). Parameter <var>title</var> sets the title of the window. Parameter <var>par</var> contains pointer to data for the plotting function <var>draw</var>. Parameter <var>kind</var> may have following values: &lsquo;<samp>0</samp>&rsquo; &ndash; use FLTK window, &lsquo;<samp>1</samp>&rsquo; &ndash; use Qt window.
</p>
<p>There are some keys handles for manipulating by the plot: &rsquo;a&rsquo;, &rsquo;d&rsquo;, &rsquo;w&rsquo;, &rsquo;s&rsquo; for the rotating; &rsquo;,&rsquo;, &rsquo;.&rsquo; for viewing of the previous or next frames in the list; &rsquo;r&rsquo; for the switching of transparency; &rsquo;f&rsquo; for the switching of lightning; &rsquo;x&rsquo; for hiding (closing) the window.
</p></dd></dl>

<dl>
<dt><a name="index-RunThr"></a><u>Method on <code>mglWindow</code>:</u> <code>int</code> <b>RunThr</b><i> ()</i></dt>
<dt><a name="index-mgl_005ffltk_005fthr"></a><u>C function:</u> <code>int</code> <b>mgl_fltk_thr</b><i> ()</i></dt>
<dd><p>Run main loop for event handling in separate thread. Note, right now it work for FLTK windows only.
</p></dd></dl>

<dl>
<dt><a name="index-Run"></a><u>Method on <code>mglWindow</code>:</u> <code>int</code> <b>Run</b><i> ()</i></dt>
<dt><a name="index-mgl_005fqt_005frun"></a><u>C function:</u> <code>int</code> <b>mgl_qt_run</b><i> ()</i></dt>
<dt><a name="index-mgl_005ffltk_005frun"></a><u>C function:</u> <code>int</code> <b>mgl_fltk_run</b><i> ()</i></dt>
<dd><p>Run main loop for event handling. Usually it should be called in a separate thread or as last function call in <code>main()</code>.
</p></dd></dl>

<dl>
<dt><a name="index-SetClickFunc"></a><u>Method on <code>mglWindow</code>:</u> <code>void</code> <b>SetClickFunc</b><i> (<code>void</code> (*func)(<code>HMGL</code> gr, <code>void *</code>p))</i></dt>
<dt><a name="index-mgl_005fset_005fclick_005ffunc"></a><u>C function:</u> <code>void</code> <b>mgl_set_click_func</b><i> (<code>void</code> (*func)(<code>HMGL</code> gr, <code>void *</code>p))</i></dt>
<dd><p>Set callback function <code>func</code> which will be called on mouse click.
</p></dd></dl>

<dl>
<dt><a name="index-ToggleAlpha"></a><u>Method on <code>mglWindow</code>:</u> <code>void</code> <b>ToggleAlpha</b><i> ()</i></dt>
<dt><a name="index-mgl_005fwnd_005ftoggle_005falpha"></a><u>C function:</u> <code>void</code> <b>mgl_wnd_toggle_alpha</b><i> (<code>HMGL</code> gr)</i></dt>
<dd><p>Switch on/off transparency but do not overwrite switches in user drawing function.
</p></dd></dl>
<dl>
<dt><a name="index-ToggleLight"></a><u>Method on <code>mglWindow</code>:</u> <code>void</code> <b>ToggleLight</b><i> ()</i></dt>
<dt><a name="index-mgl_005fwnd_005ftoggle_005flight"></a><u>C function:</u> <code>void</code> <b>mgl_wnd_toggle_light</b><i> (<code>HMGL</code> gr)</i></dt>
<dd><p>Switch on/off lighting but do not overwrite switches in user drawing function.
</p></dd></dl>
<dl>
<dt><a name="index-ToggleRotate"></a><u>Method on <code>mglWindow</code>:</u> <code>void</code> <b>ToggleRotate</b><i> ()</i></dt>
<dt><a name="index-mgl_005fwnd_005ftoggle_005frotate"></a><u>C function:</u> <code>void</code> <b>mgl_wnd_toggle_rotate</b><i> (<code>HMGL</code> gr)</i></dt>
<dd><p>Switch on/off rotation by mouse. Usually, left button is used for rotation, middle button for shift, right button for zoom/perspective.
</p></dd></dl>
<dl>
<dt><a name="index-ToggleZoom"></a><u>Method on <code>mglWindow</code>:</u> <code>void</code> <b>ToggleZoom</b><i> ()</i></dt>
<dt><a name="index-mgl_005fwnd_005ftoggle_005fzoom"></a><u>C function:</u> <code>void</code> <b>mgl_wnd_toggle_zoom</b><i> (<code>HMGL</code> gr)</i></dt>
<dd><p>Switch on/off zooming by mouse. Just select rectangular region by mouse and it will be zoomed in.
</p></dd></dl>
<dl>
<dt><a name="index-ToggleNo"></a><u>Method on <code>mglWindow</code>:</u> <code>void</code> <b>ToggleNo</b><i> ()</i></dt>
<dt><a name="index-mgl_005fwnd_005ftoggle_005fno"></a><u>C function:</u> <code>void</code> <b>mgl_wnd_toggle_no</b><i> (<code>HMGL</code> gr)</i></dt>
<dd><p>Switch off all zooming and rotation and restore initial state.
</p></dd></dl>
<dl>
<dt><a name="index-Update"></a><u>Method on <code>mglWindow</code>:</u> <code>void</code> <b>Update</b><i> ()</i></dt>
<dt><a name="index-mgl_005fwnd_005fupdate"></a><u>C function:</u> <code>void</code> <b>mgl_wnd_update</b><i> (<code>HMGL</code> gr)</i></dt>
<dd><p>Update window contents. This is very useful function for manual updating the plot while long calculation was running in parallel thread.
</p></dd></dl>
<dl>
<dt><a name="index-ReLoad"></a><u>Method on <code>mglWindow</code>:</u> <code>void</code> <b>ReLoad</b><i> ()</i></dt>
<dt><a name="index-mgl_005fwnd_005freload"></a><u>C function:</u> <code>void</code> <b>mgl_wnd_reload</b><i> (<code>HMGL</code> gr)</i></dt>
<dd><p>Reload user data and update picture. This function also update number of frames which drawing function can create.
</p></dd></dl>
<dl>
<dt><a name="index-Adjust-2"></a><u>Method on <code>mglWindow</code>:</u> <code>void</code> <b>Adjust</b><i> ()</i></dt>
<dt><a name="index-mgl_005fwnd_005fadjust"></a><u>C function:</u> <code>void</code> <b>mgl_wnd_adjust</b><i> (<code>HMGL</code> gr)</i></dt>
<dd><p>Adjust size of bitmap to window size.
</p></dd></dl>
<dl>
<dt><a name="index-NextFrame"></a><u>Method on <code>mglWindow</code>:</u> <code>void</code> <b>NextFrame</b><i> ()</i></dt>
<dt><a name="index-mgl_005fwnd_005fnext_005fframe"></a><u>C function:</u> <code>void</code> <b>mgl_wnd_next_frame</b><i> (<code>HMGL</code> gr)</i></dt>
<dd><p>Show next frame if one.
</p></dd></dl>
<dl>
<dt><a name="index-PrevFrame"></a><u>Method on <code>mglWindow</code>:</u> <code>void</code> <b>PrevFrame</b><i> ()</i></dt>
<dt><a name="index-mgl_005fwnd_005fprev_005fframe"></a><u>C function:</u> <code>void</code> <b>mgl_wnd_prev_frame</b><i> (<code>HMGL</code> gr)</i></dt>
<dd><p>Show previous frame if one.
</p></dd></dl>
<dl>
<dt><a name="index-Animation"></a><u>Method on <code>mglWindow</code>:</u> <code>void</code> <b>Animation</b><i> ()</i></dt>
<dt><a name="index-mgl_005fwnd_005fanimation"></a><u>C function:</u> <code>void</code> <b>mgl_wnd_animation</b><i> (<code>HMGL</code> gr)</i></dt>
<dd><p>Run/stop slideshow (animation) of frames.
</p></dd></dl>

<dl>
<dt><a name="index-SetDelay"></a><u>Method on <code>mglWindow</code>:</u> <code>void</code> <b>SetDelay</b><i> (<code>double</code> dt)</i></dt>
<dt><a name="index-mgl_005fwnd_005fset_005fdelay"></a><u>C function:</u> <code>void</code> <b>mgl_wnd_set_delay</b><i> (<code>HMGL</code> gr, <code>double</code> dt)</i></dt>
<dd><p>Sets delay for animation in seconds. Default value is 1 sec.
</p></dd></dl>

<dl>
<dt><a name="index-GetDelay"></a><u>Method on <code>mglWindow</code>:</u> <code>double</code> <b>GetDelay</b><i> ()</i></dt>
<dt><a name="index-mgl_005fwnd_005fget_005fdelay"></a><u>C function:</u> <code>double</code> <b>mgl_wnd_get_delay</b><i> (<code>HMGL</code> gr)</i></dt>
<dd><p>Gets delay for animation in seconds.
</p></dd></dl>

<dl>
<dt><a name="index-Setup"></a><u>Method on <code>mglWindow</code>:</u> <code>void</code> <b>Setup</b><i> (<code>bool</code> clfupd=<code>true</code>, <code>bool</code> showpos=<code>false</code>)</i></dt>
<dt><a name="index-mgl_005fsetup_005fwindow"></a><u>C function:</u> <code>void</code> <b>mgl_setup_window</b><i> (<code>HMGL</code> gr, <code>bool</code> clfupd, <code>bool</code> showpos)</i></dt>
<dd><p>Enable/disable flags for:
</p><ul>
<li>
clearing plot before Update();
</li><li>
showing the last mouse click position in the widget.
</li></ul>
</dd></dl>

<dl>
<dt><a name="index-LastMousePos"></a><u>Method on <code>mglWindow</code>:</u> <code>mglPoint</code> <b>LastMousePos</b><i> ()</i></dt>
<dt><a name="index-mgl_005fget_005flast_005fmouse_005fpos"></a><u>C function:</u> <code>void</code> <b>mgl_get_last_mouse_pos</b><i> (<code>HMGL</code> gr, <code>mreal *</code>x, <code>mreal *</code>y, <code>mreal *</code>z)</i></dt>
<dd><p>Gets last position of mouse click.
</p></dd></dl>


<hr size="6">
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="mathgl_en_47.html#Widget-classes" title="Previous section in reading order"> &lt; </a>]</td>
<td valign="middle" align="left">[<a href="mathgl_en_49.html#Fl_005fMathGL-class" title="Next section in reading order"> &gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="mathgl_en_47.html#Widget-classes" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
<td valign="middle" align="left">[<a href="mathgl_en_47.html#Widget-classes" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="mathgl_en_51.html#Data-processing" title="Next chapter"> &gt;&gt; </a>]</td>
</tr></table>
<p>
 <font size="-1">
  This document was generated by <em>Build Daemon user</em> on <em>December 22, 2013</em> using <a href="http://www.nongnu.org/texi2html/"><em>texi2html 1.82</em></a>.
 </font>
 <br>

</p>
</body>
</html>