Spinnaker Relay class that enables forwarding of Spinnaker images from source to destination PC.
More...
Spinnaker Relay class that enables forwarding of Spinnaker images from source to destination PC.
◆ SpinnakerRelay() [1/2]
◆ ~SpinnakerRelay()
◆ SpinnakerRelay() [2/2]
◆ AddSource()
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.
- Parameters
-
| pCamera | The camera to add as a source. |
- See also
- RemoveSource()
Implements ISpinnakerRelay.
◆ Connect()
◆ Disconnect()
| virtual void Disconnect |
( |
| ) |
|
|
virtual |
◆ GetNextImage()
◆ GetStatistics()
Returns a RelayStatistics struct containing statistics about the performance of the relay connection: e.g.
frame rate, data rate, frame counts.
- See also
- struct RelayStatistics
- Parameters
-
| statistics | A pointer to the struct that will store result |
Implements ISpinnakerRelay.
◆ IsConnected()
| virtual bool IsConnected |
( |
| ) |
|
|
virtual |
Returns a boolean value indicating if this relay is connected.
- Returns
- Returns true if the relay is connected.
Implements ISpinnakerRelay.
◆ IsConnecting()
| virtual bool IsConnecting |
( |
| ) |
|
|
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.
- See also
- Disconnect()
-
SetConnectParameters()
-
struct ConnectParameters
- Returns
- Returns true if the relay is attempting to connect.
◆ operator=()
◆ RegisterEventHandler()
| virtual void RegisterEventHandler |
( |
EventHandler & |
eventHandler | ) |
|
|
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.
- See also
- UnregisterEventHandler()
-
ImageEventHandler
- Parameters
-
| eventHandler | The event handler to register for the receiver |
Implements ISpinnakerRelay.
◆ RemoveSource()
| virtual void RemoveSource |
( |
CameraPtr |
pCamera | ) |
|
|
virtual |
Removes a camera as a streaming source from the sender.
- Parameters
-
| pCamera | The camera to remove as a source. |
- See also
- AddSource()
Implements ISpinnakerRelay.
◆ ResetStatistics()
| virtual void ResetStatistics |
( |
| ) |
|
|
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.
- See also
- GetStatistics()
◆ SetConnectParameters()
◆ SetNumBuffers()
| virtual void SetNumBuffers |
( |
uint64_t |
numBuffers | ) |
|
|
virtual |
◆ UnregisterEventHandler()
| virtual void UnregisterEventHandler |
( |
EventHandler & |
eventHandler | ) |
|
|
virtual |
Unregisters an event handler from the receiver.
Event handlers should be unregistered first before calling Disconnect().
- See also
- RegisterEventHandler()
- Parameters
-
| eventHandler | The event handler to unregister from the receiver |
Implements ISpinnakerRelay.
The documentation for this class was generated from the following file: