Re: Poscript Component Selection [message #45529 is a reply to message #45528] |
Mon, 12 September 2005 14:48   |
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
|
|
|