»»»Home «««
»»»TELL «««
»»»Toped «««
»»»Ifaces «««
|
Table of Contents The functions in this group are related to the editor itself, not to the database. They are used to facilitate the user input and to parametrize the graphic view of the design. As a rule the commands described in this section are not changing or altering the data base. It is legal to include them in user defined TELL functions, and the purpose will be to parametrize the editor itself and mainly its graphical window - the canvas. Defines TOPED color Toped uses the RGBA color scheme as defined in openGL. This function defines a color, associating a color name with color properties.
Example 1. definecolor definecolor("yellow" , 255, 255, 0, 178); definecolor("darkCyan" , 0, 127, 127, 178); Defines TOPED fill pattern Toped uses fill patterns for visualization of the objects. This function associates a name with a pattern.
Example 2. definefill int list diagPatrnForw = { 0x01, 0x01, 0x01, 0x01, 0x02, 0x02, 0x02, 0x02, 0x04, 0x04, 0x04, 0x04, 0x08, 0x08, 0x08, 0x08, 0x10, 0x10, 0x10, 0x10, 0x20, 0x20, 0x20, 0x20, 0x40, 0x40, 0x40, 0x40, 0x80, 0x80, 0x80, 0x80, 0x01, 0x01, 0x01, 0x01, 0x02, 0x02, 0x02, 0x02, 0x04, 0x04, 0x04, 0x04, 0x08, 0x08, 0x08, 0x08, 0x10, 0x10, 0x10, 0x10, 0x20, 0x20, 0x20, 0x20, 0x40, 0x40, 0x40, 0x40, 0x80, 0x80, 0x80, 0x80, 0x01, 0x01, 0x01, 0x01, 0x02, 0x02, 0x02, 0x02, 0x04, 0x04, 0x04, 0x04, 0x08, 0x08, 0x08, 0x08, 0x10, 0x10, 0x10, 0x10, 0x20, 0x20, 0x20, 0x20, 0x40, 0x40, 0x40, 0x40, 0x80, 0x80, 0x80, 0x80, 0x01, 0x01, 0x01, 0x01, 0x02, 0x02, 0x02, 0x02, 0x04, 0x04, 0x04, 0x04, 0x08, 0x08, 0x08, 0x08, 0x10, 0x10, 0x10, 0x10, 0x20, 0x20, 0x20, 0x20, 0x40, 0x40, 0x40, 0x40, 0x80, 0x80, 0x80, 0x80 }; definefill("diagPatrnForw" , diagPatrnForw ); Defines TOPED line style Toped uses different line styles to visualize selected and partially selected objects. A line style can be defined using this function.
Define the properties of a layer This function defines Toped layer and associates a layer number and name with graphical properties. The editor uses these properties to visualize the shapes belonging to a certain layer. Layer definition affects the way that shapes will be shown in the graphical window. It does not by any means change the data base. This is to say that if database contains shapes on undefined layers, they at most will not be available for interactive operations in Toped. Nevertheless TELL is perfectly able to deal with them as long as all layout related TELL functions are using simply the layer number. In other words this function provides some convenience to Toped users.
Example 4. layprop layprop("NWELL" ,1 ,"yellow" ,"Dots1" ,"SelectedL"); layprop("ACTIVE" ,2 ,"blue" ,"diagStripeBack" ,""); layprop("TEXT" ,61 ,"yellow" ,"" ,"axis_line");
Hide / show Toped layer. Hidden layers are automatically locked to prevent unintentional change of the shapes that are not visualized. Current layer cannot be hidden. By default all layers are visible. All functions of this type use layer number as an input argument.
Lock / unlock Toped layer. Using this function all shapes that belong to a certain layer of the current cell, can be locked e.g. made unavailable for select and edit operations. Current layer cannot be locked. By default all layers are not locked. All functions of this type use layer number as input argument.
Switch the fill pattern rendering on/off on a given layer. By default the layer is filled if it was defined with a non-empty fill pattern by layprop. If the fill pattern was not defined for the layer and fill was forced on by this functions then the default fill pattern will be used. All functions of this type use layer number as input argument.
Set the default active layer This function selects the default (current) target layer for the new shapes. The default layer can be neither hidden nor locked, that is why this function cancels automatically those properties for the layer if they are active. Only one layer can be active in certain moment.
Save the current status of all defined layers and associates a name with it. The layer status is determined by functions hidelayer locklayer and filllayer, thus three boolean states are stored for each layer: locked, hidden, filled. Additionally the current active layer set by the last usinglayer function is also stored.
Restores layer status set previously saved using savelayerstatus function. This function should help to switch quickly between different sets of layers without having to change the layer visibility etc. for every layer.
Example 9. restorelaystatus savelaystatus("routing_only"); // ... do something else, hide/lock/fill layers restorelaystatus("routing_only"); Deletes a layer status set previously saved using savelayerstatus function. This function shall be used as a good practice - to free some resources when they are not usable anymore. Define a grid step Defines grid properties that Toped has to use to cover the graphic window with a certain grid. Toped maintains up to 3 grid sets that can be activated using grid command.
Show / hide a grid set This function is used to activate or hide certain grid set.
Define the drawing step All interactive edit/select operations receive coordinates that are multiply on the current graphic marker step. This function defines this step. It has to be explicitly noted that non-interactive TELL functions are independent of this value. This command affects only coordinates selected using Toped mouse input.
When autopan is switched on, Toped view automatically follows the mouse marker during editor specific operations.
When drawing layout objects manually, it is quite convenient to have a restrictions over the marker directions. This function introduces such restrictions when a new polygon or wire is drawn.
Despite the fact that any angle will be taken as a legal value, only some values make real sense - for example 45 and 90 degrees. The value of 0 implies no restrictions on the marker movement. Save current properties to the disk in TELL format. This includes colors, fill and line patterns, layers, grid and step settings as well as the settings of the interactive drawing and external interface layer maps. The current design in memory is neither changed nor saved. The saved properties can be loaded back in the editor as normal TELL file.
|