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

Home » Public Forums » archive » FG bug
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
FG bug [message #91553] Wed, 29 July 2015 06:43 Go to next message
Helder Marchetto is currently offline  Helder Marchetto
Messages: 520
Registered: November 2011
Senior Member
Hi,
anyone know of a quick and easy way around this bug?

i = image(dist(512), 10d * dindgen(512)/511d, 10d * dindgen(512)/511d)
p = polygon([3,7,7,3],[3,3,7,7], /current, /data, Fill_background=0)
p.select
p.setData, [3,6,6,3], [3,3,6,6]

IDL> !version
{
"ARCH": "x86_64",
"OS": "Win32",
"OS_FAMILY": "Windows",
"OS_NAME": "Microsoft Windows",
"RELEASE": "8.4.1",
"BUILD_DATE": "Feb 17 2015",
"MEMORY_BITS": 64,
"FILE_OFFSET_BITS": 64
}

Thanks,
Helder
Re: FG bug [message #91562 is a reply to message #91553] Wed, 29 July 2015 14:04 Go to previous messageGo to next message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
On Wednesday, July 29, 2015 at 7:44:00 AM UTC-6, Helder wrote:
> Hi,
> anyone know of a quick and easy way around this bug?
>
> i = image(dist(512), 10d * dindgen(512)/511d, 10d * dindgen(512)/511d)
> p = polygon([3,7,7,3],[3,3,7,7], /current, /data, Fill_background=0)
> p.select
> p.setData, [3,6,6,3], [3,3,6,6]
>
> IDL> !version
> {
> "ARCH": "x86_64",
> "OS": "Win32",
> "OS_FAMILY": "Windows",
> "OS_NAME": "Microsoft Windows",
> "RELEASE": "8.4.1",
> "BUILD_DATE": "Feb 17 2015",
> "MEMORY_BITS": 64,
> "FILE_OFFSET_BITS": 64
> }
>
> Thanks,
> Helder

Yep. In idlitvispolygon__define.pro, around line 1516, add a call to "self->UpdateSelectionVisual". The code should look like:

self->UpdateSelectionVisual
oTool = self->GetTool()
if (ISA(oTool)) then oTool->RefreshCurrentWindow

Cheers,
Chris
p.s. this has now been fixed for the next version (post IDL 8.5...)
Re: FG bug [message #91566 is a reply to message #91562] Thu, 30 July 2015 00:16 Go to previous messageGo to next message
Helder Marchetto is currently offline  Helder Marchetto
Messages: 520
Registered: November 2011
Senior Member
On Wednesday, July 29, 2015 at 11:04:27 PM UTC+2, Chris Torrence wrote:
> On Wednesday, July 29, 2015 at 7:44:00 AM UTC-6, Helder wrote:
>> Hi,
>> anyone know of a quick and easy way around this bug?
>>
>> i = image(dist(512), 10d * dindgen(512)/511d, 10d * dindgen(512)/511d)
>> p = polygon([3,7,7,3],[3,3,7,7], /current, /data, Fill_background=0)
>> p.select
>> p.setData, [3,6,6,3], [3,3,6,6]
>>
>> IDL> !version
>> {
>> "ARCH": "x86_64",
>> "OS": "Win32",
>> "OS_FAMILY": "Windows",
>> "OS_NAME": "Microsoft Windows",
>> "RELEASE": "8.4.1",
>> "BUILD_DATE": "Feb 17 2015",
>> "MEMORY_BITS": 64,
>> "FILE_OFFSET_BITS": 64
>> }
>>
>> Thanks,
>> Helder
>
> Yep. In idlitvispolygon__define.pro, around line 1516, add a call to "self->UpdateSelectionVisual". The code should look like:
>
> self->UpdateSelectionVisual
> oTool = self->GetTool()
> if (ISA(oTool)) then oTool->RefreshCurrentWindow
>
> Cheers,
> Chris
> p.s. this has now been fixed for the next version (post IDL 8.5...)

Thanks Chris, really appreciated.

Helder
Re: FG bug [message #91567 is a reply to message #91566] Thu, 30 July 2015 00:26 Go to previous message
Helder Marchetto is currently offline  Helder Marchetto
Messages: 520
Registered: November 2011
Senior Member
On Thursday, July 30, 2015 at 9:16:15 AM UTC+2, Helder wrote:
> On Wednesday, July 29, 2015 at 11:04:27 PM UTC+2, Chris Torrence wrote:
>> On Wednesday, July 29, 2015 at 7:44:00 AM UTC-6, Helder wrote:
>>> Hi,
>>> anyone know of a quick and easy way around this bug?
>>>
>>> i = image(dist(512), 10d * dindgen(512)/511d, 10d * dindgen(512)/511d)
>>> p = polygon([3,7,7,3],[3,3,7,7], /current, /data, Fill_background=0)
>>> p.select
>>> p.setData, [3,6,6,3], [3,3,6,6]
>>>
>>> IDL> !version
>>> {
>>> "ARCH": "x86_64",
>>> "OS": "Win32",
>>> "OS_FAMILY": "Windows",
>>> "OS_NAME": "Microsoft Windows",
>>> "RELEASE": "8.4.1",
>>> "BUILD_DATE": "Feb 17 2015",
>>> "MEMORY_BITS": 64,
>>> "FILE_OFFSET_BITS": 64
>>> }
>>>
>>> Thanks,
>>> Helder
>>
>> Yep. In idlitvispolygon__define.pro, around line 1516, add a call to "self->UpdateSelectionVisual". The code should look like:
>>
>> self->UpdateSelectionVisual
>> oTool = self->GetTool()
>> if (ISA(oTool)) then oTool->RefreshCurrentWindow
>>
>> Cheers,
>> Chris
>> p.s. this has now been fixed for the next version (post IDL 8.5...)
>
> Thanks Chris, really appreciated.
>
> Helder

Just a minor remark. In IDL 8.4.1 the line at which this takes place is around 1464, not 1516. Simply search for "self->GetTool()" because there is only one occurrence of this in the file.

Helder
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: About INTERPOLATE function.
Next Topic: Skip file during loop based on subprocess

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

Current Time: Wed Oct 08 09:13:24 PDT 2025

Total time taken to generate the page: 0.00454 seconds