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

Home » Public Forums » archive » Re: Displaying three images simultaneously (using Object Graphics)
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: Displaying three images simultaneously (using Object Graphics) [message #46228 is a reply to message #46227] Tue, 08 November 2005 10:13 Go to previous messageGo to previous message
Karl Schultz is currently offline  Karl Schultz
Messages: 341
Registered: October 1999
Senior Member
On Mon, 07 Nov 2005 17:07:45 -0800, Victor wrote:
<snip>
> Also,
>> myModel = Obj_New('IDLgrModel')
>> myModel->Add, [myModel_1, myModel_2, myModel_3], POSITION=[10,20,30]*B
>> XOBJVIEW,myModel,TITLE='All 3 images'
> Works, but doesn't give the expected results (just overlays the three
> images, Position keyword seems to have no effect whatso ever)

This approach is the closest you came to the correct way of doing it.

I'm not sure why, but it seems that you have developed the idea
that the POSITION keyword parameter has something to do with spatial
locations. POSITION for IDLgrModel and IDL_Container refers to the
ordering of objects in a container. For example, POSITION=5 means to
insert the object into the container in the 6th position (POSITION is
zero-based). That is, the object will have 5 objects that preceed it in
container order after it is inserted. POSITION is an index, not a spatial
coordinate.

There are a number of ways to change an image's displayed location. The
IDLgrImage LOCATION property is one way that was mentioned by another
poster.

Since you have a model for each image you can also do:

myModel = Obj_New('IDLgrModel')
myModel->Add, [myModel_1, myModel_2, myModel_3]
myModel_1->Translate, 10, 0, 0
myModel_2->Translate, 20, 0, 0
myModel_3->Translate, 30, 0, 0
XOBJVIEW, myModel, TITLE='All 3 images'

Substitute offsets that make sense for your image sizes.

Karl
[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
Previous Topic: Overlay multiple filled contour plots?
Next Topic: the strange case of readcol.pro in idl 5.6

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

Current Time: Fri Oct 10 12:40:33 PDT 2025

Total time taken to generate the page: 0.40055 seconds