Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

Re: Alpha Blending?

Hi Kevin,

>  > Sure. Combine all your Sets in a FieldImpl with MathType
>  > something like (index -> (r, g, b, Set(x, y))). Each Set
>  > has a different color, and you can toggle the whole thing
>  > on and off in one step.
>  >
>
>
> OK, I think this makes sense.  Use an Integer1DSet as my domain (index)
> and map each Irregular2DSet to the domain. (index -> Set(x,y)).
>
> But how is this done since a FunctionType requires (MathType, MathType)
> and what we have above is (MathType, ThingImpl)?  Can I wrap the Set in
> a RealTupleType which is a MathType?

Oops, That should be (index -> (r, g, b, SetType(x, y))).

> Also, how do I get the colors involved?  Do I make r, g, and b RealTypes
> and give them values as a RealTuple and map them to ScalarMaps?

Yes, except that r, g, b and a Set with type SetType(x, y)
will be 4 members of a Tuple, not a RealTuple.

Good luck,
Bill


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690