I have a pointcloud class that stores points:

Qt Code:
  1. class pointCloud : public QObject
  2. {
  3. Q_OBJECT
  4. public:
  5. explicit pointCloud(QObject *parent = 0);
  6.  
  7. signals:
  8.  
  9. public slots:
  10.  
  11. void addPoint(float x, float y, float z);
  12.  
  13. private:
  14.  
  15. struct point {
  16.  
  17. float x;
  18. float y;
  19. float z;
  20.  
  21. };
  22.  
  23.  
  24. std::vector<point> points;
  25. };
To copy to clipboard, switch view to plain text mode 



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