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

Re: can vector flow scales be set independent?

Hi John,

You'd find that flow_controlU == flow_controlV == flow_controlW,
which is why each call to setFlowScale() replaces the previous.
Doing what you want would change the directions of flows, which
is something VisAD carefully avoids. To do this, you'll need to
make the changes in the underlying data (not all that unreasonable
a thing to do).

By the way, I haven't answered your printing question because I
don't know anything about printing (never used it, and someone
else wrote that VisAD code).

Cheers,
Bill

On Thu, 13 Mar 2003, John Osborne wrote:

> I produce a plot of a 3D vector field, u,v,w components defined on a
> x,y,z grid. I have defined for each component a flow control:
>
>     flow_controlU = (FlowControl)uMap.getControl();
>     flow_controlV = (FlowControl)vMap.getControl();
>     flow_controlW = (FlowControl)wMap.getControl();
>
> and I have tried to set the scale of each component with:
>
>     flow_controlU.setFlowScale(vUScale);
>     flow_controlV.setFlowScale(vVScale);
>     flow_controlW.setFlowScale(vWScale);
>
> The display acts as if only the last call to setFlowScale actually
> changes the vector scale and it changes it all three components.So does
> VisAD allow independent flowscales? Thanks!
>
> JO
>
>
>
>


 
 
  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