Spinnaker Relay class that enables forwarding of Spinnaker images from source to destination PC. More...
#include <SpinnakerRelay.h>
Public Member Functions | |
| SpinnakerRelay () | |
| Default constructor. | |
| virtual | ~SpinnakerRelay () |
| Default destructor. | |
| SpinnakerRelay (const SpinnakerRelay &processor) | |
| Copy constructor. | |
| SpinnakerRelay & | operator= (const SpinnakerRelay &processor) |
| Assignment operator. | |
| virtual void | SetConnectParameters (const ConnectParameters connectParam) |
| Sets relay connect parameters. | |
| virtual void | SetNumBuffers (uint64_t numBuffers) |
| Sets number of relay buffers. | |
| virtual void | AddSource (CameraPtr pCamera) |
| Adds a camera as a streaming source to the sender. | |
| virtual void | RemoveSource (CameraPtr pCamera) |
| Removes a camera as a streaming source from the sender. | |
| virtual void | Connect () |
| Initiates a Spinnaker Relay connection. | |
| virtual void | Disconnect () |
| Disconnects a Spinnaker Relay connection. | |
| virtual bool | IsConnected () |
| Returns a boolean value indicating if this relay is connected. | |
| virtual bool | IsConnecting () |
| Returns a boolean value indicating if the relay is currently attempting to connect. | |
| virtual void | RegisterEventHandler (EventHandler &eventHandler) |
| Registers an image event handler for the receiver. | |
| virtual void | UnregisterEventHandler (EventHandler &eventHandler) |
| Unregisters an event handler from the receiver. | |
| virtual ImagePtr | GetNextImage () |
| Gets the next image that was received by the receiver. | |
| virtual void | GetStatistics (RelayStatistics *statistics) |
| Returns a RelayStatistics struct containing statistics about the performance of the relay connection: e.g. | |
| virtual void | ResetStatistics () |
| Resets the statistics about the performance of the relay connection: e.g. | |
Public Member Functions inherited from ISpinnakerRelay | |
| virtual | ~ISpinnakerRelay (void) |
| virtual void | SetConnectParameters (const ConnectParameters connectParam)=0 |
| virtual void | SetNumBuffers (uint64_t numBuffers)=0 |
| virtual void | AddSource (CameraPtr pCamera)=0 |
| virtual void | RemoveSource (CameraPtr pCamera)=0 |
| virtual void | Connect ()=0 |
| virtual void | Disconnect ()=0 |
| virtual bool | IsConnected ()=0 |
| virtual void | RegisterEventHandler (EventHandler &eventHandler)=0 |
| virtual void | UnregisterEventHandler (EventHandler &eventHandler)=0 |
| virtual ImagePtr | GetNextImage ()=0 |
| virtual void | GetStatistics (RelayStatistics *statistics)=0 |
Additional Inherited Members | |
Protected Member Functions inherited from ISpinnakerRelay | |
| ISpinnakerRelay () | |
| ISpinnakerRelay (const ISpinnakerRelay &) | |
| ISpinnakerRelay & | operator= (const ISpinnakerRelay &) |
Protected Attributes inherited from ISpinnakerRelay | |
| SpinnakerRelayData * | m_pSpinnakerRelayData |
Spinnaker Relay class that enables forwarding of Spinnaker images from source to destination PC.
| SpinnakerRelay | ( | ) |
Default constructor.
|
virtual |
Default destructor.
| SpinnakerRelay | ( | const SpinnakerRelay & | processor | ) |
Copy constructor.
|
virtual |
Adds a camera as a streaming source to the sender.
Images from this camera will be relayed from the sender to the receiver.
Note that cameras may not be added to a receiver as a source. This must be called after SetConnectParameters() in order to set the role to sender.
| pCamera | The camera to add as a source. |
Implements ISpinnakerRelay.
|
virtual |
Initiates a Spinnaker Relay connection.
This must be called from both the sender and receiver for the connection to be made.
Note that this must be called after SetConnectParameters() and SetNumBuffers() in order to set the role, other connect parameters, and buffer size.
Implements ISpinnakerRelay.
|
virtual |
Disconnects a Spinnaker Relay connection.
Implements ISpinnakerRelay.
|
virtual |
Gets the next image that was received by the receiver.
Implements ISpinnakerRelay.
|
virtual |
Returns a RelayStatistics struct containing statistics about the performance of the relay connection: e.g.
frame rate, data rate, frame counts.
| statistics | A pointer to the struct that will store result |
Implements ISpinnakerRelay.
|
virtual |
Returns a boolean value indicating if this relay is connected.
Implements ISpinnakerRelay.
|
virtual |
Returns a boolean value indicating if the relay is currently attempting to connect.
If the relay is not explicitly disconnected using Disconnect(), it will automatically attempt to reconnect unless the connection is re-established or the timeout period specified in SetConnectParameters() expires.
| SpinnakerRelay & operator= | ( | const SpinnakerRelay & | processor | ) |
Assignment operator.
|
virtual |
Registers an image event handler for the receiver.
The relay connect parameters must be set before registering an image event handler, and the role must be receiver.
| eventHandler | The event handler to register for the receiver |
Implements ISpinnakerRelay.
|
virtual |
Removes a camera as a streaming source from the sender.
| pCamera | The camera to remove as a source. |
Implements ISpinnakerRelay.
|
virtual |
Resets the statistics about the performance of the relay connection: e.g.
frame rate, data rate, frame counts. Counts are reset to zero and start timer is reset.
|
virtual |
Sets relay connect parameters.
Spinnaker Relay can operate in the sender or receiver roles.
Note that the connect parameters must be set first, before calling AddSource(), SetNumBuffers(), RegisterEventHandler(), or Connect().
| connectParam | Connect parameters to set |
Implements ISpinnakerRelay.
|
virtual |
Sets number of relay buffers.
Note that this must be called after SetConnectParameters().
| numBuffers | Number of relay buffers to set |
Implements ISpinnakerRelay.
|
virtual |
Unregisters an event handler from the receiver.
Event handlers should be unregistered first before calling Disconnect().
| eventHandler | The event handler to unregister from the receiver |
Implements ISpinnakerRelay.