Zivid  1.0.1+3607.8a7510c4
Zivid API
Application.h
Go to the documentation of this file.
1 /*[
2  * This file is part of the Zivid 3D Camera API
3  *
4  * Copyright 2015-2018 (C) Zivid Labs. All rights reserved.
5  * Contact info@zividlabs.com or see http://www.zividlabs.com
6  *
7  * This code is proprietary and confidential.
8  * Unauthorized copying of this file, via any medium is strictly prohibited.
9 ]*/
10 
11 #pragma once
12 
15 
16 #include "APIExport.h"
17 #include "Camera.h"
18 
19 namespace Zivid
20 {
21  class SerialNumber;
22 
27  {
28  public:
30  ZIVID_API Application();
32  ZIVID_API ~Application();
33 
34  ZIVID_API Application(const Application &other) = delete;
35  ZIVID_API Application &operator=(const Application &other) = delete;
37  ZIVID_API Application(Application && other) noexcept;
39  ZIVID_API Application &operator=(Application && other) noexcept;
40 
44  ZIVID_API Camera connectCamera(const Settings &settings = {});
45 
50  ZIVID_API Camera connectCamera(const SerialNumber &serialNumber, const Settings &settings = {});
51 
56  ZIVID_API Camera createFileCamera(const std::string& frameFile, const Settings &settings = {});
57 
60  ZIVID_API std::vector<Camera> cameras();
61 
64  ZIVID_API void setDefaultComputeDevice(ComputeDevice device);
65 
68  ZIVID_API ComputeDevice defaultComputeDevice() const;
69 
70 #ifndef DOXYGEN_SHOULD_SKIP_THIS
71  ZIVID_API class ApplicationImpl &getImpl();
72 #endif
73 
74  private:
75  std::unique_ptr<class ApplicationImpl> m_impl;
76  };
77 }
Manager class for Zivid
Definition: Application.h:26
Definition: Application.h:19
ZIVID_API Camera createFileCamera(const std::string &frameFile, const Settings &settings={})
Create a virtual camera to simulate Zivid measurements by reading data from a file
ZIVID_API Application()
Constructor
Definitions for export of DLL interfaces
ZIVID_API ~Application()
Destructor
ZIVID_API Camera connectCamera(const Settings &settings={})
Connect to the next available Zivid camera
ZIVID_API ComputeDevice defaultComputeDevice() const
The default compute device, used when connecting to new cameras
Interface to one Zivid camera
ZIVID_API void setDefaultComputeDevice(ComputeDevice device)
Set the default compute device to be used for new cameras
Settings for a Zivid camera
Definition: Settings.h:50
A Compute device on which to allocate a device point cloud.
Definition: ComputeDevice.h:28
Serial number of a Zivid camera
Definition: SerialNumber.h:24
ZIVID_API std::vector< Camera > cameras()
Get a list of all cameras
Interface to one Zivid camera
Definition: Camera.h:38