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:
val Base value
int VectPlot::setColorFill ( const char *  str  ) 

Sets the color fill parameters

Parameters:
str Color fill string

References WXP::String::set().

Referenced by WXP::GridVect::setColorFill().

int VectPlot::setColorLine ( const char *  str  ) 

Sets the color for line contours

Parameters:
str Color string

References WXP::String::set().

int VectPlot::setColorTable ( const char *  str  ) 

Sets the color table parameters

Parameters:
str Color table string

References WXP::String::set().

Referenced by WXP::GridVect::setColorTable().

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:
val Density value
int VectPlot::setInterval ( float  val  ) 

Sets the contour interval

Parameters:
val Contour interval
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:
val Skip factor
int VectPlot::setSpeed ( float  val  ) 

Sets the wind speed to which vector lengths are fixed

Parameters:
val Speed value

The documentation for this class was generated from the following files:

Generated on 8 Jan 2010 for WXP C++ Library by  doxygen 1.6.1