WXP C++ Library Version 6.74.6
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
WXP::WindPlot Class Reference

This class plots wind symbols. More...

#include "../include/WindPlot.h"

Static Public Member Functions

static int drawBarbMap (Plot &plot, Point &pt, Wind &wnd, float size, float offset)
 
static int drawBarb (Plot &plot, Point &pt, Wind &wnd, float size, float offset)
 
static int drawVectMap (Plot &plot, Point &pt, Wind &wnd, float size, float arrow)
 
static int drawVect (Plot &plot, Point &pt, Wind &wnd, float size, float arrow)
 
static int drawTrack (Plot &plot, Point &pt, Wind &wnd, float scale, float arrow, int maj, int min)
 

Detailed Description

This class plots wind symbols.

Author
Dan Vietor

Member Function Documentation

◆ drawBarb()

int WindPlot::drawBarb ( Plot plot,
Point pt,
Wind wnd,
float  size,
float  offset 
)
static

Draws a wind barb

Parameters
plotPlot object
ptPlace to plot barb
wndWind data (dir relative to plot)
sizeSize of barb in plot coordinates
offsetOffset to start of barb, used to plot barb with cloud symbol

References WXP::Points::add(), WXP::Points::clear(), WXP::Plot::drawFill(), WXP::Plot::drawLine(), WXP::Const::DRC, WXP::Const::MISS, WXP::Plot::setFillStyle(), WXP::Point::x, and WXP::Point::y.

Referenced by WXP::ProfPlot::draw(), WXP::UpaXSectPlot::draw(), WXP::VectPlot::draw(), drawBarbMap(), and WXP::NidsPlot::drawData().

◆ drawBarbMap()

int WindPlot::drawBarbMap ( Plot plot,
Point pt,
Wind wnd,
float  size,
float  offset 
)
static

Draws a wind barb corrected for projection

Parameters
plotPlot object
ptPlace to plot barb
wndWind data (dir relative to north)
sizeSize of barb in plot coordinates
offsetOffset to start of barb, used to plot barb with cloud symbol

References drawBarb().

Referenced by WXP::DatumPlot::draw().

◆ drawTrack()

int WindPlot::drawTrack ( Plot plot,
Point pt,
Wind wnd,
float  scale,
float  arrow,
int  maj,
int  min 
)
static

Draws a vector track which is an arrow with tick marks

Parameters
plotPlot object
ptPlace to plot barb
wndWind data (dir relative to plot)
scaleScale factor of arrow and tick marks
arrowSize of arrow
majNumber of major tick marks
minNumber of minor tick marks

References WXP::Points::add(), WXP::Points::clear(), WXP::Plot::drawLine(), WXP::Const::DRC, WXP::Const::MISS, WXP::Point::x, and WXP::Point::y.

Referenced by WXP::DatumPlot::draw().

◆ drawVect()

int WindPlot::drawVect ( Plot plot,
Point pt,
Wind wnd,
float  size,
float  arrow 
)
static

Draws a wind vector

Parameters
plotPlot object
ptPlace to plot barb
wndWind data (dir relative to plot)
sizeSize of vector in plot coordinates
arrowSize of arrow

References WXP::Points::add(), WXP::Points::clear(), WXP::Plot::drawLine(), WXP::Plot::drawText(), WXP::Const::MISS, WXP::Point::offset(), WXP::Calc::windU(), WXP::Calc::windV(), WXP::Point::x, and WXP::Point::y.

Referenced by WXP::VectPlot::draw(), WXP::VectPlot::drawStreamline(), WXP::VectPlot::drawVect(), and drawVectMap().

◆ drawVectMap()

int WindPlot::drawVectMap ( Plot plot,
Point pt,
Wind wnd,
float  size,
float  arrow 
)
static

Draws a wind vector relative to projection

Parameters
plotPlot object
ptPlace to plot barb
wndWind data (dir relative to north)
sizeSize of vector in plot coordinates
arrowSize of arrow

References drawVect().

Referenced by WXP::DatumPlot::draw().


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