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

Home » Public Forums » archive » Re: Poscript Component Selection
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Poscript Component Selection [message #45529 is a reply to message #45528] Mon, 12 September 2005 14:48 Go to previous messageGo to previous message
IDLmastertobe is currently offline  IDLmastertobe
Messages: 54
Registered: June 2004
Member
Thanks for your reply Mike. Below is a truncated version of my
printPostscript function. I found that even before I printed my
postscript, the data is already act as an image (the "im3d" variable in
the following code). Since I am continuing on an existing piece of code,
as far as I understand, the "owindow" is an IDL number for a graphic
window which the 3D image will be drawn on. The "oview" is an IDLgrView.
If it is not clear, I will try to post a more detailed documentation of the
code. Thanks for your time in helping me. I appreciate it.

partial code:

sState.oVols[sState.iVrendVol]->SetProperty, $
HIDE=1-vol_rend
demo_draw, sState.oWindow, sState.oView, debug=sState.debug
sState.oVols[sState.iVrendVol]->SetProperty,HIDE=1
oImage = sState.oWindow->Read()
oImage->GetProperty,DATA=data
OBJ_DESTROY,oImage

im3d=data

; Reconstruct the color table:
TVLCT, r,g,b, /GET

s = SIZE(image3D)

filename = file + name + '.ps'

!P.FONT=0

; Set the plotting device to PostScript:
SET_PLOT, 'ps'

LOADCT, 0

TVSCL, im3d, TRUE=1
; Close the file:
DEVICE, /CLOSE
set_plot,'win'

END
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: tvimage followed by contour in ps... positioning not coming out right
Next Topic: Re: Force Field

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

Current Time: Fri Oct 10 06:56:03 PDT 2025

Total time taken to generate the page: 2.07248 seconds