itools vertical colorbar bug [message #58941] |
Wed, 27 February 2008 12:54 |
sdettrick@gmail.com
Messages: 5 Registered: February 2007
|
Junior Member |
|
|
Hi,
I just found a bug in iTools, and I was wondering if anybody has found
a workaround for it. From the bug report I just sent to ITT:
There is an iTools bug associated with vertical colorbars (not
horizontal ones).
The bug occurs in versions 7.0 and 6.3, but does not occur in version
6.0. I have only tested it on linux. The bug looks like it might be
in idlitviscolorbar__define.pro in the method
IDLitVisColorbar::OnDataChangeUpdate in the 'VISUALIZATION DATA' case.
You can recreate the bug exactly as follows:
1) Create an iimage:
iImage, dist(200),/insert_colorbar
2) Choose the colorbar to be Vertical, via the iImage gui.
3) Change the data programatically:
id = iTGetCurrent(Tool=oTool)
dm=oTool->getbyidentifier('/data manager')
oData=dm->GetByIdentifier('/DATA MANAGER/IMAGE PARAMETERS/IMAGEPIXELS/
GRAY')
success=oData->SetData(dist(200))
When the colorbar is HORIZONTAL, there is no problem with the above.
When the colorbar is VERTICAL, the colortable splits into two sections
vertically when SetData is called, i.e. the color range is duplicated
twice inside the rectangle of the colorbar. This error seems to occur
for any choice of new data, even if it is the same as the old data.
This unfortunately makes it impossible to use vertical color bars in
iTools, at least with iImage.
Is there an update for this? If there is then I would very much like
to hear about it.
Thank you,
Sean
|
|
|