Class BrushColorCollection
For ABB Internal use only. Backward compatibility between versions is not guaranteed. A collection of colors used when rendering a PaintL, PaintC and SetBrush instructions. Those RAPID instructions are part of RobotWare Paint. The SetBrush instruction references a brush number and this collection provides the mapping from brush number to color representation in RobotStudio.
Namespace: ABB.Robotics.RobotStudio.Stations
Assembly: ABB.Robotics.RobotStudio.Stations.dll
Syntax
public class BrushColorCollection
Remarks
This collection has nothing to do with the color a paint robot is painting with, when executing its program. The colors in this collection are only used to visualize, in the robotStudio graphics, where different brushes are used.
Properties
Count
Returns the number of defined brush colors.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
Int32 |
Item[Int32]
Gets the color associated with the specified brush number.
Declaration
public Color this[int brushNumber] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
Int32 | brushNumber |
Property Value
Type | Description |
---|---|
Color | The color associated with the specified brush number. |
Methods
Add(Int32, Color)
Adds an association between a brush number and a color.
Declaration
public void Add(int brushNumber, Color color)
Parameters
Type | Name | Description |
---|---|---|
Int32 | brushNumber | The brush number that should be associated with a visualization color. The brushes are defined in RobotWare Paint. |
Color | color | The visualization color that shall be associated with the specified brush number. |
Contains(Int32)
Returns true if the collection contains the specified brush, otherwise false.
Declaration
public bool Contains(int brushNumber)
Parameters
Type | Name | Description |
---|---|---|
Int32 | brushNumber | The brush number to locate in the collection. |
Returns
Type | Description |
---|---|
Boolean | True if the collection contains a brush with the specified number, otherwise false. |
Remove(Int32)
Declaration
public void Remove(int brushNumber)
Parameters
Type | Name | Description |
---|---|---|
Int32 | brushNumber |