WXP::VectPlot Class Reference
This class plots vectors and streamlines from U and V grids.
More...
#include "../include/VectPlot.h"
List of all members.
Public Types |
| enum | { VECTOR,
BARB,
STREAM
} |
Public Member Functions |
|
| VectPlot (const char *param) |
|
int | init () |
|
int | setParam (const char *param) |
| int | setInterval (float val) |
| int | setBase (float val) |
| int | setSpeed (float val) |
| int | setDensity (int val) |
| int | setSkip (int val) |
| int | setColorTable (const char *str) |
| int | setColorFill (const char *str) |
| int | setColorLine (const char *str) |
|
int | getType () |
|
int | setType (const char *str) |
|
int | setType (int rtype) |
|
float | getMax () |
|
int | drawLabels (Plot &plot, Grid &grid) |
|
int | draw (Plot &plot, Grid &ugrid, Grid &vgrid) |
|
int | drawStreamline (Plot &plot, Grid &ugrid, Grid &vgrid, int i, int j, float length) |
| int | drawBar (Plot &plot, const char *locate) |
|
int | drawVect (Plot &plot, const char *locate) |
Detailed Description
This class plots vectors and streamlines from U and V grids.
- Author:
- Dan Vietor
Member Function Documentation
| int VectPlot::drawBar |
( |
Plot & |
plot, |
|
|
const char * |
locate | |
|
) |
| | |
Draws the color bar legend
- Parameters:
-
| plot | Plot object |
| locate | Location of bar |
| int VectPlot::setBase |
( |
float |
val |
) |
|
Sets the contour base value used in color fill and other parameters
- Parameters:
-
| int VectPlot::setColorFill |
( |
const char * |
str |
) |
|
| int VectPlot::setColorLine |
( |
const char * |
str |
) |
|
| int VectPlot::setColorTable |
( |
const char * |
str |
) |
|
| int VectPlot::setDensity |
( |
int |
val |
) |
|
Sets the density of streamlines on a plot. It is the number of streamlines that can exist in a grid box
- Parameters:
-
| int VectPlot::setInterval |
( |
float |
val |
) |
|
Sets the contour interval
- Parameters:
-
| int VectPlot::setSkip |
( |
int |
val |
) |
|
Sets the skip factor for gridpoints. This sets the interval between gridpoints for vectors and the size of grid boxes for streamline density
- Parameters:
-
| int VectPlot::setSpeed |
( |
float |
val |
) |
|
Sets the wind speed to which vector lengths are fixed
- Parameters:
-
The documentation for this class was generated from the following files: