The graphics editor

A graphics editor canvas is invoked from the File popup in the startup window. For convenience three sizes are predefined: A4-portrait, A4-landscape and user. In the canvas an edit grid is provided. This is implemented by overloading TCanvas::HandleInput by forcing mouse click coordinates on the user defined grid. To overcome the problem of the finite pixel resolution a method is provided to align all objects (selectable by type) in the canvas at the grid. Global editing facilities (e.g. change color of all CurlyLines, Delete enclosed objects and zooming are available.

In addition to ROOT's builtin graphics primitives like TArcs, TCurlyLines the following features / objects are accessible by a menu (see fig. 7):

-
Insert images (TASImage), histograms, graphs. The user has to define a Pad as container for the object.
-
Insert a function. After giving the number of parameters a widget (fig. 6) allows input of the needed values.
-
Insert Text / Latex from file or keyboard. This widget facilitates input of Text / LaTeX by implementing input from and providing a history facility for input from keyboard. Text attributes may be adjusted from the widget (see fig. 6). Optionally a filter which tries to convert standard LaTeX to ROOTs Latex may be switched on.
-
Insert compound object. Compound objects may be defined by enclosing graphic elements by a TCutG and saved on file. They can be reinserted applying a scale and rotation.
-
Draw a XSpline. XSplines as used e.g. in XFig are very simple to control by moving the controlpoints or changing the shapefactors between -1 and 1. HistPresent provides a Control Graph Mixer for that. Parallel graphs, optionally with railway like filling, may be added.
Figure 6: Input Latex, Input function
Image edit_latex Image edit_fun

Figure 7: Example of an Editor page
Image edit_exa


Johannes.Elmsheuser 2014-04-07