Impact Vision SDK  11.8.1
VisionSDK.VisionDeviceEventListener Class Reference

This class defines the interface of an object with the responsibility for checking if some events have occurred on the Vision Device,
or at the VisionDeviceConnection.
This is an abstract class. To make this check, you must subclass this or use VisionDeviceListenerPeriodic. More...

Inheritance diagram for VisionSDK.VisionDeviceEventListener:
VisionSDK.VisionDeviceEventListenerPeriodic

Public Member Functions

 VisionDeviceEventListener (EventsManager eventsManager)
 Constructor More...
 

Protected Member Functions

void OnConnectionLost ()
 This method will fire the ConnectionLost Event More...
 
void OnOccurredEvent (VisionEvent visionEvent)
 This method will fire the Event based on the VisionEvent parameter More...
 

Protected Attributes

int numberOfContiguosFailOccurred
 Keep track of the number of failed requests that occurred (cleared each time a successful request is performed) More...
 
VisionDeviceConnection deviceConnection
 
Boolean checkConnectionStatus
 
Boolean listenForOccurredEvents
 

Properties

Boolean DiscardDuplicateEvents [get, set]
 If true, this will keep a single type of event for each check and discard the equivalents More...
 
int NumberOfContiguosFailBeforeFireConnectionLost [get, set]
 Specify a number of continuous failed checks before firing the Connection Lost event More...
 
int NumberOfContiguosFailOccurred [get]
 Return the number of failed requests that occurred More...
 
VisionDeviceConnection DeviceConnection [get, set]
 The VisionDeviceConnection on which to check the events More...
 
Boolean CheckConnectionStatus [get, set]
 If True, the Connection Status check is performed More...
 
Boolean ListenForOccurredEvents [get, set]
 If true, the Events check is performed More...
 
EventsManager EventManager [get, set]
 

Events

EventHandler< VisionEventArgs > DidAcquiredABadImage
 Fired when a Bad Image is acquired from the camera More...
 
EventHandler< VisionEventArgs > DidAcquiredAnImage
 Fired when an Image is acquired from the camera More...
 
EventHandler< VisionEventArgs > DidLostTheConnection
 Fired if the VisionDeviceConnection loses the connection More...
 
EventHandler< VisionEventArgs > DidGoOnline
 Fired when the Vision Device goes to the online state More...
 
EventHandler< VisionEventArgs > DidGoOffline
 Fired when the Vision Device goes to the offline state More...
 
EventHandler< VisionCustomEventArgs > DidReceivedACustomEvent
 Fired if the Vision Device receives a custom event More...
 

Detailed Description

This class defines the interface of an object with the responsibility for checking if some events have occurred on the Vision Device,
or at the VisionDeviceConnection.
This is an abstract class. To make this check, you must subclass this or use VisionDeviceListenerPeriodic.

Constructor & Destructor Documentation

VisionSDK.VisionDeviceEventListener.VisionDeviceEventListener ( EventsManager  eventsManager)

Constructor

Parameters
eventsManagerThe EventsManager that will fire the events using the specified Dispatcher

Member Function Documentation

void VisionSDK.VisionDeviceEventListener.OnConnectionLost ( )
protected

This method will fire the ConnectionLost Event

void VisionSDK.VisionDeviceEventListener.OnOccurredEvent ( VisionEvent  visionEvent)
protected

This method will fire the Event based on the VisionEvent parameter

Parameters
visionEventThe VisionEvent to fire

Member Data Documentation

Boolean VisionSDK.VisionDeviceEventListener.checkConnectionStatus
protected
VisionDeviceConnection VisionSDK.VisionDeviceEventListener.deviceConnection
protected
Boolean VisionSDK.VisionDeviceEventListener.listenForOccurredEvents
protected
int VisionSDK.VisionDeviceEventListener.numberOfContiguosFailOccurred
protected

Keep track of the number of failed requests that occurred (cleared each time a successful request is performed)

Property Documentation

Boolean VisionSDK.VisionDeviceEventListener.CheckConnectionStatus
getset

If True, the Connection Status check is performed

VisionDeviceConnection VisionSDK.VisionDeviceEventListener.DeviceConnection
getset

The VisionDeviceConnection on which to check the events

Boolean VisionSDK.VisionDeviceEventListener.DiscardDuplicateEvents
getset

If true, this will keep a single type of event for each check and discard the equivalents

EventsManager VisionSDK.VisionDeviceEventListener.EventManager
getsetprotected
Boolean VisionSDK.VisionDeviceEventListener.ListenForOccurredEvents
getset

If true, the Events check is performed

int VisionSDK.VisionDeviceEventListener.NumberOfContiguosFailBeforeFireConnectionLost
getset

Specify a number of continuous failed checks before firing the Connection Lost event

int VisionSDK.VisionDeviceEventListener.NumberOfContiguosFailOccurred
get

Return the number of failed requests that occurred

Event Documentation

EventHandler<VisionEventArgs> VisionSDK.VisionDeviceEventListener.DidAcquiredABadImage

Fired when a Bad Image is acquired from the camera

EventHandler<VisionEventArgs> VisionSDK.VisionDeviceEventListener.DidAcquiredAnImage

Fired when an Image is acquired from the camera

EventHandler<VisionEventArgs> VisionSDK.VisionDeviceEventListener.DidGoOffline

Fired when the Vision Device goes to the offline state

EventHandler<VisionEventArgs> VisionSDK.VisionDeviceEventListener.DidGoOnline

Fired when the Vision Device goes to the online state

EventHandler<VisionEventArgs> VisionSDK.VisionDeviceEventListener.DidLostTheConnection

Fired if the VisionDeviceConnection loses the connection

EventHandler<VisionCustomEventArgs> VisionSDK.VisionDeviceEventListener.DidReceivedACustomEvent

Fired if the Vision Device receives a custom event

HTML Footer Datalogic Automation, Inc.    ©2016 Datalogic Automation Inc. All Rights Reserved