View that represents a vector field by drawing arrows at regular grid points. If the length of an arrow is larger than a given limit, the arrow is hidden. Optionally a marker is shown instead.
Properties:
VectorField model | vector field to display |
int nGridX, nGridY | number of grid points in x and y direction |
int padding | pixel width of padding space around the grid points |
double vectorScale | pixel length of an arrow representing a vector of unit length |
Color arrowColor | color of the arrows |
double maxArrowLength | maximal length of arrows, longer arrows are not shown |
boolean showMarker | if true, markers are shown at grid points where the arrows are too large |
Color markerColor | color of the optional markers |
Methods:
void update() | redraw all arrows |