ucar.visad
Class WindBarbRenderer

java.lang.Object
  extended by visad.DataRenderer
      extended by visad.java3d.RendererJ3D
          extended by visad.java3d.DefaultRendererJ3D
              extended by visad.bom.BarbRendererJ3D
                  extended by ucar.visad.WindBarbRenderer
All Implemented Interfaces:
Cloneable, BarbRenderer

public class WindBarbRenderer
extends BarbRendererJ3D

Custom barb renderer

Author:
IDV Development Team

Field Summary
 
Fields inherited from class visad.DataRenderer
enabled, pickCrawlToCursor
 
Constructor Summary
WindBarbRenderer()
          Default ctor
WindBarbRenderer(Unit speedUnit)
          Create a WindBarbRenderer with the specified speed unit for the values being displayed
 
Method Summary
 Object clone()
          Clone this
 float[] makeVector(boolean south, float x, float y, float z, float scale, float pt_size, float f0, float f1, float[] vx, float[] vy, float[] vz, int[] numv, float[] tx, float[] ty, float[] tz, int[] numt)
          Make the barb
 
Methods inherited from class visad.bom.BarbRendererJ3D
getKnotsConvert, main, makeShadowFunctionType, makeShadowRealTupleType, makeShadowRealType, makeShadowSetType, makeShadowTupleType, setKnotsConvert
 
Methods inherited from class visad.java3d.DefaultRendererJ3D
addSwitch, clearScene, doTransform, getLink, setLinks
 
Methods inherited from class visad.java3d.RendererJ3D
clearBranch, doAction, flush, getBranch, makeShadowTextType, setBranchEarly, toggle
 
Methods inherited from class visad.DataRenderer
addException, addPoint, checkAction, checkClose, checkDirect, clearAVControls, clearExceptions, computeRanges, constrainDragPoint, drag_direct, earthToSpatial, earthToSpatial, findRayManifoldIntersection, get_all_feasible, get_any_changed, get_any_transform_control, getBadScale, getDisplay, getDisplayCoordinateSystem, getDisplayRenderer, getEarthDimension, getEarthUnits, getEnabled, getExceptionVector, getIsDirectManipulation, getLastMouseModifiers, getLatLonIndices, getLatLonRange, getLinks, getPickCrawlToCursor, getRanges, getRealVectorTypes, getWhyNotDirect, isLegalTextureMap, isTransformControl, prepareAction, realCheckDirect, release_direct, removeLink, set_all_feasible, setDisplay, setDisplayRenderer, setEarthSpatialData, setEarthSpatialDisplay, setIsDirectManipulation, setLastMouseModifiers, setLatLonIndices, setLinks, setPickCrawlToCursor, setSpatialValues, spatialToEarth, spatialToEarth, stop_direct, suppressExceptions
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WindBarbRenderer

public WindBarbRenderer()
Default ctor


WindBarbRenderer

public WindBarbRenderer(Unit speedUnit)
Create a WindBarbRenderer with the specified speed unit for the values being displayed

Parameters:
speedUnit - the units of the values
Method Detail

makeVector

public float[] makeVector(boolean south,
                          float x,
                          float y,
                          float z,
                          float scale,
                          float pt_size,
                          float f0,
                          float f1,
                          float[] vx,
                          float[] vy,
                          float[] vz,
                          int[] numv,
                          float[] tx,
                          float[] ty,
                          float[] tz,
                          int[] numt)
Make the barb

Specified by:
makeVector in interface BarbRenderer
Overrides:
makeVector in class BarbRendererJ3D
Parameters:
south - true if southern hemisphere
x - x position
y - y position
z - z position
scale - scale factor
pt_size - spacing
f0 - u component
f1 - v component
vx - line x points
vy - line y points
vz - line z points
numv - num line points
tx - triangle x points
ty - triangle y points
tz - triangle z points
numt - triangles
Returns:
stuff

clone

public Object clone()
Clone this

Overrides:
clone in class BarbRendererJ3D
Returns:
a new one