Editing MGED CMD knob

From BRL-CAD

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
[[Category:MGED|Knob]]
+
[[Category:MGED]]
[[Category:MGED view manipulation|Knob]]
+
 
 
=knob=
 
=knob=
 
__TOC__
 
__TOC__
Line 33: Line 33:
  
 
==Description==
 
==Description==
The <code>knob</code> command is used internally by MGED in the processing of knob input devices and is not recommended for users. The knob command provides a method for simulating knob input. With no options, it will display the current values for the knobs. With the <I>zap</I> or <I>zero</I> command provided, all the knob values will be reset to zero. If an <I>id</I> and <I>value</I> are provided, the specified knob setting will be simulated. If the <I>-i</I> option is specified, then the value provided will be used as an increment to be applied to the indicated knob. The knobs have different functions depending on the current mode. For example, if in primitive or matrix edit mode and a rotation or translation function is selected, the knob effects are applied to the edited object by default. However, the <I>-v</I> (view coordinates) and <I>-m</I> (model coordinates) options may be used to adjust the view without modifying primitives or matrices. The <I>-e</I> option allows the knob effects to be applied to the edited object when they would normally be applied to the view. The <I>-o</I> option allows the origin of rotation to be specified with <I>v</I>, <I>m</I>, <I>e</I>, and <I>k</I>, indicating view, model, and eye and keypoint, respectively. The units for <I>value</I> are degrees for rotation and local units for translation. The available <I>knob ids</I> are:
+
The &quot;knob&quot; command is used internally by MGED in the processing of knob input devices and is not recommended for users. The knob command provides a method for simulating knob input. With no options, it will display the current values for the knobs. With the <I>zap</I> or <I>zero</I>     command provided, all the knob values will be reset to zero. If an <I>id</I>     and <I>value</I> are provided, the specified knob setting will be simulated.     If the <I>-i</I> option is specified, then the value provided will be used     as an increment to be applied to the indicated knob. The knobs have different     functions depending on the current mode. For example, if in primitive or matrix     edit mode and a rotation or translation function is selected, the knob effects     are applied to the edited object by default. However, the <I>-v</I> (view     coordinates) and <I>-m</I> (model coordinates) options may be used to adjust     the view without modifying primitives or matrices. The <I>-e</I> option allows     the knob effects to be applied to the edited object when they would normally     be applied to the view. The <I>-o</I> option allows the origin of rotation     to be specified with <I>v</I>, <I>m</I>, <I>e</I>, and <I>k</I>, indicating     view, model, and eye and keypoint, respectively. The units for <I>value</I>     are degrees for rotation and local units for translation. The available <I>knob     ids</I> are:
 +
 
 +
<UL><FONT SIZE=-1>
 +
  <LI>'''x''' -- rate-based rotation about horizontal axis.
 +
  <LI>'''y''' -- rate-based rotation about vertical axis.
 +
  <LI>'''z''' -- rate-based rotation about axis normal to screen.
 +
  <LI>'''X''' -- rate-based translation in horizontal direction.
 +
  <LI>'''Y''' -- rate-based translation in vertical direction.
 +
  <LI>'''Z''' -- rate-based translation in direction normal to screen.
 +
  <LI>'''S''' -- rate-based Scale or Zoom.
 +
  <LI>'''ax''' -- absolute rotation about horizontal axis.
 +
  <LI>'''ay''' -- absolute rotation about vertical axis.
 +
  <LI>'''az''' -- absolute rotation about axis normal to screen.
 +
  <LI>'''aX''' -- absolute translation in horizontal direction.
 +
  <LI>'''aY''' -- absolute translation in vertical direction.
 +
  <LI>'''aZ''' -- absolute translation in direction normal to screen.
 +
  <LI>'''aS''' -- absolute Scale or Zoom.
 +
  <LI>'''xadc''' -- absolute translation of [[MGED_CMD_adc|adc]]    in horizontal direction (screen coordinates -2048 to +2048).
 +
  <LI>'''yadc''' -- absolute translation of [[MGED_CMD_adc|adc]]    in vertical direction (screen coordinates -2048 to +2048).
 +
  <LI>'''ang1''' -- absolute rotation of [[MGED_CMD_adc|adc]]    angle1 (degrees).
 +
  <LI>'''ang2''' -- absolute rotation of [[MGED_CMD_adc|adc]]    angle2 (degrees).
 +
  <LI>'''distadc''' -- distance setting of the [[MGED_CMD_adc|adc]]    (screen coordinates -2048 to +2048).
 +
</UL>
  
{|
 
|<code>x</code>
 
|rate-based rotation about horizontal axis.
 
|-
 
|<code>y</code>
 
|rate-based rotation about vertical axis.
 
|-
 
|<code>z</code>
 
|rate-based rotation about axis normal to screen.
 
|-
 
|<code>X</code>
 
|rate-based translation in horizontal direction.
 
|-
 
|<code>Y</code>
 
|rate-based translation in vertical direction.
 
|-
 
|<code>Z</code>
 
|rate-based translation in direction normal to screen.
 
|-
 
|<code>S</code>
 
|rate-based scale or zoom.
 
|-
 
|<code>ax</code>
 
|absolute rotation about horizontal axis.
 
|-
 
|<code>ay</code>
 
|absolute rotation about vertical axis.
 
|-
 
|<code>az</code>
 
|absolute rotation about axis normal to screen.
 
|-
 
|<code>aX</code>
 
|absolute translation in horizontal direction.
 
|-
 
|<code>aY</code>
 
|absolute translation in vertical direction.
 
|-
 
|<code>aZ</code>
 
|absolute translation in direction normal to screen.
 
|-
 
|<code>aS</code>
 
|absolute scale or zoom.
 
|-
 
|<code>xadc</code>
 
|absolute translation of [[MGED_CMD_adc|adc]] in horizontal direction (screen coordinates -2048 to +2048).
 
|-
 
|<code>yadc</code>
 
|absolute translation of [[MGED_CMD_adc|adc]] in vertical direction (screen coordinates -2048 to +2048).
 
|-
 
|<code>ang1</code>
 
|absolute rotation of [[MGED_CMD_adc|adc]] angle1 (degrees).
 
|-
 
|<code>ang2</code>
 
|absolute rotation of [[MGED_CMD_adc|adc]] angle2 (degrees).
 
|-
 
|<code>distadc</code>
 
|distance setting of the [[MGED_CMD_adc|adc]] (screen coordinates -2048 to +2048).
 
|}
 
  
 
==Example(s)==
 
==Example(s)==

Please note that all contributions to BRL-CAD may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see BRL-CAD:Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)