|
Mech-Eye API 2.6.0
API reference documentation for Mech-Eye 3D Laser Profiler
|
Public Types | |
| using | AcquisitionCallback = std::function<void(const ProfileBatch& batch, void* pUser)> |
| The type of callback function. | |
Public Member Functions | |
| VirtualProfiler (const std::string &filePath) | |
| Constructor. | |
| ~VirtualProfiler () | |
| Destructor. | |
| VirtualProfiler (const VirtualProfiler &other) noexcept | |
| Copy constructor. | |
| VirtualProfiler & | operator= (const VirtualProfiler &other) noexcept |
| Copy assignment. | |
| ErrorStatus | getProfilerInfo (ProfilerInfo &info) const |
| Gets the basic information of the virtual laser profiler, such as model, serial number, and firmware version. | |
| VirtualUserSet & | currentUserSet () |
| Gets the parameter information used when the virtual device was saved. | |
| ErrorStatus | retrieveBatchData (ProfileBatch &batch) const |
| Retrieves a batch of the profiles. There are two ways to retrieve profile data, by polling or callback. This method is only used with the polling method. | |
| ErrorStatus | registerAcquisitionCallback (const VirtualProfiler::AcquisitionCallback &func, void *pUser) |
| Registers the callback function for data acquisition. There are two ways to retrieve profile data, by polling or callback. This method is only used with the callback method. This method must be called before startAcquisition. If the virtual device is in acquisition ready status, stopAcquisition should be called before registering a different callback function. | |
| ErrorStatus | startAcquisition () |
| Enters the virtual device into the acquisition ready status, where it can accept trigger signals for scanning. | |
| ErrorStatus | stopAcquisition () |
| Exits the virtual profiler from the acquisition ready status to avoid accidental triggering of scanning. If a callback function is being executed when this method is called, this method is not executed until the execution of the callback function is finished. | |
Friends | |
| class | InternalInterfaces |
Definition at line 47 of file VirtualProfiler.h.
| using mmind::eye::VirtualProfiler::AcquisitionCallback = std::function<void(const ProfileBatch& batch, void* pUser)> |
The type of callback function.
| [out] | batch | The retrieved data of multiple profiles. See ProfileBatch for details. |
| [out] | pUser | The user data pointer. |
Definition at line 56 of file VirtualProfiler.h.
| mmind::eye::VirtualProfiler::VirtualProfiler | ( | const std::string & | filePath | ) |
Constructor.
| filePath | The path of the virtual laser profiler file (.mraw) to be loaded. |
ref ErrorStatus.MMIND_STATUS_FILE_IO_ERROR Fails to load the virtual data.
| VirtualUserSet & mmind::eye::VirtualProfiler::currentUserSet | ( | ) |
Gets the parameter information used when the virtual device was saved.
| ErrorStatus mmind::eye::VirtualProfiler::getProfilerInfo | ( | ProfilerInfo & | info | ) | const |
Gets the basic information of the virtual laser profiler, such as model, serial number, and firmware version.
| [out] | See | ProfilerInfo for details. |
| ErrorStatus mmind::eye::VirtualProfiler::registerAcquisitionCallback | ( | const VirtualProfiler::AcquisitionCallback & | func, |
| void * | pUser ) |
Registers the callback function for data acquisition. There are two ways to retrieve profile data, by polling or callback. This method is only used with the callback method. This method must be called before startAcquisition. If the virtual device is in acquisition ready status, stopAcquisition should be called before registering a different callback function.
| [in] | func | The callback function to be registered. When the number of retrieved profiles equals to the set value of ScanLineCount, the callback function will be executed. See AcquisitionCallback for details. |
| [out] | pUser | The user data pointer. |
| ErrorStatus mmind::eye::VirtualProfiler::retrieveBatchData | ( | ProfileBatch & | batch | ) | const |
Retrieves a batch of the profiles. There are two ways to retrieve profile data, by polling or callback. This method is only used with the polling method.
| [out] | batch | The retrieved data of multiple profiles. See ProfileBatch for details. |
| ErrorStatus mmind::eye::VirtualProfiler::startAcquisition | ( | ) |
Enters the virtual device into the acquisition ready status, where it can accept trigger signals for scanning.
| ErrorStatus mmind::eye::VirtualProfiler::stopAcquisition | ( | ) |
Exits the virtual profiler from the acquisition ready status to avoid accidental triggering of scanning. If a callback function is being executed when this method is called, this method is not executed until the execution of the callback function is finished.
|
friend |
Definition at line 149 of file VirtualProfiler.h.