Click or drag to resize

SetWorkspaceBackgroundMapEvent Class

The event commands RAYGUIDE to change the background list of the workspace canvas. Used by the Click & Teach module.

Parameter: A list of duples, containing two tuples. The first tuple contains the following elements:

- string: name: The short label of the scan controller the scan head belongs to the camera is linked to.

- int: width: The width of the scan field image taken by the camera in pixel.

- int: height: The height of the scan field image taken by the camera in pixel.

- int: numberOfChannels: The number of color channels used in the image: 1: gray scale or 3: BGR (not RGB).

- IntPtr: A pointer to the raw data of the image. The image is organized in lines (number: height) of width pixels. Each pixel consumes numberOfChannels bytes. In case of numberOfChannels is 1, one gray value byte follows the next. In case of numberOfChannels is 3, the sequence is BGRBGRBGR... with B: blue byte, G: green byte, R: red byte.

The second tuple contains the following elements:

- dvec3: position: The position of the cross hair's. It is null if no cross hair's are to be drawn.

- double: crossHairsSize: The cross hair's length in world coordinates.

- double: crossHairsWidth: The width of each cross hair in world coordinates.

- SKColor: crossHairsColor: The color used for the cross hairs.

If there is only one scan controller and only one camera therefore the list contains only one duple.

Inheritance Hierarchy
SystemObject
  EventBase
    PubSubEventListValueTupleValueTupleString, Int32, Int32, Int32, IntPtr, ValueTupleNullabledvec3, Double, Double, SKColor
      RAYLASE.Marker.GUI.EventsSetWorkspaceBackgroundMapEvent

Namespace: RAYLASE.Marker.GUI.Events
Assembly: RAYLASE.Marker.GUI.Events (in RAYLASE.Marker.GUI.Events.dll) Version: 2.19.0
Syntax
C#
public class SetWorkspaceBackgroundMapEvent : PubSubEvent<List<((string , int , int , int , IntPtr ) , (dvec3? , double , double , SKColor ) )>>

The SetWorkspaceBackgroundMapEvent type exposes the following members.

Constructors
 NameDescription
Public methodSetWorkspaceBackgroundMapEventInitializes a new instance of the SetWorkspaceBackgroundMapEvent class
Top
Properties
 NameDescription
Protected propertySubscriptions Gets the list of current subscriptions.
(Inherited from EventBase)
Public propertySynchronizationContext Allows the SynchronizationContext to be set by the EventAggregator for UI Thread Dispatching
(Inherited from EventBase)
Top
Methods
 NameDescription
Public methodContains(ActionUTP) Returns if there is a subscriber matching ActionT.
(Inherited from PubSubEventListValueTupleValueTupleString, Int32, Int32, Int32, IntPtr, ValueTupleNullabledvec3, Double, Double, SKColor)
Public methodContains(SubscriptionToken) Returns if there is a subscriber matching SubscriptionToken.
(Inherited from EventBase)
Protected methodInternalPublish Calls all the execution strategies exposed by the list of IEventSubscription.
(Inherited from EventBase)
Protected methodInternalSubscribe Adds the specified IEventSubscription to the subscribers' collection.
(Inherited from EventBase)
Public methodPrune Forces the PubSubEvent to remove any subscriptions that no longer have an execution strategy.
(Inherited from EventBase)
Public methodPublish Publishes the PubSubEvent.
(Inherited from PubSubEventListValueTupleValueTupleString, Int32, Int32, Int32, IntPtr, ValueTupleNullabledvec3, Double, Double, SKColor)
Public methodSubscribe(ActionUTP) Subscribes a delegate to an event that will be published on the PublisherThread. PubSubEvent will maintain a WeakReference to the target of the supplied action delegate.
(Inherited from PubSubEventListValueTupleValueTupleString, Int32, Int32, Int32, IntPtr, ValueTupleNullabledvec3, Double, Double, SKColor)
Public methodSubscribe(ActionUTP, ThreadOption) Subscribes a delegate to an event. PubSubEvent will maintain a WeakReference to the Target of the supplied action delegate.
(Inherited from PubSubEventListValueTupleValueTupleString, Int32, Int32, Int32, IntPtr, ValueTupleNullabledvec3, Double, Double, SKColor)
Public methodSubscribe(ActionUTP, Boolean) Subscribes a delegate to an event that will be published on the PublisherThread.
(Inherited from PubSubEventListValueTupleValueTupleString, Int32, Int32, Int32, IntPtr, ValueTupleNullabledvec3, Double, Double, SKColor)
Public methodSubscribe(ActionUTP, PredicateUTP) Subscribes a delegate to an event that will be published on the PublisherThread
(Inherited from PubSubEventListValueTupleValueTupleString, Int32, Int32, Int32, IntPtr, ValueTupleNullabledvec3, Double, Double, SKColor)
Public methodSubscribe(ActionUTP, ThreadOption, Boolean) Subscribes a delegate to an event.
(Inherited from PubSubEventListValueTupleValueTupleString, Int32, Int32, Int32, IntPtr, ValueTupleNullabledvec3, Double, Double, SKColor)
Public methodSubscribe(ActionUTP, ThreadOption, Boolean, PredicateUTP) Subscribes a delegate to an event.
(Inherited from PubSubEventListValueTupleValueTupleString, Int32, Int32, Int32, IntPtr, ValueTupleNullabledvec3, Double, Double, SKColor)
Public methodUnsubscribe(ActionUTP) Removes the first subscriber matching ActionT from the subscribers' list.
(Inherited from PubSubEventListValueTupleValueTupleString, Int32, Int32, Int32, IntPtr, ValueTupleNullabledvec3, Double, Double, SKColor)
Public methodUnsubscribe(SubscriptionToken) Removes the subscriber matching the SubscriptionToken.
(Inherited from EventBase)
Top
See Also