|
void | handlePaintEvent (QPainter &painter, int w, int h, QPaintEvent *) |
|
void | zoomIn () |
| zoomIn changes the zoom to magnify more.
|
|
void | zoomOut () |
| zoomOut changes the zoom to see a wider range.
|
|
void | setCenter (double x, double y) |
| setCenter selects the current centered point. More...
|
|
QPointF | center () |
| center returns the current center point of the plot. More...
|
|
|
void | reloadRoots () |
| reloadRoots reloads the roots from the model.
|
|
QPointF | scalePoint (QPointF point, int width, int height) |
| scalePoint is used internally to scale, flip and translate a point in a such a way that is plotted properly on the coordinate system on the screen. More...
|
|
QPointF | scaleVector (QPointF point, int width, int height) |
|
QPointF | scaleVectorInverse (QPointF point, int width, int height) |
|
void | drawTicks (QPainter &painter, double w, double h) |
| drawTicks is used internally to draw ticks on the axis.
|
|
|
QList< QPointF > | m_roots |
| Points that should be displayed.
|
|
double | m_maxRealModule |
| m_maxRealModule is the maximum module of the real parts of the roots.
|
|
double | m_maxImagModule |
| m_maxImagModule is the maximum module of the imaginary parts of the roots.
|
|
RootsModel * | m_model |
| m_model is the model containing the roots that should be displayed.
|
|
◆ center()
QPointF xmpsolve::RootsRenderer::center |
( |
| ) |
|
|
inline |
center returns the current center point of the plot.
- Returns
- A QPointF object representing the real and imaginary part of the current center.
◆ scalePoint()
QPointF xmpsolve::RootsRenderer::scalePoint |
( |
QPointF |
point, |
|
|
int |
width, |
|
|
int |
height |
|
) |
| |
|
protected |
scalePoint is used internally to scale, flip and translate a point in a such a way that is plotted properly on the coordinate system on the screen.
- Parameters
-
point | Is the original point that shall be plotted. |
width | Is the current width of the widget. |
height | Is the current height of the widget. |
- Returns
- The QPointF that can be plotted.
◆ setCenter()
void xmpsolve::RootsRenderer::setCenter |
( |
double |
x, |
|
|
double |
y |
|
) |
| |
setCenter selects the current centered point.
- Parameters
-
x | Horizontal coordinate of the center (aka real part) |
y | Vertical coordinate of the center (aka imaginary part). |
The documentation for this class was generated from the following files: