ColorSettings Class

ColorSettings used for drawing function. to activate the setting use ActivateColorsettings()

Definition

Namespace: PCBI.Automation
Assembly: PCB-Investigator (in PCB-Investigator.exe) Version: 0
C#
public class ColorSettings
Inheritance
Object    ColorSettings

Properties

BackgroundColor default Value is Color.Black
BoardColor Set the color to fill PCB (activate it with UseBoardColor).
CMP_TransparyLevel The inner color transpary of CMPs (alpha level between 0 and 255).
ColorMix for drawing lighter or darker (default is XOR)
ComponentInsertPointUnitFactor The unit factor for calculating the package insert point. The insert point is most in the middle of the package. You see the insert point marked with a small yellow circle inside of the package outline. e.g. 39.37f = mm; 1 = mils
ComponentLabelColor Option to get or change component label color.
ComponentLabelType The type of information, which is labeled into the component This is saved in options and PCB-Investigator remembers last setting. Value can only be used after creating an IPCBIWindow instance.
DrawMode Same as in PCB-Investigator (default is IDrawMode.Filled)
DrawNegativeLayersInverted Draws layers with negative polarity inverted (not in Outline Mode, and not when DrawOnlySelected is on) Value can only be used after creating an IPCBIWindow instance.
DrawOnlySelectedCMPs if DrawOnlySelected is true, all Elements of the Rest are transparent (default is false)
DrawOnlySelectedElements if DrawOnlySelected is true, all Elements of the Rest are transparent (default is false)
DrawStepsFlattedForAllSubsteps Show all substeps or only first one.
DrillMixedColor Drill Tool Mixed Color setting, change for easy finding of drills. Value can only be used after creating an IPCBIWindow instance.
HighlightFirstPinOfCMPs The first pin is drawn with transparent color, if you want to turn off this set the value to false. This is saved in options and PCB-Investigator remembers last setting. Value can only be used after creating an IPCBIWindow instance.
HighlightPolarityPin The polarity pin is drawn with color, if you want to turn off this set the value to false. This is saved in options and PCB-Investigator remembers last setting. Value can only be used after creating an IPCBIWindow instance.
IfDrawOnlySelectedTransparencyNotSelectedCMPs Transparency level in percent for Components, default value 0.
IfDrawOnlySelectedTransparencyNotSelectedElements Transparency level in percent, default value 50.
InfoColor default Value is Color.White, this color is used for many details e.g. measure line or note text
MaxCountActiveLayers Limit count of active layers in PCB-Investigator.
MPNPackageBodyColor Color for MPN Package Bodys
MPNPackagePinColor Color for MPN Package Pins
PolarityPinColor Color for Polarity Pins
ProfileColor default Value is Color.White, this change the board profile line color
SelectionColor default Value is Color.White is only used if you deactivate the HatchMode.
SelectionHatchMode The SelectionHatchMode is for set the Selected Style.
ShowFilledSurfaces Draw only outline of surfaces or fill them. (Fill is default, reset after loading new project to fill(true))
ShowMPNPackageBody If true, the MPN Package Body is drawn if exists (with MPNPackageColor)
ShowMPNPackagePinLabel If true, the MPN Package Pin Labels are drawn if exists (with MPNPackageColor)
ShowMPNPackagePins If true, the MPN Package Pins are drawn if exists (with MPNPackageColor)
ShowPinLabel Show pin information or not.
ShowPinNumbers Show pin information on components or not.
ShowPinSpecialInfo Get or set special pin info for components. This overwrites UseGeometryPinNames and set it instead of.
ShowTransparentSurfaces Surfaces in transparent mode are hidden by default; you can change this by using ShowTransparentSurfaces or ask for the value if it is changed.
ShowZones ODB ++ v8.1 defines zones (e.g. for specific heights), you can show them with this property.
UseAdvancedLayerColors Use advanced layer colors, you can set colors by layername.
UseBoardColor Fill PCB with color.
UseGeometryPinNames Pins has two different name types, from geometry (default) or from component.
UseHatchMode Draw function uses SelectionColor if UseHatchMode is false.
UseMatrixColors Use colors from matrix (odb attributes).
UseStackupOrderForDrawing Draw layers always in stackup definition order.

Methods

ActivatePinSpecialInfo Show pin information on components or not.
GetComponentAreaParameters returns IComponentAreaParameters for a given AreaType The color can be overriden for each component separately with IComponent::SetAreaColor()
GetInfoLayerParameters Returns the currently used InfoLayerSetup for a given layer
ReloadColorSetting reloard color setting basic xmls (ColorDefaultSettings.xml, ColorAdvancedSettings.xml and ColorTypeSettings.xml).
SetComponentAreaParameters Add or Update the IComponentAreaParameters for a given AreaType The color can be overriden for each component separately with IComponent::SetAreaColor()
SetMouseToolForGraphicPane Change the mouse cursor for one specific graphic pane mouse tool.
SetSpecialColorForLayer In options you can add colors for layers in there activation order, here you can use the index to set color of activation.

Extension Methods

See Also