dubstar_04
6th March 2014, 23:11
I have a pointcloud class that stores points:
class pointCloud : public QObject
{
Q_OBJECT
public:
explicit pointCloud(QObject *parent = 0);
signals:
public slots:
void addPoint(float x, float y, float z);
private:
struct point {
float x;
float y;
float z;
};
std::vector<point> points;
};
i create point cloud:
pointCloud pointcloud;
and filled the vector with points.
I now want to pass this vector to a QGLWidget for display.
Whats the best way to share this data?
Thanks,
Dubstar_04
class pointCloud : public QObject
{
Q_OBJECT
public:
explicit pointCloud(QObject *parent = 0);
signals:
public slots:
void addPoint(float x, float y, float z);
private:
struct point {
float x;
float y;
float z;
};
std::vector<point> points;
};
i create point cloud:
pointCloud pointcloud;
and filled the vector with points.
I now want to pass this vector to a QGLWidget for display.
Whats the best way to share this data?
Thanks,
Dubstar_04