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

This class sets up a grid box for use with contouring. More...

#include "../include/GridBox.h"

Public Member Functions

int init ()
 
int set (Grid &grid, Domain &domain, int x, int y)
 
int set (Grid &grid, Domain &domain, int x, int y, float level)
 
int initLevel ()
 
int setLevel (float level)
 
int setTweak (float t)
 
float getLevel ()
 
float getMin ()
 
float getMax ()
 
float getTotalDsides ()
 
int getCross (int rside)
 
float getVal (int rside)
 
float getSide (int rside)
 
int setCross (int ind, int val)
 
Point getCrossPoint (int rside)
 
Point getCrossPoint1 (int rside)
 
Point getPoint (int corner)
 
Point getPoint1 (int corner)
 
int setNumSide (int val)
 
int getNumSide ()
 
int getEqual ()
 
int getSpan ()
 
bool isDataValid ()
 
bool isLocateValid ()
 
int printVals ()
 
int printStats ()
 
int print ()
 

Static Public Attributes

static const int TOP = 0
 
static const int RIGHT = 1
 
static const int BOTTOM = 2
 
static const int LEFT = 3
 
static const int UL = 0
 
static const int UR = 1
 
static const int LL = 2
 
static const int LR = 3
 

Detailed Description

This class sets up a grid box for use with contouring.

Author
Dan Vietor

Member Function Documentation

◆ set()

int GridBox::set ( Grid grid,
Domain domain,
int  x,
int  y 
)

Sets up location of box and the values at each corner

Parameters
gridGrid to extract values
domainDomain the box will reside
xX point in grid of upper left corner of box
yY point in grid of upper left corner of box

References WXP::Domain::earth_rad, WXP::Domain::getProj(), WXP::GridMath::isDomainEqual(), WXP::Domain::LATLON, WXP::Domain::MERC, WXP::Const::MISS, WXP::Domain::MOLL, WXP::Domain::OFFSET_LL, WXP::Domain::OFFSET_MERC, WXP::GridPoint::set(), WXP::Grid::tran(), and WXP::Point::x.

Referenced by WXP::ContPlot::drawFill(), WXP::ContPlot::drawLine(), and WXP::ContPlot::drawLineLabels().


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