This book provides information about creating and animating GLG drawings, using the Glg Graphics Builder and editing Glg objects. It contains the following chapters:
GLG User's Manual and Builder Reference
Introduction to GLG
An overview of the GLG Toolkit and its components.
Structure of a GLG Drawing
A description of the internal structure of a GLG drawing. The material in this and the next chapter are important for anybody who wants to edit or create a GLG drawing.
GLG Objects
A description of each of the objects that make up a GLG drawing.
Integrated Features of the GLG Drawing
A description of the integrated features of the GLG drawing such as zooming and panning, object tooltips, custom events and others.
Input Objects
A description of the interaction handlers and input objects.
Using the GLG Graphics Builder
An introduction to the use of the GLG Graphics Builder. This program is used to create, edit, and test GLG drawings.
GLG Graphics Builder Menus
A reference for the GLG Graphics Builder menus and dialogs.
This guide assumes that you are conversant with the basic concepts of computer graphics programming. For a comprehensive discussion of three dimensional computer graphics, we recommend Computer Graphics: Principles and Practice , Foley, Van Dam, Feiner, and Hughes. Second edition, 1990; Addison-Wesley, Reading MA.
Please note that although the illustrations in this document represent the UNIX version of the GLG Graphics Builder, the information it contains is equally relevant to Microsoft Windows users. The two versions present the same functionality in equivalent user interfaces, with minimal, cosmetic differences caused by the different platforms.
Overview 15
OpenGL or Native Windowing System Renderer 16
The Application Program Interface 18
Objects 21
Supplying Data for Animation 24
Tags 27
Constraints 27
Attributes 29
The View 35
Lighting 37
Integrated Features of the GLG Drawing 39
Integrated Zooming and Panning 39
Polygon 47
Arc 49
Spline 50
Text 50
Marker 53
Image 54
GIS Object 55
Viewport 56
Screen 61
Group 64
Series 65
Reference 67
Polyline 71
Polysurface 73
Connector 73
Frame 74
Data 75
Attribute 76
History 77
Alias 78
Rendering 78
Colortable 81
Font Table 83
Font 84
Light Object 85
Integrated Zooming and Panning 97
MouseClick Feedback and Toggle 99
Internationalization and Localization Support 101
I18N Support 101
Input Handlers 103
Installing an Input Handler 105
Common Input Handler Resources 106
GlgSlider 106
GlgNSlider 108
GlgKnob 109
GlgButton 111
GlgNButton 112
GlgText 112
GlgNText 113
GlgSpinner 113
GlgNList 115
GlgNOption 117
GlgMenu 118
GlgBrowser and GlgFontBrowser 119
GlgPalette 120
GlgClock 121
GlgTimer 121
Native Widgets 123
Viewing the Object Hierarchy 128
Starting and Stopping the Builder 128
GLG Graphics Builder Features 129
Stopping the GLG Graphics Builder 130
Saving a Drawing 130
Editing Objects 134
Object Layout and Alignment 138
Constraining Similar Attributes 140
Constraining Different Attributes 141
Constraining Control Points 142
Traversing Transformed Objects (advanced) 146
Using View and Screen Transformations of the Viewport (advanced) 146
Using Resources 146
Guidelines for Naming Resources 148
Adding and Deleting Resources 148
Using Tags 151
Reusing Objects, Attributes, and Transformations 153
Marking and Replicating Transformations and Other Objects 156
Changing the View Projection 160
Customizing the View Projection 160
Viewing Using Different Coordinate Systems 160
Associating Objects Together 162
Generating Objects from a Template 163
Creating Animated Lines and Surfaces 165
Attaching Objects to a Frame 166
Connecting Objects with a Path 167
Defining Extended Set of Rendering and Text Box Attributes 167
Scrolling Attributes of Objects with Index-based Names 168
Adding Custom Properties to Objects 169
Defining Logical Names using Aliases 169
Geometrical Transformation Animation 171
Creating Copies and Animating Them 172
File 177
New Widget 177
New 178
Reset Drawing 178
Open 178
Open URL 179
Recent Drawings 179
Save 179
SaveAs 179
Load Object 180
Recent Objects 180
Save Object 180
Print 180
Save Image 182
Save Image Full 182
Export Strings 182
Import Strings 182
Export Tags 182
Import Tags 182
Exit 182
Palettes 183
Custom Objects 183
Read Palette 183
Read Directory 183
Palette Description File Format 184
Adding Custom Palettes to the Builder 185
Edit 185
Undo 185
Undo History 185
Select All 186
Cut 186
Copy 186
Paste 186
Delete 187
Define Clone Transformation 187
Full Clone 188
Weak Clone 188
Strong Clone 188
View 189
Set View 189
Adjust View 189
Zooming 191
Pan To 192
Traverse 192
Hierarchy Down 192
Up 192
Set Focus 193
Main Focus 193
Select Next 193
Select Bottom 194
Edit All 194
Arrange 195
Add or Delete Object from Group 197
Select Next 197
Select Bottom 197
Select All 198
Permanent Group 198
Explode 198
Reorder 199
Layout 200
Layout Toolbox 200
Align 200
Make Same Size 201
Distribute 201
Space Evenly 202
Select Anchor 202
Align Points 202
More 202
Object 202
Create 202
Edit Toolbox 213
Properties 213
Object Resources 215
All Resources 215
Tags 216
Add Dynamics 216
Edit Dynamics 217
Delete Dynamics 217
Transform Points 217
Add Tooltip 219
Edit/Delete Tooltip Or Event 219
Delete All Custom Properties 221
Aliases 221
Add Alias 221
Edit Aliases 222
Mark Aliases 222
History 222
Add History 222
Edit History 223
Run 223
Start 223
Stop 224
Options 224
Draw Grid 225
Snap To 225
Save Format 225
Save Compressed 226
Show Axis 226
Paste Clone Type 227
Detach Palettes 227
Scrollbars 227
Toolbar 227
Modal Dialogs 228
Save Layout 228