WXP C++ Library Version 6.74.9
|
This structure defines rectangle coordinates. More...
#include "../include/Rect.h"
Public Member Functions | |
int | init () |
Rect () | |
Rect (float x1, float y1, float x2, float y2) | |
int | set (float x1, float y1, float x2, float y2) |
int | setu (float x1, float y1, float x2, float y2) |
float | getXMin () |
float | getXMax () |
float | getYMin () |
float | getYMax () |
int | print () |
Public Attributes | |
float | xmin |
float | ymin |
float | xmax |
float | ymax |
This structure defines rectangle coordinates.
Rect::Rect | ( | ) |
Constructor
References init().
Rect::Rect | ( | float | x1, |
float | y1, | ||
float | x2, | ||
float | y2 | ||
) |
Constructor. Sets values
x1 | First X value |
y1 | First Y value |
x2 | Second X value |
y2 | Second Y value |
References set().
|
inline |
|
inline |
|
inline |
|
inline |
int Rect::init | ( | ) |
Initializes the values
References WXP::Const::MISS, xmax, xmin, ymax, and ymin.
Referenced by WXP::Domain::init(), and Rect().
int Rect::print | ( | ) |
Prints the object values
References xmax, xmin, ymax, and ymin.
Referenced by WXP::Graph::setViewportAspect().
int Rect::set | ( | float | x1, |
float | y1, | ||
float | x2, | ||
float | y2 | ||
) |
Sets values
x1 | First X value |
y1 | First Y value |
x2 | Second X value |
y2 | Second Y value |
References xmax, xmin, ymax, and ymin.
Referenced by WXP::XWindow::getCoords(), WXP::XWindow::getCoords(), Rect(), and WXP::Domain::setParam().
int Rect::setu | ( | float | x1, |
float | y1, | ||
float | x2, | ||
float | y2 | ||
) |
float WXP::Rect::xmax |
Max X value
Referenced by WXP::Graph::clearRect(), WXP::MetaPlot::draw(), WXP::ThermPlot::draw(), WXP::XSectionPlot::draw(), WXP::MapPlot::drawLatLon(), WXP::Graph::drawRect(), WXP::VectPlot::drawVect(), WXP::GTran::getClipRect(), WXP::GTran::getNdc(), WXP::GTran::getNdc(), WXP::GTran::getViewport(), WXP::GTran::getViewport(), WXP::GTran::getWindow(), WXP::GTran::getWindow(), getXMax(), init(), print(), WXP::Domain::printLimits(), WXP::GTran::resize(), set(), WXP::GTran::set(), WXP::XWindow::setClip(), WXP::Domain::setLimits(), setu(), WXP::GTran::setViewport(), WXP::Graph::setViewportAspect(), WXP::GTran::setWindow(), WXP::Domain::tran(), WXP::Domain::tran(), WXP::Domain::tran(), WXP::Domain::where(), WXP::Domain::within(), and WXP::Domain::withinExt().
float WXP::Rect::xmin |
Min X value
Referenced by WXP::Graph::clearRect(), WXP::MetaPlot::draw(), WXP::ThermPlot::draw(), WXP::XSectionPlot::draw(), WXP::ImagePlot::drawImage(), WXP::MapPlot::drawLatLon(), WXP::Graph::drawRect(), WXP::VectPlot::drawVect(), WXP::GTran::getClipRect(), WXP::GTran::getNdc(), WXP::GTran::getNdc(), WXP::GTran::getViewport(), WXP::GTran::getViewport(), WXP::GTran::getWindow(), WXP::GTran::getWindow(), getXMin(), init(), WXP::ImageMath::merge(), print(), WXP::Domain::printLimits(), WXP::ImageMath::remap(), WXP::GTran::resize(), set(), WXP::GTran::set(), WXP::XWindow::setClip(), WXP::Domain::setLimits(), setu(), WXP::GTran::setViewport(), WXP::Graph::setViewportAspect(), WXP::GTran::setWindow(), WXP::Domain::tran(), WXP::Domain::tran(), WXP::Domain::tran(), WXP::Domain::tran(), WXP::Domain::tran(), WXP::Domain::tran(), WXP::Domain::tran(), WXP::Domain::where(), WXP::Domain::within(), and WXP::Domain::withinExt().
float WXP::Rect::ymax |
Max Y value
Referenced by WXP::Graph::clearRect(), WXP::MetaPlot::draw(), WXP::ThermPlot::draw(), WXP::XSectionPlot::draw(), WXP::ImagePlot::drawImage(), WXP::MapPlot::drawLatLon(), WXP::Graph::drawRect(), WXP::VectPlot::drawVect(), WXP::GTran::getClipRect(), WXP::GTran::getNdc(), WXP::GTran::getNdc(), WXP::Domain::getVert(), WXP::GTran::getViewport(), WXP::GTran::getViewport(), WXP::GTran::getWindow(), WXP::GTran::getWindow(), getYMax(), init(), WXP::ImageMath::merge(), print(), WXP::Domain::printLimits(), WXP::ImageMath::remap(), WXP::GTran::resize(), set(), WXP::GTran::set(), WXP::XWindow::setClip(), WXP::Graph::setFontSpec(), WXP::Domain::setLimits(), setu(), WXP::GTran::setViewport(), WXP::Graph::setViewportAspect(), WXP::GTran::setWindow(), WXP::Domain::tran(), WXP::Domain::tran(), WXP::Domain::tran(), WXP::Domain::tran(), WXP::Domain::tran(), WXP::Domain::where(), WXP::Domain::within(), and WXP::Domain::withinExt().
float WXP::Rect::ymin |
Min Y value
Referenced by WXP::Graph::clearRect(), WXP::MetaPlot::draw(), WXP::ThermPlot::draw(), WXP::XSectionPlot::draw(), WXP::MapPlot::drawLatLon(), WXP::Graph::drawRect(), WXP::VectPlot::drawVect(), WXP::GTran::getClipRect(), WXP::GTran::getNdc(), WXP::GTran::getNdc(), WXP::Domain::getVert(), WXP::GTran::getViewport(), WXP::GTran::getViewport(), WXP::GTran::getWindow(), WXP::GTran::getWindow(), getYMin(), init(), print(), WXP::Domain::printLimits(), WXP::GTran::resize(), set(), WXP::GTran::set(), WXP::XWindow::setClip(), WXP::Graph::setFontSpec(), WXP::Domain::setLimits(), setu(), WXP::GTran::setViewport(), WXP::Graph::setViewportAspect(), WXP::GTran::setWindow(), WXP::Domain::tran(), WXP::Domain::tran(), WXP::Domain::tran(), WXP::Domain::tran(), WXP::Domain::tran(), WXP::Domain::where(), WXP::Domain::within(), and WXP::Domain::withinExt().