Modifies the attributes of an existing line.
-
id - an optional ChipsId structure containing values to
modify the currency state for the command or a string id to
modify a line within the current frame.
-
values - a list containing attribute value pairs or a
ChipsLine object.
The set_line command sets the specified attributes to the
provided values. The modified line becomes current. Multiple
lines may be modified with a single command by setting the
currency to "all".
There are several attributes that control the characteristics
of lines. The set_line command may be used to modify
the attribute values of an existing line at any time during a
ChIPS session. See
"ahelp attributes"
and
"ahelp setget"
for more general information.
If multiple attributes are being set simultaneously and one of
them fails, the entire command will fail and the line will
not be modified.
The attributes associated with lines are:
| color |
Color of the line |
name or hex; see the Color section of
"ahelp chipsopt"
|
default |
| depth |
Integer value indicating line depth |
see the Depth section of
"ahelp chipsopt"
|
100 |
| extend |
Should the line extend to infinity (segment vs ray) |
see the Line Extend section of
"ahelp chipsopt"
|
none |
| style |
Stipple pattern used to draw the line segment |
see the Line Style section of
"ahelp chipsopt"
|
chips_solid |
| thickness |
Thickness of the line |
0.5 to 10.0; see the Thickness section of
"ahelp chipsopt"
|
1 |
The module of advanced ChIPS functions contains other commands
for setting attribute values (refer to "ahelp chips" for
information on loading the module):
set_line_color
set_line_depth
set_line_extend
set_line_stipple
set_line_style
set_line_thickness
chips> set_line({"color","plum", "style", "dot"});
Using attribute/value pairs, set the line color to plum
and the stipple pattern to dot.
chips> settings = ChipsLine;
chips> settings.color = "blue";
chips> settings.thickness = 2;
chips> set_line("line1",settings);
Populate the "settings" structure with attribute
values, then use it to set line1 to be blue with a
thickness of 2.
chips>a =struct {color, depth};
chips>a.color="lime",a.depth=50;
chips>set_line(a);
Create a user-defined structure with color and depth
fields. Use the structure to modify the values of the current
line.
- sl.chips
-
add_hline,
add_line,
add_vline,
current_line,
delete_line,
display_line,
get_line,
hide_line,
move_line,
set_current,
setget,
shuffle_line
|