API Reference
DaoAI Camera Studio API reference.
Namespace
namespace DaoAInamespace DaoAI_NET
Classes
Class Application
#include "application.h"#include "application.h"
Public Member Functions
- Constructor:
DAOAI_API Application();Application();- Destructor:
DAOAI_API ~Application();~Application();- getCameras:
Get a list of all USB cameras
- Parameters:
[out] cameras: A map of all connected DaoAI-supported cameras keyed by serial number.
[in] [OPTIONAL] remote_address: A map of all connected DaoAI-supported cameras keyed by serial number.
- Return:
SlcSdkError: struct containing status codes and any error messages.
DAOAI_API SlcSdkError getCameras(std::map<std::string, Camera*>& cameras, std::string remote_address = "");
- Parameters:
[out] cameras: A map of all connected DaoAI-supported cameras keyed by serial number.
[in] [OPTIONAL] remote_address: A map of all connected DaoAI-supported cameras keyed by serial number.
- Return:
DaoAINETError^: DaoAINETError object handle containing status codes and any error messages.
DaoAINETError^ getCameras(Dictionary<System::String^, Camera^>^% cameras, System::String^ remote_address); DaoAINETError^ getCameras(Dictionary<System::String^, Camera^>^% cameras);- connectCamera:
Connect to the next available DaoAI camera.
- Parameters:
[in] camera: Camera to connect.
[in] [OPTIONAL] settings: Connect to the camera with this settings. Must contain at least one frame.
- Return:
SlcSdkError: struct containing status codes and any error messages.
DAOAI_API SlcSdkError connectCamera(Camera*& camera, const Settings& settings = {});
- Parameters:
[in] camera: Camera to connect.
[in] [OPTIONAL] settings: Connect to the camera with this settings. Must contain at least one frame.
- Return:
DaoAINETError^: DaoAINETError object handle containing status codes and any error messages.
DaoAINETError^ connectCamera(Camera^% camera, Settings^ settings); DaoAINETError^ connectCamera(Camera^% camera);- connectCamera:
Connect to the DaoAI camera with serial number.
- Parameters:
[in] serial_number: Connect to the camera with this serial number.
[out] camera: Pointer to the connected camera.
[in] [OPTIONAL] settings: Connect to the camera with this settings. Must contain at least one frame.
- Return:
SlcSdkError: struct containing status codes and any error messages.
DAOAI_API SlcSdkError connectCamera(const std::string serial_number, Camera*& camera, const Settings &settings = {});
- Parameters:
[in] serial_number: Connect to the camera with this serial number.
[out] camera: Pointer to the connected camera.
[in] [OPTIONAL] settings: Connect to the camera with this settings. Must contain at least one frame.
- Return:
DaoAINETError^: DaoAINETError object handle containing status codes and any error messages.
DaoAINETError^ connectCamera(System::String^ serial_number, Camera^% camera, Settings^ settings); DaoAINETError^ connectCamera(System::String^ serial_number, Camera^% camera);- disconnectCamera:
Disconnect the DaoAI camera with serial number.
- Parameters:
[in] serial_number: Serial number of camera to disconnect.
- Return:
SlcSdkError: struct containing status codes and any error messages.
DAOAI_API SlcSdkError disconnectCamera(const std::string serial_number);
- Return:
DaoAINETError^: DaoAINETError object handle containing status codes and any error messages.
DaoAINETError^ disConnect();- startLogging:
Enable writing camera log to a file
- Parameters:
[in] [OPTIONAL] log_path: Specify directory to write logs
- Return:
SlcSdkError: struct containing status codes and any error messages.
DAOAI_API SlcSdkError startLogging(std::string log_path = "");
- Parameters:
[in] [OPTIONAL] log_path: Specify directory to write logs
- Return:
DaoAINETError^: DaoAINETError object handle containing status codes and any error messages.
DaoAINETError^ startLogging(System::String^ log_path); DaoAINETError^ startLogging();- stopLogging:
Disable writing camera log to a file
- Return:
SlcSdkError: struct containing status codes and any error messages.
DAOAI_API SlcSdkError stopLogging();
- Return:
DaoAINETError^: DaoAINETError object handle containing status codes and any error messages.
DaoAINETError^ stopLogging();
Class Version
#include "application.h" namespace Version#include "application.h"
Public Member Functions
- getSDKVersion:
get the DaoAI SDK version.
- Return:
string: String containing DaoAI SDK version.
DAOAI_API std::string getSDKVersion();
- Return:
System::String: String containing DaoAI SDK version.
System::String^ getSDKVersion();
Class Camera
#include "camera.h"#include "camera.h"
Public Member Functions
- Constructor:
DAOAI_API Camera();Camera();- Copy Constructor:
DAOAI_API explicit Camera(const std::shared_ptr<Camera>& other);Camera(Camera^ other);- Move Constructor:
DAOAI_API explicit Camera(class CameraImpl &&other);- Destructor:
DAOAI_API ~Camera();~Camera();- connect:
Connect the camera.
- Return:
SlcSdkError: struct containing status codes and any error messages.
DAOAI_API SlcSdkError connect();
- Return:
DaoAINETError^: DaoAINETError object handle containing status codes and any error messages.
DaoAINETError^ connect();- disConnect:
Disconnect the camera.
- Return:
SlcSdkError: struct containing status codes and any error messages.
DAOAI_API SlcSdkError disConnect();
- Return:
DaoAINETError^: DaoAINETError object handle containing status codes and any error messages.
DaoAINETError^ disconnectCamera(System::String^ serial_number);- isConnected:
Check if the camera is connected.
- Return:
bool: returns True if camera is connected, false otherwise.
DAOAI_API bool isConnected() const;
- Return:
bool: returns True if camera is connected, false otherwise.
System::Boolean isConnected();- capture:
Capture a single frame.
- Parameters:
[out] Frame: Capture results will be written to this DaoAI Frame object.
- Return:
SlcSdkError: struct containing status codes and any error messages.
DAOAI_API SlcSdkError capture(Frame& frame);
- Parameters:
[out] Frame: Capture results will be written to this DaoAI Frame object.
- Return:
DaoAINETError^: DaoAINETError object handle containing status codes and any error messages.
DaoAINETError^ capture(Frame^% frame);- capture:
Capture a single frame with settings.
- Parameters:
[in] settings: DaoAI Settings to use for the capture. Must contain at least one frame.
[out] Frame: Capture results will be written to this DaoAI Frame object.
- Return:
SlcSdkError: struct containing status codes and any error messages.
DAOAI_API SlcSdkError capture(Settings settings, Frame& frame);
- Parameters:
[in] settings: DaoAI Settings to use for the capture. Must contain at least one frame.
[out] Frame: Capture results will be written to this DaoAI Frame object.
- Return:
DaoAINETError^: DaoAINETError object handle containing status codes and any error messages.
DaoAINETError^ capture(Settings^ settings, Frame^% frame);- captureAssistant:
Analyze scene and generate acquisition frame settings, the total time for all acquisition frames will be less than the time budget. The higher time budget is, the more acquisition frames will be generated.
- Parameters:
[in] time_budget: Time budget for acquisition frames, in range of (0.0, 5.0]
[in,out] mofaf: A map of AcquisitionFrame settings
- Return:
SlcSdkError: struct containing status codes and any error messages.
DAOAI_API SlcSdkError captureAssistant(double time_budget, std::map<int, AcquisitionFrame> &mofaf);
- Parameters:
[in] time_budget: Time budget for acquisition frames, in range of (0.0, 5.0]
[in,out] mofaf: A map of AcquisitionFrame settings
- Return:
DaoAINETError^: DaoAINETError object handle containing status codes and any error messages.
DaoAINETError^ captureAssistant(System::Double time_budget, System::Collections::Generic::Dictionary<System::Int32, AcquisitionFrame^>^% mofaf);- setSettings:
Set Settings for camera with file path.
- Parameters:
[in] file_path: Path to load settings file.
- Return:
SlcSdkError: struct containing status codes and any error messages.
DAOAI_API SlcSdkError setSettings(std::string file_path);
- Parameters:
[in] file_path: Path to load settings file.
- Return:
DaoAINETError^: DaoAINETError object handle containing status codes and any error messages.
DaoAINETError^ setSettings(System::String^ file_path);- setSettings:
Set Settings for camera with settings object.
- Parameters:
[in] settings: Settings object for this camera.
- Return:
SlcSdkError: struct containing status codes and any error messages.
DAOAI_API SlcSdkError setSettings(Settings settings);
- Parameters:
[in] settings: Settings object for this camera.
- Return:
DaoAINETError^: DaoAINETError object handle containing status codes and any error messages.
DaoAINETError^ setSettings(Settings^ settings);- getSettings:
Get Settings for camera.
- Return:
Settings: Current settings structure used by this camera.
DAOAI_API Settings getSettings() const;
- Return:
Settings: Current settings structure used by this camera.
Settings^ getSettings();- getSerialNumber:
Get serialNumber of the camera.
- Return:
std::string: Serial number of this camera.
DAOAI_API std::string getSerialNumber() const;
- Return:
System::String: Serial number of this camera.
System::String^ getSerialNumber();- getIntrinsicParam:
brief Get IntrinsicParameter of the camera.
- Parameters:
[out] params: A vector of float containing camera intrinsic parameters.
- Return:
SlcSdkError: struct containing status codes and any error messages.
DAOAI_API SlcSdkError getIntrinsicParam(std::vector<float>& params) const;
- Parameters:
[out] params: A vector of float containing camera intrinsic parameters.
- Return:
DaoAINETError^: DaoAINETError object handle containing status codes and any error messages.
DaoAINETError^ getIntrinsicParam(array<System::Single>^% params);- enableGPU:
Enable or disable using GPU on local PC for computation.
- Parameters:
toggle[in]: Enable or disable.
- Return:
SlcSdkError: struct containing status codes and any error messages.
DAOAI_API SlcSdkError enableGPU(bool toggle);
- Parameters:
toggle[in]: Enable or disable.
- Return:
DaoAINETError^: DaoAINETError object handle containing status codes and any error messages.
DaoAINETError^ enableGPU(System::Boolean toggle);- enableTempRegulation:
Enable or disable temperature regulation.
- Parameters:
toggle[in]: Enable or disable.
- Return:
SlcSdkError: struct containing status codes and any error messages.
DAOAI_API SlcSdkError enableTempRegulation(bool toggle);
- Parameters:
toggle[in]: Enable or disable.
- Return:
DaoAINETError^: DaoAINETError object handle containing status codes and any error messages.
DaoAINETError^ enableTempRegulation(System::Boolean toggle);
Class Settings
#include "settings.h"#include "settings.h"
AcquisitionFrame Class
Public Members & Functions
- AcquisitionFrameSetting:
The acquisition frame settings data structure.
enum AcquisitionFrameSetting { Brightness, // Int {0, 3}. Gain, // Double {0, 3}. ExposureStop // Int {-1, 4}. };enum AcquisitionFrameSetting { Brightness, // Int {0, 3}. Gain, // Double {0, 3}. ExposureStop // Int {-1, 4}. };- Constructor:
Constructor with initial inputs for acquisition frame setting.
- Parameters:
brightness[in]: brightness for the setting.
gain[in]: gain for the setting.
exposure_stop[in]: exposure stop for the setting.
DAOAI_API AcquisitionFrame(int brightness, double gain, int exposure_stop);
- Parameters:
brightness[in]: brightness for the setting.
gain[in]: gain for the setting.
exposure_stop[in]: exposure stop for the setting.
AcquisitionFrame(System::Int32 brightness, System::Double gain, System::Int32 exposure_stop);- Constructor:
Constructor with default values for acquisition frame setting.
DAOAI_API AcquisitionFrame();AcquisitionFrame();- inquireSetting:
Get the current acquisition setting value and range.
- Parameters:
AcquisitionFrameSetting[in]: acquisition frame setting to inquire [brightness, gain, exposure_stop].
curr[out]: the current value for the field.
min[out]: the min value for the field.
max[out]: the max value for the field.
- Return:
SlcSdkError: struct containing status codes and any error messages.
DAOAI_API SlcSdkError inquireSetting(AcquisitionFrameSetting setting, int& curr, int& min, int& max);
- Parameters:
AcquisitionFrameSetting[in]: acquisition frame setting to inquire [brightness, gain, exposure_stop].
curr[out]: the current value for the field.
min[out]: the min value for the field.
max[out]: the max value for the field.
- Return:
DaoAINETError^: DaoAINETError object handle containing status codes and any error messages.
DaoAINETError^ inquireSetting(AcquisitionFrameSetting setting, System::Int32% curr, System::Int32% min, System::Int32% max);- inquireSetting:
Get the current acquisition setting value.
- Parameters:
AcquisitionFrameSetting[in]: acquisition frame setting to inquire [brightness, gain, exposure_stop].
curr[out]: current value for the field.
- Return:
SlcSdkError: struct containing status codes and any error messages.
DAOAI_API SlcSdkError inquireSetting(AcquisitionFrameSetting setting, int& curr);
- Parameters:
AcquisitionFrameSetting[in]: acquisition frame setting to inquire [brightness, gain, exposure_stop].
curr[out]: current value for the field.
- Return:
DaoAINETError^: DaoAINETError object handle containing status codes and any error messages.
DaoAINETError^ inquireSetting(AcquisitionFrameSetting setting, System::Int32% curr);- inquireSetting:
Get the current acquisition setting value and range in double (gain).
- Parameters:
AcquisitionFrameSetting[in]: acquisition frame setting to inquire [brightness, gain, exposure_stop].
curr[out]: the current value for the field, type double (for field gain).
min[out]: the min value for the field.
max[out]: the max value for the field.
- Return:
SlcSdkError: struct containing status codes and any error messages.
DAOAI_API SlcSdkError inquireSetting(AcquisitionFrameSetting setting, double& curr, double& min, double& max);
- Parameters:
AcquisitionFrameSetting[in]: acquisition frame setting to inquire [brightness, gain, exposure_stop].
curr[out]: the current value for the field, type double (for field gain).
min[out]: the min value for the field.
max[out]: the max value for the field.
- Return:
DaoAINETError^: DaoAINETError object handle containing status codes and any error messages.
DaoAINETError^ inquireSetting(AcquisitionFrameSetting setting, System::Double% curr, System::Double% min, System::Double% max);- inquireSetting:
Get the current acquisition setting value in double (gain).
- Parameters:
AcquisitionFrameSetting[in]: acquisition frame setting to inquire [brightness, gain, exposure_stop].
curr[out]: the current value for the field, type double (for field gain).
- Return:
SlcSdkError: struct containing status codes and any error messages.
DAOAI_API SlcSdkError inquireSetting(AcquisitionFrameSetting setting, double& curr);
- Parameters:
AcquisitionFrameSetting[in]: acquisition frame setting to inquire [brightness, gain, exposure_stop].
curr[out]: the current value for the field, type double (for field gain).
- Return:
DaoAINETError^: DaoAINETError object handle containing status codes and any error messages.
DaoAINETError^ inquireSetting(AcquisitionFrameSetting setting, System::Double% curr);- configureSetting:
Set the acquisition setting value.
- Parameters:
AcquisitionFrameSetting[in]: acquisition frame setting to inquire [brightness, gain, exposure_stop].
new_val[in]: the new value to assign to.
- Return:
SlcSdkError: struct containing status codes and any error messages.
DAOAI_API SlcSdkError configureSetting(AcquisitionFrameSetting setting, int new_val);
- Parameters:
AcquisitionFrameSetting[in]: acquisition frame setting to inquire [brightness, gain, exposure_stop].
new_val[in]: the new value to assign to.
- Return:
DaoAINETError^: DaoAINETError object handle containing status codes and any error messages.
DaoAINETError^ configureSetting(AcquisitionFrameSetting setting, System::Int32 new_val);- configureSetting:
Set the acquisition setting value in double (gain).
- Parameters:
AcquisitionFrameSetting[in]: acquisition frame setting to inquire [brightness, gain, exposure_stop].
new_val[in]: the new value (double for gain) to assign to.
- Return:
SlcSdkError: struct containing status codes and any error messages.
DAOAI_API SlcSdkError configureSetting(AcquisitionFrameSetting setting, double new_val);
- Parameters:
AcquisitionFrameSetting[in]: acquisition frame setting to inquire [brightness, gain, exposure_stop].
new_val[in]: the new value (double for gain) to assign to.
- Return:
DaoAINETError^: DaoAINETError object handle containing status codes and any error messages.
DaoAINETError^ configureSetting(AcquisitionFrameSetting setting, System::Double new_val);
Settings Class
Public Members & Functions
- FilterSetting:
The filter settings data structure.
enum FilterSetting { IntensityThreshold, // Double {0, 3}. Enable/Disable. Get/Set. OutlierThreshold, // Double {0, inf}. Enable/Disable. Get/Set. SaturationFilter, // Bool. Enable/Disable. Get/Set. ContrastDistortionMode, // Int {0, 2}. 0: Off, 1: Remove Distortion, 2: Correct Distortion. Get/Set. ContrastDistortionStrength, // Int {0, 15000}. Get/Set. GaussianFilter, // Int {0, 5}. Enable/Disable. Get/Set. MedianFilter, // Int {0, 1}. Enable/Disable. Get/Set. FaceNormalFilter, // Double {0, 40}. Enable/Disable. Get/Set. SmoothFilter, // Int {0, 6}. Enable/Disable. Get/Set. FillGaps, // Bool. Enable/Disable. Get/Set. WidthThreshold, // Double {0, 500}. Get/Set. SlopeThreshold, // Double {0, inf}. Get/Set. DepthThreshold, // Double {0, 500}. Get/Set. FillXFirst, // Bool. Get/Set. FillBidirectional, // Bool. Get/Set. PhaseQualityThreshold, // Double {0, 50}. Enable/Disable. Get/Set. ConnectedAreaFilter, // Double {0, 10}. Enable/Disable. Get/Set. ShowHDR // Bool. Enable/Disable. Get/Set. };enum class FilterSetting { IntensityThreshold, // Double {0, 3}. Enable/Disable. Get/Set. OutlierThreshold, // Double {0, inf}. Enable/Disable. Get/Set. SaturationFilter, // Bool. Enable/Disable. Get/Set. ContrastDistortionMode, // Int {0, 2}. 0: Off, 1: Remove Distortion, 2: Correct Distortion. Get/Set. ContrastDistortionStrength, // Int {0, 15000}. Get/Set. GaussianFilter, // Int {0, 5}. Enable/Disable. Get/Set. MedianFilter, // Int {0, 1}. Enable/Disable. Get/Set. FaceNormalFilter, // Double {0, 40}. Enable/Disable. Get/Set. SmoothFilter, // Int {0, 6}. Enable/Disable. Get/Set. FillGaps, // Bool. Enable/Disable. Get/Set. WidthThreshold, // Double {0, 500}. Get/Set. SlopeThreshold, // Double {0, inf}. Get/Set. DepthThreshold, // Double {0, 500}. Get/Set. FillXFirst, // Bool. Get/Set. FillBidirectional, // Bool. Get/Set. PhaseQualityThreshold, // Double {0, 50}. Enable/Disable. Get/Set. ConnectedAreaFilter, // Double {0, 10}. Enable/Disable. Get/Set. ShowHDR // Bool. Enable/Disable. Get/Set. };- SystemSetting:
The system settings data structure.
enum SystemSetting { CameraModel, // String. Get only. TemperatureSensorAvailable, // Bool. Get only. TemperatureRegulationEnable, // Bool. Get only. GPUAvailable, // Bool. Get only. GPUEnable, // Bool. Get only. Version, // String. Get only. ExtraWhitePatternEnable // Bool. Enable/Disable. Get/Set. };enum class SystemSetting { CameraModel, // String. Get only. TemperatureSensorAvailable, // Bool. Get only. TemperatureRegulationEnable, // Bool. Get only. GPUAvailable, // Bool. Get only. GPUEnable, // Bool. Get only. Version, // String. Get only. ExtraWhitePatternEnable // Bool. Enable/Disable. Get/Set. };- Constructor:
DAOAI_API Settings();Settings();- Copy Constructor:
- Parameters:
other[out]: another setting object to copy to.
DAOAI_API explicit Settings(const std::shared_ptr<Settings>& other);
- Parameters:
other[out]: another setting object to copy to.
Settings(Settings^ other);- Destructor:
DAOAI_API ~Settings();~Settings();- Constructor:
Constructor load settings from settings workspace.
- Parameters:
file_path[in]: The path to the workspace
DAOAI_API Settings(const std::string& file_path);
- Parameters:
file_path[in]: The path to the workspace
Settings(System::String^ file_path);- exportSettings:
Export current camera settings.
- Parameters:
file_name[in]: The path to save the camera settings.
- Return:
SlcSdkError: struct containing status codes and any error messages.
DAOAI_API SlcSdkError exportSettings(const std::string& file_path);
- Parameters:
file_name[in]: The path to save the camera settings.
- Return:
DaoAINETError^: DaoAINETError object handle containing status codes and any error messages.
DaoAINETError^ exportSettings(System::String^ file_path);- addAcquisitionFrame:
Add an aquisition frame to settings to use in 3D capture with index.
- Parameters:
af[in]: AcquisitionFrame object to write.
index[out]: Index where this frame is written.
- Return:
SlcSdkError: struct containing status codes and any error messages.
DAOAI_API SlcSdkError addAcquisitionFrame(AcquisitionFrame af, int& index);
- Parameters:
af[in]: AcquisitionFrame object to write.
index[out]: Index where this frame is written.
- Return:
DaoAINETError^: DaoAINETError object handle containing status codes and any error messages.
DaoAINETError^ addAcquisitionFrame(AcquisitionFrame^ af, System::Int32% index);- addAcquisitionFrame:
Add an aquisition frame to settings to use in 3D capture.
- Parameters:
af[in]: AcquisitionFrame object to write.
- Return:
SlcSdkError: struct containing status codes and any error messages.
DAOAI_API SlcSdkError addAcquisitionFrame(AcquisitionFrame af);
- Parameters:
af[in]: AcquisitionFrame object to write.
- Return:
DaoAINETError^: DaoAINETError object handle containing status codes and any error messages.
DaoAINETError^ addAcquisitionFrame(AcquisitionFrame^ af);- getAcquisitionFrame:
Retreive the aquisition frame object from the given index.
- Parameters:
af[out]: AcquisitionFrame object to which data will be written.
index[in]: Index to retrieve frame.
- Return:
SlcSdkError: struct containing status codes and any error messages.
DAOAI_API SlcSdkError getAcquisitionFrame(AcquisitionFrame& af, int index);
- Parameters:
af[out]: AcquisitionFrame object to which data will be written.
index[in]: Index to retrieve frame.
- Return:
DaoAINETError^: DaoAINETError object handle containing status codes and any error messages.
DaoAINETError^ getAcquisitionFrame(AcquisitionFrame^% af, System::Int32 index);- modifyAcquisitionFrame:
Modify an aquisition frame to settings at a given index.
- Parameters:
af[in]: AcquisitionFrame object to write.
index[in]: Index of AcquisitionFrame to modify data.
- Return:
SlcSdkError: struct containing status codes and any error messages.
DAOAI_API SlcSdkError modifyAcquisitionFrame(AcquisitionFrame af, int index);
- Parameters:
af[in]: AcquisitionFrame object to write.
index[in]: Index of AcquisitionFrame to modify data.
- Return:
DaoAINETError^: DaoAINETError object handle containing status codes and any error messages.
DaoAINETError^ modifyAcquisitionFrame(AcquisitionFrame^ af, System::Int32 index);- deleteAcquisitionFrame:
Delete an aquisition frame at a given index.
- Parameters:
index[in]: Index of AcquisitionFrame to delete.
- Return:
SlcSdkError: struct containing status codes and any error messages.
DAOAI_API SlcSdkError deleteAcquisitionFrame(int index);
- Parameters:
index[in]: Index of AcquisitionFrame to delete.
- Return:
DaoAINETError^: DaoAINETError object handle containing status codes and any error messages.
DaoAINETError^ deleteAcquisitionFrame(System::Int32 index);- setAcquisitionFrames:
Write a map of AcquisitionFrames to settings to be used in D3 Capture.
- Parameters:
mofaf[in]: Map of int to AcquisitionFrame objects to write.
- Return:
SlcSdkError: struct containing status codes and any error messages.
DAOAI_API SlcSdkError setAcquisitionFrames(std::map<int, AcquisitionFrame> mofaf);
- Parameters:
mofaf[in]: Map of int to AcquisitionFrame objects to write.
- Return:
DaoAINETError^: DaoAINETError object handle containing status codes and any error messages.
DaoAINETError^ setAcquisitionFrames(System::Collections::Generic::Dictionary<System::Int32, AcquisitionFrame^>^ mofaf);- getAcquisitionFrames:
Retrieve the current map of AcquisitionFrames from settings.
- Parameters:
mofaf[out]: Current acquisition frame map is written to this map.
- Return:
SlcSdkError: struct containing status codes and any error messages.
DAOAI_API SlcSdkError getAcquisitionFrames(std::map<int, AcquisitionFrame>& mofaf);
- Parameters:
mofaf[out]: Current acquisition frame map is written to this map.
- Return:
DaoAINETError^: DaoAINETError object handle containing status codes and any error messages.
DaoAINETError^ getAcquisitionFrames(System::Collections::Generic::Dictionary<System::Int32, AcquisitionFrame^>^% mofaf);- enableFilterSetting:
Enable or disable a filter setting.
- Parameters:
setting[in]: The filter to toggle.
toggle[in]: Enable or disable.
- Return:
SlcSdkError: struct containing status codes and any error messages.
DAOAI_API SlcSdkError enableFilterSetting(FilterSetting setting, bool toggle);
- Parameters:
setting[in]: The filter to toggle.
toggle[in]: Enable or disable.
- Return:
DaoAINETError^: DaoAINETError object handle containing status codes and any error messages.
DaoAINETError^ enableFilterSetting(FilterSetting setting, System::Boolean toggle);- checkEnableFilterSetting:
Check if a filter setting is enabled.
- Parameters:
setting[in]: The filter to check.
is_enabled[out]: Enable status written to this.
- Return:
SlcSdkError: struct containing status codes and any error messages.
DAOAI_API SlcSdkError checkEnableFilterSetting(FilterSetting setting, bool& is_enabled);
- Parameters:
setting[in]: The filter to check.
is_enabled[out]: Enable status written to this.
- Return:
DaoAINETError^: DaoAINETError object handle containing status codes and any error messages.
DaoAINETError^ checkEnableFilterSetting(FilterSetting setting, System::Boolean% is_enabled);- inquireFilterSetting:
Get the current value and valid range of a filter setting.
- Parameters:
setting[in]: The filter to check.
curr[out]: The current value of this setting.
min[out]: The minimum valid value that this setting can be configured with.
max[out]: The maximum valid value that this setting can be configured with.
- Return:
SlcSdkError: struct containing status codes and any error messages.
DAOAI_API SlcSdkError inquireFilterSetting(FilterSetting setting, int& curr, int& min, int& max);
- Parameters:
setting[in]: The filter to check.
curr[out]: The current value of this setting.
min[out]: The minimum valid value that this setting can be configured with.
max[out]: The maximum valid value that this setting can be configured with.
- Return:
DaoAINETError^: DaoAINETError object handle containing status codes and any error messages.
DaoAINETError^ inquireFilterSetting(FilterSetting setting, System::Int32% curr, System::Int32% min, System::Int32% max);- inquireFilterSetting:
Get the current value and valid range (double) of a filter setting.
- Parameters:
setting[in]: The filter to check.
curr[out]: The current value of this setting.
min[out]: The minimum valid value that this setting can be configured with.
max[out]: The maximum valid value that this setting can be configured with.
- Return:
SlcSdkError: struct containing status codes and any error messages.
DAOAI_API SlcSdkError inquireFilterSetting(FilterSetting setting, double& curr, double& min, double& max);
- Parameters:
setting[in]: The filter to check.
curr[out]: The current value of this setting.
min[out]: The minimum valid value that this setting can be configured with.
max[out]: The maximum valid value that this setting can be configured with.
- Return:
DaoAINETError^: DaoAINETError object handle containing status codes and any error messages.
DaoAINETError^ inquireFilterSetting(FilterSetting setting, System::Double% curr, System::Double% min, System::Double% max);- inquireFilterSetting:
Get the current value of a filter setting.
- Parameters:
setting[in]: The filter to check.
curr[out]: The current value of this setting.
- Return:
SlcSdkError: struct containing status codes and any error messages.
DAOAI_API SlcSdkError inquireFilterSetting(FilterSetting setting, int& curr);
- Parameters:
setting[in]: The filter to check.
curr[out]: The current value of this setting.
- Return:
DaoAINETError^: DaoAINETError object handle containing status codes and any error messages.
DaoAINETError^ inquireFilterSetting(FilterSetting setting, System::Int32% curr);- inquireFilterSetting:
Get the current value(double) of a filter setting.
- Parameters:
setting[in]: The filter to check.
curr[out]: The current value of this setting.
- Return:
SlcSdkError: struct containing status codes and any error messages.
DAOAI_API SlcSdkError inquireFilterSetting(FilterSetting setting, double& curr);
- Parameters:
setting[in]: The filter to check.
curr[out]: The current value of this setting.
- Return:
DaoAINETError^: DaoAINETError object handle containing status codes and any error messages.
DaoAINETError^ inquireFilterSetting(FilterSetting setting, System::Double% curr);- inquireFilterSetting:
Get the current value(bool) of a filter setting.
- Parameters:
setting[in]: The filter to check.
curr[out]: The current value of this setting.
- Return:
SlcSdkError: struct containing status codes and any error messages.
DAOAI_API SlcSdkError inquireFilterSetting(FilterSetting setting, bool& curr);
- Parameters:
setting[in]: The filter to check.
curr[out]: The current value of this setting.
- Return:
DaoAINETError^: DaoAINETError object handle containing status codes and any error messages.
DaoAINETError^ inquireFilterSetting(FilterSetting setting, System::Boolean% curr);- configureFilterSetting:
Configure a filter setting with the given value.
- Parameters:
setting[in]: The filter to configure.
new_val[in]: The value to write to this setting.
- Return:
SlcSdkError: struct containing status codes and any error messages.
DAOAI_API SlcSdkError configureFilterSetting(FilterSetting setting, int new_val);
- Parameters:
setting[in]: The filter to configure.
new_val[in]: The value to write to this setting.
- Return:
DaoAINETError^: DaoAINETError object handle containing status codes and any error messages.
DaoAINETError^ configureFilterSetting(FilterSetting setting, System::Int32 new_val);- configureFilterSetting:
Configure a filter setting with the given value (double).
- Parameters:
setting[in]: The filter to configure.
new_val[in]: The value to write to this setting.
- Return:
SlcSdkError: struct containing status codes and any error messages.
DAOAI_API SlcSdkError configureFilterSetting(FilterSetting setting, double new_val);
- Parameters:
setting[in]: The filter to configure.
new_val[in]: The value to write to this setting.
- Return:
DaoAINETError^: DaoAINETError object handle containing status codes and any error messages.
DaoAINETError^ configureFilterSetting(FilterSetting setting, System::Double new_val);- configureFilterSetting:
Configure a filter setting with the given value (bool).
- Parameters:
setting[in]: The filter to configure.
new_val[in]: The value to write to this setting.
- Return:
SlcSdkError: struct containing status codes and any error messages.
DAOAI_API SlcSdkError configureFilterSetting(FilterSetting setting, bool new_val);
- Parameters:
setting[in]: The filter to configure.
new_val[in]: The value to write to this setting.
- Return:
DaoAINETError^: DaoAINETError object handle containing status codes and any error messages.
DaoAINETError^ configureFilterSetting(FilterSetting setting, System::Boolean new_val);- configureFilterSetting:
Enable or disable a system setting.
- Parameters:
setting[in]: The system setting to toggle.
toggle[in]: Enable or disable.
- Return:
SlcSdkError: struct containing status codes and any error messages.
DAOAI_API SlcSdkError enableSystemSetting(SystemSetting setting, bool toggle);
- Parameters:
setting[in]: The system setting to toggle.
toggle[in]: Enable or disable.
- Return:
DaoAINETError^: DaoAINETError object handle containing status codes and any error messages.
DaoAINETError^ enableSystemSetting(SystemSetting setting, System::Boolean toggle);- checkEnableSystemSetting:
Check if a system setting is enabled or disabled.
- Parameters:
setting[in]: The system setting to check.
is_enabled[out]: Enable status written to this.
- Return:
SlcSdkError: struct containing status codes and any error messages.
DAOAI_API SlcSdkError checkEnableSystemSetting(SystemSetting setting, bool& is_enabled);
- Parameters:
setting[in]: The system setting to check.
is_enabled[out]: Enable status written to this.
- Return:
DaoAINETError^: DaoAINETError object handle containing status codes and any error messages.
DaoAINETError^ checkEnableSystemSetting(SystemSetting setting, System::Boolean% is_enabled);- inquireSystemSetting:
Check the current value and valid range of a system setting.
- Parameters:
setting[in]: The system setting to check.
curr[out]: Current value of system setting.
min[out]: Minimum configurable value of system setting.
max[out]: Maximum configurable value of system setting.
- Return:
SlcSdkError: struct containing status codes and any error messages.
DAOAI_API SlcSdkError inquireSystemSetting(SystemSetting setting, int& curr, int& min, int& max);
- Parameters:
setting[in]: The system setting to check.
curr[out]: Current value of system setting.
min[out]: Minimum configurable value of system setting.
max[out]: Maximum configurable value of system setting.
- Return:
DaoAINETError^: DaoAINETError object handle containing status codes and any error messages.
DaoAINETError^ inquireSystemSetting(SystemSetting setting, System::Int32% curr, System::Int32% min, System::Int32% max);- inquireSystemSetting:
Check the current value of a system setting.
- Parameters:
setting[in]: The system setting to check.
curr[out]: Current value of system setting.
- Return:
SlcSdkError: struct containing status codes and any error messages.
DAOAI_API SlcSdkError inquireSystemSetting(SystemSetting setting, int& curr);
- Parameters:
setting[in]: The system setting to check.
curr[out]: Current value of system setting.
- Return:
DaoAINETError^: DaoAINETError object handle containing status codes and any error messages.
DaoAINETError^ inquireSystemSetting(SystemSetting setting, System::Int32% curr);- inquireSystemSetting:
Check the current value (bool) of a system setting.
- Parameters:
setting[in]: The system setting to check.
curr[out]: Current value of system setting.
- Return:
SlcSdkError: struct containing status codes and any error messages.
DAOAI_API SlcSdkError inquireSystemSetting(SystemSetting setting, bool& curr);
- Parameters:
setting[in]: The system setting to check.
curr[out]: Current value of system setting.
- Return:
DaoAINETError^: DaoAINETError object handle containing status codes and any error messages.
DaoAINETError^ inquireSystemSetting(SystemSetting setting, System::Boolean% curr);- inquireSystemSetting:
Check the current value (string) of a system setting.
- Parameters:
setting[in]: The system setting to check.
curr[out]: Current value of system setting.
- Return:
SlcSdkError: struct containing status codes and any error messages.
DAOAI_API SlcSdkError inquireSystemSetting(SystemSetting setting, std::string& curr);
- Parameters:
setting[in]: The system setting to check.
curr[out]: Current value of system setting.
- Return:
DaoAINETError^: DaoAINETError object handle containing status codes and any error messages.
DaoAINETError^ inquireSystemSetting(SystemSetting setting, System::String^% val);- configureSystemSetting:
Configure a system setting with given value.
- Parameters:
setting[in]: The system setting to configure.
new_val[in]: Value to write to system setting.
- Return:
SlcSdkError: struct containing status codes and any error messages.
DAOAI_API SlcSdkError configureSystemSetting(SystemSetting setting, int new_val);
- Parameters:
setting[in]: The system setting to configure.
new_val[in]: Value to write to system setting.
- Return:
DaoAINETError^: DaoAINETError object handle containing status codes and any error messages.
DaoAINETError^ configureSystemSetting(SystemSetting setting, System::Int32 new_val);- configureSystemSetting:
Configure a system setting with given value (bool).
- Parameters:
setting[in]: The system setting to configure.
new_val[in]: Value to write to system setting.
- Return:
SlcSdkError: struct containing status codes and any error messages.
DAOAI_API SlcSdkError configureSystemSetting(SystemSetting setting, bool new_val);
- Parameters:
setting[in]: The system setting to configure.
new_val[in]: Value to write to system setting.
- Return:
DaoAINETError^: DaoAINETError object handle containing status codes and any error messages.
DaoAINETError^ configureSystemSetting(SystemSetting setting, System::Boolean new_val);
Class SlcSdkError
#include "error.h"#include "error.h"
Public Members & Functions
- SlcSdkStatus:
The DaoAI SDK status data structure.
enum DAOAI_API SlcSdkStatus : int { SlcSdkSuccess, SlcSdkErrorInvalidValue, SlcSdkErrorGPUMemoryAllocation, SlcSdkErrorVirtualFunctionCalled, SlcSdkErrorImageAcquisition, SlcSdkErrorFileOperation, SlcSdkErrorDeviceConnection, SlcSdkErrorDeviceOperation, SlcSdkErrorTemperatureRegulation, SlcSdkErrorWorkspaceVersion, SlcSdkErrorRemoteConnection, SlcSdkErrorRemoteVersion };public enum class DaoAINETStatus : int { SlcSdkSuccess, SlcSdkErrorInvalidValue, SlcSdkErrorGPUMemoryAllocation, SlcSdkErrorVirtualFunctionCalled, SlcSdkErrorImageAcquisition, SlcSdkErrorFileOperation, SlcSdkErrorDeviceConnection, SlcSdkErrorDeviceOperation, SlcSdkErrorTemperatureRegulation, SlcSdkErrorWorkspaceVersion, SlcSdkErrorRemoteConnection, SlcSdkErrorRemoteVersion };
- Constructor:
Construct the error class with inital value.
DAOAI_API SlcSdkError(SlcSdkStatus status, std::string detail_text);DaoAINETError(DaoAINETStatus status, System::String^ detail_text);
- Constructor:
Construct the error class with default (invalid error) value.
DAOAI_API SlcSdkError();DaoAINETError();
- status:
Get the status code of the error.
- Return:
SlcSdkStatus: status code of the error.
DAOAI_API SlcSdkStatus status();
- Return:
DaoAINETStatus: status code of the error.
DaoAINETStatus status();
- details:
Get the detailed description of the error.
- Return:
std::string: detailed description of the error.
DAOAI_API std::string details();
- Return:
System::String: detailed description of the error.
System::String^ details();
Class Frame
#include "frame.h"#include "frame.h"
Public Members & Functions
- Constructor:
Construct the error class with inital value.
DAOAI_API Frame();Frame();Copy Constructor:
DAOAI_API explicit Frame(const std::shared_ptr<Frame>& other);Frame(Frame^ a);
- getPointCloud:
Get the Point Cloud from the Frame.
- Parameters:
[in] pc: PointCloud object to write contained point cloud data to.
- Return:
SlcSdkError: struct containing status codes and any error messages.
DAOAI_API SlcSdkError getPointCloud(PointCloud& pc);
- Parameters:
[in] pc: PointCloud object to write contained point cloud data to.
- Return:
DaoAINETError^: DaoAINETError class handle containing status codes and any error messages.
DaoAINETError^ getPointCloud(PointCloud^% pc);
- save:
Save the frame.
- Parameters:
file_name[in]: The path to save the frame. Supports .dcf (DaoAI data format), .ply, .pcd and .daf file suffixes.
- Return:
SlcSdkError: struct containing status codes and any error messages.
DAOAI_API SlcSdkError save(const std::string &file_name);
- Parameters:
file_name[in]: The path to save the frame. Supports .dcf (DaoAI data format), .ply, .pcd and .daf file suffixes.
- Return:
DaoAINETError^: DaoAINETError class handle containing status codes and any error messages.
DaoAINETError^ save(System::String^ file_name);
- load:
Save the frame.
- Parameters:
file_name[in]: The path to load the frame.
- Return:
SlcSdkError: struct containing status codes and any error messages.
DAOAI_API SlcSdkError load(const std::string &file_name);
- Parameters:
file_name[in]: The path to load the frame.
- Return:
DaoAINETError^: DaoAINETError class handle containing status codes and any error messages.
DaoAINETError^ load(System::String^ file_name);
- isEmpty:
Check whether the frame is empty.
- Return:
bool: True if frame is empty, false otherwise.
DAOAI_API bool isEmpty();
- Return:
System::Boolean: True if frame is empty, false otherwise.
System::Boolean isEmpty();
Class Point Cloud
#include "point_cloud.h"#include "point_cloud.h"
Public Members & Functions
Constructor:
DAOAI_API PointCloud();PointCloud();Copy Constructor:
DAOAI_API explicit PointCloud(const std::shared_ptr<PointCloud>& other);PointCloud(PointCloud^ other);Destructor:
DAOAI_API ~PointCloud();~PointCloud();
- PointCloud:
Allocate an organized point cloud with a given number of rows and columns
- Parameters:
rows[in]: the height of the point cloud.
cols[in]: the width of the point cloud.
DAOAI_API PointCloud(size_t rows, size_t cols);
- Parameters:
rows[in]: the height of the point cloud.
cols[in]: the width of the point cloud.
PointCloud(System::UInt64 rows, System::UInt64 cols);
- isEmpty:
Return whether point cloud is empty
- return:
bool: whether point cloud is empty.
DAOAI_API bool isEmpty() const;
- return:
System::Boolean: whether point cloud is empty.
System::Boolean isEmpty();
- getWidth:
Return width (number of columns) of point cloud
- return:
int: width (number of columns) of point cloud.
DAOAI_API int getWidth() const;
- return:
System::UInt64: width (number of columns) of point cloud.
System::UInt64 getWidth();
- getHeight:
Return height (number of rows) of point cloud
- return:
int: height (number of rows) of point cloud.
DAOAI_API int getHeight() const;
- return:
System::UInt64: height (number of rows) of point cloud.
System::UInt64 getHeight();
- getSize:
Return number of points in point cloud
- return:
int: size (number of points) of point cloud.
DAOAI_API int getSize() const;
- return:
int: size (number of points) of point cloud.
System::UInt64 getSize();
- getPoint:
Obtain a reference to a point given by a 1D linear index (from 0 to number of points).
- Parameters:
idx[in]: index value
- return:
Point: reference to a point
DAOAI_API Point &operator()(size_t idx);
- Parameters:
idx[in]: index value
- return:
Point: reference to a point
Point^ getPoint(System::UInt64 idx);
- getPoint:
Obtain a constant reference to a point given by a 1D linear index (from 0 to number of points).
- Parameters:
idx[in]: index value
- return:
Point: reference to a point
DAOAI_API const Point &operator()(size_t idx) const;
- getPoint:
Obtain a reference to a point given by row and column, i is Row & j is Column
- Parameters:
i: row
j: col
- return:
Point: reference to a point
DAOAI_API Point operator()(size_t i, size_t j);
- Parameters:
i: row
j: col
- return:
Point: reference to a point
Point^ getPoint(System::UInt64 i, System::UInt64 j);
- getPoint:
Obtain a constant reference to a point given by row and column, i is Row & j is Column
- Parameters:
i: row
j: col
- return:
Point: reference to a point
DAOAI_API const Point &operator()(size_t i, size_t j) const;
- resize:
Resize the point cloud to the given number of rows and columns
- Parameters:
rows: new row number
cols: new col number
- return:
SlcSdkError: struct containing status codes and any error messages.
DAOAI_API SlcSdkError resize(size_t rows, size_t cols);
- Parameters:
rows: new row number
cols: new col number
- return:
DaoAINETError^: DaoAINETError class handle containing status codes and any error messages.
DaoAINETError^ resize(System::UInt64 rows, System::UInt64 cols);
- getDataPtr:
Obtain a pointer to the first point in the point cloud
- return:
Point*: a pointer to the first point in the point cloud.
DAOAI_API Point* getDataPtr() const;
- getVecX:
Return a vector of all x coordinate data
- return:
std::vector<float>: a vector of all x coordinate data
DAOAI_API std::vector<float> getVecX() const;
- return:
List<System::Single>: a vector of all x coordinate data
List<System::Single>^ getVecX();
- getVecY:
Return a vector of all y coordinate data
- return:
std::vector<float>: a vector of all y coordinate data
DAOAI_API std::vector<float> getVecY() const;
- return:
List<System::Single>: a vector of all y coordinate data
List<System::Single>^ getVecY();
- getVecZ:
Return a vector of all z coordinate data
- return:
std::vector<float>: a vector of all z coordinate data
DAOAI_API std::vector<float> getVecZ() const;
- return:
List<System::Single>: a vector of all z coordinate data
List<System::Single>^ getVecZ();
- getVecRgba:
Return a vector of all rgba color data
- return:
std::vector<uint32_t>: a vector of all rgba color data.
DAOAI_API std::vector<uint32_t> getVecRgba() const;
- return:
List<System::UInt32>: a vector of all rgba color data.
List<System::UInt32>^ getVecRgba();
- getVecConfident:
Return a vector of all confident data
- return:
std::vector<float>: a vector of all confident data
DAOAI_API std::vector<float> getVecConfident() const;
- return:
List<System::Single>: a vector of all confident data;
List<System::Single>^ getVecConfident();
- getVecR:
Return a vector of all red channel data
- return:
std::vector<uint8_t>: a vector of all r data
DAOAI_API std::vector<uint8_t> getVecR() const;
- return:
List<System::Byte>: a vector of all r data
List<System::Byte>^ getVecR();
- getVecG:
Return a vector of all green channel data
- return:
std::vector<uint8_t>: a vector of all g data
DAOAI_API std::vector<uint8_t> getVecG() const;
- return:
List<System::Byte>: a vector of all g data
List<System::Byte>^ getVecG();
- getVecB:
Return a vector of all blue channel data
- return:
std::vector<uint8_t>: a vector of all b data
DAOAI_API std::vector<uint8_t> getVecB() const;
- return:
List<System::Byte>: a vector of all b data
List<System::Byte>^ getVecB();
- getVecA:
Return a vector of all Alpha-channel data
- return:
std::vector<uint8_t>: a vector of all a data
DAOAI_API std::vector<uint8_t> getVecA() const;
- return:
List<System::Byte>: a vector of all a data
List<System::Byte>^ getVecA();
- clone:
Make a deep copy of the point cloud
- return:
PointCloud: Copied point cloud.
DAOAI_API PointCloud clone();
- return:
PointCloud: Copied point cloud.
PointCloud^ clone();
Class Point
#include "point.h"#include "point.h"
Public Member Functions
Constructor:
DAOAI_API Point();DAOAI_API Point();Destructor:
DAOAI_API ~Point() {}DAOAI_API ~Point();
- isNaN:
Return bool if the point is NaN
- return:
bool: bool if the point is NaN
DAOAI_API bool isNaN();
- return:
System::Boolean: bool if the point is NaN
System::Boolean isNaN();
- getX:
Get x value from the point.
- return:
float: x value from the point.
DAOAI_API inline float getX() const { return this->x_; }
- return:
System::Single: x value from the point.
System::Single getX();
- getY:
Get y value from the point.
- return:
float: y value from the point.
DAOAI_API inline float getY() const { return this->y_; }
- return:
System::Single: y value from the point.
System::Single getY();
- getZ:
Get z value from the point.
- return:
float: z value from the point.
DAOAI_API inline float getZ() const { return this->z_; }
- return:
System::Single: z value from the point.
System::Single getZ();
- getR:
Get r value from the point.
- return:
uint8_t: r value from the point.
DAOAI_API inline uint8_t getR() const { return ((rgba_ >> 16) & 0xff); }
- return:
System::Byte: r value from the point.
System::Byte getR();
- getG:
Get g value from the point.
- return:
uint8_t: g value from the point.
DAOAI_API inline uint8_t getG() const { return ((rgba_ >> 8) & 0xff); }
- return:
System::Byte: g value from the point.
System::Byte getG();
- getB:
Get b value from the point.
- return:
uint8_t: b value from the point.
DAOAI_API inline uint8_t getB() const { return ((rgba_) & 0xff); }
- return:
System::Byte: b value from the point.
System::Byte getB();
- getA:
Get a value from the point.
- return:
uint8_t: a value from the point.
DAOAI_API inline uint8_t getA() const { return ((rgba_ >> 24) & 0xff); }
- return:
System::Byte: a value from the point.
System::Byte getA();
- getRgba:
Get rgba value from the point. NOTE: RGBA value is stored in the form 0xAARRGGBB (ARGB format)
- return:
uint32_t: rgba value from the point.
DAOAI_API inline uint32_t getRgba() const { return this->rgba_; }
- return:
System::UInt32: rgba value from the point.
System::UInt32 getRgba();
- getConfident:
Get confident value from the point.
- return:
float: confident value from the point.
DAOAI_API inline float getConfident() const { return this->confident_; }
- return:
System::Single: confident value from the point.
System::Single getConfident();
- setX:
Assign x value to the point.
- parameters:
x[in]: value to assign
- return:
SlcSdkError: struct containing status codes and any error messages.
DAOAI_API inline SlcSdkError setX(const float x) { x_ = x; return SlcSdkError(SlcSdkSuccess, "Successfully modified point data."); }
- parameters:
x[in]: value to assign
- return:
DaoAINETError^: DaoAINETError class handle containing status codes and any error messages.
DaoAINETError^ setX(System::Single x)
- setY:
Assign y value to the point.
- parameters:
y[in]: value to assign
- return:
SlcSdkError: struct containing status codes and any error messages.
DAOAI_API inline SlcSdkError setY(const float y) { y_ = y; return SlcSdkError(SlcSdkSuccess, "Successfully modified point data."); }
- parameters:
y[in]: value to assign
- return:
DaoAINETError^: DaoAINETError class handle containing status codes and any error messages.
DaoAINETError^ setY(System::Single y)
- setZ:
Assign z value to the point.
- parameters:
z[in]: value to assign
- return:
SlcSdkError: struct containing status codes and any error messages.
DAOAI_API inline SlcSdkError setZ(const float z) { z_ = z; return SlcSdkError(SlcSdkSuccess, "Successfully modified point data."); }
- parameters:
z[in]: value to assign
- return:
DaoAINETError^: DaoAINETError class handle containing status codes and any error messages.
DaoAINETError^ setZ(System::Single z)
- setRgba:
Assign rgba value to the point.
- parameters:
r[in]: red value to assign
g[in]: green value to assign
b[in]: blue value to assign
a[in]: alpha value to assign
- return:
SlcSdkError: struct containing status codes and any error messages.
DAOAI_API inline SlcSdkError setRgba(const uint8_t r, const uint8_t g, const uint8_t b, const uint8_t a) { rgba_ = static_cast<uint32_t>((a << 24) | (r << 16) | (g << 8) | b); return SlcSdkError(SlcSdkSuccess, "Successfully modified point data."); }
- parameters:
r[in]: red value to assign
g[in]: green value to assign
b[in]: blue value to assign
a[in]: alpha value to assign
- return:
DaoAINETError^: DaoAINETError class handle containing status codes and any error messages.
DaoAINETError^ setRgba(System::Byte r, System::Byte g, System::Byte b, System::Byte a);
- setRgba:
Assign rgba value to the point.
- parameters:
rgba[in]:value to assign
- return:
SlcSdkError: struct containing status codes and any error messages.
DAOAI_API inline SlcSdkError setRgba(const uint32_t rgba) { rgba_ = rgba; return SlcSdkError(SlcSdkSuccess, "Successfully modified point data."); }
- parameters:
rgba[in]:value to assign
- return:
DaoAINETError^: DaoAINETError class handle containing status codes and any error messages.
DaoAINETError^ (System::UInt32 rgba);
- setRgb:
Assign rgb value to the point, and alpha channel will be set to 255.
- parameters:
r[in]: red value to assign
g[in]: green value to assign
b[in]: blue value to assign
- return:
SlcSdkError: struct containing status codes and any error messages.
DAOAI_API inline SlcSdkError setRgb(const uint8_t r, const uint8_t g, const uint8_t b) { this->setRgba(r, g, b, 255); return SlcSdkError(SlcSdkSuccess, "Successfully modified point data."); }
- parameters:
r[in]: red value to assign
g[in]: green value to assign
b[in]: blue value to assign
- return:
DaoAINETError^: DaoAINETError class handle containing status codes and any error messages.
DaoAINETError^ setRgb(System::Byte r, System::Byte g, System::Byte b);
- setConfident:
Assign confident value to the point.
- parameters:
confident[in]: confident value to assign
- return:
SlcSdkError: struct containing status codes and any error messages.
DAOAI_API inline SlcSdkError setConfident(const float confident) { confident_ = confident; return SlcSdkError(SlcSdkSuccess, "Successfully modified point data."); }
- parameters:
confident[in]: confident value to assign
- return:
DaoAINETError^: DaoAINETError class handle containing status codes and any error messages.
DaoAINETError^ setConfident(System::Single confident);operator =:
- parameters:
point[in]: another Point.
- return:
Point &: return a reference of a Point.
DAOAI_API Point &operator=(const Point& point);