1、INCITS/ISO/IEC 9636-5-1991(R1997)(formerly ANSI/ISO/IEC 9636-5-1991 (R1997)for Information Technology -Computer Graphics -Interfacing Techniques forDialogues with Graphical Devices (CGI) -Functional Specification -Part 5: Input and EchoingANSI/ISO/IEC 9636-5-l 991 Redesignation of ANSI X3.161 (never
2、 published) American National Standard for information Technology - Computer Graphics - Interfacing Techniques for Dialogues with Graphical Devices (CGI)- Functional Specification - Part 5: Input and Echoing Secretariat Computer and Business Equipment Manufacturers Association Approved August 6,1992
3、 American National Standards Institute, Inc. AmericanNationalStandardApproval of an American National Standard requires review by ANSI that therequirements for due process, consensus, and other criteria for approval havebeen met by the standards developer.Consensus is established when, in the judgme
4、nt of the ANSI Board of StandardsReview, substantial agreement has been reached by directly and materiallyaffected interests. Substantial agreement means much more than a simplemajority, but not necessarily unanimity. Consensus requires that all views andobjections be considered, and that a concerte
5、d effort be made toward theirresolution.The use of American National Standards is completely voluntary; their existencedoes not in any respect preclude anyone, whether he has approved the standardsor not, from manufacturing, marketing, purchasing, or using products, processes,or procedures not confo
6、rming to the standards.The American National Standards Institute does not develop standards and will inno circumstances give an interpretation of any American National Standard.Moreover, no person shall have the right or authority to issue an interpretation ofan American National Standard in the nam
7、e of the American National StandardsInstitute. Requests for interpretations should be addressed to the secretariat orsponsor whose name appears on the title page of this standard.CAUTION NOTICE: This American National Standard may be revised orwithdrawn at any time. The procedures of the American Na
8、tional StandardsInstitute require that action be taken periodically to reaffirm, revise, or withdrawthis standard. Purchasers of American National Standards may receive currentinformation on all standards by calling or writing the American National StandardsInstitute.Published byAmerican National St
9、andards Institute11 West 42nd Street, New York, New York 10036Copyright 1991 by Information Technology Industry Council (ITI)All rights reserved.These materials are subject to copyright claims of International Standardization Organization (ISO),International Electrotechnical Commission (IEC), Americ
10、an National Standards Institute (ANSI), andInformation Technology Industry Council (ITI). Not for resale. No part of this publication may bereproduced in any form, including an electronic retrieval system, without the prior written permission of ITI.All requests pertaining to this standard should be
11、 submitted to ITI, 1250 Eye Street NW, Washington, DC20005.Printed in the United States of AmericaV vi 1 2 Contents Page Foreword . Introduction . 1 scope . 2 Nonnative references 3 Concepts 3.1 Introduction . 3.2 Basic input model 33 Logical input devices 3.4 Measures 3.4.1 Measures of input class
12、LOCATOR . 3.4.2 Measures of input class STROKE 3.43 Measures of input class VALUATOR 3.4.4 Measures of input class CHOICE . 3.4.5 Measures of input class PICK . 3.4.6 Measures of input class STRING 3.4.7 Measures of input class RASTER . 3.4.8 Measures of input class GENERAL . 3.5 Coordinate systems
13、for VDC measures 3.6 Triggers 3.6.1 Trigger association 3.6.2 Timeouts . 3.63 The break action 3.7 Input methods and state model 3.7.1 Logical input device model 3.7.2 Request input 3.7.3 Sample input . 3.7.4 Remote echoing 3.75 Event input 3.8 Prompting, echoing, and acknowledgement . 3.8.1 Prompti
14、ng 3.8.2 Echoing . 3.83 Acknowledgement 3.9 Portioning of returned input data 3.10 State restrictions 3.11 mu* 4 Interactions with other parts of ISO/IEC 9636 . 4.1 Interactions with more than one part of ISO/IEC 9636 4.2 Interactions with ISO/IEC 9636-l (Overview). 43 Interactions with ISO/lEC 9636
15、-2 (Control) 4.4 Interactions with ISO/IEC 9636-3 (Output) 45 Interactions with ISO/IEC 96364 (Segments) . 4.6 Interactions with ISO/IEC 9636-6 (Raster). 5 Abstract specification of functions . 5.1 Introduction . 5.1.1 Data types employed . 5.1.2 Validity of returned information . 5.2 Input control
16、functions 52.1 INITIALIZE LOGICAL INPUT DEVICE 5.2.2 RELEASE LOGICAL INPUT DEVICE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 3 3 3 3 4 4 4 5 5 5 5 5 6 6 8 8 8 8 9 9 10 10 10 13 15 15 16 18 19 19 20 21 21
17、21 21 21 21 22 23 23 23 23 23 23 . . . Ill _ . . . .- . - - -1_ . . .,. , .,. . . . 5.23 ECHO CONTROLS 24 53.4 PUT CURRENT MEASURE . 25 5.25 ECHO DATA . 26 5.2.6 DEVICE DATA . 27 5.2.7 ASSOCIATE TRIGGERS 30 5.2.8 GET ADDITIONAL STROKE DATA 30 5.29 GET ADDITIONAL PICK DATA 31 5.2.10 GET ADDlTIONAL ST
18、RING DATA . 3 1 5.2.11 GET ADDlTIONAL RASTER DATA 32 5.3 Request and sample functions 32 53.1 REQUEST . . 32 5.3.2 SAMPLING STATE 34 5.33 SAMPLE 34 5.4 Echo request input functions 35 5.4.1 INITIALIZE ECHO REQUEST 35 5.4.2 ECHO REQUEST . . 36 5.5 Event input functions 38 55.1 INTTIALIZE EVENT QUEUE
19、. 38 5.5.2 RELEASE EVENT QUEUE 38 5.53 ENABLE EVENTS 39 5.5.4 DISABLE EVENTS . 39 5.5.5 EVENT QUEUE BLOCK CONTROL 40 5.5.6 FLUSH EVENTS . 40 5.5.7 FLUSH DEVICE EVENTS 40 5.5.8 AWAIT EVENT 41 5.5.9 DEQUEUE EVENT 42 5.5.10 EVENT QUEUE TRANSFER . 43 5.6 Echo output functions . 43 5.6.1 INTMALJZE ECHO O
20、UTPUT . 43 5.6.2 RELEASE ECHO OUTPUT 44 5.6.3 ECHO OUTPUT CONTROLS 44 5.6.4 PERFORM ACKNOWLEDGEMENT 45 5.6.5 UPDATE ECHO OUTPUT . 45 5.6.6 ECHO OUTPUT DATA 46 6 Input and echoing inquiry functions . 48 6.1 Introduction . 48 6.1.1 Data types employed 48 6.1.2 Validity of returned information 48 6.2 I
21、nput description table 48 6.2.1 INQUIRE INPUT CAPABILITY 48 6.2.2 INQUIRE LIST OF AVAILABLE INPUT DEVICES . 48 6.3 Class-independent logical input device description table 49 6.3.1 INQUIRE COMMON INPUT DEVICE PROPERTIES . 49 6.3.2 INQUIRE LIST OF SUPPORTED ECHO TYPES . 49 6.33 INQUIRE LIST OF SUPPOR
22、TED PROMFT TYPES 49 6.3.4 INQUIRE LIST OF SUPPORTED ACKNOWLEDGEMENT TYPES 50 63.5 INQUIRE LIST OF ASSOCIABLE TRIGGERS 50 6.4 Class-specific logical input device description table 50 6.4.1 INQUIRE LOCATOR CAPABILlTIES 50 6.4.2 INQUIRE STROKE CAPABILITIES . 5 1 6.4.3 INQUIRE CHOICE CAPABILITIES 5 1 6.
23、4.4 INQUIRE PICK CAPABILITIES 5 1 6.4.5 INQUIRE STRING CAPABILITIES 5 1 6.4.6 INQUIRE LIST OF AVAILABLE INPUT CHARACTER SETS 52 6.4.7 INQUIRE RASTER INPUT CAPABILlTIES . 52 6.4.8 INQUIRE LIST OF PERMITTED RASTER SPOT CENTRE SEPARATIONS . 52 6.4.9 INQUIRE GENERAL CAPABILlTIES 52 6.4.10 INQUIRE LIST O
24、F SUPPORTED GENERAL MEASURE FORMATS 53 6.5 Class-independent logical input device state list 53 6.5.1 INQUIRE COMMON LOGICAL INPUT DEVICE STATE 53 6.5.2 INQUIRE LIST OF ASSOCIATED TRIGGERS 53 6.6 6.7 6.8 6.9 6.53 INQUIRE ECHO DATA RECORD 54 65.4 INQUIRE INPUT DEVICE DATA RECORD 54 Class-specific log
25、ical input device state list . 54 6.6.1 INQUIRE LOCATOR STATE 54 6.6.2 INQUIRE STROKE STATE 55 6.6.3 INQUIRE VALUATOR STATE . 55 6.6.4 INQUIRE CHOICE STATE 56 6.65 INQUIRE PICK STATE 56 6.6.6 INQUIRE STRING STATE . 56 6.6.7 INQUIRE RASTER INPUT STATE . 57 6.6.8 INQUIRE GENERAL STATE . 57 Event input
26、 state list 57 6.7.1 INQUIRE EVENT INPUT STATE 57 Echo output description table 58 68.1 INQUIRE ECHO OUTPUT CAPABILJTIES 58 68.2 INQUIRE LIST OF ECHO OUTPUT ECHO TYPES . 58 6.83 INQUIRE LIST OF ECHO OUTPUT PROM Pl. TYPES 58 6.8.4 INQUIRE LIST OF ECHO OUTPUT ACKNOWLEDGEMENT TYPES . 59 6.85 INQUIRE LI
27、ST OF SUPPORTED GENERAL FORMAT IDENTIFIERS 59 Echo entity state list 59 69.1 INQUIRE LIST OF CURRENTLY EXISTING ECHO ENTITIES 59 6.10 Individual echo entity state list . 60 6.10.1 INQUIRE ECHO ENTlTY STATE . 60 6.10.2 INQUIRE ECHO OUTPUT DATA RECORD 60 7 CGI description tables and state lists 7.1 De
28、scription tables 7.1.1 Input capability . 7.13 Class-independent logical input capability . 7.13 Echo output capability. . 7.2 state lists 73.1 Input state 7.2.2 Class-independent logical input device state 7.23 Class-specific logical input device state . 7.2.4 Events 7.2s Echo entity state A Formal
29、 grammar of the functional specification B Input errors C Guidelines for CGI implementors . 61 61 61 61 63 64 64 64 65 67 68 69 92 94 V Foreword (This foreword is not part of American National Standard ANSI/ISO/IEC 9636-5-l 991. This document is identical to ISO/IEC 9636-5-l 991, and the following f
30、ive paragraphs are the original foreword as it appeared in that document.) IS0 (the International Organization for Standardization) and IEC (the International Electrotechnical Commission) form the specialized system for worldwide standardization. National bodies that are members of IS0 or IEC partic
31、ipate in the development of International Standards through technical committees established by the respective organization to deal with particular fields of technical activity. IS0 and IEC technical committees collaborate in fields of mutual interest. Other international organizations, governmental
32、 and non-governmental, in liaison with IS0 and IEC, also take part in the work. In the field of information technology, IS0 and IEC have established a joint technical committee, ISO/IEC JTC 1. Draft International Standards adopt- ed by the joint technical committee are circulated to national bodies
33、for voting. Publication as an International Standard requires approval by at least 75% of the national bodies casting a vote. International Standard ISO/IEC 9636-5 was prepared by Joint Technical Committee ISO/IEC JTC 1, information technology. ISO/IEC 9636 consists of the following parts, under the
34、 general title information technology - Computer graphics - Interfacing techniques for dialogues with graphical devices (CGI) - Functional specification: - Part 7: Overview, profiles, and conformance - Part 2: Control - Part 3: Output - Part 4: Segments - Part 5: Input and echoing - Part 6: Raster A
35、nnexes A and B form an integral part of this part of ISO/IEC 9636. Annex C is for information only. Requests for interpretation, suggestions for improvement or addenda, or defect reports are welcome. They should be sent to the X3 Secretariat, Computer and Business Equipment Manufacturers Association
36、, 1250 Eye Street, NW, Suite 200, Washington, DC 20005. This standard was processed and approved for submittal to ANSI by Accredited Standards Committee on Information Processing Systems, X3. Committee approval of the standard does not necessarily imply that all committee members voted for its appro
37、val. At the time it approved this standard, the X3 Committee had the following members: (Position Vacant), Chair Donald C. Loughry, Vice-Chair Joanne Flanagan, Secretary Organization Represented Name of Representative Allen-Bradley Company . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
38、. . . . . . . . . . . . . . . . . . . . . . . Ronald Reimer Joe Lenner (Alt.) American Library Association . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Paul Peters vi Organization Represented Name of Representative American Nuclear Society Geraldine C. Ma
39、in Sally Hartzell (Ah.) AMP, Inc. Edward Kelly Edward Mikoski (Alt.) Apple Computer, Inc Karen Higginbottom Association of the Institute for Certification of Computer Professionals (AICCP). Kenneth Zemrowski Eugene Dwyer (Alt.) AT . . ” ., ._ ISO/IEC 9636-S : 1991 Q 2 Normative references The follow
40、ing standards contain provisions which, through reference in this text, constitute provisions of this part of ISO/IEC 9636. At the time of publication, the editions indicated were valid. All standards are subject to revision, and parties to agreements based on this part of ISO/lEC 9636 are encourage
41、d to investigate the possibility of applying the most recent editions of the standards listed below. Members of IEC and IS0 maintain registers of currently valid International Standards. ISO/lEC 9636-l : 1991 Information technology - Computer graphics - Interfacing techniques for dialogues with grap
42、hical devices (CGI) - Functional specification - Part I: Overview, profiles, and conformance. ISO/lEC 9636-2 : 1991 Information technology - Computer graphics - Interfacing techniques for dialogues with graphical devices (CGI) -Functional specification -Part 2: Control. ISOAEC 9636-3 : 1991 Informat
43、ion technology - Computer graphics -Interfacing techniques for dialogues with graphical devices (CGI) -Functional specification -Part 3: Output. ISOflEC 9636-4 : 1991 Information technology - Computer graphics - Interfacing techniques for dialogues with graphical devices (CGI) - Functional specifica
44、tion -Part 4: Segments. ISOiIEC 9636-6 : 1991 Information technology - Computer graphics - Intelfacing techniques for dialogues with graphical devices (CGI) -Functional specification -Part 6: Raster. ISO/IEC 9637-l : -I Information technology - Computer graphics - Interfacing techniques for dialogue
45、s with graphical devices (CGI) - Data stream binding - Part 1: Character encoding. ISO/lEC 9637-2 : -) Information technology - Computer graphics - Inteqacing techniques for dialogues with graphical devices (CGI) -Data stream binding -Part 2: Binary encoding. ISOiIEC TR 9973 : 1988 Information proce
46、ssing - Procedures for registration of graphical items. l) To be published. 2 ISO/IEC 9636-5 : 1991 (E) 3 Concepts 3.1 Introduction This part of ISO/IEC 9636 defines those functions of the Computer Graphics Interface concerned with input and echoing. This functionality is divided into the following
47、areas - Input control functions, which provide control over initialization and deallocation of Logical Input Devices (LIDS), together with the means to tailor their characteristics. - Request and scmple functions, which permit LIDS to be used with Request and Sample input methods. - Echo request inp
48、ut functions, which permit LIDS to be used with the Echo Request input method, a special type of Request method in which changes to the LIDs measure value can be tracked by the client. - Event inputfunctions, which permit LIDS to be used with the Event input method, this allows the client to control
49、 a number of active LIDS simultaneously while concurrently performing graphical output. - Echo output functions, which allow values to be echoed on a given CGI Virtual Device when the source of such values was not the given device. - Input and echoing inquiry functions, which provide access to the description tables and state lists concerned with input and echoing. 3.2 Basic input model The functions specified by this part of ISO/IEC 9636 are defined in terms of a model of the operation of graphical input. This sub-clause defines the relationship between the top level concepts in