Zivid C++ API 2.14.0+e4a0c4a9-1
|
Manager class for Zivid. More...
#include <Zivid/Application.h>
Public Member Functions | |
Application () | |
Constructor. | |
ZIVID_CORE_EXPORT Camera | connectCamera () |
Connect to the next available Zivid camera. | |
ZIVID_CORE_EXPORT Camera | connectCamera (const CameraInfo::SerialNumber &serialNumber) |
Connect to the Zivid camera with the specified serial number. | |
ZIVID_CORE_EXPORT Camera | createFileCamera (const std::string &cameraFile) |
Create a virtual camera to simulate Zivid measurements by reading data from a file. | |
ZIVID_CORE_EXPORT std::vector< Camera > | cameras () |
Get a list of all cameras. | |
ZIVID_CORE_EXPORT ComputeDevice | computeDevice () const |
The default compute device, used when connecting to new cameras. | |
ZIVID_CORE_EXPORT std::string | toString () const |
Get string representation of the application. | |
Friends | |
Application | Detail::createApplicationForWrapper (Zivid::Detail::EnvironmentInfo::Wrapper wrapper) |
Manager class for Zivid.
The Application class manages resources used by the Zivid SDK. It is required to have one instance of this class alive while using the SDK. Using any part of the SDK without a live Application is undefined behavior.
It is not possible to have more than one Application instance at a time. Creating a second Application instance before the first Application instance has been destroyed will trigger an exception. All objects (cameras, frames, etc.) from the previous Application instance must destroyed before a new instance can be created.
|
inline |
Constructor.
ZIVID_CORE_EXPORT std::vector< Camera > Zivid::Application::cameras | ( | ) |
Get a list of all cameras.
This method will return all discovered cameras that are connected to your PC or local network. This may include cameras that are not connectable from the SDK, because of misconfigured camera/PC network settings, etc. Check the CameraState Status enum to determine the state of a particular camera.
ZIVID_CORE_EXPORT ComputeDevice Zivid::Application::computeDevice | ( | ) | const |
The default compute device, used when connecting to new cameras.
ZIVID_CORE_EXPORT Camera Zivid::Application::connectCamera | ( | ) |
ZIVID_CORE_EXPORT Camera Zivid::Application::connectCamera | ( | const CameraInfo::SerialNumber & | serialNumber | ) |
ZIVID_CORE_EXPORT Camera Zivid::Application::createFileCamera | ( | const std::string & | cameraFile | ) |
ZIVID_CORE_EXPORT std::string Zivid::Application::toString | ( | ) | const |
Get string representation of the application.
|
friend |