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

Home » Public Forums » archive » Re: Rendering order
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
Re: Rendering order [message #49326] Thu, 13 July 2006 08:11
Kenneth P. Bowman is currently offline  Kenneth P. Bowman
Messages: 585
Registered: May 2000
Senior Member
In article <Kt2dnWhj3JHsUijZnZ2dnUVZ_vmdnZ2d@comcast.com>,
Michael Galloy <mgalloy@gmail.com> wrote:

> x = randomu(seed, 20) * 20
> y = randomu(seed, 20) * 20
> z = randomu(seed, 20) * 20
> d = dist(20)
>
> isurface, d
> id = itGetCurrent(tool=otool)
> surfID = otool->findIdentifiers('*surface', /visualization)
> result = otool->doSetProperty(surfID[0], 'Transparency', 50)
> otool->refreshCurrentWindow
>
> iplot, x, y, z, /overplot
> sendToBackID = otool->findIdentifiers('*sendtoback', /operations)
> result = otool->doAction(sendToBackID)
>
>
> Mike
> --
> www.michaelgalloy.com

Thanks, Mike. That is just what I needed. Much appreciated.

Ken Bowman
Re: Rendering order [message #49333 is a reply to message #49326] Wed, 12 July 2006 21:42 Go to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
Michael Galloy wrote:
> Kenneth P. Bowman wrote:
>> I am drawing a fairly complicated 3-D plot using Isurface. I then
>> overplot some points using iPlot. I would like the surface to be
>> semi-transparent (I know how to do that), so that I can see the points
>> through the surface.
>> In order for this to work, the points must be rendered before the
>> surface. I would rather not re-structure my program to make this
>> work. Is there any easy way to change the rendering order so that the
>> iPlot objects are rendered before the surface? (Like a keyword to
>> iPlot? :-) )
>
> There are "Order > Bring to Front" and "Order > Send to Back" context
> menu items for graphics items in the iTools that will do the trick. Let
> me check if there is a programmatic way to access them.

OK, how about this?


x = randomu(seed, 20) * 20
y = randomu(seed, 20) * 20
z = randomu(seed, 20) * 20
d = dist(20)

isurface, d
id = itGetCurrent(tool=otool)
surfID = otool->findIdentifiers('*surface', /visualization)
result = otool->doSetProperty(surfID[0], 'Transparency', 50)
otool->refreshCurrentWindow

iplot, x, y, z, /overplot
sendToBackID = otool->findIdentifiers('*sendtoback', /operations)
result = otool->doAction(sendToBackID)


Mike
--
www.michaelgalloy.com
Re: Rendering order [message #49334 is a reply to message #49333] Wed, 12 July 2006 21:06 Go to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
Kenneth P. Bowman wrote:
> I am drawing a fairly complicated 3-D plot using Isurface. I then
> overplot some points using iPlot. I would like the surface to be
> semi-transparent (I know how to do that), so that I can see the points
> through the surface.
>
> In order for this to work, the points must be rendered before the
> surface. I would rather not re-structure my program to make this work.
> Is there any easy way to change the rendering order so that the iPlot
> objects are rendered before the surface? (Like a keyword to iPlot? :-) )
>
> Ken

There are "Order > Bring to Front" and "Order > Send to Back" context
menu items for graphics items in the iTools that will do the trick. Let
me check if there is a programmatic way to access them.

Mike
--
www.michaelgalloy.com
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: negation operator
Next Topic: Finding the Working Directory

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

Current Time: Sat Oct 11 15:02:20 PDT 2025

Total time taken to generate the page: 0.23582 seconds