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

Home » Public Forums » archive » Add and manipulate a visualization to standard Itool
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
Add and manipulate a visualization to standard Itool [message #75872] Thu, 21 April 2011 02:19 Go to next message
kidpix is currently offline  kidpix
Messages: 23
Registered: July 2007
Junior Member
Hi everybody,
I digged a lot, but the whole itool/object thing resist to my effort to comprehend...

That's my today problem:
I have a lot of polygons* that I want to plot on a map generated with imap or iimage.
I tested various options, and I achieved to visualize the polygons, but I cannot modify their properties (color,linesize etc) via the itool interface.

Could anybody indicate me how do that?

*The polygons are the field-of-view of a spacececraft spectrometer.

That an example of the code using only one polygon. By the way,I don't know if adding everything in a IDLgrPolyline object is the best way, maybe ROI related object are better.

X_roi=[14.494100, 14.494100, 14.508240, 14.508240, 14.494100]
Y_roi=[35.706317, 35.713842, 35.713842, 35.706317, 35.706317]


iplot,[min(X_roi),max(X_roi)]#[[0.9,0],[1.1,0]],[min(Y_roi), max(Y_roi)]#[[0.9,0],[1.1,0]],/Scatter

oPolyl = OBJ_NEW('IDLgrPolyline',X_roi,Y_roi,COLOR=[255,0,0],THICK=2, /REGISTER_PROPERTIES) ; - Superclasses : IDLitComponent

PolyMOdel = OBJ_NEW('IDLgrModel',/REGISTER_PROPERTIES)
PolyMOdel -> Add,oPolyl

visoROI = OBJ_NEW('IDLitVisPolyline',/REGISTER_PROPERTIES)
visoROI -> Add,PolyMOdel,/AGGREGATE

idTool = ITGETCURRENT(TOOL=oTool) ;- IDLitTool > IDLitToolbase > IDLITTOOLPLOT
oTool -> IDLITTOOLPLOT::Add, visoROI

Thanks!
Re: Add and manipulate a visualization to standard Itool [message #76124 is a reply to message #75872] Tue, 17 May 2011 06:40 Go to previous message
kidpix is currently offline  kidpix
Messages: 23
Registered: July 2007
Junior Member
Auto-answer:See iTool Progamming Manual - IDL Version 7.1, pag 59

" Predefined iTool Data Classes
IDLitDataIDLArray2D

Creates an IDLitData object of whose TYPE property is set to IDLARRAY2D. Used
to store a two-dimensional array of any IDL data type."

Solved.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Extracting coordinates from EVF files
Next Topic: about jessica biel

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

Current Time: Wed Oct 08 11:43:18 PDT 2025

Total time taken to generate the page: 0.00665 seconds