Debian Codegraph @

doc/geomview.html/Point-of-Interest.html

raw symbols SCIP
1 <html lang="en">
2 <head>
3 <title>Point of Interest - Geomview Manual</title>
4 <meta http-equiv="Content-Type" content="text/html">
5 <meta name="description" content="Geomview Manual">
6 <meta name="generator" content="makeinfo 4.13">
7 <link title="Top" rel="start" href="index.html#Top">
8 <link rel="up" href="Mouse-Motions.html#Mouse-Motions" title="Mouse Motions">
9 <link rel="prev" href="Mouse-Motions.html#Mouse-Motions" title="Mouse Motions">
10 <link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
11 <meta http-equiv="Content-Style-Type" content="text/css">
12 <style type="text/css"><!--
13 pre.display { font-family:inherit }
14 pre.format { font-family:inherit }
15 pre.smalldisplay { font-family:inherit; font-size:smaller }
16 pre.smallformat { font-family:inherit; font-size:smaller }
17 pre.smallexample { font-size:smaller }
18 pre.smalllisp { font-size:smaller }
19 span.sc { font-variant:small-caps }
20 span.roman { font-family:serif; font-weight:normal; }
21 span.sansserif { font-family:sans-serif; font-weight:normal; }
22 --></style>
23 </head>
24 <body>
25 <div class="node">
26 <a name="Point-of-Interest"></a>
27 <p>
28 Previous:&nbsp;<a rel="previous" accesskey="p" href="Mouse-Motions.html#Mouse-Motions">Mouse Motions</a>,
29 Up:&nbsp;<a rel="up" accesskey="u" href="Mouse-Motions.html#Mouse-Motions">Mouse Motions</a>
30 <hr>
31 </div>
32
33 <h4 class="subsection">3.5.1 Selecting a Point of Interest</h4>
34
35 <p>It is sometimes useful to specify a particular point on some object in a
36 geomview window as the center point for mouse motions. You can do this
37 by shift-clicking the right mouse button (i.e. click it once
38 while holding down the shift key on the keyboard) with the cursor over
39 the desired point. This point then becomes the <em>point of
40 interest</em>. The point of interest must be on an existing object.
41
42 <p>Selecting a point of interest simplifies examining a small portion of a
43 larger object. Shift-right-click on an interesting point, and select
44 <em>Orbit</em> mode. Use the middle mouse button to approach, and the
45 left mouse to orbit the point, examining the region from different
46 directions.
47
48 <p>When you have selected a point of interest, the current center object
49 changes to an object named "CENTER", which is an invisible object
50 located at the point of interest. In addition, mouse motions for the
51 window in which you made the selection are adjusted so that the point of
52 interest follows the mouse.
53
54 <p>You can change the point of interest at any time by selecting a new one
55 by shift-clicking the right mouse button again. You can cancel
56 the point of interest altogether by shift-clicking the right
57 mouse button with the cursor on the background (i.e. not on any object).
58 This changes the center object back to its default value, "target".
59
60 <p>The object named "CENTER", which serves as the center object for the
61 point of interest, is a special kind of geom called an "alien". It does
62 not appear in the <em>Targets</em> browser. By default it has no geometry
63 associated with it and hence is invisible. You can, however, explicitly
64 give it some geometry using a GCL command, causing it to appear. Use
65 the <code>geometry</code> command for this: <code>(geometry CENTER
66 </code><var>geometry</var><code>)</code>, where <var>geometry</var> is any valid geometry. For
67 example, <code>(geometry CENTER { &lt; xyz.vect })</code> causes the file
68 <samp><span class="file">xyz.vect</span></samp>, which is one of the standard example files distributed
69 with geomview, to be used at the geometry for CENTER. See <a href="geometry.html#geometry"><code>(geometry ...)</code></a>.
70
71 <p>What happens internally when you select a point of interest is
72 that the center is set to the object called CENTER, and that object is
73 positioned at the point of interest. In addition, in order for mouse
74 motions to track the point of interest, the current camera's focal
75 length is set to be the distance from the camera to the point of
76 interest. You can accomplish this via GCL with the following commands:
77 <pre class="example"> (if (real-id CENTER) nil (new-alien CENTER {}))
78 (ui-center CENTER)
79 (transform-set CENTER universe universe translate <var>x</var> <var>y</var> <var>z</var>)
80 (merge camera <var>cam-id</var> { focus <var>d</var> })
81 </pre>
82 <p class="noindent">where <code>(</code><var>x</var><code>,</code><var>y</var><code>,</code><var>z</var><code>)</code> are the (universe) coordinates of
83 the point of interest, and <var>d</var> is the distance from that point to
84 the current camera, <var>cam-id</var>. The first command above creates the
85 "alien" CENTER if it does not yet exist.
86
87 <!-- ================================================================ -->
88 </body></html>
89