WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
WXP::Point Struct Reference

This struct sets a 3D point (x, y, z). More...

#include "../include/Point.h"

Public Member Functions

int init ()
 Point ()
 Point (float rx, float ry)
 Point (float rx, float ry, float rz)
int set (float rx, float ry)
int offset (float rx, float ry)
int set (float rx, float ry, float rz)
int set (Point &pt)
float getX ()
float getY ()
int print ()

Static Public Member Functions

static Point interp (Point pt1, Point pt2, float d)

Public Attributes

float x
float y
float z

Detailed Description

This struct sets a 3D point (x, y, z).

Author
Dan Vietor

Constructor & Destructor Documentation

◆ Point() [1/3]

Point::Point ( )

Constructor. Initializes the values.

References init().

Referenced by interp(), and set().

◆ Point() [2/3]

Point::Point ( float rx,
float ry )

Constructor. Sets the values.

Parameters
rxSets X
rySets Y

References init(), and set().

◆ Point() [3/3]

Point::Point ( float rx,
float ry,
float rz )

Constructor. Sets the values.

Parameters
rxSets X
rySets Y
rzSets Z

References init(), and set().

Member Function Documentation

◆ getX()

float WXP::Point::getX ( )
inline

Returns X value

References x.

◆ getY()

float WXP::Point::getY ( )
inline

Returns Y value

References y.

◆ init()

int Point::init ( )

Initializes the values

References WXP::Const::MISS, x, y, and z.

Referenced by WXP::RedbookPlot::draw(), WXP::Points::getCenter(), Point(), Point(), and Point().

◆ interp()

Point Point::interp ( Point pt1,
Point pt2,
float d )
static

Interpolates between two points

Parameters
pt1First point
pt2Second point
dDistance between points (0-1) to interpolate to

References Point(), x, and y.

Referenced by WXP::ContPlot::drawLineLabels().

◆ offset()

int Point::offset ( float rx,
float ry )

◆ print()

int Point::print ( )

Prints the values to standard output.

References WXP::Const::MISS, x, y, and z.

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

◆ set() [1/3]

◆ set() [2/3]

int Point::set ( float rx,
float ry,
float rz )

Sets the values.

Parameters
rxSets X
rySets Y
rzSets Z

References x, y, and z.

◆ set() [3/3]

int WXP::Point::set ( Point & pt)
inline

Sets values to another point

References Point().

Member Data Documentation

◆ x

float WXP::Point::x

X value

Referenced by WXP::Points::add(), WXP::Points::add1(), WXP::NidsImage::addSite(), WXP::Domain::adjust(), WXP::Domain::adjustDir(), WXP::AreaFile::calcDomain(), WXP::NidsPlot::callback(), WXP::Plot::callback(), WXP::Domain::direct(), WXP::CloudPlot::draw(), WXP::DatumPlot::draw(), WXP::Lev2Plot::draw(), WXP::MapPlot::draw(), WXP::RedbookPlot::draw(), WXP::ThermPlot::draw(), WXP::XSectionPlot::draw(), WXP::WindPlot::drawBarb(), WXP::Graph::drawCircle(), WXP::Graph::drawFormText(), WXP::MapPlot::drawLatLon(), WXP::Graph::drawLine(), WXP::Graph::drawMark(), WXP::VectPlot::drawStreamline(), WXP::Graph::drawSymbol(), WXP::Graph::drawSymbol(), WXP::Graph::drawText(), WXP::XWindow::drawText(), WXP::WindPlot::drawTrack(), WXP::ContPlot::drawValues(), WXP::WindPlot::drawVect(), WXP::Points::get(), WXP::Points::getCenter(), WXP::Points::getCentroid(), getX(), init(), WXP::Points::insert(), interp(), WXP::GTran::isPointsInWindow(), WXP::GridMath::locatePoint(), WXP::ImageMath::merge(), offset(), WXP::Domain::offsetLine(), print(), WXP::GribFile::readGDB(), WXP::GribFile::readGDS(), WXP::GiniFile::readHeader(), WXP::ImageMath::remap(), WXP::Domain::set(), set(), set(), WXP::Points::set(), WXP::NidsImage::setImage(), WXP::Domain::setLimits(), WXP::Grid::setLocate(), WXP::RedbookFile::text(), WXP::Domain::tran(), WXP::Domain::tran(), WXP::Domain::tran(), WXP::Domain::tran(), WXP::Graph::tranPlotWindow(), WXP::Graph::tranWindow(), WXP::Domain::unadjustDir(), WXP::Domain::where(), WXP::Domain::within(), WXP::Points::within(), WXP::Domain::withinExt(), and WXP::Domain::wrapLine().

◆ y

float WXP::Point::y

Y value

Referenced by WXP::Points::add(), WXP::Points::add1(), WXP::NidsImage::addSite(), WXP::Domain::adjustDir(), WXP::AreaFile::calcDomain(), WXP::NidsPlot::callback(), WXP::Plot::callback(), WXP::Domain::direct(), WXP::CloudPlot::draw(), WXP::DatumPlot::draw(), WXP::Lev2Plot::draw(), WXP::RedbookPlot::draw(), WXP::ThermPlot::draw(), WXP::XSectionPlot::draw(), WXP::WindPlot::drawBarb(), WXP::Graph::drawCircle(), WXP::Graph::drawFormText(), WXP::MapPlot::drawLatLon(), WXP::Graph::drawLine(), WXP::Graph::drawMark(), WXP::ContPlot::drawMaxMin(), WXP::VectPlot::drawStreamline(), WXP::Graph::drawSymbol(), WXP::Graph::drawSymbol(), WXP::Graph::drawText(), WXP::XWindow::drawText(), WXP::WindPlot::drawTrack(), WXP::WindPlot::drawVect(), WXP::Points::get(), WXP::Points::getCenter(), WXP::Points::getCentroid(), getY(), init(), WXP::Points::insert(), interp(), WXP::GTran::isPointsInWindow(), WXP::GridMath::locatePoint(), WXP::ImageMath::merge(), offset(), WXP::Domain::offsetLine(), print(), WXP::GribFile::readGDB(), WXP::GribFile::readGDS(), WXP::GiniFile::readHeader(), WXP::SatCdfFile::readHeader(), WXP::ImageMath::remap(), WXP::Domain::set(), set(), set(), WXP::Points::set(), WXP::NidsImage::setImage(), WXP::Domain::setLimits(), WXP::Grid::setLocate(), WXP::RedbookFile::text(), WXP::Domain::tran(), WXP::Domain::tran(), WXP::Domain::tran(), WXP::Domain::tran(), WXP::Graph::tranPlotWindow(), WXP::Graph::tranWindow(), WXP::Domain::unadjustDir(), WXP::Domain::where(), WXP::Domain::within(), WXP::Points::within(), WXP::Domain::withinExt(), and WXP::Domain::wrapLine().

◆ z

float WXP::Point::z

Z value

Referenced by init(), print(), and set().


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