Factory for discovering and connecting to RealSense 3D scanners.
More...
|
|
| RealSenseScannerFactory () |
| | Constructs the factory (protected; use SetupDefault()).
|
|
virtual | ~RealSenseScannerFactory () |
| | Destroys the factory.
|
|
| static rs2::context | MainContext () |
| | Returns the main RealSense context singleton.
|
|
|
RealSenseClient * | m_client |
| | The remote client for network-connected scanners.
|
|
Buffer< String > | m_remote_connections |
| | List of remote device addresses.
|
|
String | m_servo_address |
| | The servo controller address.
|
Factory for discovering and connecting to RealSense 3D scanners.
Discovers local USB-connected and remote network-connected RealSense devices and creates RealSenseScanner instances for them.
Definition at line 51 of file RealSenseScannerFactory.h.
◆ addRemoteAddress()
| void RealSenseScannerFactory::addRemoteAddress |
( |
const String & | remote | ) |
|
Adds a remote device address to the discovery list.
- Parameters
-
| [in] | remote | The IP address of the remote device. |
◆ connectToScanner()
| virtual Scanner3D * RealSenseScannerFactory::connectToScanner |
( |
QPointer< Connection > | connection_to_try, |
|
|
DesignObjectLookup * | lookup ) const |
|
overridevirtual |
Creates a scanner from an established connection.
- Parameters
-
| [in] | connection_to_try | The connection to use. |
| [in] | lookup | The design object lookup for scanner models. |
- Returns
- A pointer to the created Scanner3D.
◆ CreateRemoteConnection()
Creates a connection to a remote RealSense device.
- Parameters
-
| [in] | ip_address | The IP address of the remote device. |
| [in] | raw_network_log | Optional raw network log. |
| [in] | log | Optional general log. |
- Returns
- A pointer to the created connection.
◆ Default()
◆ MainContext()
| rs2::context RealSenseScannerFactory::MainContext |
( |
| ) |
|
|
staticprotected |
Returns the main RealSense context singleton.
- Returns
- The main rs2::context.
◆ possibleConnections()
Returns all possible connections (local and remote).
- Parameters
-
| [in] | params | Search parameters for hardware discovery. |
- Returns
- A buffer of discovered connection pointers.
◆ possibleLocalConnections()
Returns connections to locally attached RealSense devices.
- Parameters
-
| [in] | params | Search parameters for hardware discovery. |
- Returns
- A buffer of local connection pointers.
◆ possibleRemoteConnections()
Returns connections to remotely discovered RealSense devices.
- Parameters
-
| [in] | params | Search parameters for hardware discovery. |
- Returns
- A buffer of remote connection pointers.
◆ setClient()
Sets the RealSense client for remote connections.
- Parameters
-
| [in] | client | The client to use. |
◆ setServoAddress()
| void RealSenseScannerFactory::setServoAddress |
( |
String | port | ) |
|
Sets the servo controller address for motorized scanning.
- Parameters
-
| [in] | port | The serial port or address for the servo controller. |
◆ SetupDefault()
Sets up and returns the default factory singleton.
- Returns
- A pointer to the default factory.
References RealSenseScannerFactory().
The documentation for this class was generated from the following file: