The GLG Widget Library

This chapter contains descriptions of each of the widgets in the GLG Widget Library. The description of each widget contains information about how to use that widget. You may also want to consult Using the GLG Widgets.

The Process Control Objects are not listed in this chapter. Refer to Process Control Objects of Using the GLG Widgets for the list of common resources of the process control objects.

To test each widget, you can use the GLG Graphics Builder to show a graph in action. The entry point for each graph is listed in the section. As an example, a widget might contain the following entry points:

Data Entry

$Widget/DataGroup/EntryPoint

Label Entry

$Widget/XLabelGroup/EntryPoint

If the listed default data range is between 0 and 1, then the widget can be animated with the datagen program as follows:

$datagen d 0 1 "$Widget/DataGroup/EntryPoint"
s 0 0 "$Widget/XLabelGroup/EntryPoint"

For information on the datagen utility program, please see the Guide to GLG . Some of the widgets are equipped with a resource called $DatagenString that contains the suggested command to use for testing the widget. When you use the GLG Graphics Builder to animate a widget, this string will automatically appear in the Run dialog box as the command line.

This chapter also describes the resources belonging to each widget. Because there is a lot of duplication between the widgets, the resources are grouped into "sets," and the descriptions below just list the sets used by each widget. For lists of the resources that make up the resource sets, see GLG Widget Resource Sets.

Bar Graph
Signed Bar Graph
Histogram Graph

The Bar Graph is used to display one set of data as an arrangement of vertical bars. The height of a bar corresponds to the value of the data it represents. The Signed Bar Graph is the same thing, but data samples may have negative values as well as positive. The Histogram Graph is similar to the Bar Graph, but bars do not have gaps between them.

Animation Data

The entry points for these graphs are as follows:

Data Entry

$Widget/DataGroup/EntryPoint

Label Entry

$Widget/XLabelGroup/EntryPoint

The default data range is between 0 and 1. The default range for the Signed Bar Graph is between -1 and 1.

Files

Bar Graph: bar1.g

Signed Bar Graph: bar4.g

Histogram Graph: bar7.g

Resource Sets

These widgets use resources from the following sets:

Title Resource Set

Data Area Resource Set

Datagroup Resource Set

Level Resource Set

Status Object Resource Set

X Time Axis Resource Set

Y Value Axis Resource Set

Zooming Resource Set

Horizontal Bar Graph

The Horizontal Bar Graph displays one set of data in 2D as horizontal bars. The horizontal dimension of a bar corresponds to the value of a data sample. This graph is the same as the Bar Graph, except that the bars are horizontal. The graph resources are the same too, with the only distinction that X and Y prefixes are swapped.

Animation Data

The graph's entry points are as follows:

Data Entry

$Widget/DataGroup/EntryPoint

Label Entry

$Widget/YLabelGroup/EntryPoint

The default data range is between 0 and 1.

Files

bar2.g

Resource Sets

This widget uses resources from the following sets:

Title Resource Set

Data Area Resource Set

Datagroup Resource Set

Level Resource Set

Status Object Resource Set

X Value Axis Resource Set

Y Time Axis Resource Set

Zooming Resource Set

Symmetrical Bar Graph

The Symmetrical Bar Graph displays one set of data in 2D as vertical bars centered around X axis. The height of a bar corresponds to the value of the data it represents. This is not the same as a Signed Bar Graph. The height of a bar above the X axis is the same as it's depth below it; it is symmetrical.

Animation Data

The graph's entry points are as follows:

Data Entry

$Widget/DataGroup/EntryPoint

Label Entry

$Widget/XLabelGroup/EntryPoint

The default data range is between 0 and 1.

Files

bar3.g

Resource Sets

This widget uses resources from the following sets:

Title Resource Set

Data Area Resource Set

Datagroup Resource Set

Symmetrical Level Resource Set

Status Object Resource Set

X Time Axis Resource Set

Y Value Axis Resource Set

Zooming Resource Set

Packed Bar Graph

The Packed Bar Graph displays several sets of data in 2D in clusters or "packs" of vertical bars. One pack of bars contains one sample of data from each of the included data sets (represented by data groups). The height of each bar corresponds to the value of its data sample.

Animation Data

The graph's entry points are as follows:

Data Entry

$Widget/DataGroup/EntryPoint

Label Entry

$Widget/XLabelGroup/EntryPoint

The default data range is between 0 and 1. There are three bars in each pack in the default graph.

Files

bar8.g

Resource Sets

This widget uses resources from the following sets:

Title Resource Set

Data Area Resource Set

Packed Datagroup Resource Set

Level Resource Set

Status Object Resource Set

X Time Axis Resource Set

Y Value Multiaxis Resource Set

Zooming Resource Set

Legend Resource Set

Stacked Bar Graph

The Stacked Bar Graph displays several sets of data in 2D as stacked vertical bars. This is comparable to a packed bar graph except that the bars that make up each cluster are placed on top of each other. Each bar, composed of a pack of several smaller bars, contains one iteration of data from each data set. The height of every component of a stack corresponds to the value of its data sample. The total height of a stack is equal to the sum of the heights of the individual components. The range of the graph is equal to the range of the sum of the individual components. This means that the sum of all values corresponding to one stack should be less than or equal to the range of the graph.

Animation Data

The graph's entry points are as follows:

Data Entry

$Widget/DataGroup/EntryPoint

Label Entry

$Widget/XLabelGroup/EntryPoint

The default data range is between 0 and 0.2, and there are, by default, 5 bars in each stack.

Files

bar9.g

Resource Sets

This widget uses resources from the following sets:

Title Resource Set

Data Area Resource Set

Packed Datagroup Resource Set

Level Resource Set

Status Object Resource Set

X Time Axis Resource Set

Y Value Axis Resource Set

Zooming Resource Set

Legend Resource Set

Step Graph

The Step Graph displays one set of data in 2D as a step line. The height of a step corresponds to the value of a data sample.

Animation Data

The graph's entry points are as follows:

Data Entry

$Widget/DataGroup/EntryPoint

Label Entry

$Widget/XLabelGroup/EntryPoint

The default data range is between 0 and 1.

Files

step1.g

Resource Sets

This widget uses resources from the following sets:

Title Resource Set

Data Area Resource Set

Datagroup Resource Set

Level Resource Set

Status Object Resource Set

X Time Axis Resource Set

Y Value Axis Resource Set

Zooming Resource Set

Filled Step Graph

The Filled Step Graph is the same as the Step Graph (see page 44), but with a filled line.

Animation Data

The graph's entry points are as follows:

Data Entry

$Widget/DataGroup/EntryPoint

Label Entry

$Widget/XLabelGroup/EntryPoint

The default data range is between 0 and 1.

Files

step4.g

Resource Sets

This widget uses resources from the following sets:

Title Resource Set

Data Area Resource Set

Filled Step Datagroup Resource Set

Level Resource Set

Status Object Resource Set

X Time Axis Resource Set

Y Value Axis Resource Set

Zooming Resource Set

Horizontal Step Graph

The Horizontal Step Graph displays one set of data in 2D as a step line. The horizontal position of a step corresponds to the value of its data sample. This graph is the same as the Step Graph (see page 44), but is rotated on its side.

Animation Data

The graph's entry points are as follows:

Data Entry

$Widget/DataGroup/EntryPoint

Label Entry

$Widget/YLabelGroup/EntryPoint

The default data range is between 0 and 1.

Files

step2.g

Resource Sets

This widget uses resources from the following sets:

Title Resource Set

Data Area Resource Set

Datagroup Resource Set

Level Resource Set

Status Object Resource Set

X Value Axis Resource Set

Y Time Axis Resource Set

Zooming Resource Set

Horizontal Filled Step Graph

The Horizontal Filled Step Graph displays one set of data in 2D as a vertical step line. The horizontal position of a step corresponds to the value of a data sample. This graph is the same as the Filled Step Graph (see page 45), but is rotated on its side.

Animation Data

The graph's entry points are as follows:

Data Entry

$Widget/DataGroup/EntryPoint

Label Entry

$Widget/YLabelGroup/EntryPoint

The default data range is between 0 and 1.

Files

step5.g

Resource Sets

This widget uses resources from the following sets:

Title Resource Set

Data Area Resource Set

Filled Step Datagroup Resource Set

Level Resource Set

Status Object Resource Set

X Value Axis Resource Set

Y Time Axis Resource Set

Zooming Resource Set

Multiline Step Graph

The Multiline Step Graph displays multiple sets of data in 2D as step lines. The height of a step corresponds to the value of a data sample.

Animation Data

The graph's entry points are as follows:

Data Entry

$Widget/DataGroupOne/EntryPoint

Label Entry

$Widget/XLabelGroup/EntryPoint

The default data range is between 0 and 1. The default number of data groups is two.

To animate just one of the data groups, use this resource in place of the above data entry point:

$Widget/DataGroupOne/DataGroup<num>/EntryPoint

Use the number of the desired data group in place of <num> , as in $Widget/DataGroupOne/DataGroup3/EntryPoint . Remember to set the number of data groups to 1.

Files

step3.g

Resource Sets

This widget uses resources from the following sets:

Title Resource Set

Data Area Resource Set

Multiset Datagroup Resource Set

Level Resource Set

Status Object Resource Set

X Time Axis Resource Set

Y Value Axis Resource Set

Zooming Resource Set

Legend Resource Set

Filled Multiline Step Graph

The Filled Multiline Step Graph is the same as the Multiline Step Graph (see page 47), but with a filled step line.

Animation Data

The graph's entry points are as follows:

Data Entry

$Widget/DataGroupOne/EntryPoint

Label Entry

$Widget/XLabelGroup/EntryPoint

The default data range is between 0 and 1. The default number of data groups is two.

To animate just one of the data groups, use this resource in place of the above data entry point:

$Widget/DataGroupOne/DataGroup<num>/EntryPoint

Use the number of the desired data group in place of <num> , as in $Widget/DataGroupOne/DataGroup3/EntryPoint . Remember to set the number of data groups to 1.

Files

step6.g

Resource Sets

This widget uses resources from the following sets:

Title Resource Set

Data Area Resource Set

Filled Multiline Step Datagroup Resource Set

Level Resource Set

Status Object Resource Set

X Time Axis Resource Set

Y Value Axis Resource Set

Zooming Resource Set

Legend Resource Set

Line Graph
Filled Line Graph
Line Segment Graph
Point Graph

The Line Graph displays one set of data in 2D as a polyline with marker objects identifying each data value. The Y coordinate of a polyline point corresponds to the value of a data sample. Markers may be switched off if desired.

The Filled Line Graph is the same as the Line Graph, but with a filled line. The Line Segment Graph is also similar, but the segments of the polyline may have different colors, widths and line types.

A Point Graph is simply a Line Graph without the lines. Only the markers are displayed.

Animation Data

The entry points for these graphs are as follows:

Data Entry

$Widget/DataGroup/EntryPoint

Label Entry

$Widget/XLabelGroup/EntryPoint

The default data range is between 0 and 1.

Files

Line Graph: line1.g

Filled Line graph: line3.g

Line Segment Graph: line5.g

Point Graph: point1.g

Resource Sets

These widgets use resources from the following sets:

Title Resource Set

Data Area Resource Set

Line Datagroup Resource Set

Level Resource Set

Status Object Resource Set

X Time Axis Resource Set

Y Value Axis Resource Set

Zooming Resource Set

Multiline Graph
Filled Multiline Graph
Multiset Line Segment Graph
Multiset Point Graph

These four graphs are versions of the graphs on page 49 equipped to display data from multiple data sets. They have multiple lines and multiple Y axes with which to chart them.

Animation Data

These graphs' entry points are as follows:

Data Entry

$Widget/DataGroupOne/EntryPoint

Label Entry

$Widget/XLabelGroup/EntryPoint

The default data range is between 0 and 1. The default number of data groups is two.

To animate just one of the data groups, use this resource in place of the above data entry point:

$Widget/DataGroupOne/DataGroup<num>/EntryPoint

Use the number of the desired data group in place of <num> , as in $Widget/DataGroupOne/DataGroup3/EntryPoint . Remember to set the number of data groups to 1.

Files

Multiline Graph: line2.g

Filled Multiline Graph: line4.g

Multiset Line Segment Graph: line6.g

Multiset Point Graph: point2.g

Resource Sets

These widgets use resources from the following sets:

Title Resource Set

Data Area Resource Set

Multiline Datagroup Resource Set

Level Resource Set

Status Object Resource Set

X Time Axis Resource Set

Y Value Multiaxis Resource Set

Zooming Resource Set

Legend Resource Set

XY Line Graph
XY Point Graph

The XY Line Graph displays one set of (X,Y) data pairs in 2D as a polyline with markers identifying each data pair. The markers may be switched off if desired. The X and Y coordinates of the polyline's points correspond to X and Y values of the input data pairs. The XY Point Graph is the same as the XY Line Graph, but only the markers are displayed. The XY Graph is also known as a scatter graph.

Animation Data

The entry points for these graphs are as follows:

Data Entry

$Widget/DataGroup/XEntryPoint

$Widget/DataGroup/YEntryPoint

The default data range is between -1 and 1.

Files

XY Line Graph: scatt1.g

XY Point Graph: scatt3.g

Resource Sets

These widgets use resources from the following sets:

Title Resource Set

Data Area Resource Set

Xy Line Datagroup Resource Set

X Level Resource Set

Y Level Resource Set

Status Object Resource Set

X Value Axis Resource Set

Y Value Axis Resource Set

Zooming Resource Set

Multiline XY Graph
Multiset Point XY Graph

These two graphs are versions of the graphs on page 51 equipped to display data from multiple data sets. There is only one set of axes with this graph, so the various data sets should have the same data range. For different data ranges, see page 53.

Animation Data

The entry points for these graphs are as follows:

Data Entry

$Widget/DataGroupOne/XEntryPoint

$Widget/DataGroupOne/YEntryPoint

The default data range is between -1 and 1. The default number of data groups is two.

To animate just one of the data groups, use these resource in place of the above data entry points:

$Widget/DataGroupOne/DataGroup<num>/XEntryPoint

$Widget/DataGroupOne/DataGroup<num>/YEntryPoint

Use the number of the desired data group in place of <num> , as in $Widget/DataGroupOne/DataGroup3/EntryPoint . Remember to set the number of data groups to 1.

Files

Multiline XY Graph: scatt2.g

Multiset Point XY Graph: scatt4.g

Resource Sets

These widgets use resources from the following sets:

Title Resource Set

Data Area Resource Set

Multiline Xy Datagroup Resource Set

X Level Resource Set

Y Level Resource Set

Status Object Resource Set

X Value Axis Resource Set

Y Value Axis Resource Set

Zooming Resource Set

Legend Resource Set

Multiaxis Multiline XY Graph

The Multiaxis Multiline XY Graph displays several sets of (X,Y) data pairs in 2D as polylines with markers identifying each data pair. Markers may be switched off if desired. The X and Y coordinates of the polyline's points correspond to X and Y values of data pairs. The graph has several axes to display different sets of data in different ranges. See page 51 for the single data set version of this graph.

Animation Data

The graph's entry points are as follows:

Data Entry

$Widget/DataGroupOne/XEntryPoint

$Widget/DataGroupOne/YEntryPoint

The default data range is between -1 and 1. The default number of data groups is two.

To animate just one of the data groups, use these resource in place of the above data entry points:

$Widget/DataGroupOne/DataGroup<num>/XEntryPoint

$Widget/DataGroupOne/DataGroup<num>/YEntryPoint

Use the number of the desired data group in place of <num> , as in $Widget/DataGroupOne/DataGroup3/EntryPoint . Remember to set the number of data groups to 1.

Files

scatt5.g

Resource Sets

This widget uses resources from the following sets:

Title Resource Set

Data Area Resource Set

Multiline Xy Datagroup Resource Set

X Level Resource Set

Y Level Resource Set

Status Object Resource Set

X Value Axis Resource Set

Y Value Multiaxis Resource Set

Zooming Resource Set

Legend Resource Set

Polar Line Graph
Polar Filled Line Graph
Polar Line Segment Graph
Polar Point Graph

The Polar Line Graph displays one set of data in 2D in polar coordinates as a polyline with markers at each data value. The value of the data sample controls the radial distance of the polyline's point from the center of the graph. Markers may be switched off if desired.

The Polar Filled Line Graph is the same as the Polar Line Graph, but with a filled line. The Polar Line Segment Graph is also similar, but the segments of the polyline may have different colors, widths and line types.

The Polar Point Graph is the same as the Polar Line Graph, but displays just the markers.

Animation Data

The entry points for these graphs are as follows:

Data Entry

$Widget/DataGroup/EntryPoint

The default data range is between 0 and 1.

Files

Polar Line Graph: polar1.g

Polar Filled Line Graph: polar2.g

Polar Line Segment Graph: polar6.g

Polar Point Graph: polar7.g

Resource Sets

These widgets use resources from the following sets:

Title Resource Set

Polar Data Area Resource Set

Line Datagroup Resource Set

Polar Level Resource Set

Status Object Resource Set

Tangent Ticks And Labels Resource Set

X Axis Resource Set

Y Axis Resource Set

Zooming Resource Set

Multiline Polar Graph

The Multiline Polar Graph displays several sets of data in 2D in polar coordinates as polylines with markers at each data value. The value of the data sample controls the radial distance of the polyline's point from the center of the graph. Markers may be switched off if desired. This is a multiline version of the graph on page 54.

Animation Data

The entry points for these graphs are as follows:

Data Entry

$Widget/DataGroupOne/EntryPoint

The default data range is between -1 and 1. The default number of data groups is two.

To animate just one of the data groups, use these resource in place of the above data entry points:

$Widget/DataGroupOne/DataGroup<num>/EntryPoint

Use the number of the desired data group in place of <num> , as in $Widget/DataGroupOne/DataGroup3/EntryPoint . Remember to set the number of data groups to 1.

Files

polar4.g

Resource Sets

This widget uses resources from the following sets:

Title Resource Set

Polar Data Area Resource Set

Multiline Datagroup Resource Set

Polar Level Resource Set

Status Object Resource Set

Tangent Ticks And Labels Resource Set

X Axis Resource Set

Y Axis Resource Set

Zooming Resource Set

XY Polar Line Graph

XY Polar Line Graph: Displays one set of data pairs in 2D in polar coordinates as a polyline with markers identifying each data value. One value of a pair controls the angle and the other controls the radial distance of the polyline's point from the center of the graph. Markers may be switched off if desired.

Animation Data

The graph's entry points are as follows:

Data Entry

$Widget/DataGroup/AngleEntryPoint

$Widget/DataGroup/RadiusEntryPoint

The default radius range is between 0 and 1. The default angle range is between 0 and 360.

Files

polar3.g

Resource Sets

This widget uses resources from the following sets:

Title Resource Set

Polar Data Area Resource Set

Polar Xy Line Datagroup Resource Set

Polar Level Resource Set

Radial Grid Resource Set

Tangent Grid Resource Set

Tangent Labels Resource Set

Zooming Resource Set

Multiline Polar XY Graph

The Multiline Polar XY Graph is a multiple data set version of the Polar XY Graph described on page 56.

Animation Data

The graph's entry points are as follows:

Data Entry

$Widget/DataGroupOne/AngleEntryPoint

$Widget/DataGroupOne/RadiusEntryPoint

The default radius data range is between 0 and 1, while the angle spans between 0 and 360. The default number of data groups is two.

To animate just one of the data groups, use these resources in place of the above data entry points:

$Widget/DataGroupOne/DataGroup<num>/AngleEntryPoint

$Widget/DataGroupOne/DataGroup<num>/RadiusEntryPoint

Use the number of the desired data group in place of <num> , as in $Widget/DataGroupOne/DataGroup3/AngleEntryPoint . Remember to set the number of data groups to 1.

Files

polar5.g

Resource Sets

This widget uses resources from the following sets:

Title Resource Set

Polar Data Area Resource Set

Multiline Polar Xy Datagroup Resource Set

Polar Level Resource Set

Radial Grid Resource Set

Tangent Grid Resource Set

Tangent Labels Resource Set

Zooming Resource Set

Pie Chart
Oval Pie Chart

The Pie Chart displays one set of data in 2D as arc segments. The pie may be displayed "exploded" by shifting the segments. The Oval Pie Graph is the same as the Pie Chart, but with an oval outline.

Animation Data

The entry points for these graphs are as follows:

Data Entry

$Widget/DataGroup/EntryPoint

The default data range is between 0 and any positive number.

Files

Pie Chart: pie1.g

Oval Pie Chart: pie2.g

Resource Sets

These widgets use resources from the following sets:

Title Resource Set

Pie Datagroup Resource Set

Zooming Resource Set

Legend Resource Set

Combination Graph

The Combination Graph is a Bar Graph Widget with a Multiset Line Graph overlaid on top of the bars.

Animation Data

The entry points for the bar graph part of the combination are as follows:

Data Entry

$Widget/DataGroup/EntryPoint

Label Entry

$Widget/XLabelGroup/EntryPoint

The default data range is between 0 and 1.

The entry point for the Multiset Line Graph component of the Combination Graph is as follows:

$Widget/DataGroupOne/EntryPoint

The default number of data sets is two.

Files

comb1.g

Resource Sets

This widgets use resources from the following sets:

Title Resource Set

Data Area Resource Set

Datagroup Resource Set

Multiline Datagroup Resource Set

Level Resource Set

Status Object Resource Set

X Time Axis Resource Set

Y Value Axis Resource Set

Zooming Resource Set

Stock Graphs

The Stock Graphs are used to show current and past values of a data series. In addition to displaying current data with a line or marker, a stock graph can show the range of data over one or two given time periods. There are two stock graphs. The simpler graph, stock2.g , displays a marker at some "current" value, and can display a high and low limit with a vertical line behind that marker. The more complex stock graph, stock1.g , displays a multiset line graph with bars and lines to display two different sets of limit information in the background.

Animation Data

The entry points for the stock2.g graphs are as follows:

Data Entry

$Widget/DataGroup/MarkEntryPoint

$Widget/DataGroup/HighEntryPoint

$Widget/DataGroup/LowEntryPoint

Label Entry

$Widget/XLabelGroup/EntryPoint

The default data range is between 20000 and 100000.

The entry points for the stock1.g graph are as follows:

Data Entry

$Widget/DataGroupOne/EntryPoint

$Widget/DataGroup/OpenEntryPoint

$Widget/DataGroup/CloseEntryPoint

$Widget/DataGroup/HighEntryPoint

$Widget/DataGroup/LowEntryPoint

$Widget/DataGroup/MarkEntryPoint

The label entry point is the same as for the stock2.g graph.

Files

stock1.g

stock2.g

Resource Sets

These widgets use resources from the following sets:

Title Resource Set

Data Area Resource Set

Multiline Datagroup Resource Set

Level Resource Set

Status Object Resource Set

X Time Axis Resource Set

Y Value Axis Resource Set

Zooming Resource Set

Axes Widget

The Axes Widget is a set of graph axes that may be added to any other widget.

Files

axes1.g

Resource Sets

These widgets use resources from the following sets:

X Value Axis Resource Set

Y Value Axis Resource Set

3D Bar Graph
3D Signed Bar Graph
3D Histogram Graph
Pyramid Graph
Prism Graph
Cylinder Graph

All the graphs in this group display one set of data as an array of 3D objects. The height of an object corresponds to the value of its data sample. The 3D Signed Bar displays negative values as well as positive. The difference between the other graphs is only the shape of the objects representing the data. The Pyramid Graph uses little pyramids, and the Cylinder Graph uses cylinders and so on.

Animation Data

The entry points for these graphs are as follows:

Data Entry

$Widget/DataGroup/EntryPoint

Label Entry

$Widget/XLabelGroup/EntryPoint

The default data range is between 0 and 1.

Files

3D Bar Graph: bar101.g

3D Signed Bar Graph: bar109.g

3D Histogram Graph: bar119.g

Pyramid Graph: bar107.g

Prism Graph: bar103.g

Cylinder Graph: bar105.g

Resource Sets

These widgets use resources from the following sets:

Title Resource Set

3D Data Area Resource Set

3D Datagroup Resource Set

Status Object Resource Set

X Time Axis Resource Set

Y Value Axis Resource Set

Y1 Value Axis Resource Set

Viewing Resource Set

Multiset 3D Bar Graph
Multiset 3D Signed Bar Graph
Multiset Pyramid Graph
Multiset Prism Graph
Multiset Cylinder Graph

These graphs are multiset variations of that graphs described on page 61.

Animation Data

The entry points for these graphs are as follows:

Data Entry

$Widget/DataGroupOne/EntryPoint

Label Entry

$Widget/XLabelGroup/EntryPoint

The default data range is between 0 and 1. The default number of data groups is two.

To animate just one of the data groups, use this resource in place of the above data entry point:

$Widget/DataGroupOne/DataGroup<num>/EntryPoint

Use the number of the desired data group in place of <num> , as in $Widget/DataGroupOne/DataGroup3/EntryPoint . Remember to set the number of data groups to 1.

Files

Multiset 3D Bar Graph: bar102.g

Multiset 3D Signed Bar Graph: bar112.g

Multiset Pyramid Graph: bar108.g

Multiset Prism Graph: bar104.g

Multiset Cylinder Graph: bar106.g

Resource Sets

These widgets use resources from the following sets:

Title Resource Set

3D Data Area Resource Set

Multiset 3D Datagroup Resource Set

Status Object Resource Set

X Time Axis Resource Set

Y Value Axis Resource Set

Y1 Value Axis Resource Set

Z Axis Resource Set

Viewing Resource Set

3D Packed Bar Graph
3D Packed Signed Bar Graph

The 3D Packed Bar Graph displays several sets of data as packs of vertical 3D bars. One pack contains one iteration of data from each of the data sets. The height of a bar corresponds to the value of its data sample. The signed version accepts negative values as well as positive.

Animation Data

The entry points for these graphs are as follows:

Data Entry

$Widget/DataGroup/EntryPoint

Label Entry

$Widget/XLabelGroup/EntryPoint

The default data range is between 0 and 1, and the default number of bars in a pack is three.

Files

3D Packed Bar Graph: bar115.g

3D Packed Signed Bar Graph: bar117.g

Resource Sets

These widgets use resources from the following sets:

Title Resource Set

3D Data Area Resource Set

3D Packed Datagroup Resource Set

Status Object Resource Set

X Time Axis Resource Set

Y Value Axis Resource Set

Y1 Value Axis Resource Set

Viewing Resource Set

Multiset 3D Packed Bar Graph
Multiset 3D Packed Signed Bar Graph

Displays several 2D sets of data as several series of packs of vertical 3D bars. One pack of bars keeps corresponding samples of one set. The height of a bar corresponds to the value of a data sample.

The signed version accepts negative values as well as positive.

Animation Data

The entry points for these graphs are as follows:

Data Entry

$Widget/DataGroupOne/EntryPoint

Label Entry

$Widget/XLabelGroup/EntryPoint

The default data range is between 0 and 1. The default number of data groups is two, with three bars in each pack.

To animate just one of the data groups, use this resource in place of the above data entry point:

$Widget/DataGroupOne/DataGroup<num>/EntryPoint

Use the number of the desired data group in place of <num> , as in $Widget/DataGroupOne/DataGroup3/EntryPoint . Remember to set the number of data groups to equal the number of packs in each DataGroup series.

To animate just one of the data packs, you might use a resource that looks like this:

$Widget/DataGroupOne/DataGroup1/Pack2/EntryPoint

Files

Multiset 3D Packed Bar Graph: bar116.g

Multiset 3D Packed Signed Bar Graph: bar118.g

Resource Sets

These widgets use resources from the following sets:

Title Resource Set

3D Data Area Resource Set

Multiset 3D Packed Datagroup Resource Set

Status Object Resource Set

X Time Axis Resource Set

Y Value Axis Resource Set

Y1 Value Axis Resource Set

Z Axis Resource Set

Viewing Resource Set

3D Stacked Bar Graph

The 3D Stacked Bar Graph displays several sets of data as packs of stacked vertical 3D bars. The corresponding samples of each set are placed on top of one another to form one pack of stacked bars. Each stack contains one iteration of data from each data set. The height of every component of a stack corresponds to the value of its data sample, and the total height of the stack equals the sum of the heights of its individual components.

The range of the graph should accommodate the range of the sum of the individual component data sets. This means that the sum of all values corresponding to one stack should be less than or equal to the total graph range.

Animation Data

The graph's entry points are as follows:

Data Entry

$Widget/DataGroup/EntryPoint

Label Entry

$Widget/XLabelGroup/EntryPoint

The default data range is between 0 and 0.2, and there are five bars in a stack, by default.

Files

bar113.g

Resource Sets

This widget uses resources from the following sets:

Title Resource Set

3D Data Area Resource Set

3D Packed Datagroup Resource Set

Status Object Resource Set

X Time Axis Resource Set

Y Value Axis Resource Set

Y1 Value Axis Resource Set

Viewing Resource Set

Multiset 3D Stacked Bar Graph

The Multiset 3D Stacked Bar Graph is a multiset version of the Stacked Bar Graph described on page 65.

Animation Data

The graph's entry points are as follows:

Data Entry

$Widget/DataGroupOne/EntryPoint

Label Entry

$Widget/XLabelGroup/EntryPoint

The default data range is between 0 and 0.2. The default number of bars in a stack is 5 and the number of data groups is 2.

To animate just one of the data groups, use this resource in place of the above data entry point:

$Widget/DataGroupOne/DataGroup<num>/EntryPoint

Use the number of the desired data group in place of <num> , as in $Widget/DataGroupOne/DataGroup3/EntryPoint . Remember to set the number of data groups to 1.

Files

bar114.g

Resource Sets

This widget uses resources from the following sets:

Title Resource Set

3D Data Area Resource Set

Multiset 3D Packed Datagroup Resource Set

Status Object Resource Set

X Time Axis Resource Set

Y Value Axis Resource Set

Y1 Value Axis Resource Set

Z Axis Resource Set

Viewing Resource Set

3D Step Graph

The 3D Step Graph displays one set of data in 3D as a step line. The height of a step corresponds to the value of a data sample.

Animation Data

The graph's entry points are as follows:

Data Entry

$Widget/DataGroup/EntryPoint

Label Entry

$Widget/XLabelGroup/EntryPoint

The default data range is between 0 and 1.

Files

step101.g

Resource Sets

This widget uses resources from the following sets:

Title Resource Set

3D Data Area Resource Set

3D Datagroup Resource Set

X Time Axis Resource Set

Y Value Axis Resource Set

Y1 Value Axis Resource Set

Viewing Resource Set

Multiset 3D Step Graph

The Multiset 3D Step Graph displays several sets of data in 3D as step lines. The height of a step corresponds to the value of a data sample.

Animation Data

The graph's entry points are as follows:

Data Entry

$Widget/DataGroupOne/EntryPoint

Label Entry

$Widget/XLabelGroup/EntryPoint

The default data range is between 0 and 1. The default number of data groups is two.

To animate just one of the data groups, use this resource in place of the above data entry point:

$Widget/DataGroupOne/DataGroup<num>/EntryPoint

Use the number of the desired data group in place of <num> , as in $Widget/DataGroupOne/DataGroup3/EntryPoint . Remember to set the number of data groups to 1.

Files

step102.g

Resource Sets

This widget uses resources from the following sets:

Title Resource Set

3D Data Area Resource Set

Multiset 3D Datagroup Resource Set

X Time Axis Resource Set

Y Value Axis Resource Set

Y1 Value Axis Resource Set

Z Axis Resource Set

Viewing Resource Set

Ribbon Graph

The Ribbon Graph displays one set of data in 3D as a set of points connected by a ribbon. The height of a point corresponds to the value of a data sample. You can adjust the width of the ribbon by editing the polygon that is its series template .

Animation Data

The graph's entry points are as follows:

Data Entry

$Widget/DataGroup/EntryPoint

Label Entry

$Widget/XLabelGroup/EntryPoint

The default data range is between 0 and 1.

Files

ribbon101.g

Resource Sets

This widget uses resources from the following sets:

Title Resource Set

3D Data Area Resource Set

Datagroup Resource Set

X Time Axis Resource Set

Y Value Axis Resource Set

Y1 Value Axis Resource Set

Viewing Resource Set

Multiset Ribbon Graph

The Multiset Ribbon Graph displays several sets of data in 3D as data points connected by a ribbon. The height of a point corresponds to the value of a data sample.

Animation Data

The graph's entry points are as follows:

Data Entry

$Widget/DataGroupOne/EntryPoint

Label Entry

$Widget/XLabelGroup/EntryPoint

The default data range is between 0 and 1. The default number of data groups is two.

To animate just one of the data groups, use this resource in place of the above data entry point:

$Widget/DataGroupOne/DataGroup<num>/EntryPoint

Use the number of the desired data group in place of <num> , as in $Widget/DataGroupOne/DataGroup3/EntryPoint . Remember to set the number of data groups to 1.

Files

ribbon102.g

Resource Sets

This widget uses resources from the following sets:

Title Resource Set

3D Data Area Resource Set

Multiset Datagroup Resource Set

X Time Axis Resource Set

Y Value Axis Resource Set

Y1 Value Axis Resource Set

Z Axis Resource Set

Viewing Resource Set

Framed Surface Graph
Unframed Surface Graph

These graphs display one set of data in 3D as a surface. The surface area is defined by a parallelogram. The parallelogram is then divided into number of nodes by the grid lines parallel to its sides. Every node is elevated by the amount corresponding to the value of a data sample. Drawing markers can be drawn on the graph. Markers are always drawn on the top of the surface.

To form a surface graph, every set of four nodes is connected by a line, creating a parallelogram. This parallelogram is close to a planar one only if the number of data samples is big and the value changes from one data sample to the next is small in both X and Y directions.

The difference between two graphs is in the number of context objects. The Unframed Surface Graph has only the axes, ticks and labels in addition to the surface. The Framed Surface Graph also has a frame made from the polygons and horizontal grids.

Animation Data

The entry points for these graphs are as follows:

Data Entry

$Widget/DataGroup/EntryPoint

The default data range is between 0 and 1. The default graph has 11 column and row nodes, giving 121 total nodes. Use these parameters to control the datagen test program.

Files

Framed Surface Graph: surf101.g

Unframed Surface Graph: surf102.g

Resource Sets

These widgets use resources from the following sets:

Title Resource Set

3D Data Area Resource Set

Surface Datagroup Resource Set

X Time Axis Resource Set

Y Value Axis Resource Set

Y1 Value Axis Resource Set

Z Value Axis Resource Set

Viewing Resource Set

Gantt Chart

Displays constrained time intervals as horizontal bars. The beginning of the next interval is constrained to coincide with the end of the previous interval.

The sum of all time interval values of the graph should be less than or equal to the total range of the graph.

Animation Data

The graph's entry points are as follows:

Data Entry

$Widget/DataGroup/EntryPoint

Label Entry

$Widget/XLabelGroup/EntryPoint

The default data range is between 0 and 1. However, the default graph has 10 time intervals in it, so you should test the program with a data range between 0 and 0.1 so that the sum of all the time intervals is less than 1.

Files

gantt1.g

Resource Sets

This widget uses resources from the following sets:

Title Resource Set

Data Area Resource Set

Datagroup Resource Set

X Axis Resource Set

Y Axis Resource Set

Zooming Resource Set

Horizontal Slider Graph

The Horizontal Slider Graph displays one data value in 2D as a horizontal bar. The horizontal dimension of the bar corresponds to the value of the data sample.

Animation Data

The graph's entry points are as follows:

Data Entry

$Widget/DataGroup/ValueX

The default data range is between 0 and 1.

The Slider Graph may also be used as a control widget, and animated without any data by using its reaction to mouse movement.

Files

bar5.g

Resource Sets

This widget uses resources from the following sets:

Title Resource Set

Data Area Resource Set

Datagroup Resource Set

4 Level Resource Sets

X Value Axis Resource Set

Legend Resource Set

Value Label Resource Set

Vertical Slider Graph

The Vertical Slider Graph displays one data value in 2D as a vertical bar. The height of the bar corresponds to the value of a data sample.

Animation Data

The graph's entry points are as follows:

Data Entry

$Widget/DataGroup/ValueY

The default data range is between 0 and 1.

The Slider Graph may also be used as a control widget, in which case it may be animated without any data by using its reaction to mouse movement.

Files

bar6.g

Resource Sets

This widget uses resources from the following sets:

Title Resource Set

Data Area Resource Set

Datagroup Resource Set

4 Level Resource Sets

Y Value Axis Resource Set

Legend Resource Set

Value Label Resource Set

Horizontal 3D Slider Graph

The Horizontal 3D Slider Graph is identical to the Horizontal Slider Graph described on page 72, except that the active element is a 3D bar. It displays one data value at a time, and the horizontal dimension of the bar corresponds to the value of the data.

Animation Data

The graph's entry points are as follows:

Data Entry

$Widget/DataSample/ValueX

The default data range is between 0 and 1.

The 3D Slider Graph may also be used as a control widget, in which case it can be animated without any data by using its reaction to mouse movement.

Files

bar110.g

Resources

ActiveElementGroup (GROUP): data sample

ActiveElement (POLYGON): one polygon of a data sample bar

ValueX (DDATA): the value defining a position of a data sample

Low (DDATA): low range of graph values

High (DDATA): high range of graph values

StartColor (GDATA): color for the minimum value

EndColor (GDATA): color for the maximum value

Resource Sets

This widget uses resources from the following sets:

Title Resource Set

X Value Axis Resource Set

Value Label Resource Set

Vertical 3D Slider Graph

The Vertical 3D Slider Graph is identical to the Vertical Slider Graph described on page 73, except that the active element is a 3D bar. It displays one data value at a time, and the horizontal dimension of the bar corresponds to the value of the data.

Animation Data

The graph's entry points are as follows:

Data Entry

$Widget/DataSample/ValueY

The default data range is between 0 and 1.The widget may also be used as a control widget, in which case it can be animated without any data by using its reaction to mouse movement.

Files

bar111.g

Resources

ActiveElementGroup (GROUP): data sample

ActiveElement (POLYGON): one polygon of a data sample bar

ValueY (DDATA): the value defining a position of a data sample

Low (DDATA): low range of graph values

High (DDATA): high range of graph values

StartColor (GDATA): color for the minimum value

EndColor (GDATA): color for the maximum value

Resource Sets

This widget uses resources from the following sets:

Title Resource Set

Y Value Axis Resource Set

Value Label Resource Set

Legend

The Legend Widget is an optional legend that may be pasted into any other graph widget.

Files

legend1.g

Resource Sets

This widget uses resources from the Legend Resource Set.

Bevels

The Bevel Widget is an optional beveled area to use for decoration. You can use it to add a border to another widget by placing that widget inside the Bevel Widget. You can constrain resources of the contained widget to the bevel lighting or color to provide a status indicator, as for a toggle button.

The Bevel Widget comes with a text object already inside it for ease of editing. You can use the text object to change the bevel colors easily. Delete or move the text object before inserting the next widget.

Files

bevel1.g

Resource Sets

This widget uses resources from the Bevel Resource Set

Gauge Widgets

The Gauge Widgets provide several graphical dials and gauges with different look and feel. They can all be used to display a value or to enter one using the mouse. Several gauges may be combined together with other widgets to create custom control panels.

Files

meter1.g

meter2.g

meter3.g

meter4.g

Left Quadrant Meter: meter5.g

Right Quadrant Meter: meter6.g

Left Quadrant Meter with Bevels: meter7.g

meter8.g

Semicircle Meter: meter9.g

Resource Sets

These widgets use resources from the following sets:

Knob Resource Set

Active Element Resource Set

Unit Label Resource Set

Scale Area Resource Set

Center Marker Resource Set

Value Axis Resource Set

Value Label Group Resource Set

Zooming Resource Set

Clock Widgets

The Clock Widgets are used to tell time. A clock widget may be used for output only, in which case you can delete the input handler, then use the ValueHour , ValueMin and ValueSec resources for moving the corresponding clock hands. Use the Hour , Min and Sec resources for supplying data to be displayed as numbers.

Files

time2.g

time3.g

Resource Sets

These widgets use resources from the following sets:

Clock Resource Set

Clock Hands Resource Set

Scale Area Resource Set

Center Marker Resource Set

Value Axis Resource Set

Zooming Resource Set

Stopwatch Widget

The Stopwatch Widget measures the time elapsed between pressing its Start and Stop button. The widget does not reset the time count until its Reset button is pressed. This allows the total time for several time intervals to be measured. The time is measured with the precision of one second.

The stopwatch widget displays the elapsed time in the following format:

<hours>:<minutes>:<seconds>

If the strings corresponding to the hours or minutes are deleted, the display shows the total number of expired minutes or seconds, without going back to zero at 59. That is, if the hour string is deleted, the clock will read "61:00" when 61 minutes have elapsed.

Files

time1.g

Resources

Meter (VIEWPORT): stopwatch viewport

Buttons (VIEWPORT): button panel

Resource Sets

This widget uses resources from the following sets:

Clock Resource Set

Active Element Resource Set

Scale Area Resource Set

Center Marker Resource Set

Value Axis Resource Set

Value Label Group Resource Set

Zooming Resource Set

Thermometer Widget

The Thermometer Widget displays a temperature value in both Co and Fo; allows the value to be changed using the mouse.

Files

gauge1.g

Resources

The Thermometer Widget has its own resource set, as follows:

FAxis (POLYGON, optional): Fo axis

FAxisLabel (TEXT, optional): Fo axis title

FMajorGroup (SERIES): Fo axis major ticks

FMajorTick (POLYGON): template major tick

Factor (DDATA): number of major ticks

FMinorGroupOne (SERIES): Fo axis minor ticks

FMinorGroup (SERIES): template for one set of minor ticks

FMinorTick (POLYGON): template minor tick

Factor (DDATA): number of minor ticks

LogType (DDATA): controls logarithmic positioning of minor ticks

Factor (DDATA, CONSTR): number of major ticks

FLabelGroup (SERIES): Fo axis major tick labels

FLabel (TEXT): template major tick label

Format (SDATA): format to use for displaying label values

Low (DDATA): low range of Fo values

High (DDATA): high range of Fo values

Factor (DDATA, CONSTR): number of major ticks

CAxis (POLYGON, optional): Co axis

CAxisLabel (TEXT, optional): Co axis title

CMajorGroup (SERIES): Co major ticks

CMajorTick (POLYGON): template major tick

Factor (DDATA): number of Co major ticks

CMinorGroupOne (SERIES): Co minor ticks

CMinorGroup (SERIES): template for one set of minor ticks

CMinorTick (POLYGON): template minor tick

Factor (DDATA): number of Co minor ticks

LogType (DDATA): controls logarithmic positioning of minor ticks

Factor (DDATA, CONSTR): number of Co major ticks

CLabelGroup (SERIES): Co major tick labels

CLabel (TEXT): template major tick label

Format (SDATA): format to use for displaying Co label values

Low (DDATA, CONSTR): low range of Co values

High (DDATA, CONSTR): high range of Co values

Factor (DDATA, CONSTR): number of Co major ticks

Resource Sets

This widget uses resources from the following sets:

Slider Resource Set

Active Element Resource Set

Scale Area Resource Set

Zooming Resource Set

Joystick Widgets

The Joystick Widgets provide several joystick controls to enter pairs of X and Y values using the mouse. The joysticks also provide a visual feedback displaying the current values.

Files

joy1.g

joy2.g

joy3.g

joy4.g

joy5.g

joy6.g

Resources

X1Label (TEXT, optional): X value title

Y1Label (TEXT, optional): Y value title

Resource Sets

These widgets use resources from the following sets:

Slider Resource Set

Active Element Resource Set

X Value Axis Resource Set

Y Value Axis Resource Set

Scale Area Resource Set

X Value Label Group Resource Set

Y Value Label Group Resource Set

Pointer Resource Set (optional)

Zooming Resource Set

Indicator Widgets

The Indicator Widget is a a bevelled area displaying a numerical value. The bevel size is controlled by the BevelSize resource and does not change when the button is resized. Bevel shading may vary slightly for different screen ratios.

The Rubberbanding Indicator Widget is the same as the Indicator Widget, but the bevel size is changed proportionally when the button is resized. This widget guarantees the bevel shading will remain constant for any screen ratio.

Files

Indicator: indic2.g

Rubberbanding Indicator: indic1.g

Vertical Equalizer Indicator: indic3.g

Horizontal Equalizer Indicator: indic4.g

Resources

Element (POLYGON, optional): label highlight element

Resource Sets

These widgets use resources from the following sets:

Bevel Resource Set (optional)

Value Label Group Resource Set (optional)

Button Widgets

The Push Button Widget is a button with a visual feedback on press. It may be added to any other widget to provide an interface for triggering some action. The bevel size is controlled by the BevelSize resource and does not change when the button is resized. The bevel shading may slightly vary for different screen ratios. There are two buttons in the drawing, one with attributes optimized for the darker colors and another for the lighter ones. To use a button, choose the button you'll be using, delete the other one and save the chosen button into a separate file. Repeat this for the second button, if necessary, after reloading the original drawing.

The Rubberbanding Push Button Widget is the same as the Push Button, but the bevel size is changed proportionally when the button is resized. This widget guarantees the bevel shading will stay constant for any screen ratios. The Round Push Button is the same as the Push Button except that it is round.

The GLG Widget Library also includes a set of directional buttons. This is a set of four buttons indicating up, down, left and right movements. These buttons are intended for use with the joystick widgets. Simply paste the whole set into the joystick's viewport. To disable dithering, set the patterns factor of the button's viewport colortable to 0.

Files

Push Button: butt4.g

Rubberbanding Push Button: butt1.g

Set of Directional Buttons: butt2.g

Round Button: butt3.g

Resource Sets

These widgets use resources from the following sets:

Button Resource Set

Active Element Resource Set (optional)

Bevel Resource Set (optional)

Two-Position Switch Widgets

These widgets compose a set of discrete-position switches with various appearances. A switch toggles between two discrete positions on a mouse click, providing visual feedback. Several switches may be combined together with other widgets to create custom control panels.

Files

swit1.g

swit2.g

swit3.g

swit4.g

swit5.g

swit6.g

Resources

OnLabel (TEXT): On State label

OffLabel (TEXT): Off State label

OnTick (POLYGON, optional): On tick