Re: iTools Widgets [message #69377] |
Thu, 14 January 2010 19:57 |
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  |
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.")
|
|
|