GLG Toolkit, C# Class Library
Version 4.5
|
Overview
The GLG C# Class Library is a C#-based object engine that renders GLG objects in the C# environment. The Toolkit takes care of the low-level details of the rendering process, such as optimized damage repair, screen-resolution independent coordinate conversion, transparent zooming and panning, double-buffering and other coding-intensive driver-level tasks.
It provides a high-level graphical object model which allows an application developer to concentrate on the logic of the application, speeding up the development process and dramatically increasing the developer's productivity.
The Toolkit contains the Graphics Builder, a graphical editor used to create graphical objects and define their attributes and dynamic properties without tedious programming. The resulting drawing is then saved into a file and loaded into a C# application using the supplied GLG C# Library DLL. A simplified HMI Configurator for end users is also provided.
The GlgControl and GlgObject are the main classes of the GLG package. There are also a few utility classes (GlgPoint, GlgCube, GlgTraceData, etc.) that provide convenient functionality.
The rest of the classes extend the generic GlgObject class and implement specific functionality of graphical objects available in the GLG Toolkit. These classes are listed in the Object Constructors section and used in the application code only to create various GLG objects (i.e. GlgArc, GlgPolygon, etc.) programmatically using the Extended API.
The GlgControl class is used for embedding GLG drawings into a CSHARP_COD C# application, in which case the control is used as a container which loads and displays a GLG drawing and provides programmatic access to the GLG objects in the drawing.
The GlgObject class is a generic GLG superclass that provides API methods for all GLG objects. It provides an application with a way to create and manipulate individual objects directly, without a need to create the GlgControl. It also provides additional API methods not available in the GlgControl.
Standard, Intermediate and Extended APIs
The Toolkit provides three levels of a programming interface: Standard, Intermediate and Extended APIs.
Common methods of the GLG Standard, Intermediate and Extended APIs are implemented in both GlgControl and GlgObject classes. The GlgObject class provides access to the API methods of individual objects, while the GlgControl class implements the same set of methods at the control level and provides a convenient way to invoke API methods for any GLG object rendered inside the control. The GlgObject class also provides additional API methods not available in GlgControl.
Global Configuration Resources
Global configuration resources may be used to control some aspects of the GLG Toolkit run-time behavior. Refer to the Appendix A: Global Configuration Resources chapter of the GLG Programming Reference Manual for a list of the global configuration resources.
GLG Graphics Server for ASP.NET
Glg.NetServer.dll provides a GLG Graphics Server that can be used to deploy existing C# legacy applications on the web using server-side ASP.NET. This library has the same interface as the rest of the GLG API with two additional classes (GlgHttpRequestProcessor and GlgHttpRequestData) that are used in the ASP.NET environment.
The GLG JavaScript Library may be used for developing more common client-side HTML5 & JavaScript Web applications used on web pages in a web browser.
Glg.NetCE.dll provides a free Community Edition of the GLG C# Class Library and includes all GLG APIs.
Glg.NetServerCE.dll provides a free Community Edition of the GLG Graphics Server for ASP.NET.