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

Home » Public Forums » archive » Re: iTools Widgets
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
Re: iTools Widgets [message #69377] Thu, 14 January 2010 19:57
Ray is currently offline  Ray
Messages: 8
Registered: July 1998
Junior Member
On Jan 15, 1:35 pm, David Fanning <n...@dfanning.com> wrote:
> Ray writes:
>> I am some new to IDL and I am now designing a 3D Viewer.
>
>> I find the COLOR SELECTING widgets is quite easy to use and user
>> friendly, so I am planning to use it in my program. However, anybody
>> knows how can I add the COLOR SELECTING widget to my program?
>
>> (The COLOR SELECTING widgets is the one in itool properties, SAMPLE:
>> demo->itools->2D iplot demo->right click a plot->properties->COLOR in
>> the Visualization Browser Window)
>
> Ah, the passion and fire of youth!
>
> Here are the steps.
>
> 1. Subclass your 3D Viewer object from IDLitComponent.
> 2. Create GetProperty and SetProperty methods for your
>    objects "color" property.
> 3. Register your "color" property using the RegisterProperty
>    method of your object (from IDLitComponent). Set its "type"
>    to "COLOR".
> 4. Write a property sheet for your object using the
>    PropertySheet widget.
>
> That's it. Done. Finished.
>
> Do let us know how this program goes!
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

Hi David,

I find the way la~
Thank you very much~

While I need sometime to gets that implemented, I will let you know
when the skeleton is finished.
And if you have time, please give me some advices.


Thank you really very much for your help~

Cheers,

Ray
Re: iTools Widgets [message #69379 is a reply to message #69377] Thu, 14 January 2010 18:35 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Ray writes:

> I am some new to IDL and I am now designing a 3D Viewer.
>
> I find the COLOR SELECTING widgets is quite easy to use and user
> friendly, so I am planning to use it in my program. However, anybody
> knows how can I add the COLOR SELECTING widget to my program?
>
> (The COLOR SELECTING widgets is the one in itool properties, SAMPLE:
> demo->itools->2D iplot demo->right click a plot->properties->COLOR in
> the Visualization Browser Window)

Ah, the passion and fire of youth!

Here are the steps.

1. Subclass your 3D Viewer object from IDLitComponent.
2. Create GetProperty and SetProperty methods for your
objects "color" property.
3. Register your "color" property using the RegisterProperty
method of your object (from IDLitComponent). Set its "type"
to "COLOR".
4. Write a property sheet for your object using the
PropertySheet widget.

That's it. Done. Finished.

Do let us know how this program goes!

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: iTools Widgets
Next Topic: Re: Where can I find a description of the !MAP structure tags?

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

Current Time: Fri Oct 10 16:04:15 PDT 2025

Total time taken to generate the page: 0.48181 seconds