[comp.windows.x] Looking for info on presentation graphics widgets

robertw@bmerh654.bnr.ca (Robert Williams) (01/11/91)

I'm posting this request for a friend.  

Does anyone know of a set of widgets, commercially available or public
domain, that will handle "presentation graphics" in an X environment
(probably Motif)?  The idea is to produce pie charts, bar charts, line
graphs, etc. from a system that produces *lots* of data.

Email responses may be made to me (robertw@bnr.ca), voice and/or
Canada Post, to:

	Jim Crozman,
	Cadence Computer Corporation,
	P.O. Box 13024,
	600 Terry Fox Drive,
	Kanata, Ontario, Canada
	Phone: (613) 592-0584

Thanks.  I'll summarize any email responses that I get.


Robert Williams       Bell-Northern Research Ltd.       Everything should be
Ph:  (613) 763-2513   P.O. Box 3511, Station C          made as simple as pos-
Fax: (613) 763-2202   Ottawa, Ontario, Canada, K1Y 4H7  sible, but no simpler
Email: robertw@bnr.ca                                   ... Einstein

janzen@mprgate.mpr.ca (Martin Janzen) (01/19/91)

Well, it's not a widget set, but have you looked at DataViews?  This package lets you create a wide variety of graphs, which can display information received from data sources such as files, processes (through pipes), or devices.  The graphs can be made to change in real time as new data arrives.  There's also a function library which lets you work with graphs under program control.  X drivers are included.

With a bit of programming, you can take the window ID of an Xt widget (eg. a Motif DrawingArea widget) and create a DataViews "screen" object (not the same as an X "screen") which draws into that widget.  You then attach callback routines to the widget which call the appropriate DataViews functions when events such as Resize, Expose, or Input occur.  I've done this; it works quite nicely.

Someone more familiar with widget writing than I might go one step farther and create a "DataViews" widget: a subclass of an existing widget such as DrawingArea which has these basic event handlers built in.  When the widget is created, the user would call some DataViews functions to draw the contents, and the event handlers would take it from there.

The biggest drawback:  This is not a cheap package!  Still, it can save you a_lot_ of time, so you may find it worthwhile.  For more information, you can call V.I. Corporation at (413) 586-4144, fax them at (413) 584-2649, or send email to vi@vicorp.com.  (The usual disclaimer:  No, I don't work for them; I just use the thing.)

-------------------------------------------------------------------------------
Martin Janzen                  Voice:    (604) 293-5309
MPR Teltech Ltd.               FAX:      (604) 293-5787
8999 Nelson Way                Internet: janzen@mprgate.mpr.ca
Burnaby, B.C. CANADA  V5A 4B5            (134.87.131.13)