3.3.2 The Simple Vector Graphics (<tt>SVG</tt>) Widget



next up previous contents index
Next: 3.3.3 File Selection Up: 3.3 The VISTA Widget Previous: 3.3.1 The PIF Editor

3.3.2 The Simple Vector Graphics (SVG) Widget

   

The X Toolkit and Athena widget set do not provide classical two-dimensional vector graphics capabilities, which are a firm CAD requirement. To support platform-independent vector graphics output a minimum-functionality vector graphics widget has been implemented (Figure 3.6) directly using the generic Xlib and X Toolkit.

  
Figure 3.6: The Simple Vector Graphics (SVG) widget

The widget operates on the SVG data structure created by the SVG library (see Section 5.8). It keeps the SVG plot in memory to offer zoom and pan functions for the user, which the programmer does hence not need to care for. Callbacks can be added for example to digitize data points. This widget is used as basis for the interactive back-end (xpif2d, see Section 5.9) of VISTA's visualization library.



Martin Stiftinger
Thu Oct 13 13:51:43 MET 1994