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 | + | [[Category:MGED]] |
− | + | ||
=knob= | =knob= | ||
__TOC__ | __TOC__ | ||
Line 33: | Line 33: | ||
==Description== | ==Description== | ||
− | The | + | The "knob" 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> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
==Example(s)== | ==Example(s)== |