An interface object which holds a list of cameras. More...
#include <Interface.h>
Public Member Functions | |
virtual | ~Interface (void) |
Virtual Destructor. | |
CameraList | GetCameras (bool updateCameras=true) const |
Returns a list of cameras available on this interface. | |
bool | UpdateCameras () |
Updates the list of cameras on this interface. | |
GenApi::INodeMap & | GetTLNodeMap () const |
Gets a nodeMap that is generated from a GenICam XML file for the GenTL interface Module. | |
void | RegisterEventHandler (EventHandler &evtHandlerToRegister) |
Registers an event handler for the interface Event handlers are automatically cleaned up when an interface is removed, and must be registered to interfaces as they arrive. | |
void | UnregisterEventHandler (EventHandler &evtHandlerToUnregister) |
Unregisters an event handler for the interface. | |
bool | IsCameraInUse () const |
Checks if the interface is in use by any camera objects. | |
void | SendActionCommand (unsigned int deviceKey, unsigned int groupKey, unsigned int groupMask, unsigned long long actionTime=0, bool requestAck=false, unsigned int *pResultSize=0, ActionCommandResult results[]=NULL) const |
Broadcast an Action Command to all devices on interface. | |
bool | IsValid () |
IsValid Checks a flag to determine if interface is still valid for use. | |
Public Member Functions inherited from IInterface | |
virtual | ~IInterface () |
virtual CameraList | GetCameras (bool updateCameras=true) const =0 |
virtual bool | UpdateCameras ()=0 |
virtual GenApi::INodeMap & | GetTLNodeMap () const =0 |
virtual void | RegisterEventHandler (EventHandler &evtHandlerToRegister)=0 |
virtual void | UnregisterEventHandler (EventHandler &evtHandlerToUnregister)=0 |
virtual bool | IsCameraInUse () const =0 |
virtual void | SendActionCommand (unsigned int deviceKey, unsigned int groupKey, unsigned int groupMask, unsigned long long actionTime=0, bool requestAck=false, unsigned int *pResultSize=0, ActionCommandResult results[]=NULL) const =0 |
virtual bool | IsValid ()=0 |
Friends | |
class | InterfaceInternal |
Additional Inherited Members | |
Public Attributes inherited from IInterface | |
TransportLayerInterface | TLInterface |
Protected Member Functions inherited from IInterface | |
IInterface () | |
IInterface (const IInterface &) | |
IInterface & | operator= (const IInterface &) |
Protected Attributes inherited from IInterface | |
InterfaceData * | m_pInterfaceData |
An interface object which holds a list of cameras.
|
virtual |
Virtual Destructor.
|
virtual |
Returns a list of cameras available on this interface.
This call returns either usb3 vision or gige vision cameras depending on the underlying transport layer of this interface. The camera list object will reference count the cameras that it holds. It is important that the CameraList is destroyed or is cleared before System::ReleaseInstance() can be called or an InterfaceList that holds this interface can be cleared.
updateCameras | A flag used to issue an updateCameras() call internally before getting the camera list |
Implements IInterface.
|
virtual |
Gets a nodeMap that is generated from a GenICam XML file for the GenTL interface Module.
Implements IInterface.
|
virtual |
Checks if the interface is in use by any camera objects.
Implements IInterface.
|
virtual |
IsValid Checks a flag to determine if interface is still valid for use.
Implements IInterface.
|
virtual |
Registers an event handler for the interface Event handlers are automatically cleaned up when an interface is removed, and must be registered to interfaces as they arrive.
Note that GEV interfaces experience arrival/removal events when the IP information changes, similar to GEV cameras. Please refer to the EnumerationEvents example for recommended use.
evtHandlerToRegister | The event handler to register for the interface |
Implements IInterface.
|
virtual |
Broadcast an Action Command to all devices on interface.
deviceKey | The Action Command's device key |
groupKey | The Action Command's group key |
groupMask | The Action Command's group mask |
actionTime | (Optional) Time when to assert a future action. Zero means immediate action. |
pResultSize | (Optional) The number of results in the results array. The value passed should be equal to the expected number of devices that acknowledge the command. Returns the number of received results. If this parameter is 0 or NULL, the function will return as soon as the command has been broadcasted. |
results | (Optional) An Array with *pResultSize elements to hold the action command result status. The buffer is filled starting from index 0. If received results are less than expected number of devices that acknowledge the command, remaining results are not changed. If received results are more than expected number of devices that acknowledge the command, extra results are ignored and not appended to array. This parameter is ignored if pResultSize is 0. Thus this parameter can be NULL if pResultSize is 0 or NULL. |
Implements IInterface.
|
virtual |
Unregisters an event handler for the interface.
evtHandlerToUnregister | The event handler to unregister from the interface |
Implements IInterface.
|
virtual |
Updates the list of cameras on this interface.
This function needs to be called before any cameras can be discovered using GetCameras(). System::GetCameras() will automatically call this function for each interface it enumerates. If the list changed after the last time System::GetCameras() or UpdateCameras() was called then the return value will be true, otherwise it is false.
Implements IInterface.
|
friend |