View unanswered posts | View active topics It is currently Tue Oct 16, 2018 8:35 pm



Reply to topic  [ 7 posts ] 
 measurement inquiry 
Author Message

Joined: Sun Jun 20, 2010 7:56 am
Posts: 2
Post measurement inquiry
Is it possible to take measures on a 3dxml model?
If so, should be very useful to add this functionality

bye

Vincenzo


Sun Jun 20, 2010 6:05 pm
Profile
Site Admin

Joined: Sun Jan 03, 2010 4:27 pm
Posts: 390
Post Re: measurement inquiry
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=tar

But perhaps you want this feature in GLC_PLayer ?
@+


Mon Jun 21, 2010 6:50 pm
Profile

Joined: Sun Jun 20, 2010 7:56 am
Posts: 2
Post Re: measurement inquiry
Thank you for your answer.

Yes. I was thinking about take measures in Glc player
Did I post in the wrong place?

regards

vincenzo


Mon Jun 21, 2010 10:06 pm
Profile
Site Admin

Joined: Sun Jan 03, 2010 4:27 pm
Posts: 390
Post Re: measurement inquiry
;) It will be possible to take simple measure in GLC_Player after the next release off GLC_Player at the end of this year.

@+


Tue Jun 22, 2010 3:30 pm
Profile

Joined: Mon Jan 10, 2011 8:20 pm
Posts: 9
Post Re: measurement inquiry
First of all, congratulations for this fantastic piece of software!

Is the measuring option going to be available?. It would be fantastic to have it. Just a point to point would be enough, for reference only.

Thanks and regards!


Mon Jan 10, 2011 8:22 pm
Profile
Site Admin

Joined: Sun Jan 03, 2010 4:27 pm
Posts: 390
Post Re: measurement inquiry
Yes, it will be available in the next version.
But I have a lot of work and I wasn't able to add this feature in 2010. So it will come before April, I promise.

@+


Mon Jan 10, 2011 11:14 pm
Profile

Joined: Mon Jan 10, 2011 8:20 pm
Posts: 9
Post Re: measurement inquiry
Hi Laumaya

Have you manged to add the measuring feature?

Thanks!!


Tue Apr 17, 2012 10:38 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 7 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.