Class GraphicPicker
Provides mouse selection (picking) in a GraphicControl.
Namespace: ABB.Robotics.RobotStudio.Stations.Forms
Assembly: ABB.Robotics.RobotStudio.Stations.dll
Syntax
public sealed class GraphicPicker
Properties
View SourceEnableSelection
Gets or sets a value indicating whether picking will cause the project selection to be updated
Declaration
public bool EnableSelection { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
FreehandMode
Gets or sets the way the user will be able to move or rotate a selected object by using the mouse
Declaration
public FreehandMode FreehandMode { get; set; }
Property Value
| Type | Description |
|---|---|
| FreehandMode |
FreehandObject
Gets or sets a IFreehandObject for freehand manipulation.
Declaration
public IFreehandObject FreehandObject { get; set; }
Property Value
| Type | Description |
|---|---|
| IFreehandObject |
Remarks
By default, freehand manipulation works on supported objects in the ProjectSelection. Use this property to ovveride this behavior and enable freehand manipulation of an application-defined object. Make sure to reset the property to null after use to restore the default behavior.
FreehandPivotPoint
Gets or sets where the center of the freehand move and rotate tool will be placed.
Declaration
public FreehandPivotPoint FreehandPivotPoint { get; set; }
Property Value
| Type | Description |
|---|---|
| FreehandPivotPoint |
FreehandReference
Gets or sets reference coordinate system for freehand manipulation
Declaration
public FreehandReference FreehandReference { get; set; }
Property Value
| Type | Description |
|---|---|
| FreehandReference |
MarkerPosition
Gets or sets the position of the marker which indicates the last pick point
Declaration
public Vector3 MarkerPosition { get; set; }
Property Value
| Type | Description |
|---|---|
| Vector3 |
MultiJog
Gets or sets a value indicating whether multi robot jogging is enabled
Declaration
public bool MultiJog { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
MultiJogEnabled
ABB internal use only
Declaration
public bool MultiJogEnabled { get; }
Property Value
| Type | Description |
|---|---|
| bool |
MultiJogExclude
Gets or sets the robots that are not used in multi robot jogging.
Declaration
public ArrayList MultiJogExclude { get; set; }
Property Value
| Type | Description |
|---|---|
| ArrayList | ArrayList containing Mechanism objects. |
SelectionColor
Gets or sets the color of selected objects
Declaration
public Color SelectionColor { get; set; }
Property Value
| Type | Description |
|---|---|
| Color |
SelectionHighlight
This property is obsolete.
Declaration
[Obsolete("No longer supported")]
public SelectionHighlightType SelectionHighlight { get; set; }
Property Value
| Type | Description |
|---|---|
| SelectionHighlightType |
SelectionMode
Gets or sets the type of objects that will be selectable by picking
Declaration
public SelectionModes SelectionMode { get; set; }
Property Value
| Type | Description |
|---|---|
| SelectionModes |
SelectionPreview
Gets or sets a value indicating whether objects under the cursor will be temporarily highlighted
Declaration
public bool SelectionPreview { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
SelectionRadius
Gets or sets the tolerance (in pixels) used when picking line objects
Declaration
public double SelectionRadius { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
ShowLocalCoordinateSystem
Gets or sets a value indicating whether the origin of selected objects will be shown as a coordinate system
Declaration
public bool ShowLocalCoordinateSystem { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
SnapMode
Gets or sets the way the pick point will be adjusted when picking geometric objects
Declaration
public SnapMode SnapMode { get; set; }
Property Value
| Type | Description |
|---|---|
| SnapMode |
Methods
View SourceEndMultiRobotJog()
Declaration
public void EndMultiRobotJog()
InitMultiRobotJog(Mechanism)
Declaration
public void InitMultiRobotJog(Mechanism master)
Parameters
| Type | Name | Description |
|---|---|---|
| Mechanism | master |
UpdateMultiRobotJog(Mechanism)
Declaration
public void UpdateMultiRobotJog(Mechanism master)
Parameters
| Type | Name | Description |
|---|---|---|
| Mechanism | master |
Events
View SourceAfterFreehand
Occurs when an object has been moved or rotated by freehand manipulation.
Declaration
public static event EventHandler<AfterFreehandEventArgs> AfterFreehand
Event Type
| Type | Description |
|---|---|
| EventHandler<AfterFreehandEventArgs> |
GraphicHover
Occurs when the user hovers the mouse over an object in a graphic view.
Declaration
public static event GraphicHoverEventHandler GraphicHover
Event Type
| Type | Description |
|---|---|
| GraphicHoverEventHandler |
GraphicPick
Occurs when the user picks an object in a graphic view.
Declaration
public static event GraphicPickEventHandler GraphicPick
Event Type
| Type | Description |
|---|---|
| GraphicPickEventHandler |
GraphicPickPreview
Occurs when the user moves the mouse in the graphic view.
Declaration
public static event GraphicPickEventHandler GraphicPickPreview
Event Type
| Type | Description |
|---|---|
| GraphicPickEventHandler |
Remarks
Only occurs if SelectionPreview is true.
MarkerPositionChanged
Occurs when the MarkerPosition property changes.
Declaration
public static event EventHandler MarkerPositionChanged
Event Type
| Type | Description |
|---|---|
| EventHandler |