To take a simple measure between 2 points :
You have to redefine
Code:
QGLWidget::mousePresseEven(QMouseEvent*e)
Get the mouse position
Code:
QMouseEvent::x(); and QMouseEvent::y();
Unproject the point :
Code:
GLC_Point3d GLC_Viewport::unProject(int, int);
(Available int the development version of GLC_lib).
Store the result and redo to get the second point.
To get the distance :
Code:
double length= (Point1 - Point2).length();
That's All.
You can download the tarball here :
http://glc-lib.svn.sourceforge.net/viewvc/glc-lib/glc-lib/?view=tarBut perhaps you want this feature in GLC_PLayer ?
@+