Color Display
Introduction
The Windows Theme color settings control the color of the borders, highlighting, window text, and the desktop area. To change these settings, select Appearances from the Display Properties control panel.
SmartCAM uses information in the SmartCAMcnc.INI
file for other color settings; such a default Step/Layer colors,
graphic view indicators, control panel markers, among others.
There are two sections of the SmartCAMcnc.INI
file that work together to provide the colors available
to SmartCAM: [ColorTable]
and [ColorTableIndex]
.
ColorTable
There are 64 entries, numbered 0 through 63.
Click here to display the current default Color Table. The following is an example of the [ColorTable]
settings.
[ColorTable]
Color0=0 0 0
Color1=0 170 255
. . .
Color63=140 140 140
Each line in the table defines an RGB (red, green, blue) value for a color. You can modify the 64 colors that SmartCAM uses by adjusting the values for red, green, and blue on these lines. The first number is the value for red, the second number is the value for green, and the third number is the value for blue. RGB values range from 0 (absence of the color) to 255 (full intensity of the color).
The color displayed is the result of the combination of the three RGB values. For example, the RGB setting 0 0 0 produces black (absence of all three RGB colors), while 255 255 255 produces white (full intensity of all three RGB colors), and 128 128 128 (the middle value for all three RGB colors) produces a neutral gray.
Use the "Color Options" category, under Utility - Options, to modify the SmartCAM color table. There are 64 individual Option selections, one for each of the Color Table entries. The RGB values for the color are shown, additionally the Option preference text is shown in the same color as selected.
ColorTableIndex
The [ColorTableIndex]
section also contains 64 entries, numbered 0 through 63. These lines assign a color
number, from the [ColorTable]
to a position in the color table index. This determines how SmartCAM assigns
the colors in the color table to steps and layers in the graphic and list views.
Click
here to display the current default ColorTableIndex. The following is an example of the [ColorTableIndex]
settings:
[ColorTableIndex]
Color0=8
Color1=1
. . .
Color7=15
. . .
Color63=63
In the above example, ColorTableIndex number 0 uses the color stored in Color8 of the Color Table; and, Color7 used the Color Table entry number 15. While the remaining ColorTableIndex values uses a 1 to 1 mapping - Color Table Index 2 points to Color Table 2.
The actual display of color on your screen is affected by the video card and monitor being used, as well as settings made in the Windows Display Control Panel applet.
To see how this works in your application, change to CAD mode, and then select Add Layer from the insert bar pop-up menu to open the Add Layer dialog box. You will see the 64 colors displayed in index order. If you change the color index, the display on this panel will change accordingly.
If you examine the ColorTableIndex you will notice that the color 0 from the color table (black) is not assigned to a color table index number. This is because color 0 is assigned as the default value for the background variable. Geometry using the same color as the background color is not visible when drawn in the graphic view.
Use the "Color Options" category, under Utility - Options, to modify the SmartCAM Color Table Index. There are 64 individual Color Table Index selections, one for each of the ColorTableIndex properties. Select the Color Table index number for each option.
Graphical User Interface (GUI) Colors
The [Gui]
section of the SmartCAMcnc.ini
file uses RGB color values to set the colors
for various elements of the SmartCAM application window. You can change these colors by changing their associated
RGB values.
Items that contain a Options Preference: string, can be modified from Utility - Options - Color Options. The text next to the label, Options Preference: is the property description from the Options window.
FixedFace
sets the background color of the control panels. If not set in the INI file, SmartCAM will use the user's current Windows theme color.Black
sets the color of arrows, button outlines, and lines used for other borders.RequirementMsgColor
Options Preference: Requirement Message Color
Sets the text color for the Requirements area on the control panel title bars. This is the text that is displayed when a panel has a requirement, such as an active layer, step, tool type, or group, that you have not yet met.SelectedPanelItemText
Options Preference: Active UI Item Color
Sets the color for the current active panel input's label. Setting this value to a noticeable color makes it easier to locate the current active input on a panel.HighlightColor
Options Preference: Active Group Highlight Color
Sets the color used for selected surfaces, if using OpenGL and have enabled the Shaded Surface display mode.BackfaceColor
Options Preference: Surface Back Face Color
Sets the color used for the "back" of surfaces, surfaces where the normal is inverted. This color is used when running with OpenGL and when Highlight Inverted Surfaces is enabled in Display Modes.
The following options are set in the [Defaults]
section of the
SmartCAMcnc.ini
file. Like the [ColorTableIndex]
entries, the following keys expect a
reference to the [ColorTable]
.
ForegroundColor
Options Preference: Graphics View Foreground Index
Sets the color for axis lines and the cursor.BackgroundColor
Options Preference: Graphics View Background Color
Sets the color for the graphics view background. Make sure no other color table index variables uses this value or geometry will be assigned the same color as the graphic view background and therefore cannot be seen.
Related Topics
Integration with SmartCAM User Interface