A user interface for configuring PvCameraBridge instances of a device. More...
Public Member Functions | |
PvCameraBridgeManagerWnd () | |
Constructor. | |
virtual | ~PvCameraBridgeManagerWnd () |
Destructor. | |
PvResult | SetDevice (PvDevice *aDevice) |
Sets the device the bridge manager works on. More... | |
PvResult | SetStream (PvStream *aStream) |
Sets the stream the bridge manager works on. More... | |
PvResult | Save (PvConfigurationWriter &aWriter) |
Persists the current serial bridge manager configuration. More... | |
PvResult | Load (PvConfigurationReader &aRead, PvStringList &aErrors) |
Restores a serial bridge manager configuration. More... | |
PvResult | Recover () |
Deprecated. More... | |
int | GetBridgeCount () const |
Returns how many bridges are currently managed by the bridge manager. More... | |
PvDeviceSerial | GetBridgePort (int aIndex) |
Returns the serial port used by one of the bridges managed by the bridge manager. More... | |
PvCameraBridge * | GetBridge (int aIndex) |
Returns one of the bridges managed by the bridge manager. More... | |
bool | IsPCFVisible () const |
Returns true if the Pleora Camera File option is visible and enabled. More... | |
void | ShowPCF () |
Makes the Pleora Camera File option visible and enabled in the user interface. More... | |
void | HidePCF () |
Hides and disables the Pleora Camera File option in the user interface. More... | |
![]() | |
void | SetPosition (int32_t aPosX, int32_t aPosY, int32_t aSizeX, int32_t aSizeY) |
Set the window's position and size. More... | |
void | GetPosition (int32_t &aPosX, int32_t &aPosY, int32_t &aSizeX, int32_t &aSizeY) |
Get the window's position and size. More... | |
PvString | GetTitle () const |
Get the window's title. More... | |
void | SetTitle (const PvString &aTitle) |
Set the window's title. More... | |
PvResult | Close () |
Close the window. More... | |
Additional Inherited Members | |
![]() | |
PvWnd () | |
Constructor. | |
virtual | ~PvWnd () |
Destructor. | |
A user interface for configuring PvCameraBridge instances of a device.
PvCameraBridge * PvCameraBridgeManagerWnd::GetBridge | ( | int | aIndex | ) |
Returns one of the bridges managed by the bridge manager.
[in] | aIndex | Zero-based index of the bridge. |
int PvCameraBridgeManagerWnd::GetBridgeCount | ( | ) | const |
Returns how many bridges are currently managed by the bridge manager.
PvDeviceSerial PvCameraBridgeManagerWnd::GetBridgePort | ( | int | aIndex | ) |
Returns the serial port used by one of the bridges managed by the bridge manager.
[in] | aIndex | Zero-based index of the bridge. |
void PvCameraBridgeManagerWnd::HidePCF | ( | ) |
Hides and disables the Pleora Camera File option in the user interface.
See ShowPCF for more information.
bool PvCameraBridgeManagerWnd::IsPCFVisible | ( | ) | const |
Returns true if the Pleora Camera File option is visible and enabled.
PvResult PvCameraBridgeManagerWnd::Load | ( | PvConfigurationReader & | aReader, |
PvStringList & | aErrors | ||
) |
Restores a serial bridge manager configuration.
The load works on a best effort basis. Whatever can be restored will be restored. For everything else, error report strings are appended to the aErrors list.
The order to properties in the aPropertyList is not important.
[in] | aReader | A PvConfigurationRead object used to read the bridges configuration. |
[out] | aErrors | A list of errors that happened during the peristence load operation. |
PvResult PvCameraBridgeManagerWnd::Recover | ( | ) |
Deprecated.
Instead, on disconnect event use Save to store the serial bridge state. After reconnection, use Load to bring it back.
PvResult PvCameraBridgeManagerWnd::Save | ( | PvConfigurationWriter & | aWriter | ) |
Persists the current serial bridge manager configuration.
This call builds a list of properties containing pairs of names/values.
[in] | aWriter | A configuration object used to save the bridge manager state. |
Sets the device the bridge manager works on.
[in] | aDevice | Device to manage the bridges/ports for. |
Sets the stream the bridge manager works on.
[in] | aStream | Stream to manage the bridges/ports for. |
void PvCameraBridgeManagerWnd::ShowPCF | ( | ) |
Makes the Pleora Camera File option visible and enabled in the user interface.
Saves a flag, so its safe to call before showing the dialog. If the dialog is visible, the UI is updated. If PCF is selected when called, forces the camera bridge type to None.
Copyright (c) 2002-2021 Pleora Technologies Inc.
www.pleora.com