|
wxMathPlot - Plot Library for wxWidgets Applications
|
A structure for computation of bounds in real units (not in screen pixel) X refer to X axis Y refer to Y axis. More...
#include <mathplot.h>
Public Member Functions | |
| mpFloatRect (mpWindow &w) | |
| Construct a new mpFloatRect using it's parent mpWindow to obtain the number of Y-scales to use. | |
| mpFloatRect ()=delete | |
| Only allow constructor with mpWindow supplied. | |
| bool | PointIsInside (double px, double py, size_t yAxisID=0) const |
| Is point inside this bounding box? | |
| void | UpdateBoundingBoxToInclude (double px, double py, size_t yAxisID=0) |
| Update bounding box to include this point. | |
| void | InitializeBoundingBox (double px, double py, size_t yAxisID=0) |
| Initialize bounding box with an initial point. | |
| bool | IsNotSet (mpWindow &w) const |
| Is mpFloatRect set ? | |
| bool | operator== (const mpFloatRect &rect) const |
| Equal operator. | |
Public Attributes | |
| mpRange< double > | x |
| range over x direction | |
| std::vector< mpRange< double > > | y |
| array of range over all y directions | |
A structure for computation of bounds in real units (not in screen pixel) X refer to X axis Y refer to Y axis.
| mpFloatRect::mpFloatRect | ( | mpWindow & | w | ) |
Construct a new mpFloatRect using it's parent mpWindow to obtain the number of Y-scales to use.
This makes sure that the y-size always matches the parent mpWindow y-size
| w | parent mpWindow from which to obtain informations |
|
inline |
Initialize bounding box with an initial point.
| px | x-coordinate |
| py | y-coordinate |
| yAxisID | the y-axis ID (default 0, the first y axis) |
|
inline |
Is point inside this bounding box?
| px | x-coordinate |
| py | y-coordinate |
| yAxisID | the y-axis ID (default 0, the first y axis) |
|
inline |
Update bounding box to include this point.
| px | x-coordinate |
| py | y-coordinate |
| yAxisID | the y-axis ID (default 0, the first y axis) |