Result manager (RM) API functions available to LabVIEW.
More...
|
CDLL_EXPORT void DLL_CALLCONV | rm_destroy_all () |
|
CDLL_EXPORT ResultManager *DLL_CALLCONV | rm_create (const char *file, const char *frameinfo, ResultManagerConfig *cfg, LStrHandle *names) |
|
CDLL_EXPORT void DLL_CALLCONV | rm_set_tracker (ResultManager *rm, QueuedTracker *qtrk, ErrorCluster *err) |
|
CDLL_EXPORT void DLL_CALLCONV | rm_destroy (ResultManager *rm, ErrorCluster *err) |
|
CDLL_EXPORT void DLL_CALLCONV | rm_store_frame_info (ResultManager *rm, int frame, double timestamp, float *cols, ErrorCluster *err) |
|
CDLL_EXPORT int DLL_CALLCONV | rm_getbeadresults (ResultManager *rm, int start, int numFrames, int bead, LocalizationResult *results, ErrorCluster *err) |
|
CDLL_EXPORT void DLL_CALLCONV | rm_getframecounters (ResultManager *rm, int *startFrame, int *lastSaveFrame, int *endFrame, int *capturedFrames, int *localizationsDone, int *lostFrames, ErrorCluster *err) |
|
CDLL_EXPORT void DLL_CALLCONV | rm_flush (ResultManager *rm, ErrorCluster *err) |
|
CDLL_EXPORT int DLL_CALLCONV | rm_getresults (ResultManager *rm, int startFrame, int numFrames, LocalizationResult *results, ErrorCluster *err) |
|
CDLL_EXPORT void DLL_CALLCONV | rm_removebead (ResultManager *rm, int bead, ErrorCluster *err) |
|
CDLL_EXPORT void DLL_CALLCONV | rm_getconfig (ResultManager *rm, ResultManagerConfig *cfg, ErrorCluster *err) |
|
Result manager (RM) API functions available to LabVIEW.
§ rm_create()
Definition at line 39 of file lv_resultmanager_api.cpp.
41 std::vector<std::string> colNames;
Class that handles data gathering and saving from QueuedTracker instances.
int numFrameInfoColumns
Number of columns in the frame info metadata file. Additional columns can be added to save more data ...
std::vector< std::string > LVGetStringArray(int count, LStrHandle *str)
static std::unordered_set< ResultManager * > rm_instances
§ rm_destroy()
Definition at line 57 of file lv_resultmanager_api.cpp.
static bool ValidRM(ResultManager *rm, ErrorCluster *err)
Verify the referenced resultmanager is a valid ResultManager instance.
static std::unordered_set< ResultManager * > rm_instances
§ rm_destroy_all()
Definition at line 34 of file lv_resultmanager_api.cpp.
void DeleteAllElems(T &c)
static std::unordered_set< ResultManager * > rm_instances
§ rm_flush()
Definition at line 104 of file lv_resultmanager_api.cpp.
static bool ValidRM(ResultManager *rm, ErrorCluster *err)
Verify the referenced resultmanager is a valid ResultManager instance.
void Flush()
Write all available data regardless of ResultManagerConfig::writeInterval.
§ rm_getbeadresults()
Definition at line 75 of file lv_resultmanager_api.cpp.
const ResultManagerConfig & Config()
Returns a reference to the used configuration to review.
int numBeads
Number of beads for which to grab results. Should always equal the amount of beads in a single frame...
static bool ValidRM(ResultManager *rm, ErrorCluster *err)
Verify the referenced resultmanager is a valid ResultManager instance.
void ArgumentErrorMsg(ErrorCluster *e, const std::string &msg)
int GetBeadPositions(int startFrame, int endFrame, int bead, LocalizationResult *r)
Get the positions of a single bead over an interval of frames.
std::string SPrintf(const char *fmt,...)
§ rm_getconfig()
Definition at line 132 of file lv_resultmanager_api.cpp.
const ResultManagerConfig & Config()
Returns a reference to the used configuration to review.
static bool ValidRM(ResultManager *rm, ErrorCluster *err)
Verify the referenced resultmanager is a valid ResultManager instance.
§ rm_getframecounters()
Definition at line 87 of file lv_resultmanager_api.cpp.
95 if (lastSaveFrame) *lastSaveFrame = r.lastSaveFrame;
96 if (endFrame) * endFrame = r.processedFrames;
97 if (capturedFrames) *capturedFrames = r.capturedFrames;
98 if (localizationsDone) *localizationsDone = r.localizationsDone;
99 if (lostFrames) *lostFrames = r.lostFrames;
int startFrame
Index of the first frame for which results are available.
static bool ValidRM(ResultManager *rm, ErrorCluster *err)
Verify the referenced resultmanager is a valid ResultManager instance.
FrameCounters GetFrameCounters()
Returns a FrameCounters structure with the current counts.
§ rm_getresults()
Definition at line 111 of file lv_resultmanager_api.cpp.
114 return rm->
GetResults(results, startFrame, numFrames);
int GetResults(LocalizationResult *results, int startFrame, int numResults)
Get the positions of all beads over an interval of frames.
static bool ValidRM(ResultManager *rm, ErrorCluster *err)
Verify the referenced resultmanager is a valid ResultManager instance.
§ rm_removebead()
Definition at line 119 of file lv_resultmanager_api.cpp.
123 ArgumentErrorMsg(err,
"Cannot discard bead results while tracking in progress");
bool RemoveBeadResults(int bead)
Remove all results of a certain bead.
QueuedTracker * GetTracker()
Get the tracker from which results are fetched.
static bool ValidRM(ResultManager *rm, ErrorCluster *err)
Verify the referenced resultmanager is a valid ResultManager instance.
void ArgumentErrorMsg(ErrorCluster *e, const std::string &msg)
§ rm_set_tracker()
Definition at line 50 of file lv_resultmanager_api.cpp.
static bool ValidRM(ResultManager *rm, ErrorCluster *err)
Verify the referenced resultmanager is a valid ResultManager instance.
void SetTracker(QueuedTracker *qtrk)
Set the tracker from which to fetch results.
§ rm_store_frame_info()
Definition at line 65 of file lv_resultmanager_api.cpp.
69 dbgprintf(
"rm_store_frame_info: frame=%d, ts=%f\n", frame,timestamp);
void StoreFrameInfo(int frame, double timestamp, float *columns)
Store metadata for a frame. This data will be saved in the info file.
static bool ValidRM(ResultManager *rm, ErrorCluster *err)
Verify the referenced resultmanager is a valid ResultManager instance.
void dbgprintf(const char *fmt,...)