Class: ArrowProvider

ArrowProvider

new ArrowProvider(windDataProvider, optionsopt)

Manages Arrow calculation
Parameters:
Name Type Attributes Description
windDataProvider WindDataProvider The wind data file.
options Object <optional>
Object with the following properties:
Properties
Name Type Attributes Description
precalcTimesteps int <optional>
number of timesteps for precalculation
dseed float <optional>
d_seed distance
dsep float <optional>
d_sep distance
rect Cesium.Rectangle <optional>
rect to calculate arrows for
arrowWidth float <optional>
width of the arrows
seedSamplePoints int <optional>
Number of tested Sampling points per timestep
scale number <optional>
Scale for these arrows
random boolean <optional>
Distribute arrows randomly, default=false
Source:

Methods

addTimestep()

Appends a timestep to this arrowprovider
Source:

(private) completeTimeStepWithArrows(time)

Adds all possible arrows for this timestep
Parameters:
Name Type Description
time int timestep for calculation
Source:

getArrows(time) → {list}

Returns a list of arrows on the given timestep
Parameters:
Name Type Description
time int timestep to return arrows for
Source:
Returns:
list of Arrow instances
Type
list

(private) getSamplePoints() → {list}

Returns a list of points, that are uniformly distributed for timestepseeding
Source:
Returns:
list of Point instances
Type
list

(private) initArrows()

Initizialize arrows for the first n timesteps
Source:

(private) PropagateArrowsOneStep(dt, time)

takes all arrows from time-dt and propagates them to time
Parameters:
Name Type Description
dt int direction of propagation
time int timestep for calculation
Source: