Tools are defin'/> Definition and use of higher-level graphics input tools

【24h】

Definition and use of higher-level graphics input tools

机译:定义和使用高级图形输入工具

获取原文

摘要

A proposal is made for the definition of 'tools', high-level graphics input functions based on the six primitive input classes Clock, Pick, Button, Key, Valuator and Locator.

Tools are defined in terms of input expressions, the operands of which are themselves tools, the definition of which may be nested inside this tool. Input expressions are written much like production rules in phrase structure grammars. Determining whether a tool is 'satisfied' can therefore be done most advantageously by an input expression parser.

Tool definitions may occur in-line or stored in a library. They are activated by a 'create' primitive, which creates an instance of the tool and causes the input expression to be made active. The parser then determines whether a tool is actually used. Following a 'read' issued to the tool, the tool body generates the returned information as specified by the tool definition. Tools may be explicitly freed by a 'free' primitive; in the case of nesting, tools are freedimplicitly when the surrounding tool is freed.

Using this approach to higher-level input primitives, a programmer does not have to think about graphics input in terms of awaiting events, interrupts and the like. The creation of a defined tool implies a function awaiting action from the tool.

机译:

根据“时钟”,“拾取”,“按钮”,“键”,“估值器”和“定位器”这六个基本输入类,提出了“工具”,高级图形输入功能的定义建议。

根据输入表达式定义工具,输入表达式的操作数本身就是工具,其定义可以嵌套在此工具内。输入表达式在短语结构语法中的写法与生产规则非常相似。因此,可以通过输入表达式解析器最有利地确定工具是否“满意”。

工具定义可以在线出现或存储在库中。它们由“创建”原语激活,该原语创建工具的实例并使输入表达式变为活动状态。然后,解析器确定是否实际使用了工具。在向工具发出“读取”信息之后,工具主体会生成由工具定义指定的返回信息。可以通过“免费”原语显式地释放工具。在嵌套的情况下,释放周围的工具会隐式释放工具。

使用这种方法处理高级输入基元时,程序员不必在等待事件,中断等方面考虑图形输入。创建已定义的工具意味着需要等待该工具执行操作的功能。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号