You are here: System Configuration > System Defaults > File: styles.ssi
GEOVIA Surpac

styles.ssi

The styles.ssi file controls the way in which strings and triobjects are displayed in Graphics. All of the settings contained in this file can be overwritten using Default Preferences. You can also define, save and load your own styles files in the graphics module. This is the recommend way of defining styles files as it is avoids the need to edit the file manually.

The file is broken into two sections, one to define attributes for strings and the other to define attributes for triobjects. Comment lines can be inserted anywhere within the file provided they start with a # character. The general format of the file is string range = display modifier = geometry type = value. The special symbol default will be applied to all strings and triobjects that are not explicitly defined in the file.

Descriptions of all keywords and modifiers follows.

STRINGS:

This keyword marks the beginning of the strings section of the file.

TRIOBJECTS:

This keyword marks the beginning of the triobjects section of the file.

default

Default is a value that is applied to all strings and triobjects that are not explicitly defined.

HGS_color

The HGS_color key word controls the colour in which various geometries will be displayed on the screen. The colour specifier is expressed as a colour name (e.g. green, yellow, red, etc.). Possible geometric attributes are listed below.

edges the lines connecting the vertices of polygons and triobjects
faces the interior filled areas of polygons and triobjects
lines any lines from a string file markers
markers any marker symbols
text any text from a string file
geometry all edges, faces, lines, markers and text

HGS_line_pattern

The HGS_line_pattern key word controls the line pattern used when lines from a string file are displayed on a screen. Possible values for line pattern are listed below.

"----" a solid line
"- - " a simple dashed line
"...." a dotted line
"-.-." dashes and dots alternating
"-..-.." dashes and double-dot alternating
"-..." dashes and triple-dot alternating
"-- --" long dashes
"centre" very long dash and short dash alternating
"phantom" very long dash and double short dash alternating

HGS_edge_pattern

The HGS_edge_pattern key word controls the line pattern used to display the edges of polygons and triobjects. The possible values for edge pattern are listed below.

"----" a solid line
"- - " a simple dashed line
"...." a dotted line
"-.-." dashes and dots alternating
"-..-.." dashes and double-dot alternating
"-..." dashes and triple-dot alternating
"-- --" long dashes
"centre" very long dash and short dash alternating
"phantom" very long dash and double short dash alternating

HGS_line_weight

The HGS_line_weight key word controls the thickness of lines when lines from a string file are displayed. A line weight of 1.0 corresponds to a line that is one screen pixel wide. A line weight of 2.0 would display lines twice as thick, and a line weight of 0.5 would display lines half as thick.

HGS_edge_weight

The HGS_edge_weight key word controls the thickness of lines used to display the edges of polygons and triobjects. It operates in the same way as HGS_line_weight.

HGS_face_pattern

The HGS_face_pattern key word controls the pattern that will be used to display the interior filled areas of polygons and triobjects. Possible values for face pattern are listed below.

"solid" which will solidly colour the entire area
"##" a crosshatch pattern
"| |" a vertical bar pattern
"==" a horizontal bar pattern
"/ /" a slant-right pattern
"\ \" a slant-left pattern
": :" a dotted pattern, on a square grid
"<><>" a diamond pattern
"[] []" a checkerboard pattern
# An example styles.ssi 
#
STRINGS:
default=HGS_color=lines=text=edges=markers=blue,HGS_color=faces=blue,HGS_line_pattern=--,HGS_edge_pattern=--,HGS_line_weight=1,HGS_edge_weight=1,HGS_face_pattern=solid
1,1=HGS_color=lines=text=edges=markers=black,HGS_color=faces=black,HGS_line_pattern=--- ,HGS_edge_pattern=--- ,HGS_face_pattern=solid,HGS_line_weight=1,HGS_edge_weight=1
2,2=HGS_color=lines=text=edges=markers=red,HGS_color=faces=grey,HGS_line_pattern=--,HGS_edge_pattern=--,HGS_line_weight=1,HGS_edge_weight=1,HGS_face_pattern=solid
3,3=HGS_color=lines=text=edges=markers=blue,HGS_color=faces=blue,HGS_line_pattern=--,HGS_edge_pattern=--,HGS_line_weight=1,HGS_edge_weight=1,HGS_face_pattern=solid
4,4=HGS_color=lines=text=edges=markers=green,HGS_color=faces=green,HGS_line_pattern=--,HGS_edge_pattern=--,HGS_line_weight=1,HGS_edge_weight=1,HGS_face_pattern=solid
5,5=HGS_color=lines=text=edges=markers=red,HGS_color=faces=red,HGS_line_pattern=--,HGS_edge_pattern=--,HGS_line_weight=1,HGS_edge_weight=1,HGS_face_pattern=solid
6,50=HGS_color=lines=text=edges=markers=orange,HGS_color=faces=orange,HGS_line_pattern=--,HGS_edge_pattern=--,HGS_line_weight=1,HGS_edge_weight=1,HGS_face_pattern=solid
51,60=HGS_color=lines=text=edges=markers=blue,HGS_color=faces=pink,HGS_line_pattern=--,HGS_edge_pattern=--,HGS_line_weight=1,HGS_edge_weight=1,HGS_face_pattern=solid
70,80=HGS_color=lines=text=edges=markers=blue,HGS_color=faces=pink,HGS_line_pattern=--,HGS_edge_pattern=--,HGS_line_weight=1,HGS_edge_weight=1,HGS_face_pattern=solid
TRIOBJECTS:
default=HGS_color=lines=text=edges=blue,HGS_color=faces=light green,HGS_line_pattern=--,HGS_edge_pattern=---,HGS_line_weight=1,HGS_edge_weight=1,HGS_face_pattern=solid
1,1=HGS_color=lines=text=edges=blue,HGS_color=faces=pink,HGS_line_pattern=--,HGS_edge_pattern=---,HGS_line_weight=1,HGS_edge_weight=1,HGS_face_pattern=solid
2,2=HGS_color=lines=text=edges=blue,HGS_color=faces=yellow,HGS_line_pattern=--,HGS_edge_pattern=---,HGS_line_weight=1,HGS_edge_weight=1,HGS_face_pattern=solid
3,3=HGS_color=lines=text=edges=blue,HGS_color=faces=light green,HGS_line_pattern=--,HGS_edge_pattern=---,HGS_line_weight=1,HGS_edge_weight=1,HGS_face_pattern=solid
4,4=HGS_color=lines=text=edges=red,HGS_color=faces=blue,HGS_line_pattern=--,HGS_edge_pattern=---,HGS_line_weight=1,HGS_edge_weight=1,HGS_face_pattern=solid
5,5=HGS_color=lines=text=edges=blue,HGS_color=faces=red,HGS_line_pattern=--,HGS_edge_pattern=---,HGS_line_weight=1,HGS_edge_weight=1,HGS_face_pattern=solid