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

Home » Public Forums » archive » 2d image revolves in 3d
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
2d image revolves in 3d [message #90363] Thu, 26 February 2015 04:27 Go to next message
Helder Marchetto is currently offline  Helder Marchetto
Messages: 520
Registered: November 2011
Senior Member
Hi,
I want to avoid that an image "rotates" in 3d.
Given the following simple code and instructions:

w = window(dimensions=[500,500])
i = image(dist(500), current=w)
l = polyline([0.25,0.75]*scale[0],[0.25,0.75]*scale[1], /data, target=i)

Click at one end of the line and change the size+orientation of the line. If you now move the mouse to the image it shows the "rotating" cursor and if you click on the image and move the mouse, the image will revolve in 3D.

How can I avoid images revolving in 3D? Is there a property of w, i or l to avoid this?

Thanks,
Helder
Re: 2d image revolves in 3d [message #90371 is a reply to message #90363] Thu, 26 February 2015 14:13 Go to previous messageGo to next message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
On Thursday, February 26, 2015 at 5:27:44 AM UTC-7, Helder wrote:
> Hi,
> I want to avoid that an image "rotates" in 3d.
> Given the following simple code and instructions:
>
> w = window(dimensions=[500,500])
> i = image(dist(500), current=w)
> l = polyline([0.25,0.75]*scale[0],[0.25,0.75]*scale[1], /data, target=i)
>
> Click at one end of the line and change the size+orientation of the line. If you now move the mouse to the image it shows the "rotating" cursor and if you click on the image and move the mouse, the image will revolve in 3D.
>
> How can I avoid images revolving in 3D? Is there a property of w, i or l to avoid this?
>
> Thanks,
> Helder

Hi Helder,

This is definitely a bug. I just fixed it for the next release (8.5, not 8.4.1). In the meantime, probably the best workaround is to create the polyline as an "annotation", not in the dataspace. You can use ConvertCoord to convert from data coordinates to normalized coordinates.

Thanks for catching and reporting this!

-Chris
Re: 2d image revolves in 3d [message #90378 is a reply to message #90371] Fri, 27 February 2015 00:05 Go to previous message
Helder Marchetto is currently offline  Helder Marchetto
Messages: 520
Registered: November 2011
Senior Member
On Thursday, February 26, 2015 at 11:13:20 PM UTC+1, Chris Torrence wrote:
> On Thursday, February 26, 2015 at 5:27:44 AM UTC-7, Helder wrote:
>> Hi,
>> I want to avoid that an image "rotates" in 3d.
>> Given the following simple code and instructions:
>>
>> w = window(dimensions=[500,500])
>> i = image(dist(500), current=w)
>> l = polyline([0.25,0.75]*scale[0],[0.25,0.75]*scale[1], /data, target=i)
>>
>> Click at one end of the line and change the size+orientation of the line. If you now move the mouse to the image it shows the "rotating" cursor and if you click on the image and move the mouse, the image will revolve in 3D.
>>
>> How can I avoid images revolving in 3D? Is there a property of w, i or l to avoid this?
>>
>> Thanks,
>> Helder
>
> Hi Helder,
>
> This is definitely a bug. I just fixed it for the next release (8.5, not 8.4.1). In the meantime, probably the best workaround is to create the polyline as an "annotation", not in the dataspace. You can use ConvertCoord to convert from data coordinates to normalized coordinates.
>
> Thanks for catching and reporting this!
>
> -Chris

Hi Chris,
thanks for the heads up.
Helder
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: % OPENW: Error opening file.
Next Topic: Function Graphics overlaid objects on image()

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

Current Time: Wed Oct 08 11:30:10 PDT 2025

Total time taken to generate the page: 0.00517 seconds