How to export programmatically a volume with IVOLUME to images [message #60335] |
Mon, 19 May 2008 16:24 |
yingjie, Peng
Messages: 11 Registered: March 2006
|
Junior Member |
|
|
Dear all,
I would like to make a short animation of my rotating volume data. I
think this could be done by rotating the volume a small angle each
time and export corresponding image and then put the images sequence
together. One can use XVOLUME, XVOLUME_ROTATE and XVOLUME_WRITE_IMAGE
to get this job done easily, however iVOLUME offers more possible
choices of configurations, which I prefer to.
I already figured out how to rotate the ivolume object
programmatically by:
idTool = itgetcurrent(TOOL=oTool)
temp = oTool->FindIdentifiers('*DATA SPACE',/VISUALIZATIONS)
idDataSpace = temp[0]
oDataSpace = oTool->GetByIdentifier(idDataSpace)
oDataSpace->GetProperty, PARENT=oDataSpaceRoot
oDataSpaceRoot->Rotate, [0,0,1], 20
oTool->RefreshCurrentWindow
But after hours’ attempt, I still do not know how to export the image
from the ivolume. Of course I can choose “export” to file from the
ivolume menu and then I have to do this hundreds of times to make a
animation :(
I found David had some similar explanations here:
http://www.dfanning.com/itool_tips/newdata.html
but it seems to me this will only work with iImage…
I am not experienced at all with iTools Object Classes and any
suggestions or clues would be greatly appreciated.
with best regards,
Yingjie
|
|
|