comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Selecting objects and PickData problem
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Selecting objects and PickData problem [message #21149] Thu, 10 August 2000 00:00
Richard Tyc is currently offline  Richard Tyc
Messages: 69
Registered: June 1999
Member
I am trying to get object selection (and ultimately manipulation
interactively) to work properly without much success.

I understand from previous postings and David Fannings example that the
method first requires:

1) perform a selObj = oWIndow->Select ( oView, [sEvent.x,sEvent.y] )
operation to get the list of objects which could be picked from.

2) Assuming my object of choice is in the list (I check on the NAME property
for each object which I have previously assigned), I can then do something
like

pick = oWindow->PickData( oView, pickObj, [sEvent.x,sEvent.y], dataxyz)

My problem is that the PickData method does work ( ie. the right pickObj is
found from the original selection list) but the actual data in dataxyz makes
no sense!! My object of choice, an IDLgrPolyLine, is part of oModel
contained in oView which has been transformed. I display the X,Yand Z axis
on screen when I manipulate the Model (using oTrackball type interaction)
but the PickData returns data outside my bounds ie. the entire polyline is
within positive X,Y,Z but yet dataxyz returns negative positions ?
Does dataxyz not have the correct transformed data ? Is there a bug here ?

I am trying to allow the user to interactively grap the end point of a line
and modify its position by moving the mouse.

Thanks

Rich
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Selecting objects and PickData problem
Next Topic: page orientation

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 20:07:33 PDT 2025

Total time taken to generate the page: 0.48147 seconds