Re: can vector flow scales be set independent?

Bill:

What I really wanted to do with flow control was to turn off one of the
components so, for example, only the u and v components were used. After
discovering that flow_controlU == flow_controlV == flow_controlW by
trial and error, I did what you suggested and just set the values for
the unwanted component to 0.0 in the flatfield. 

oz

----- Original Message -----
From: Bill Hibbard <billh@xxxxxxxxxxxxx>
Date: Thursday, March 13, 2003 4:13 pm
Subject: 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
> >
> >
> >
> >
> 
> 


  • 2003 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: