-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLeapMarkerCsvPlugin.h
46 lines (36 loc) · 1.16 KB
/
LeapMarkerCsvPlugin.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef LEAPMARKERCSVPLUGIN_H_INCLUDED
#define LEAPMARKERCSVPLUGIN_H_INCLUDED
#include <QWidget>
#include <QString>
#include <QStringList>
#include "toolkit_interfaces.h"
#include "toolkit_errors.h"
#include "util.h"
#include "plugins/MotionMarkerPlugin/MotionMarkerExtension.h"
class LeapMarkerCsvPlugin : public QObject, public OptionalInterface {
Q_OBJECT
Q_INTERFACES(OptionalInterface)
Q_PLUGIN_METADATA(IID OptionalInterface_iid FILE "metadata.json")
public:
LeapMarkerCsvPlugin();
virtual ~LeapMarkerCsvPlugin();
void init(ToolkitApp* app);
MotionMarkerExtension* loadLeapMarkerCsvFile(QString path);
private:
ToolkitApp* parentApp;
QAction* load_file_trigger;
void loadLeapMarkerCsvSettings();
void addMarkerFrameToExt(MotionMarkerExtension* ext, int marker_count, std::vector<QString>& names, std::vector<float>& row_values, bool);
std::map<RBDLModelWrapper*, QString> model_file_map;
char csv_seperator;
float marker_size;
QColor marker_color;
QStringList x_suffix;
QStringList y_suffix;
QStringList z_suffix;
QStringList all_suffix;
public Q_SLOTS:
void action_load_data();
void reload(RBDLModelWrapper* model);
};
#endif