Re: Autorotate for iTools? [message #46984 is a reply to message #46914] |
Thu, 12 January 2006 14:18  |
Kenneth P. Bowman
Messages: 585 Registered: May 2000
|
Senior Member |
|
|
In article <1137002628.421292.26430@g49g2000cwa.googlegroups.com>,
"David Alexander" <davidessandro@yahoo.com> wrote:
Thanks very much for the help with this, David. After I posted my
original query, I managed to get the second part of this task working
(writing the image to a file), after much trial and error. Your
suggestions were a big help with the first part.
> The dataspaceroot object subclasses from IDLitVisualization, so it
> inherits the Rotate method. There are actually several data space
> objects in each view, and you want to call Rotate on the highest level
> data space, ie, the one that contains all the others. This is an object
> of type IDLitVisDataSpaceRoot. Its identifier ends with "Data Space
> Root", so you can get it like this:
>
> id=oTool->FindIdentifiers("*data space root")
> oDSRoot=oTool->GetByIdentifiers(id)
I could not find anything containing "root" but this works:
IF (N_ELEMENTS(view) EQ 0) THEN view = 'VIEW_1' ;Default view to
rotate
data_space_id = itool_obj -> FindIdentifiers('*' + view + '*DATA
SPACE', /VISUALIZATION)
Is there a direct way to get an iTool object reference given the iTool
identifier? What I am doing now is:
previous_id = itGetCurrent()
ITCURRENT, itool_id
temp = itGetCurrent(TOOL = itool_obj)
At the end of the program I set the current iTool to previous
ITCURRENT, previous_id
When I feel brave in a few days, I think I'll post this code so that
everyone can point out the dumb ways I am doing things. This is a brave
new world for us unreconstructed Fortran programmers.
> You could even write a custom operation that shows up in the Operations
> menu...
I don't think I'm ready for that yet. I'll save it for the advanced
course.
Ken
|
|
|