<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Class: Fox::FXGLViewer
— FXRuby API Documentation
</title>
<link rel="stylesheet" href="../css/style.css" type="text/css" />
<link rel="stylesheet" href="../css/common.css" type="text/css" />
<script type="text/javascript">
pathId = "Fox::FXGLViewer";
relpath = '../';
</script>
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
</head>
<body>
<div class="nav_wrap">
<iframe id="nav" src="../class_list.html?1"></iframe>
<div id="resizer"></div>
</div>
<div id="main" tabindex="-1">
<div id="header">
<div id="menu">
<a href="../_index.html">Index (F)</a> »
<span class='title'><span class='object_link'><a href="../Fox.html" title="Fox (module)">Fox</a></span></span>
»
<span class="title">FXGLViewer</span>
</div>
<div id="search">
<a class="full_list_link" id="class_list_link"
href="../class_list.html">
<svg width="24" height="24">
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
</svg>
</a>
</div>
<div class="clear"></div>
</div>
<div id="content"><h1>Class: Fox::FXGLViewer
</h1>
<div class="box_info">
<dl>
<dt>Inherits:</dt>
<dd>
<span class="inheritName"><span class='object_link'><a href="FXGLCanvas.html" title="Fox::FXGLCanvas (class)">FXGLCanvas</a></span></span>
<ul class="fullTree">
<li>Object</li>
<li class="next"><span class='object_link'><a href="FXObject.html" title="Fox::FXObject (class)">FXObject</a></span></li>
<li class="next"><span class='object_link'><a href="FXId.html" title="Fox::FXId (class)">FXId</a></span></li>
<li class="next"><span class='object_link'><a href="FXDrawable.html" title="Fox::FXDrawable (class)">FXDrawable</a></span></li>
<li class="next"><span class='object_link'><a href="FXWindow.html" title="Fox::FXWindow (class)">FXWindow</a></span></li>
<li class="next"><span class='object_link'><a href="FXCanvas.html" title="Fox::FXCanvas (class)">FXCanvas</a></span></li>
<li class="next"><span class='object_link'><a href="FXGLCanvas.html" title="Fox::FXGLCanvas (class)">FXGLCanvas</a></span></li>
<li class="next">Fox::FXGLViewer</li>
</ul>
<a href="#" class="inheritanceTree">show all</a>
</dd>
</dl>
<dl>
<dt>Defined in:</dt>
<dd>rdoc-sources/FXGLViewer.rb</dd>
</dl>
</div>
<h2>Overview</h2><div class="docstring">
<div class="discussion">
<p>Canvas, an area drawn by another object</p>
<h3 id="label-Events">Events</h3>
<p>The following messages are sent by FXGLViewer to its message target:</p>
<dl class="rdoc-list note-list"><dt><code>SEL_KEYPRESS</code>
<dd>
<p>sent when a key goes down; the message data is an FXEvent instance.</p>
</dd><dt><code>SEL_KEYRELEASE</code>
<dd>
<p>sent when a key goes up; the message data is an FXEvent instance.</p>
</dd><dt><code>SEL_LEFTBUTTONPRESS</code>
<dd>
<p>sent when the left mouse button goes down; the message data is an FXEvent instance.</p>
</dd><dt><code>SEL_LEFTBUTTONRELEASE</code>
<dd>
<p>sent when the left mouse button goes up; the message data is an FXEvent instance.</p>
</dd><dt><code>SEL_MIDDLEBUTTONPRESS</code>
<dd>
<p>sent when the middle mouse button goes down; the message data is an FXEvent instance.</p>
</dd><dt><code>SEL_MIDDLEBUTTONRELEASE</code>
<dd>
<p>sent when the middle mouse button goes up; the message data is an FXEvent instance.</p>
</dd><dt><code>SEL_RIGHTBUTTONPRESS</code>
<dd>
<p>sent when the right mouse button goes down; the message data is an FXEvent instance.</p>
</dd><dt><code>SEL_RIGHTBUTTONRELEASE</code>
<dd>
<p>sent when the right mouse button goes up; the message data is an FXEvent instance.</p>
</dd><dt><code>SEL_MOTION</code>
<dd>
<p>sent when the mouse pointer is moved; the message data is an FXEvent instance.</p>
</dd><dt><code>SEL_MOUSEWHEEL</code>
<dd>
<p>sent when the mouse wheel is spun; the message data is an FXEvent instance.</p>
</dd><dt><code>SEL_CLICKED</code>
<dd>
<p>sent when the mouse is single-clicked somewhere in the widget; the message data is a reference to the clicked object (possibly <code>nil</code>)</p>
</dd><dt><code>SEL_DOUBLECLICKED</code>
<dd>
<p>sent when the mouse is double-clicked somewhere in the widget; the message data is a reference to the clicked object (possibly <code>nil</code>)</p>
</dd><dt><code>SEL_TRIPLECLICKED</code>
<dd>
<p>sent when the mouse is triple-clicked somewhere in the widget; the message data is a reference to the clicked object (possibly <code>nil</code>)</p>
</dd><dt><code>SEL_PICKED</code>
<dd>
<p>sent when an object is picked; the message data is an FXEvent instance.</p>
</dd><dt><code>SEL_SELECTED</code>
<dd>
<p>sent when object(s) are selected in the viewer; the message data is an array of references to the selected objects.</p>
</dd><dt><code>SEL_DESELECTED</code>
<dd>
<p>sent when object(s) are deselected in the viewer; the message data is an array of references to the deselected objects.</p>
</dd><dt><code>SEL_LASSOED</code>
<dd>
<p>sent when a lasso-selection has been completed; the message data is an FXEvent instance.</p>
</dd><dt><code>SEL_INSERTED</code>
<dd>
<p>sent when the viewer receives a <code>SEL_INSERTED</code> message.</p>
</dd><dt><code>SEL_DELETED</code>
<dd>
<p>sent when the viewer receives a <code>SEL_COMMAND</code> message with the <code>ID_DELETE_SEL</code> identifier; the message data is an array of references to the selected object(s).</p>
</dd><dt><code>SEL_DRAGGED</code>
<dd>
<p>sent when the selected object is dragged around in the viewer; the message data is a reference to the selected object.</p>
</dd><dt><code>SEL_COMMAND</code>
<dd>
<p>sent when the mouse is clicked somewhere in the widget; the message data is a reference to the clicked object (possibly <code>nil</code>)</p>
</dd><dt><code>SEL_CHANGED</code>
<dd>
<p>sent when the selection changes; the message data is a reference to the newly selected object (or <code>nil</code>).</p>
</dd></dl>
<h3 id="label-FXGLViewer+options">FXGLViewer options</h3>
<dl class="rdoc-list note-list"><dt><code>VIEWER_LIGHTING</code>
<dd>
<p>Lighting is on</p>
</dd><dt><code>VIEWER_FOG</code>
<dd>
<p>Fog mode on</p>
</dd><dt><code>VIEWER_DITHER</code>
<dd>
<p>Dithering</p>
</dd></dl>
<h3 id="label-Projection+modes+-28class+constants-29">Projection modes (class constants)</h3>
<dl class="rdoc-list note-list"><dt><code>PARALLEL</code>
<dd>
<p>Parallel projection</p>
</dd><dt><code>PERSPECTIVE</code>
<dd>
<p>Perspective projection</p>
</dd></dl>
<h3 id="label-Message+identifiers">Message identifiers</h3>
<dl class="rdoc-list note-list"><dt><code>ID_PERSPECTIVE</code>
<dd>
<p>x</p>
</dd><dt><code>ID_PARALLEL</code>
<dd>
<p>x</p>
</dd><dt><code>ID_FRONT</code>
<dd>
<p>x</p>
</dd><dt><code>ID_BACK</code>
<dd>
<p>x</p>
</dd><dt><code>ID_LEFT</code>
<dd>
<p>x</p>
</dd><dt><code>ID_RIGHT</code>
<dd>
<p>x</p>
</dd><dt><code>ID_TOP</code>
<dd>
<p>x</p>
</dd><dt><code>ID_BOTTOM</code>
<dd>
<p>x</p>
</dd><dt><code>ID_RESETVIEW</code>
<dd>
<p>x</p>
</dd><dt><code>ID_FITVIEW</code>
<dd>
<p>x</p>
</dd><dt><code>ID_TIPTIMER</code>
<dd>
<p>x</p>
</dd><dt><code>ID_TOP_COLOR</code>
<dd>
<p>x</p>
</dd><dt><code>ID_BOTTOM_COLOR</code>
<dd>
<p>x</p>
</dd><dt><code>ID_BACK_COLOR</code>
<dd>
<p>x</p>
</dd><dt><code>ID_AMBIENT_COLOR</code>
<dd>
<p>x</p>
</dd><dt><code>ID_LIGHT_AMBIENT</code>
<dd>
<p>x</p>
</dd><dt><code>ID_LIGHT_DIFFUSE</code>
<dd>
<p>x</p>
</dd><dt><code>ID_LIGHT_SPECULAR</code>
<dd>
<p>x</p>
</dd><dt><code>ID_LIGHTING</code>
<dd>
<p>x</p>
</dd><dt><code>ID_TURBO</code>
<dd>
<p>x</p>
</dd><dt><code>ID_FOG</code>
<dd>
<p>x</p>
</dd><dt><code>ID_DITHER</code>
<dd>
<p>x</p>
</dd><dt><code>ID_SCALE_X</code>
<dd>
<p>x</p>
</dd><dt><code>ID_SCALE_Y</code>
<dd>
<p>x</p>
</dd><dt><code>ID_SCALE_Z</code>
<dd>
<p>x</p>
</dd><dt><code>ID_DIAL_X</code>
<dd>
<p>x</p>
</dd><dt><code>ID_DIAL_Y</code>
<dd>
<p>x</p>
</dd><dt><code>ID_DIAL_Z</code>
<dd>
<p>x</p>
</dd><dt><code>ID_ROLL</code>
<dd>
<p>x</p>
</dd><dt><code>ID_PITCH</code>
<dd>
<p>x</p>
</dd><dt><code>ID_YAW</code>
<dd>
<p>x</p>
</dd><dt><code>ID_FOV</code>
<dd>
<p>x</p>
</dd><dt><code>ID_ZOOM</code>
<dd>
<p>x</p>
</dd><dt><code>ID_CUT_SEL</code>
<dd>
<p>x</p>
</dd><dt><code>ID_COPY_SEL</code>
<dd>
<p>x</p>
</dd><dt><code>ID_PASTE_SEL</code>
<dd>
<p>x</p>
</dd><dt><code>ID_DELETE_SEL</code>
<dd>
<p>x</p>
</dd><dt><code>ID_PRINT_IMAGE</code>
<dd>
<p>x</p>
</dd><dt><code>ID_PRINT_VECTOR</code>
<dd>
<p>x</p>
</dd><dt><code>ID_LASSO_ZOOM</code>
<dd>
<p>x</p>
</dd><dt><code>ID_LASSO_SELECT</code>
<dd>
<p>x</p>
</dd></dl>
</div>
</div>
<div class="tags">
</div>
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
<ul class="summary">
<li class="public ">
<span class="summary_signature">
<a href="#ambientColor-instance_method" title="#ambientColor (instance method)">#<strong>ambientColor</strong> ⇒ Object </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>Global ambient light color FXMat4f.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#center-instance_method" title="#center (instance method)">#<strong>center</strong> ⇒ Object </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>Object center <span class='object_link'><a href="FXVec3f.html" title="Fox::FXVec3f (class)">FXVec3f</a></span>.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#distance-instance_method" title="#distance (instance method)">#<strong>distance</strong> ⇒ Object </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>Target point distance [Float].</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#eyePosition-instance_method" title="#eyePosition (instance method)">#<strong>eyePosition</strong> ⇒ Object </a>
</span>
<span class="note title readonly">readonly</span>
<span class="summary_desc"><div class='inline'>
<p>Eye position <span class='object_link'><a href="FXVec3f.html" title="Fox::FXVec3f (class)">FXVec3f</a></span>.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#eyeVector-instance_method" title="#eyeVector (instance method)">#<strong>eyeVector</strong> ⇒ Object </a>
</span>
<span class="note title readonly">readonly</span>
<span class="summary_desc"><div class='inline'>
<p>Eyesight vector <span class='object_link'><a href="FXVec3f.html" title="Fox::FXVec3f (class)">FXVec3f</a></span>.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#fieldOfView-instance_method" title="#fieldOfView (instance method)">#<strong>fieldOfView</strong> ⇒ Object </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>Camera field of view angle (in degrees) [Float].</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#helpText-instance_method" title="#helpText (instance method)">#<strong>helpText</strong> ⇒ Object </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>Status line help text [String].</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#invTransform-instance_method" title="#invTransform (instance method)">#<strong>invTransform</strong> ⇒ Object </a>
</span>
<span class="note title readonly">readonly</span>
<span class="summary_desc"><div class='inline'>
<p>The inverse of the current transformation matrix FXMat4f.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#light-instance_method" title="#light (instance method)">#<strong>light</strong> ⇒ Object </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>Light source settings <span class='object_link'><a href="FXLight.html" title="Fox::FXLight (class)">FXLight</a></span>.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#material-instance_method" title="#material (instance method)">#<strong>material</strong> ⇒ Object </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>Default object material setting <span class='object_link'><a href="FXMaterial.html" title="Fox::FXMaterial (class)">FXMaterial</a></span>.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#maxHits-instance_method" title="#maxHits (instance method)">#<strong>maxHits</strong> ⇒ Object </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>The maximum hits, i.e.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#modelPix-instance_method" title="#modelPix (instance method)">#<strong>modelPix</strong> ⇒ Object </a>
</span>
<span class="note title readonly">readonly</span>
<span class="summary_desc"><div class='inline'>
<p>Size of pixel in model coordinates [Float].</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#orientation-instance_method" title="#orientation (instance method)">#<strong>orientation</strong> ⇒ Object </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>Camera orientation <span class='object_link'><a href="FXQuatf.html" title="Fox::FXQuatf (class)">FXQuatf</a></span>.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#projection-instance_method" title="#projection (instance method)">#<strong>projection</strong> ⇒ Object </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>The projection mode (either <code>FXGLViewer::PERSPECTIVE</code> or <code>FXGLViewer::PARALLEL</code>).</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#scale-instance_method" title="#scale (instance method)">#<strong>scale</strong> ⇒ Object </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>Current scaling factors <span class='object_link'><a href="FXVec3f.html" title="Fox::FXVec3f (class)">FXVec3f</a></span>.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#scene-instance_method" title="#scene (instance method)">#<strong>scene</strong> ⇒ Object </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>The current scene object <span class='object_link'><a href="FXGLObject.html" title="Fox::FXGLObject (class)">FXGLObject</a></span>.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#selection-instance_method" title="#selection (instance method)">#<strong>selection</strong> ⇒ Object </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>The selection <span class='object_link'><a href="FXGLObject.html" title="Fox::FXGLObject (class)">FXGLObject</a></span>.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#tipText-instance_method" title="#tipText (instance method)">#<strong>tipText</strong> ⇒ Object </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>Tool tip text [String].</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#transform-instance_method" title="#transform (instance method)">#<strong>transform</strong> ⇒ Object </a>
</span>
<span class="note title readonly">readonly</span>
<span class="summary_desc"><div class='inline'>
<p>The current transformation matrix FXMat4f.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#turboMode=-instance_method" title="#turboMode= (instance method)">#<strong>turboMode</strong> ⇒ Object </a>
</span>
<span class="note title writeonly">writeonly</span>
<span class="summary_desc"><div class='inline'>
<p>Set turbo mode [Boolean].</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#viewport-instance_method" title="#viewport (instance method)">#<strong>viewport</strong> ⇒ Object </a>
</span>
<span class="note title readonly">readonly</span>
<span class="summary_desc"><div class='inline'>
<p>The viewport for this viewer <span class='object_link'><a href="FXViewport.html" title="Fox::FXViewport (class)">FXViewport</a></span>.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#worldPix-instance_method" title="#worldPix (instance method)">#<strong>worldPix</strong> ⇒ Object </a>
</span>
<span class="note title readonly">readonly</span>
<span class="summary_desc"><div class='inline'>
<p>Size of pixel in world coordinates [Float].</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#zoom-instance_method" title="#zoom (instance method)">#<strong>zoom</strong> ⇒ Object </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>Camera zoom factor [Float].</p>
</div></span>
</li>
</ul>
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="FXWindow.html" title="Fox::FXWindow (class)">FXWindow</a></span></h3>
<p class="inherited"><span class='object_link'><a href="FXWindow.html#accelTable-instance_method" title="Fox::FXWindow#accelTable (method)">#accelTable</a></span>, <span class='object_link'><a href="FXWindow.html#backColor-instance_method" title="Fox::FXWindow#backColor (method)">#backColor</a></span>, <span class='object_link'><a href="FXWindow.html#defaultCursor-instance_method" title="Fox::FXWindow#defaultCursor (method)">#defaultCursor</a></span>, <span class='object_link'><a href="FXWindow.html#dragCursor-instance_method" title="Fox::FXWindow#dragCursor (method)">#dragCursor</a></span>, <span class='object_link'><a href="FXWindow.html#first-instance_method" title="Fox::FXWindow#first (method)">#first</a></span>, <span class='object_link'><a href="FXWindow.html#focus-instance_method" title="Fox::FXWindow#focus (method)">#focus</a></span>, <span class='object_link'><a href="FXWindow.html#key-instance_method" title="Fox::FXWindow#key (method)">#key</a></span>, <span class='object_link'><a href="FXWindow.html#last-instance_method" title="Fox::FXWindow#last (method)">#last</a></span>, <span class='object_link'><a href="FXWindow.html#layoutHints-instance_method" title="Fox::FXWindow#layoutHints (method)">#layoutHints</a></span>, <span class='object_link'><a href="FXWindow.html#next-instance_method" title="Fox::FXWindow#next (method)">#next</a></span>, <span class='object_link'><a href="FXWindow.html#numChildren-instance_method" title="Fox::FXWindow#numChildren (method)">#numChildren</a></span>, <span class='object_link'><a href="FXWindow.html#owner-instance_method" title="Fox::FXWindow#owner (method)">#owner</a></span>, <span class='object_link'><a href="FXWindow.html#parent-instance_method" title="Fox::FXWindow#parent (method)">#parent</a></span>, <span class='object_link'><a href="FXWindow.html#prev-instance_method" title="Fox::FXWindow#prev (method)">#prev</a></span>, <span class='object_link'><a href="FXWindow.html#root-instance_method" title="Fox::FXWindow#root (method)">#root</a></span>, <span class='object_link'><a href="FXWindow.html#selector-instance_method" title="Fox::FXWindow#selector (method)">#selector</a></span>, <span class='object_link'><a href="FXWindow.html#shell-instance_method" title="Fox::FXWindow#shell (method)">#shell</a></span>, <span class='object_link'><a href="FXWindow.html#target-instance_method" title="Fox::FXWindow#target (method)">#target</a></span>, <span class='object_link'><a href="FXWindow.html#x-instance_method" title="Fox::FXWindow#x (method)">#x</a></span>, <span class='object_link'><a href="FXWindow.html#y-instance_method" title="Fox::FXWindow#y (method)">#y</a></span></p>
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="FXDrawable.html" title="Fox::FXDrawable (class)">FXDrawable</a></span></h3>
<p class="inherited"><span class='object_link'><a href="FXDrawable.html#height-instance_method" title="Fox::FXDrawable#height (method)">#height</a></span>, <span class='object_link'><a href="FXDrawable.html#visual-instance_method" title="Fox::FXDrawable#visual (method)">#visual</a></span>, <span class='object_link'><a href="FXDrawable.html#width-instance_method" title="Fox::FXDrawable#width (method)">#width</a></span></p>
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="FXId.html" title="Fox::FXId (class)">FXId</a></span></h3>
<p class="inherited"><span class='object_link'><a href="FXId.html#app-instance_method" title="Fox::FXId#app (method)">#app</a></span>, <span class='object_link'><a href="FXId.html#userData-instance_method" title="Fox::FXId#userData (method)">#userData</a></span>, <span class='object_link'><a href="FXId.html#xid-instance_method" title="Fox::FXId#xid (method)">#xid</a></span></p>
<h2>
Class Method Summary
<small><a href="#" class="summary_toggle">collapse</a></small>
</h2>
<ul class="summary">
<li class="public ">
<span class="summary_signature">
<a href="#objectType-class_method" title="objectType (class method)">.<strong>objectType</strong> ⇒ Object </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>Returns the FXDragType for FXGLObject.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#objectTypeName-class_method" title="objectTypeName (class method)">.<strong>objectTypeName</strong> ⇒ Object </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>Returns the drag type name.</p>
</div></span>
</li>
</ul>
<h2>
Instance Method Summary
<small><a href="#" class="summary_toggle">collapse</a></small>
</h2>
<ul class="summary">
<li class="public ">
<span class="summary_signature">
<a href="#doesTurbo%3F-instance_method" title="#doesTurbo? (instance method)">#<strong>doesTurbo?</strong> ⇒ Boolean </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>When drawing a GL object, if doesTurbo? returns <code>true</code>, the object may choose to perform a reduced complexity drawing as the user is interactively manipulating; another update will be done later when the full complexity drawing can be performed again.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#eyeToScreen-instance_method" title="#eyeToScreen (instance method)">#<strong>eyeToScreen</strong>(e) ⇒ Object </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>Translate eye-coordinate to screen coordinate.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#eyeToWorld-instance_method" title="#eyeToWorld (instance method)">#<strong>eyeToWorld</strong>(e) ⇒ Object </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>Translate eye coordinate to eye coordinate.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#fitToBounds-instance_method" title="#fitToBounds (instance method)">#<strong>fitToBounds</strong>(box) ⇒ Object </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>Fit viewer to the given bounding box.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#getBackgroundColor-instance_method" title="#getBackgroundColor (instance method)">#<strong>getBackgroundColor</strong>(bottom = false) ⇒ Object </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>Return top or bottom window background color.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#getBoreVector-instance_method" title="#getBoreVector (instance method)">#<strong>getBoreVector</strong>(sx, sy) ⇒ Object </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>Return boresight vector (an array of two arrays).</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(p, vis, sharegroup, target = nil, selector = 0, opts = 0, x = 0, y = 0, width = 0, height = 0) ⇒ FXGLViewer </a>
</span>
<span class="note title constructor">constructor</span>
<span class="summary_desc"><div class='inline'>
<p>Construct GL viewer widget sharing display list with another GL viewer.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#lasso-instance_method" title="#lasso (instance method)">#<strong>lasso</strong>(x1, y1, x2, y2) ⇒ Object </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>Return an array of all objects in the given rectangle.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#locked%3F-instance_method" title="#locked? (instance method)">#<strong>locked?</strong> ⇒ Boolean </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>Returns <code>true</code> if the viewer is locked.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#readFeedback-instance_method" title="#readFeedback (instance method)">#<strong>readFeedback</strong>(x, y, w, h) ⇒ Object </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>Read the feedback buffer containing the current scene.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#readPixels-instance_method" title="#readPixels (instance method)">#<strong>readPixels</strong>(x, y, w, h) ⇒ Object </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>Read the pixels off the screen as R,G,B tuples.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#screenToEye-instance_method" title="#screenToEye (instance method)">#<strong>screenToEye</strong>(sx, sy, eyez = 0.0) ⇒ Object </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>Translate screen coordinate to eye coordinate at the given depth.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#screenToTarget-instance_method" title="#screenToTarget (instance method)">#<strong>screenToTarget</strong>(sx, sy) ⇒ Object </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>Translate screen coordinate to eye coordinate at the target point depth.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#setBackgroundColor-instance_method" title="#setBackgroundColor (instance method)">#<strong>setBackgroundColor</strong>(clr, bottom = MAYBE) ⇒ Object </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>Change top, bottom or both background colors.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#setBounds-instance_method" title="#setBounds (instance method)">#<strong>setBounds</strong>(box) ⇒ Object </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>Change the model bounding box; this adjusts the viewer.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#translate-instance_method" title="#translate (instance method)">#<strong>translate</strong>(vec) ⇒ Object </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>Translate object center.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#turboMode%3F-instance_method" title="#turboMode? (instance method)">#<strong>turboMode?</strong> ⇒ Boolean </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>Returns <code>true</code> if turbo mode is enabled.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#worldToEye-instance_method" title="#worldToEye (instance method)">#<strong>worldToEye</strong>(w) ⇒ Object </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>Translate world coordinate to eye coordinate.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#worldToEyeZ-instance_method" title="#worldToEyeZ (instance method)">#<strong>worldToEyeZ</strong>(w) ⇒ Object </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>Translate world coordinate to eye coordinate depth.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#worldVector-instance_method" title="#worldVector (instance method)">#<strong>worldVector</strong>(fx, fy, tx, ty) ⇒ Object </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>Calculate world coordinate vector from screen movement.</p>
</div></span>
</li>
</ul>
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="FXGLCanvas.html" title="Fox::FXGLCanvas (class)">FXGLCanvas</a></span></h3>
<p class="inherited"><span class='object_link'><a href="FXGLCanvas.html#context-instance_method" title="Fox::FXGLCanvas#context (method)">#context</a></span>, <span class='object_link'><a href="FXGLCanvas.html#current%3F-instance_method" title="Fox::FXGLCanvas#current? (method)">#current?</a></span>, <span class='object_link'><a href="FXGLCanvas.html#makeCurrent-instance_method" title="Fox::FXGLCanvas#makeCurrent (method)">#makeCurrent</a></span>, <span class='object_link'><a href="FXGLCanvas.html#makeNonCurrent-instance_method" title="Fox::FXGLCanvas#makeNonCurrent (method)">#makeNonCurrent</a></span>, <span class='object_link'><a href="FXGLCanvas.html#shared%3F-instance_method" title="Fox::FXGLCanvas#shared? (method)">#shared?</a></span>, <span class='object_link'><a href="FXGLCanvas.html#swapBuffers-instance_method" title="Fox::FXGLCanvas#swapBuffers (method)">#swapBuffers</a></span></p>
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="FXWindow.html" title="Fox::FXWindow (class)">FXWindow</a></span></h3>
<p class="inherited"><span class='object_link'><a href="FXWindow.html#acceptDrop-instance_method" title="Fox::FXWindow#acceptDrop (method)">#acceptDrop</a></span>, <span class='object_link'><a href="FXWindow.html#acquireClipboard-instance_method" title="Fox::FXWindow#acquireClipboard (method)">#acquireClipboard</a></span>, <span class='object_link'><a href="FXWindow.html#acquireSelection-instance_method" title="Fox::FXWindow#acquireSelection (method)">#acquireSelection</a></span>, <span class='object_link'><a href="FXWindow.html#active%3F-instance_method" title="Fox::FXWindow#active? (method)">#active?</a></span>, <span class='object_link'><a href="FXWindow.html#addHotKey-instance_method" title="Fox::FXWindow#addHotKey (method)">#addHotKey</a></span>, <span class='object_link'><a href="FXWindow.html#after%3F-class_method" title="Fox::FXWindow.after? (method)">after?</a></span>, <span class='object_link'><a href="FXWindow.html#after%3F-instance_method" title="Fox::FXWindow#after? (method)">#after?</a></span>, <span class='object_link'><a href="FXWindow.html#before%3F-class_method" title="Fox::FXWindow.before? (method)">before?</a></span>, <span class='object_link'><a href="FXWindow.html#before%3F-instance_method" title="Fox::FXWindow#before? (method)">#before?</a></span>, <span class='object_link'><a href="FXWindow.html#beginDrag-instance_method" title="Fox::FXWindow#beginDrag (method)">#beginDrag</a></span>, <span class='object_link'><a href="FXWindow.html#canFocus%3F-instance_method" title="Fox::FXWindow#canFocus? (method)">#canFocus?</a></span>, <span class='object_link'><a href="FXWindow.html#changeFocus-instance_method" title="Fox::FXWindow#changeFocus (method)">#changeFocus</a></span>, <span class='object_link'><a href="FXWindow.html#childAtIndex-instance_method" title="Fox::FXWindow#childAtIndex (method)">#childAtIndex</a></span>, <span class='object_link'><a href="FXWindow.html#childOf%3F-instance_method" title="Fox::FXWindow#childOf? (method)">#childOf?</a></span>, <span class='object_link'><a href="FXWindow.html#children-instance_method" title="Fox::FXWindow#children (method)">#children</a></span>, <span class='object_link'><a href="FXWindow.html#clearDragRectangle-instance_method" title="Fox::FXWindow#clearDragRectangle (method)">#clearDragRectangle</a></span>, <span class='object_link'><a href="FXWindow.html#clearShape-instance_method" title="Fox::FXWindow#clearShape (method)">#clearShape</a></span>, <span class='object_link'><a href="FXWindow.html#colorType-class_method" title="Fox::FXWindow.colorType (method)">colorType</a></span>, <span class='object_link'><a href="FXWindow.html#colorTypeName-class_method" title="Fox::FXWindow.colorTypeName (method)">colorTypeName</a></span>, <span class='object_link'><a href="FXWindow.html#commonAncestor-class_method" title="Fox::FXWindow.commonAncestor (method)">commonAncestor</a></span>, <span class='object_link'><a href="FXWindow.html#composeContext-instance_method" title="Fox::FXWindow#composeContext (method)">#composeContext</a></span>, <span class='object_link'><a href="FXWindow.html#composite%3F-instance_method" title="Fox::FXWindow#composite? (method)">#composite?</a></span>, <span class='object_link'><a href="FXWindow.html#contains%3F-instance_method" title="Fox::FXWindow#contains? (method)">#contains?</a></span>, <span class='object_link'><a href="FXWindow.html#containsChild%3F-instance_method" title="Fox::FXWindow#containsChild? (method)">#containsChild?</a></span>, <span class='object_link'><a href="FXWindow.html#create-instance_method" title="Fox::FXWindow#create (method)">#create</a></span>, <span class='object_link'><a href="FXWindow.html#createComposeContext-instance_method" title="Fox::FXWindow#createComposeContext (method)">#createComposeContext</a></span>, <span class='object_link'><a href="FXWindow.html#cursorPosition-instance_method" title="Fox::FXWindow#cursorPosition (method)">#cursorPosition</a></span>, <span class='object_link'><a href="FXWindow.html#default%3F-instance_method" title="Fox::FXWindow#default? (method)">#default?</a></span>, <span class='object_link'><a href="FXWindow.html#defaultHeight-instance_method" title="Fox::FXWindow#defaultHeight (method)">#defaultHeight</a></span>, <span class='object_link'><a href="FXWindow.html#defaultWidth-instance_method" title="Fox::FXWindow#defaultWidth (method)">#defaultWidth</a></span>, <span class='object_link'><a href="FXWindow.html#deleteType-class_method" title="Fox::FXWindow.deleteType (method)">deleteType</a></span>, <span class='object_link'><a href="FXWindow.html#deleteTypeName-class_method" title="Fox::FXWindow.deleteTypeName (method)">deleteTypeName</a></span>, <span class='object_link'><a href="FXWindow.html#destroy-instance_method" title="Fox::FXWindow#destroy (method)">#destroy</a></span>, <span class='object_link'><a href="FXWindow.html#destroyComposeContext-instance_method" title="Fox::FXWindow#destroyComposeContext (method)">#destroyComposeContext</a></span>, <span class='object_link'><a href="FXWindow.html#detach-instance_method" title="Fox::FXWindow#detach (method)">#detach</a></span>, <span class='object_link'><a href="FXWindow.html#didAccept-instance_method" title="Fox::FXWindow#didAccept (method)">#didAccept</a></span>, <span class='object_link'><a href="FXWindow.html#disable-instance_method" title="Fox::FXWindow#disable (method)">#disable</a></span>, <span class='object_link'><a href="FXWindow.html#doesSaveUnder%3F-instance_method" title="Fox::FXWindow#doesSaveUnder? (method)">#doesSaveUnder?</a></span>, <span class='object_link'><a href="FXWindow.html#dragging%3F-instance_method" title="Fox::FXWindow#dragging? (method)">#dragging?</a></span>, <span class='object_link'><a href="FXWindow.html#dropDisable-instance_method" title="Fox::FXWindow#dropDisable (method)">#dropDisable</a></span>, <span class='object_link'><a href="FXWindow.html#dropEnable-instance_method" title="Fox::FXWindow#dropEnable (method)">#dropEnable</a></span>, <span class='object_link'><a href="FXWindow.html#dropEnabled%3F-instance_method" title="Fox::FXWindow#dropEnabled? (method)">#dropEnabled?</a></span>, <span class='object_link'><a href="FXWindow.html#dropFinished-instance_method" title="Fox::FXWindow#dropFinished (method)">#dropFinished</a></span>, <span class='object_link'><a href="FXWindow.html#dropTarget%3F-instance_method" title="Fox::FXWindow#dropTarget? (method)">#dropTarget?</a></span>, <span class='object_link'><a href="FXWindow.html#each_child-instance_method" title="Fox::FXWindow#each_child (method)">#each_child</a></span>, <span class='object_link'><a href="FXWindow.html#each_child_recursive-instance_method" title="Fox::FXWindow#each_child_recursive (method)">#each_child_recursive</a></span>, <span class='object_link'><a href="FXWindow.html#enable-instance_method" title="Fox::FXWindow#enable (method)">#enable</a></span>, <span class='object_link'><a href="FXWindow.html#enabled%3F-instance_method" title="Fox::FXWindow#enabled? (method)">#enabled?</a></span>, <span class='object_link'><a href="FXWindow.html#endDrag-instance_method" title="Fox::FXWindow#endDrag (method)">#endDrag</a></span>, <span class='object_link'><a href="FXWindow.html#forceRefresh-instance_method" title="Fox::FXWindow#forceRefresh (method)">#forceRefresh</a></span>, <span class='object_link'><a href="FXWindow.html#getChildAt-instance_method" title="Fox::FXWindow#getChildAt (method)">#getChildAt</a></span>, <span class='object_link'><a href="FXWindow.html#getDNDData-instance_method" title="Fox::FXWindow#getDNDData (method)">#getDNDData</a></span>, <span class='object_link'><a href="FXWindow.html#getHeightForWidth-instance_method" title="Fox::FXWindow#getHeightForWidth (method)">#getHeightForWidth</a></span>, <span class='object_link'><a href="FXWindow.html#getWidthForHeight-instance_method" title="Fox::FXWindow#getWidthForHeight (method)">#getWidthForHeight</a></span>, <span class='object_link'><a href="FXWindow.html#grab-instance_method" title="Fox::FXWindow#grab (method)">#grab</a></span>, <span class='object_link'><a href="FXWindow.html#grabKeyboard-instance_method" title="Fox::FXWindow#grabKeyboard (method)">#grabKeyboard</a></span>, <span class='object_link'><a href="FXWindow.html#grabbed%3F-instance_method" title="Fox::FXWindow#grabbed? (method)">#grabbed?</a></span>, <span class='object_link'><a href="FXWindow.html#grabbedKeyboard%3F-instance_method" title="Fox::FXWindow#grabbedKeyboard? (method)">#grabbedKeyboard?</a></span>, <span class='object_link'><a href="FXWindow.html#handleDrag-instance_method" title="Fox::FXWindow#handleDrag (method)">#handleDrag</a></span>, <span class='object_link'><a href="FXWindow.html#hasClipboard%3F-instance_method" title="Fox::FXWindow#hasClipboard? (method)">#hasClipboard?</a></span>, <span class='object_link'><a href="FXWindow.html#hasFocus%3F-instance_method" title="Fox::FXWindow#hasFocus? (method)">#hasFocus?</a></span>, <span class='object_link'><a href="FXWindow.html#hasSelection%3F-instance_method" title="Fox::FXWindow#hasSelection? (method)">#hasSelection?</a></span>, <span class='object_link'><a href="FXWindow.html#height-instance_method" title="Fox::FXWindow#height (method)">#height</a></span>, <span class='object_link'><a href="FXWindow.html#height=-instance_method" title="Fox::FXWindow#height= (method)">#height=</a></span>, <span class='object_link'><a href="FXWindow.html#hide-instance_method" title="Fox::FXWindow#hide (method)">#hide</a></span>, <span class='object_link'><a href="FXWindow.html#imageType-class_method" title="Fox::FXWindow.imageType (method)">imageType</a></span>, <span class='object_link'><a href="FXWindow.html#inFocusChain%3F-instance_method" title="Fox::FXWindow#inFocusChain? (method)">#inFocusChain?</a></span>, <span class='object_link'><a href="FXWindow.html#indexOfChild-instance_method" title="Fox::FXWindow#indexOfChild (method)">#indexOfChild</a></span>, <span class='object_link'><a href="FXWindow.html#initial%3F-instance_method" title="Fox::FXWindow#initial? (method)">#initial?</a></span>, <span class='object_link'><a href="FXWindow.html#inquireDNDAction-instance_method" title="Fox::FXWindow#inquireDNDAction (method)">#inquireDNDAction</a></span>, <span class='object_link'><a href="FXWindow.html#inquireDNDTypes-instance_method" title="Fox::FXWindow#inquireDNDTypes (method)">#inquireDNDTypes</a></span>, <span class='object_link'><a href="FXWindow.html#killFocus-instance_method" title="Fox::FXWindow#killFocus (method)">#killFocus</a></span>, <span class='object_link'><a href="FXWindow.html#layout-instance_method" title="Fox::FXWindow#layout (method)">#layout</a></span>, <span class='object_link'><a href="FXWindow.html#linkAfter-instance_method" title="Fox::FXWindow#linkAfter (method)">#linkAfter</a></span>, <span class='object_link'><a href="FXWindow.html#linkBefore-instance_method" title="Fox::FXWindow#linkBefore (method)">#linkBefore</a></span>, <span class='object_link'><a href="FXWindow.html#lower-instance_method" title="Fox::FXWindow#lower (method)">#lower</a></span>, <span class='object_link'><a href="FXWindow.html#move-instance_method" title="Fox::FXWindow#move (method)">#move</a></span>, <span class='object_link'><a href="FXWindow.html#octetType-class_method" title="Fox::FXWindow.octetType (method)">octetType</a></span>, <span class='object_link'><a href="FXWindow.html#octetTypeName-class_method" title="Fox::FXWindow.octetTypeName (method)">octetTypeName</a></span>, <span class='object_link'><a href="FXWindow.html#offeredDNDType%3F-instance_method" title="Fox::FXWindow#offeredDNDType? (method)">#offeredDNDType?</a></span>, <span class='object_link'><a href="FXWindow.html#position-instance_method" title="Fox::FXWindow#position (method)">#position</a></span>, <span class='object_link'><a href="FXWindow.html#raiseWindow-instance_method" title="Fox::FXWindow#raiseWindow (method)">#raiseWindow</a></span>, <span class='object_link'><a href="FXWindow.html#recalc-instance_method" title="Fox::FXWindow#recalc (method)">#recalc</a></span>, <span class='object_link'><a href="FXWindow.html#releaseClipboard-instance_method" title="Fox::FXWindow#releaseClipboard (method)">#releaseClipboard</a></span>, <span class='object_link'><a href="FXWindow.html#releaseSelection-instance_method" title="Fox::FXWindow#releaseSelection (method)">#releaseSelection</a></span>, <span class='object_link'><a href="FXWindow.html#remHotKey-instance_method" title="Fox::FXWindow#remHotKey (method)">#remHotKey</a></span>, <span class='object_link'><a href="FXWindow.html#removeChild-instance_method" title="Fox::FXWindow#removeChild (method)">#removeChild</a></span>, <span class='object_link'><a href="FXWindow.html#repaint-instance_method" title="Fox::FXWindow#repaint (method)">#repaint</a></span>, <span class='object_link'><a href="FXWindow.html#reparent-instance_method" title="Fox::FXWindow#reparent (method)">#reparent</a></span>, <span class='object_link'><a href="FXWindow.html#resize-instance_method" title="Fox::FXWindow#resize (method)">#resize</a></span>, <span class='object_link'><a href="FXWindow.html#scroll-instance_method" title="Fox::FXWindow#scroll (method)">#scroll</a></span>, <span class='object_link'><a href="FXWindow.html#setCursorPosition-instance_method" title="Fox::FXWindow#setCursorPosition (method)">#setCursorPosition</a></span>, <span class='object_link'><a href="FXWindow.html#setDNDData-instance_method" title="Fox::FXWindow#setDNDData (method)">#setDNDData</a></span>, <span class='object_link'><a href="FXWindow.html#setDefault-instance_method" title="Fox::FXWindow#setDefault (method)">#setDefault</a></span>, <span class='object_link'><a href="FXWindow.html#setDragRectangle-instance_method" title="Fox::FXWindow#setDragRectangle (method)">#setDragRectangle</a></span>, <span class='object_link'><a href="FXWindow.html#setFocus-instance_method" title="Fox::FXWindow#setFocus (method)">#setFocus</a></span>, <span class='object_link'><a href="FXWindow.html#setInitial-instance_method" title="Fox::FXWindow#setInitial (method)">#setInitial</a></span>, <span class='object_link'><a href="FXWindow.html#setShape-instance_method" title="Fox::FXWindow#setShape (method)">#setShape</a></span>, <span class='object_link'><a href="FXWindow.html#shell%3F-instance_method" title="Fox::FXWindow#shell? (method)">#shell?</a></span>, <span class='object_link'><a href="FXWindow.html#show-instance_method" title="Fox::FXWindow#show (method)">#show</a></span>, <span class='object_link'><a href="FXWindow.html#shown%3F-instance_method" title="Fox::FXWindow#shown? (method)">#shown?</a></span>, <span class='object_link'><a href="FXWindow.html#stringType-class_method" title="Fox::FXWindow.stringType (method)">stringType</a></span>, <span class='object_link'><a href="FXWindow.html#textType-class_method" title="Fox::FXWindow.textType (method)">textType</a></span>, <span class='object_link'><a href="FXWindow.html#textTypeName-class_method" title="Fox::FXWindow.textTypeName (method)">textTypeName</a></span>, <span class='object_link'><a href="FXWindow.html#tr-instance_method" title="Fox::FXWindow#tr (method)">#tr</a></span>, <span class='object_link'><a href="FXWindow.html#translateCoordinatesFrom-instance_method" title="Fox::FXWindow#translateCoordinatesFrom (method)">#translateCoordinatesFrom</a></span>, <span class='object_link'><a href="FXWindow.html#translateCoordinatesTo-instance_method" title="Fox::FXWindow#translateCoordinatesTo (method)">#translateCoordinatesTo</a></span>, <span class='object_link'><a href="FXWindow.html#underCursor%3F-instance_method" title="Fox::FXWindow#underCursor? (method)">#underCursor?</a></span>, <span class='object_link'><a href="FXWindow.html#ungrab-instance_method" title="Fox::FXWindow#ungrab (method)">#ungrab</a></span>, <span class='object_link'><a href="FXWindow.html#ungrabKeyboard-instance_method" title="Fox::FXWindow#ungrabKeyboard (method)">#ungrabKeyboard</a></span>, <span class='object_link'><a href="FXWindow.html#update-instance_method" title="Fox::FXWindow#update (method)">#update</a></span>, <span class='object_link'><a href="FXWindow.html#urilistType-class_method" title="Fox::FXWindow.urilistType (method)">urilistType</a></span>, <span class='object_link'><a href="FXWindow.html#urilistTypeName-class_method" title="Fox::FXWindow.urilistTypeName (method)">urilistTypeName</a></span>, <span class='object_link'><a href="FXWindow.html#utf16Type-class_method" title="Fox::FXWindow.utf16Type (method)">utf16Type</a></span>, <span class='object_link'><a href="FXWindow.html#utf16TypeName-class_method" title="Fox::FXWindow.utf16TypeName (method)">utf16TypeName</a></span>, <span class='object_link'><a href="FXWindow.html#utf8Type-class_method" title="Fox::FXWindow.utf8Type (method)">utf8Type</a></span>, <span class='object_link'><a href="FXWindow.html#utf8TypeName-class_method" title="Fox::FXWindow.utf8TypeName (method)">utf8TypeName</a></span>, <span class='object_link'><a href="FXWindow.html#visible=-instance_method" title="Fox::FXWindow#visible= (method)">#visible=</a></span>, <span class='object_link'><a href="FXWindow.html#width-instance_method" title="Fox::FXWindow#width (method)">#width</a></span>, <span class='object_link'><a href="FXWindow.html#width=-instance_method" title="Fox::FXWindow#width= (method)">#width=</a></span></p>
<h3 class="inherited">Methods included from <span class='object_link'><a href="../Responder2.html" title="Responder2 (module)">Responder2</a></span></h3>
<p class="inherited"><span class='object_link'><a href="../Responder2.html#connect-instance_method" title="Responder2#connect (method)">#connect</a></span></p>
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="FXDrawable.html" title="Fox::FXDrawable (class)">FXDrawable</a></span></h3>
<p class="inherited"><span class='object_link'><a href="FXDrawable.html#resize-instance_method" title="Fox::FXDrawable#resize (method)">#resize</a></span></p>
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="FXId.html" title="Fox::FXId (class)">FXId</a></span></h3>
<p class="inherited"><span class='object_link'><a href="FXId.html#create-instance_method" title="Fox::FXId#create (method)">#create</a></span>, <span class='object_link'><a href="FXId.html#created%3F-instance_method" title="Fox::FXId#created? (method)">#created?</a></span>, <span class='object_link'><a href="FXId.html#destroy-instance_method" title="Fox::FXId#destroy (method)">#destroy</a></span>, <span class='object_link'><a href="FXId.html#detach-instance_method" title="Fox::FXId#detach (method)">#detach</a></span>, <span class='object_link'><a href="FXId.html#runOnUiThread-instance_method" title="Fox::FXId#runOnUiThread (method)">#runOnUiThread</a></span></p>
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="FXObject.html" title="Fox::FXObject (class)">FXObject</a></span></h3>
<p class="inherited"><span class='object_link'><a href="FXObject.html#bind-instance_method" title="Fox::FXObject#bind (method)">#bind</a></span>, <span class='object_link'><a href="FXObject.html#handle-instance_method" title="Fox::FXObject#handle (method)">#handle</a></span>, <span class='object_link'><a href="FXObject.html#load-instance_method" title="Fox::FXObject#load (method)">#load</a></span>, <span class='object_link'><a href="FXObject.html#save-instance_method" title="Fox::FXObject#save (method)">#save</a></span>, <span class='object_link'><a href="FXObject.html#subclasses-class_method" title="Fox::FXObject.subclasses (method)">subclasses</a></span></p>
<div id="constructor_details" class="method_details_list">
<h2>Constructor Details</h2>
<div class="method_details first">
<h3 class="signature first" id="initialize-instance_method">
#<strong>initialize</strong>(p, vis, sharegroup, target = nil, selector = 0, opts = 0, x = 0, y = 0, width = 0, height = 0) ⇒ <tt><span class='object_link'><a href="" title="Fox::FXGLViewer (class)">FXGLViewer</a></span></tt>
</h3><div class="docstring">
<div class="discussion">
<p>Construct GL viewer widget sharing display list with another GL viewer</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
255
256</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'rdoc-sources/FXGLViewer.rb', line 255</span>
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_p'>p</span><span class='comma'>,</span> <span class='id identifier rubyid_vis'>vis</span><span class='comma'>,</span> <span class='id identifier rubyid_target'>target</span><span class='op'>=</span><span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_selector'>selector</span><span class='op'>=</span><span class='int'>0</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span><span class='op'>=</span><span class='int'>0</span><span class='comma'>,</span> <span class='id identifier rubyid_x'>x</span><span class='op'>=</span><span class='int'>0</span><span class='comma'>,</span> <span class='id identifier rubyid_y'>y</span><span class='op'>=</span><span class='int'>0</span><span class='comma'>,</span> <span class='id identifier rubyid_width'>width</span><span class='op'>=</span><span class='int'>0</span><span class='comma'>,</span> <span class='id identifier rubyid_height'>height</span><span class='op'>=</span><span class='int'>0</span><span class='rparen'>)</span> <span class='comment'># :yields: theGLViewer
</span><span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
</div>
<div id="instance_attr_details" class="attr_details">
<h2>Instance Attribute Details</h2>
<span id="ambientColor=-instance_method"></span>
<div class="method_details first">
<h3 class="signature first" id="ambientColor-instance_method">
#<strong>ambientColor</strong> ⇒ <tt>Object</tt>
</h3><div class="docstring">
<div class="discussion">
<p>Global ambient light color FXMat4f</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
234
235
236</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'rdoc-sources/FXGLViewer.rb', line 234</span>
<span class='kw'>def</span> <span class='id identifier rubyid_ambientColor'>ambientColor</span>
<span class='ivar'>@ambientColor</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<span id="center=-instance_method"></span>
<div class="method_details ">
<h3 class="signature " id="center-instance_method">
#<strong>center</strong> ⇒ <tt>Object</tt>
</h3><div class="docstring">
<div class="discussion">
<p>Object center <span class='object_link'><a href="FXVec3f.html" title="Fox::FXVec3f (class)">Fox::FXVec3f</a></span></p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
204
205
206</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'rdoc-sources/FXGLViewer.rb', line 204</span>
<span class='kw'>def</span> <span class='id identifier rubyid_center'>center</span>
<span class='ivar'>@center</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<span id="distance=-instance_method"></span>
<div class="method_details ">
<h3 class="signature " id="distance-instance_method">
#<strong>distance</strong> ⇒ <tt>Object</tt>
</h3><div class="docstring">
<div class="discussion">
<p>Target point distance [Float]</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
195
196
197</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'rdoc-sources/FXGLViewer.rb', line 195</span>
<span class='kw'>def</span> <span class='id identifier rubyid_distance'>distance</span>
<span class='ivar'>@distance</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<span id=""></span>
<div class="method_details ">
<h3 class="signature " id="eyePosition-instance_method">
#<strong>eyePosition</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
</h3><div class="docstring">
<div class="discussion">
<p>Eye position <span class='object_link'><a href="FXVec3f.html" title="Fox::FXVec3f (class)">Fox::FXVec3f</a></span></p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
210
211
212</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'rdoc-sources/FXGLViewer.rb', line 210</span>
<span class='kw'>def</span> <span class='id identifier rubyid_eyePosition'>eyePosition</span>
<span class='ivar'>@eyePosition</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<span id=""></span>
<div class="method_details ">
<h3 class="signature " id="eyeVector-instance_method">
#<strong>eyeVector</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
</h3><div class="docstring">
<div class="discussion">
<p>Eyesight vector <span class='object_link'><a href="FXVec3f.html" title="Fox::FXVec3f (class)">Fox::FXVec3f</a></span></p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
207
208
209</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'rdoc-sources/FXGLViewer.rb', line 207</span>
<span class='kw'>def</span> <span class='id identifier rubyid_eyeVector'>eyeVector</span>
<span class='ivar'>@eyeVector</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<span id="fieldOfView=-instance_method"></span>
<div class="method_details ">
<h3 class="signature " id="fieldOfView-instance_method">
#<strong>fieldOfView</strong> ⇒ <tt>Object</tt>
</h3><div class="docstring">
<div class="discussion">
<p>Camera field of view angle (in degrees) [Float]</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
189
190
191</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'rdoc-sources/FXGLViewer.rb', line 189</span>
<span class='kw'>def</span> <span class='id identifier rubyid_fieldOfView'>fieldOfView</span>
<span class='ivar'>@fieldOfView</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<span id="helpText=-instance_method"></span>
<div class="method_details ">
<h3 class="signature " id="helpText-instance_method">
#<strong>helpText</strong> ⇒ <tt>Object</tt>
</h3><div class="docstring">
<div class="discussion">
<p>Status line help text [String]</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
213
214
215</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'rdoc-sources/FXGLViewer.rb', line 213</span>
<span class='kw'>def</span> <span class='id identifier rubyid_helpText'>helpText</span>
<span class='ivar'>@helpText</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<span id=""></span>
<div class="method_details ">
<h3 class="signature " id="invTransform-instance_method">
#<strong>invTransform</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
</h3><div class="docstring">
<div class="discussion">
<p>The inverse of the current transformation matrix FXMat4f</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
222
223
224</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'rdoc-sources/FXGLViewer.rb', line 222</span>
<span class='kw'>def</span> <span class='id identifier rubyid_invTransform'>invTransform</span>
<span class='ivar'>@invTransform</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<span id="light=-instance_method"></span>
<div class="method_details ">
<h3 class="signature " id="light-instance_method">
#<strong>light</strong> ⇒ <tt>Object</tt>
</h3><div class="docstring">
<div class="discussion">
<p>Light source settings <span class='object_link'><a href="FXLight.html" title="Fox::FXLight (class)">Fox::FXLight</a></span></p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
244
245
246</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'rdoc-sources/FXGLViewer.rb', line 244</span>
<span class='kw'>def</span> <span class='id identifier rubyid_light'>light</span>
<span class='ivar'>@light</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<span id="material=-instance_method"></span>
<div class="method_details ">
<h3 class="signature " id="material-instance_method">
#<strong>material</strong> ⇒ <tt>Object</tt>
</h3><div class="docstring">
<div class="discussion">
<p>Default object material setting <span class='object_link'><a href="FXMaterial.html" title="Fox::FXMaterial (class)">Fox::FXMaterial</a></span></p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
186
187
188</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'rdoc-sources/FXGLViewer.rb', line 186</span>
<span class='kw'>def</span> <span class='id identifier rubyid_material'>material</span>
<span class='ivar'>@material</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<span id="maxHits=-instance_method"></span>
<div class="method_details ">
<h3 class="signature " id="maxHits-instance_method">
#<strong>maxHits</strong> ⇒ <tt>Object</tt>
</h3><div class="docstring">
<div class="discussion">
<p>The maximum hits, i.e. the maximum size of the pick buffer [Integer]. When less than or equal to zero, picking is essentially turned off.</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
238
239
240</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'rdoc-sources/FXGLViewer.rb', line 238</span>
<span class='kw'>def</span> <span class='id identifier rubyid_maxHits'>maxHits</span>
<span class='ivar'>@maxHits</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<span id=""></span>
<div class="method_details ">
<h3 class="signature " id="modelPix-instance_method">
#<strong>modelPix</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
</h3><div class="docstring">
<div class="discussion">
<p>Size of pixel in model coordinates [Float]</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
180
181
182</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'rdoc-sources/FXGLViewer.rb', line 180</span>
<span class='kw'>def</span> <span class='id identifier rubyid_modelPix'>modelPix</span>
<span class='ivar'>@modelPix</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<span id="orientation=-instance_method"></span>
<div class="method_details ">
<h3 class="signature " id="orientation-instance_method">
#<strong>orientation</strong> ⇒ <tt>Object</tt>
</h3><div class="docstring">
<div class="discussion">
<p>Camera orientation <span class='object_link'><a href="FXQuatf.html" title="Fox::FXQuatf (class)">Fox::FXQuatf</a></span></p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
201
202
203</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'rdoc-sources/FXGLViewer.rb', line 201</span>
<span class='kw'>def</span> <span class='id identifier rubyid_orientation'>orientation</span>
<span class='ivar'>@orientation</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<span id="projection=-instance_method"></span>
<div class="method_details ">
<h3 class="signature " id="projection-instance_method">
#<strong>projection</strong> ⇒ <tt>Object</tt>
</h3><div class="docstring">
<div class="discussion">
<p>The projection mode (either <code>FXGLViewer::PERSPECTIVE</code> or <code>FXGLViewer::PARALLEL</code>)</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
231
232
233</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'rdoc-sources/FXGLViewer.rb', line 231</span>
<span class='kw'>def</span> <span class='id identifier rubyid_projection'>projection</span>
<span class='ivar'>@projection</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<span id="scale=-instance_method"></span>
<div class="method_details ">
<h3 class="signature " id="scale-instance_method">
#<strong>scale</strong> ⇒ <tt>Object</tt>
</h3><div class="docstring">
<div class="discussion">
<p>Current scaling factors <span class='object_link'><a href="FXVec3f.html" title="Fox::FXVec3f (class)">Fox::FXVec3f</a></span></p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
198
199
200</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'rdoc-sources/FXGLViewer.rb', line 198</span>
<span class='kw'>def</span> <span class='id identifier rubyid_scale'>scale</span>
<span class='ivar'>@scale</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<span id="scene=-instance_method"></span>
<div class="method_details ">
<h3 class="signature " id="scene-instance_method">
#<strong>scene</strong> ⇒ <tt>Object</tt>
</h3><div class="docstring">
<div class="discussion">
<p>The current scene object <span class='object_link'><a href="FXGLObject.html" title="Fox::FXGLObject (class)">Fox::FXGLObject</a></span></p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
225
226
227</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'rdoc-sources/FXGLViewer.rb', line 225</span>
<span class='kw'>def</span> <span class='id identifier rubyid_scene'>scene</span>
<span class='ivar'>@scene</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<span id="selection=-instance_method"></span>
<div class="method_details ">
<h3 class="signature " id="selection-instance_method">
#<strong>selection</strong> ⇒ <tt>Object</tt>
</h3><div class="docstring">
<div class="discussion">
<p>The selection <span class='object_link'><a href="FXGLObject.html" title="Fox::FXGLObject (class)">Fox::FXGLObject</a></span></p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
228
229
230</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'rdoc-sources/FXGLViewer.rb', line 228</span>
<span class='kw'>def</span> <span class='id identifier rubyid_selection'>selection</span>
<span class='ivar'>@selection</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<span id="tipText=-instance_method"></span>
<div class="method_details ">
<h3 class="signature " id="tipText-instance_method">
#<strong>tipText</strong> ⇒ <tt>Object</tt>
</h3><div class="docstring">
<div class="discussion">
<p>Tool tip text [String]</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
216
217
218</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'rdoc-sources/FXGLViewer.rb', line 216</span>
<span class='kw'>def</span> <span class='id identifier rubyid_tipText'>tipText</span>
<span class='ivar'>@tipText</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<span id=""></span>
<div class="method_details ">
<h3 class="signature " id="transform-instance_method">
#<strong>transform</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
</h3><div class="docstring">
<div class="discussion">
<p>The current transformation matrix FXMat4f</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
219
220
221</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'rdoc-sources/FXGLViewer.rb', line 219</span>
<span class='kw'>def</span> <span class='id identifier rubyid_transform'>transform</span>
<span class='ivar'>@transform</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<span id=""></span>
<div class="method_details ">
<h3 class="signature " id="turboMode=-instance_method">
#<strong>turboMode=</strong>(value) ⇒ <tt>Object</tt> <span class="extras">(writeonly)</span>
</h3><div class="docstring">
<div class="discussion">
<p>Set turbo mode [Boolean]</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
241
242
243</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'rdoc-sources/FXGLViewer.rb', line 241</span>
<span class='kw'>def</span> <span class='id identifier rubyid_turboMode='>turboMode=</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
<span class='ivar'>@turboMode</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<span id=""></span>
<div class="method_details ">
<h3 class="signature " id="viewport-instance_method">
#<strong>viewport</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
</h3><div class="docstring">
<div class="discussion">
<p>The viewport for this viewer <span class='object_link'><a href="FXViewport.html" title="Fox::FXViewport (class)">Fox::FXViewport</a></span></p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
183
184
185</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'rdoc-sources/FXGLViewer.rb', line 183</span>
<span class='kw'>def</span> <span class='id identifier rubyid_viewport'>viewport</span>
<span class='ivar'>@viewport</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<span id=""></span>
<div class="method_details ">
<h3 class="signature " id="worldPix-instance_method">
#<strong>worldPix</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
</h3><div class="docstring">
<div class="discussion">
<p>Size of pixel in world coordinates [Float]</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
177
178
179</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'rdoc-sources/FXGLViewer.rb', line 177</span>
<span class='kw'>def</span> <span class='id identifier rubyid_worldPix'>worldPix</span>
<span class='ivar'>@worldPix</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<span id="zoom=-instance_method"></span>
<div class="method_details ">
<h3 class="signature " id="zoom-instance_method">
#<strong>zoom</strong> ⇒ <tt>Object</tt>
</h3><div class="docstring">
<div class="discussion">
<p>Camera zoom factor [Float]</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
192
193
194</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'rdoc-sources/FXGLViewer.rb', line 192</span>
<span class='kw'>def</span> <span class='id identifier rubyid_zoom'>zoom</span>
<span class='ivar'>@zoom</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
</div>
<div id="class_method_details" class="method_details_list">
<h2>Class Method Details</h2>
<div class="method_details first">
<h3 class="signature first" id="objectType-class_method">
.<strong>objectType</strong> ⇒ <tt>Object</tt>
</h3><div class="docstring">
<div class="discussion">
<p>Returns the FXDragType for FXGLObject</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
247</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'rdoc-sources/FXGLViewer.rb', line 247</span>
<span class='kw'>def</span> <span class='const'><span class='object_link'><a href="" title="Fox::FXGLViewer (class)">FXGLViewer</a></span></span><span class='period'>.</span><span class='id identifier rubyid_objectType'>objectType</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
<h3 class="signature " id="objectTypeName-class_method">
.<strong>objectTypeName</strong> ⇒ <tt>Object</tt>
</h3><div class="docstring">
<div class="discussion">
<p>Returns the drag type name</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
250</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'rdoc-sources/FXGLViewer.rb', line 250</span>
<span class='kw'>def</span> <span class='const'><span class='object_link'><a href="" title="Fox::FXGLViewer (class)">FXGLViewer</a></span></span><span class='period'>.</span><span class='id identifier rubyid_objectTypeName'>objectTypeName</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
</div>
<div id="instance_method_details" class="method_details_list">
<h2>Instance Method Details</h2>
<div class="method_details first">
<h3 class="signature first" id="doesTurbo?-instance_method">
#<strong>doesTurbo?</strong> ⇒ <tt>Boolean</tt>
</h3><div class="docstring">
<div class="discussion">
<p>When drawing a GL object, if doesTurbo? returns <code>true</code>, the object may choose to perform a reduced complexity drawing as the user is interactively manipulating; another update will be done later when the full complexity drawing can be performed again.</p>
</div>
</div>
<div class="tags">
<p class="tag_title">Returns:</p>
<ul class="return">
<li>
<span class='type'>(<tt>Boolean</tt>)</span>
</li>
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
318</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'rdoc-sources/FXGLViewer.rb', line 318</span>
<span class='kw'>def</span> <span class='id identifier rubyid_doesTurbo?'>doesTurbo?</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
<h3 class="signature " id="eyeToScreen-instance_method">
#<strong>eyeToScreen</strong>(e) ⇒ <tt>Object</tt>
</h3><div class="docstring">
<div class="discussion">
<p>Translate eye-coordinate to screen coordinate. Returns a 2-element array [sx, sy] containing the screen coordinate.</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
277</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'rdoc-sources/FXGLViewer.rb', line 277</span>
<span class='kw'>def</span> <span class='id identifier rubyid_eyeToScreen'>eyeToScreen</span><span class='lparen'>(</span><span class='id identifier rubyid_e'>e</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
<h3 class="signature " id="eyeToWorld-instance_method">
#<strong>eyeToWorld</strong>(e) ⇒ <tt>Object</tt>
</h3><div class="docstring">
<div class="discussion">
<p>Translate eye coordinate to eye coordinate</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
292</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'rdoc-sources/FXGLViewer.rb', line 292</span>
<span class='kw'>def</span> <span class='id identifier rubyid_eyeToWorld'>eyeToWorld</span><span class='lparen'>(</span><span class='id identifier rubyid_e'>e</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
<h3 class="signature " id="fitToBounds-instance_method">
#<strong>fitToBounds</strong>(box) ⇒ <tt>Object</tt>
</h3><div class="docstring">
<div class="discussion">
<p>Fit viewer to the given bounding box</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
271</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'rdoc-sources/FXGLViewer.rb', line 271</span>
<span class='kw'>def</span> <span class='id identifier rubyid_fitToBounds'>fitToBounds</span><span class='lparen'>(</span><span class='id identifier rubyid_box'>box</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
<h3 class="signature " id="getBackgroundColor-instance_method">
#<strong>getBackgroundColor</strong>(bottom = false) ⇒ <tt>Object</tt>
</h3><div class="docstring">
<div class="discussion">
<p>Return top or bottom window background color.</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
329</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'rdoc-sources/FXGLViewer.rb', line 329</span>
<span class='kw'>def</span> <span class='id identifier rubyid_getBackgroundColor'>getBackgroundColor</span><span class='lparen'>(</span><span class='id identifier rubyid_bottom'>bottom</span><span class='op'>=</span><span class='kw'>false</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
<h3 class="signature " id="getBoreVector-instance_method">
#<strong>getBoreVector</strong>(sx, sy) ⇒ <tt>Object</tt>
</h3><div class="docstring">
<div class="discussion">
<p>Return boresight vector (an array of two arrays)</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
301</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'rdoc-sources/FXGLViewer.rb', line 301</span>
<span class='kw'>def</span> <span class='id identifier rubyid_getBoreVector'>getBoreVector</span><span class='lparen'>(</span><span class='id identifier rubyid_sx'>sx</span><span class='comma'>,</span> <span class='id identifier rubyid_sy'>sy</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
<h3 class="signature " id="lasso-instance_method">
#<strong>lasso</strong>(x1, y1, x2, y2) ⇒ <tt>Object</tt>
</h3><div class="docstring">
<div class="discussion">
<p>Return an array of all objects in the given rectangle</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
265</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'rdoc-sources/FXGLViewer.rb', line 265</span>
<span class='kw'>def</span> <span class='id identifier rubyid_lasso'>lasso</span><span class='lparen'>(</span><span class='id identifier rubyid_x1'>x1</span><span class='comma'>,</span> <span class='id identifier rubyid_y1'>y1</span><span class='comma'>,</span> <span class='id identifier rubyid_x2'>x2</span><span class='comma'>,</span> <span class='id identifier rubyid_y2'>y2</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
<h3 class="signature " id="locked?-instance_method">
#<strong>locked?</strong> ⇒ <tt>Boolean</tt>
</h3><div class="docstring">
<div class="discussion">
<p>Returns <code>true</code> if the viewer is locked</p>
</div>
</div>
<div class="tags">
<p class="tag_title">Returns:</p>
<ul class="return">
<li>
<span class='type'>(<tt>Boolean</tt>)</span>
</li>
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
304</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'rdoc-sources/FXGLViewer.rb', line 304</span>
<span class='kw'>def</span> <span class='id identifier rubyid_locked?'>locked?</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
<h3 class="signature " id="readFeedback-instance_method">
#<strong>readFeedback</strong>(x, y, w, h) ⇒ <tt>Object</tt>
</h3><div class="docstring">
<div class="discussion">
<p>Read the feedback buffer containing the current scene.</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
310</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'rdoc-sources/FXGLViewer.rb', line 310</span>
<span class='kw'>def</span> <span class='id identifier rubyid_readFeedback'>readFeedback</span><span class='lparen'>(</span><span class='id identifier rubyid_x'>x</span><span class='comma'>,</span> <span class='id identifier rubyid_y'>y</span><span class='comma'>,</span> <span class='id identifier rubyid_w'>w</span><span class='comma'>,</span> <span class='id identifier rubyid_h'>h</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
<h3 class="signature " id="readPixels-instance_method">
#<strong>readPixels</strong>(x, y, w, h) ⇒ <tt>Object</tt>
</h3><div class="docstring">
<div class="discussion">
<p>Read the pixels off the screen as R,G,B tuples.</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
307</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'rdoc-sources/FXGLViewer.rb', line 307</span>
<span class='kw'>def</span> <span class='id identifier rubyid_readPixels'>readPixels</span><span class='lparen'>(</span><span class='id identifier rubyid_x'>x</span><span class='comma'>,</span> <span class='id identifier rubyid_y'>y</span><span class='comma'>,</span> <span class='id identifier rubyid_w'>w</span><span class='comma'>,</span> <span class='id identifier rubyid_h'>h</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
<h3 class="signature " id="screenToEye-instance_method">
#<strong>screenToEye</strong>(sx, sy, eyez = 0.0) ⇒ <tt>Object</tt>
</h3><div class="docstring">
<div class="discussion">
<p>Translate screen coordinate to eye coordinate at the given depth.</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
280</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'rdoc-sources/FXGLViewer.rb', line 280</span>
<span class='kw'>def</span> <span class='id identifier rubyid_screenToEye'>screenToEye</span><span class='lparen'>(</span><span class='id identifier rubyid_sx'>sx</span><span class='comma'>,</span> <span class='id identifier rubyid_sy'>sy</span><span class='comma'>,</span> <span class='id identifier rubyid_eyez'>eyez</span><span class='op'>=</span><span class='float'>0.0</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
<h3 class="signature " id="screenToTarget-instance_method">
#<strong>screenToTarget</strong>(sx, sy) ⇒ <tt>Object</tt>
</h3><div class="docstring">
<div class="discussion">
<p>Translate screen coordinate to eye coordinate at the target point depth</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
283</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'rdoc-sources/FXGLViewer.rb', line 283</span>
<span class='kw'>def</span> <span class='id identifier rubyid_screenToTarget'>screenToTarget</span><span class='lparen'>(</span><span class='id identifier rubyid_sx'>sx</span><span class='comma'>,</span> <span class='id identifier rubyid_sy'>sy</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
<h3 class="signature " id="setBackgroundColor-instance_method">
#<strong>setBackgroundColor</strong>(clr, bottom = MAYBE) ⇒ <tt>Object</tt>
</h3><div class="docstring">
<div class="discussion">
<p>Change top, bottom or both background colors.</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
326</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'rdoc-sources/FXGLViewer.rb', line 326</span>
<span class='kw'>def</span> <span class='id identifier rubyid_setBackgroundColor'>setBackgroundColor</span><span class='lparen'>(</span><span class='id identifier rubyid_clr'>clr</span><span class='comma'>,</span> <span class='id identifier rubyid_bottom'>bottom</span><span class='op'>=</span><span class='const'>MAYBE</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
<h3 class="signature " id="setBounds-instance_method">
#<strong>setBounds</strong>(box) ⇒ <tt>Object</tt>
</h3><div class="docstring">
<div class="discussion">
<p>Change the model bounding box; this adjusts the viewer</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
268</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'rdoc-sources/FXGLViewer.rb', line 268</span>
<span class='kw'>def</span> <span class='id identifier rubyid_setBounds'>setBounds</span><span class='lparen'>(</span><span class='id identifier rubyid_box'>box</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
<h3 class="signature " id="translate-instance_method">
#<strong>translate</strong>(vec) ⇒ <tt>Object</tt>
</h3><div class="docstring">
<div class="discussion">
<p>Translate object center</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
298</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'rdoc-sources/FXGLViewer.rb', line 298</span>
<span class='kw'>def</span> <span class='id identifier rubyid_translate'>translate</span><span class='lparen'>(</span><span class='id identifier rubyid_vec'>vec</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
<h3 class="signature " id="turboMode?-instance_method">
#<strong>turboMode?</strong> ⇒ <tt>Boolean</tt>
</h3><div class="docstring">
<div class="discussion">
<p>Returns <code>true</code> if turbo mode is enabled</p>
</div>
</div>
<div class="tags">
<p class="tag_title">Returns:</p>
<ul class="return">
<li>
<span class='type'>(<tt>Boolean</tt>)</span>
</li>
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
321</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'rdoc-sources/FXGLViewer.rb', line 321</span>
<span class='kw'>def</span> <span class='id identifier rubyid_turboMode?'>turboMode?</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
<h3 class="signature " id="worldToEye-instance_method">
#<strong>worldToEye</strong>(w) ⇒ <tt>Object</tt>
</h3><div class="docstring">
<div class="discussion">
<p>Translate world coordinate to eye coordinate</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
286</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'rdoc-sources/FXGLViewer.rb', line 286</span>
<span class='kw'>def</span> <span class='id identifier rubyid_worldToEye'>worldToEye</span><span class='lparen'>(</span><span class='id identifier rubyid_w'>w</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
<h3 class="signature " id="worldToEyeZ-instance_method">
#<strong>worldToEyeZ</strong>(w) ⇒ <tt>Object</tt>
</h3><div class="docstring">
<div class="discussion">
<p>Translate world coordinate to eye coordinate depth</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
289</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'rdoc-sources/FXGLViewer.rb', line 289</span>
<span class='kw'>def</span> <span class='id identifier rubyid_worldToEyeZ'>worldToEyeZ</span><span class='lparen'>(</span><span class='id identifier rubyid_w'>w</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
<h3 class="signature " id="worldVector-instance_method">
#<strong>worldVector</strong>(fx, fy, tx, ty) ⇒ <tt>Object</tt>
</h3><div class="docstring">
<div class="discussion">
<p>Calculate world coordinate vector from screen movement</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
295</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'rdoc-sources/FXGLViewer.rb', line 295</span>
<span class='kw'>def</span> <span class='id identifier rubyid_worldVector'>worldVector</span><span class='lparen'>(</span><span class='id identifier rubyid_fx'>fx</span><span class='comma'>,</span> <span class='id identifier rubyid_fy'>fy</span><span class='comma'>,</span> <span class='id identifier rubyid_tx'>tx</span><span class='comma'>,</span> <span class='id identifier rubyid_ty'>ty</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
</div>
</div>
<div id="footer">
Generated on Mon Jan 2 11:47:42 2023 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.28 (ruby-3.1.2).
</div>
</div>
</body>
</html>