|
|
| PvDeviceFinderWnd () |
| | Constructor.
|
| |
| const PvDeviceInfo * | GetSelected () |
| | Get the device's connectivity information (PvDeviceInfo object) More...
|
| |
| virtual bool | OnFound (const PvDeviceInfo *aDI) |
| | Define the behavior of a user prompt (PvDeviceFinderWnd object) when it finds an device. More...
|
| |
| void | GetGEVEnabled (bool &aSelectable, bool &aVisible) const |
| | Returns whether or not devices are selectable and/or visible. More...
|
| |
| void | SetGEVEnabled (bool aSelectable, bool aVisible) |
| | Configures whether or not GigE Vision devices are selectable and/or visible. More...
|
| |
| void | GetU3VEnabled (bool &aSelectable, bool &aVisible) const |
| | Returns whether or not USB3 Vision devices are selectable and/or visible. More...
|
| |
| void | SetU3VEnabled (bool aSelectable, bool aVisible) |
| | Configures whether or not USB3 Vision devices are selectable and/or visible. More...
|
| |
| void | GetPleoraProtocolEnabled (bool &aSelectable, bool &aVisible) const |
| | Returns whether or not Pleora Protocol devices are selectable and/or visible. More...
|
| |
| void | SetPleoraProtocolEnabled (bool aSelectable, bool aVisible) |
| | Configures whether or not Pleora Protocol devices are selectable and/or visible. 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...
|
| |
| PvResult | ShowModal () |
| | Display the window (modal). More...
|
| |
| PvResult | ShowModal (QWidget *aParentHwnd) |
| | Display the window (modal). More...
|
| |
| PvResult | Create (QWidget *aHwnd) |
| | Display the window (embedded in your program's window). More...
|
| |
| PvResult | ShowModeless () |
| | Display the window (non-modal). More...
|
| |
| PvResult | ShowModeless (QWidget *aParentHwnd) |
| | Display the window (non-modal). More...
|
| |
| QWidget * | GetQWidget () |
| | Get the display controller's (PvWnd object) handle. 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...
|
| |
GUI-based Vision Device (GigE Vision and USB3 Vision) finder.
PvDeviceFinderWnd is a GUI-based object that finds all Vision Devices (GigE Vision and USB3 Vision) connected and lets the user select one.
To find a Vision Device (GigE Vision and USB3 Vision) (GUI):
- Create a GUI-based Vision Device (GigE Vision and USB3 Vision) finder (PvDeviceFinderWnd object).
- Set the window's properties. Use SetPosition and other PvWnd Set* methods.
- Display the window. Use ShowModalor ShowModeless.
- Retrieve the user's selection (information about the chosen device). Use PvDeviceFinderWnd::GetSelected.
To connect to the Vision Device (GigE Vision and USB3 Vision), see PvDevice.
Define the behavior of a user prompt (PvDeviceFinderWnd object) when it finds an device.
When the PvDeviceFinderWnd object finds a device, it automatically calls the OnFound method. If OnFound returns true, the PvDeviceFinderWnd object adds the device to the list. The default version of OnFound method does nothing and always returns true.
However, you can override the OnFound method so that it does something or returns a value other than true. For example, when PvDeviceFinderWnd finds your desired device, you can use OnFound to connect to it immediately (using PvDevice::Connect(const PvString&,PvAccessType), without waiting for the search to complete. Similarly, you can use OnFound to filter the list of devices by returning false in some cases.
- Parameters
-
| [in] | aDI | The device that was found. |
- Return values
-
| True. | (True if the PvDeviceFinderWnd should include the device in the list of found devices; false if the device should be omitted from the list.) |