Sun Microsystems · 800-1256-04 · 202 pp.
Sun Microsystems 800-1256-04 SunCGI Reference Manual
Руководство по использованию и программированию SunCGI для Sun System Release 2.3.
Related manuals
Document text
Part Number: 800-1256-04 Version: C of 17 March 1986 For: Sun System Release 2.3 0 SunCGI Reference Manual 0 0
0 Acknowledgements Copyright© 1984, 1985, 1986 by Sun Microsystems. This publication is protected by Federal Copyright Law, with all rights reserved. No part of this publication may be reproduced, stored in a retrieval system, translated, transcribed, or transmitted, in any form, or by any means manual, electric, electronic, electro-magnetic, mechanical, chemical, optical, or other- wise, without prior explicit written permission from Sun Microsystems. 0 0
0 Contents Preface .................................................................................................................................................... X\' Chapter 1 Introduction .......................................................................................................... 3 I.I. Using SunCGI ................................................................................................................... 3 1.2. The SunCGI Lint Library ........................................................................................... 5 1.3. Overview ofSunCGI .....................................................................................................
5 Initialization and Termination ............................................................................... 5 0 Output Primitives ........................................................................................................ .. 6 Input ..................................................................................................................................... . Attributes .......................................................................................................................... . 6 Errors ...................................................................................................................................
6 6 Programming Tips ........................................................................................................ 7 Appendices ....................................................................................................................... 7 1.4. References ............................................................................................................................ 7 Chapter 2 Initializing and Terminating SunCGI ..................... :........................ 11 2.1. View Surface Initialization and Selection .........................................................
11 Open CGI (SunCGI Extension) ............................................................................ 12 Open View Surface (SunCGI Extension) ....................................................... 13 Activate View Surface (SunCGI Extension) ................................................. 16 Deactivate View Surface (SunCGI Extension) ............................................ 16 Close View Surface (SunCGI Extension) ....................................................... 16 Close CGI (SunCGI Extension) ........................................................................... 16 2.2.
View Surface Control .................................................................................................... 17 0 VDC Extent ...................................................................................................................... 17 -iii-
Contents Continued 19 0 Device Viewport .......................................................................................................... . Clip Indicator ................................................................................................................ .. Clip Rectangle ............................................................................................................... . 20 19 Hard Reset ........................................................................................................................ . 20 Reset to Defaults .......................................................................................................... .
20 Clear View Surface ..................................................................................................... . 21 Clear Control .................................................................................................................. . 21 Set Error Warning Mask: .......................................................................................... . 22 2.3. Running SunCGI with Sun View ............................................................................ . 22 Set Up SIGWINCH (SunCGI Extension) ...................................................... . 23 2.4.
Interface Negotiation ................................................................................................... .. 24 Inquire Device Identification ................................................................................. . 25 25 Inquire Device Class ................................................................................................. .. Inquire Physical Coordinate System ................................................................. . 25 Inquire Output Function Set .................................................................................. .
26 Inquire VDC Type ....................................................................................................... . 26 Inquire Output Capabilities .................................................................................... . 2.5. Input Capability Inquiries .......................................................................................... . 27 O· 27 Inquire Input Capabilities ....................................................................................... . 27 Inquire LID Capabilities .......................................................................................... .
28 Inquire Trigger Capabilities ................................................................................... . 29 Chapter 3 Output ...................................................................................................................... . 3.1. Geometrical Output Primitives .............................................................................. .. 33 33 Polyline .............................................................................................................................. . 34 Disjoint Polyline ....... - ................................................................................................ ..
34 Polymarker ...................................................................................................................... . 35 Polygon .............................................................................................................................. . 35 Partial Polygon .............................................................................................................. . 36 Rectangle .......................................................................................................................... . 38 Circle ................................................................................................................................... .
38 Circular Arc Center .................................................................................................... . 38 Circular Arc Center Close ....................................................................................... . 39 0 -iv-