Table Of Contents
Graph IDE ► Overview ► Event Qualifier
Event Qualifiers are used to implement hit detection and subsequent processing by an algorithm you implement. For example, place two Circles on a Graphic View, implement the Event Qualifiers for those circles and then when the circle is clicked on an algorithm can be called to control a device such as a valve. Event Qualifiers work on data as well so you can hit a data point on a graph and interact with parameters associated with that data point. For example, a price and earnings scatter plot of symbols shows distributions and a user can click on a symbol to process results. The default behavior is to present a Information Selector such as in the following figure.
In practice, the behavior you implement can be as simple as using the Information Selector or can be very specific and integrated. Once you have Event Qualifiers running on a document within Graph IDE then you can embed that document's Graphic View into a Custom Application to make a precise interface. The example above can be implemented on a Mac or iPhone so an operator can control a process at a station in a control center or can be driving to a remote location while touching a circle to control the process.
The capabilities of Event Qualifiers are too enormous to discuss in full detail so this section is merely concerned with an overview of the implementation, not the domain-specific details. To experiment with Event Qualifier processing select the menu item Graph IDE ► Palettes ► Event Qualifiers ► Conglomerate. That shows hit processing behavior for several objects including circles, 3D graphs and 2D graphs.
To implement the example shown in the figure above follow these steps:
To engage the event qualifiers select the menu item Graph IDE ► Tools ► Programming ► Enable Event Qualifiers. To execute the programs select the menu item Graph IDE ► Tools ► Programming ► Execute Program. All normal event processing is now intercepted by the event qualifiers so when you mouse over a circle the Information Selector is shown. To turn off event qualifiers and restore normal event editing select the menu item Graph IDE ► Tools ► Programming ► Disable Event Qualifiers.
The following are a few things to consider when programming event qualifiers.
To read about the programmatic aspects of event qualifiers see the section Custom Application ► Event Qualifier.