WXP C++ Library Version 6.74.9
|
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 |
This struct sets a 3D point (x, y, z)
Point::Point | ( | ) |
Constructor. Initializes the values.
References init().
Point::Point | ( | float | rx, |
float | ry | ||
) |
Point::Point | ( | float | rx, |
float | ry, | ||
float | rz | ||
) |
|
inline |
Returns X value
References x.
|
inline |
Returns Y value
References y.
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().
Interpolates between two points
pt1 | First point |
pt2 | Second point |
d | Distance between points (0-1) to interpolate to |
Referenced by WXP::ContPlot::drawLineLabels().
int Point::offset | ( | float | rx, |
float | ry | ||
) |
Offsets the point
rx | X offset |
ry | Y offset |
Referenced by WXP::HurPlot::draw(), WXP::RedbookPlot::draw(), WXP::WarnPlot::draw(), WXP::WatchPlot::draw(), WXP::DatumPlot::draw(), WXP::VectPlot::drawVect(), and WXP::WindPlot::drawVect().
int Point::print | ( | ) |
Prints the values to standard output.
References WXP::Const::MISS, x, y, and z.
Referenced by WXP::MetaPlot::draw().
int Point::set | ( | float | rx, |
float | ry | ||
) |
Sets the values.
rx | Sets X |
ry | Sets Y |
Referenced by WXP::NidsImage::addSite(), WXP::GridMath::adjustUV(), WXP::Figure::callback(), WXP::Plot::callback(), WXP::ProfPlot::draw(), WXP::UpaXSectCont::draw(), WXP::UpaXSectPlot::draw(), WXP::CloudPlot::draw(), WXP::Graph::drawText(), WXP::Plot::drawText(), WXP::VectPlot::drawVect(), Point(), Point(), WXP::TiffFile::read(), WXP::SatCdfFile::readHeader(), WXP::LritFile::readHeader(), WXP::Domain::set(), WXP::NidsImage::setImage(), WXP::Domain::tran(), WXP::Domain::tran(), and WXP::Domain::tran().
int Point::set | ( | float | rx, |
float | ry, | ||
float | rz | ||
) |
|
inline |
Sets values to another point
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::Lev2Plot::draw(), WXP::RedbookPlot::draw(), WXP::ThermPlot::draw(), WXP::XSectionPlot::draw(), WXP::MapPlot::draw(), WXP::DatumPlot::draw(), WXP::CloudPlot::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::XWindow::drawText(), WXP::Graph::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::GTran::resize(), WXP::Domain::set(), set(), set(), WXP::GridBox::set(), WXP::Points::set(), WXP::GTran::set(), WXP::NidsImage::setImage(), WXP::Domain::setLimits(), WXP::Grid::setLocate(), WXP::GTran::setViewport(), WXP::GTran::setWindow(), WXP::RedbookFile::text(), WXP::Domain::tran(), WXP::Domain::tran(), WXP::Domain::tran(), WXP::Domain::tran(), WXP::GTran::tranNdcPlotX(), WXP::GTran::tranPlotNdcX(), WXP::Graph::tranPlotWindow(), WXP::GTran::tranPlotWindowX(), WXP::Graph::tranWindow(), WXP::GTran::tranWindowNdcX(), WXP::GTran::tranWindowPlotX(), WXP::Domain::unadjustDir(), WXP::Domain::where(), WXP::Domain::within(), WXP::Points::within(), WXP::Domain::withinExt(), and WXP::Domain::wrapLine().
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::Lev2Plot::draw(), WXP::RedbookPlot::draw(), WXP::ThermPlot::draw(), WXP::XSectionPlot::draw(), WXP::DatumPlot::draw(), WXP::CloudPlot::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::XWindow::drawText(), WXP::Graph::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::GTran::resize(), WXP::Domain::set(), set(), set(), WXP::Points::set(), WXP::GTran::set(), WXP::NidsImage::setImage(), WXP::Domain::setLimits(), WXP::Grid::setLocate(), WXP::GTran::setViewport(), WXP::GTran::setWindow(), WXP::RedbookFile::text(), WXP::Domain::tran(), WXP::Domain::tran(), WXP::Domain::tran(), WXP::Domain::tran(), WXP::GTran::tranNdcPlotY(), WXP::GTran::tranPlotNdcY(), WXP::Graph::tranPlotWindow(), WXP::GTran::tranPlotWindowY(), WXP::Graph::tranWindow(), WXP::GTran::tranWindowNdcY(), WXP::GTran::tranWindowPlotY(), WXP::Domain::unadjustDir(), WXP::Domain::where(), WXP::Domain::within(), WXP::Points::within(), WXP::Domain::withinExt(), and WXP::Domain::wrapLine().