Add and manipulate a visualization to standard Itool [message #75872] |
Thu, 21 April 2011 02:19  |
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!
|
|
|
|