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

Home » Public Forums » archive » Displaying three images simultaneously (using Object Graphics)
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Displaying three images simultaneously (using Object Graphics) [message #46247] Mon, 07 November 2005 17:07
Victor[1] is currently offline  Victor[1]
Messages: 5
Registered: November 2005
Junior Member
I have 3 images (im1,im2,im3) which I need to display on XObjView (or
any alternate object graphics viewer). When I tried to add more than 1
image to the same graphics object as follows:
> myModel = Obj_New('IDLgrModel')
> myModel->Add, im1
> myModel->Add, im2

IDL complains:
"IDLGRMODEL::ADD: Objects can only have one parent at a time:
<ObjHeapVar9869(IDLGRCOLORBAR)>"

Huh! Okay so to get around this, I created separate objects for the 3
images, hoping to add the 3 objects onto the same view as follows:

> myModel1 = Obj_New('IDLgrModel') & myModel1->Add, im1
> myModel2 = Obj_New('IDLgrModel') & myModel2->Add, im2
> myModel3 = Obj_New('IDLgrModel') & myModel3->Add, im3

Display these using:
XOBJVIEW,myModel1,TITLE=myModel1'
XOBJVIEW,myModel2,TITLE=myModel2 '
XOBJVIEW,myModel3,TITLE=myModel3 '

These obviously plot the three images into 3 separate XObjView windows.
I want them to be displayed in the same XObjView window. So I try to
add them to a container and display the it in XObjView as follows:
myContainer = OBJ_NEW('IDL_Container')
myContainer->Add,myModel_1, POSITION=0.1
myContainer->Add,myModel_2, POSITION=0.5
myContainer->Add,myModel_3, POSITION=0.9
XOBJVIEW,myContainer,TITLE='All 3 images'

IDL complains (This time a nastier one):
"XOBJVIEW: IDLGRMODEL::ADD: The ALIAS keyword is only allowed for
IDLgrComponent class objects."

Looks like XOBJVIEW doesn't even work with IDL_Container or IDLgrView
objects either (I tried that)

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)

I know the following might be useful, but I am not sure how to
incorporate them in the above logic (which I'm not even sure is the
best approach)
1) "!P.MULTI"
2) "Position"

Sorry for the long post. I seem to be lost and would appreciate any
insights into this matter. Thanks alot
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: online help IDL 6.2
Next Topic: Re: Converting Doubles to Strings

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

Current Time: Wed Oct 08 17:39:01 PDT 2025

Total time taken to generate the page: 0.00556 seconds