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

Home » Public Forums » archive » Looking for CW_ArcBall example code
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Looking for CW_ArcBall example code [message #15872 is a reply to message #15796] Mon, 14 June 1999 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
David Hirsch (dhirsch226@my-deja.com ) writes:

> I am new to IDL, and I'm having trouble setting the colors in a
> CW_ArcBall. Does anyone have example code that does this that I could
> examine? Thanks!

If I were going to use the ArcBall to rotate a surface,
for example, I might set the colors up like this:

; Colors for the surface.

Device, Decomposed=0
LoadCT, 5, NColors=200
Set_Shading, Values=[0,199]

; Colors for the ArcBall.

yellow = GetColor('yellow', 200)
white = GetColor('white', 201)
black = GetColor('black', 202)
red = GetColor('red', 203)
green =GetColor{'green', 204)
colors = [white, yellow, red, green, yellow, black]

Then, when I was ready to set up the ArcBall, I would call
it like this:

arcBall = CW_ArcBall(baseID, Colors=colors)

You can find the GetColor program on my web page:

http://www.dfanning.com/programs/getcolor.pro

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Previous Topic: Re: Problem with non-modal children of modal dialogs
Next Topic: write_gif problem: Garbled Image

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

Current Time: Fri Oct 10 12:48:06 PDT 2025

Total time taken to generate the page: 0.23963 seconds