Graphical Input Data: Locator Devices
Graphical Input Data: Locator Devices
Graphics programs use several kinds of input data, such as coordinate positions,
attribute values, character-string specifications, geometric-transformation values,
viewing conditions, and illumination parameters. Many graphics packages,
including the International Standards Organization (ISO) and American National
Standards Institute (ANSI) standards, provide an extensive set of input functions
for processing such data. But input procedures require interaction with display-
window managers and specific hardware devices. Therefore, some graphics
systems, particularly those that provide mainly device-independent functions,
often include relatively few interactive procedures for dealing with input data. A
standard organization for input procedures in a graphics package is to classify the
functions according to the type of data that is to be processed by each function.
This scheme allows any physical device, such as a keyboard or a mouse, to input
any data class, although most input devices can handle some data types better
than others
Locator Devices
Interactive selection of a coordinate point is typically done by positioning
a screen cursor in a displayed scene. This can be achieved using devices
like a mouse, touchpad, joystick, trackball, spaceball, thumbwheel, dial,
hand cursor, or digitizer stylus. Buttons, keys, or switches may also be used
to select processing options for the chosen location.
Keyboards:
General-purpose keyboards have cursor-control keys to move the
cursor up, down, left, and right.
Additional keys can move the cursor diagonally.
Holding down a key allows rapid cursor movement.
Some keyboards include a touchpad, joystick, or trackball for
cursor positioning.
Keyboards can also input numerical values or codes for coordinate
positions.
Other Devices:
Light pens: Detect screen positions by sensing light from screen
phosphors, requiring special implementation.
Stroke Devices
Stroke devices input a sequence of coordinate positions. Devices like a mouse,
trackball, joystick, or hand cursor generate continuous coordinate values as they
move. A graphics tablet is a common stroke device. When in "continuous" mode,
moving the cursor across the tablet produces a stream of coordinates. This is used
in paintbrush systems for drawing and in engineering systems for tracing and
digitizing layouts.
String Devices
In computer graphics, keyboards are the main input devices for string input.
Strings, or sequences of characters, are commonly used to label pictures or
graphs. For special applications, devices like stroke or locator-type tools can
sketch individual characters on-screen. These characters are then interpreted by
pattern recognition programs using predefined patterns stored in a dictionary.
Valuator Devices
Valuator devices in graphics programs are used to set numerical values for tasks
like geometric transformations, viewing angles, and lighting parameters. They're
also handy for adjusting physical factors such as temperature or voltage. These
devices include control panels with dials or slide potentiometers calibrated to
specific ranges. Dials convert rotations into voltages, which translate into
numeric values like -10.5 to 25.5. Slide potentiometers work similarly but with
linear movements.
Keyboards with numeric keys can also serve as valuator devices, though dials and
slide potentiometers offer quicker input. Joysticks, trackballs, and tablets can be
adapted for valuator input by interpreting pressure or movement, translating it
into scalar values. Graphical representations like sliders and menus on a monitor
can also be used for input, with selected values displayed for user verification
elsewhere on the screen.
Choice Devices