1#ifndef xmpsolve_ROOTSRENDERER_H
2#define xmpsolve_ROOTSRENDERER_H
17 void handlePaintEvent(QPainter& painter,
int w,
int h, QPaintEvent *);
59 QPointF
scalePoint(QPointF point,
int width,
int height);
61 QPointF scaleVector(QPointF point,
int width,
int height);
62 QPointF scaleVectorInverse(QPointF point,
int width,
int height);
67 void drawTicks(QPainter& painter,
double w,
double h);
Definition: rootsmodel.h:10
Definition: rootsrenderer.h:12
void zoomOut()
zoomOut changes the zoom to see a wider range.
Definition: rootsrenderer.cpp:43
QList< QPointF > m_roots
Points that should be displayed.
Definition: rootsrenderer.h:72
void setCenter(double x, double y)
setCenter selects the current centered point.
Definition: rootsrenderer.cpp:50
RootsModel * m_model
m_model is the model containing the roots that should be displayed.
Definition: rootsrenderer.h:87
void reloadRoots()
reloadRoots reloads the roots from the model.
Definition: rootsrenderer.cpp:17
QPointF center()
center returns the current center point of the plot.
Definition: rootsrenderer.h:41
double m_maxImagModule
m_maxImagModule is the maximum module of the imaginary parts of the roots.
Definition: rootsrenderer.h:82
double m_maxRealModule
m_maxRealModule is the maximum module of the real parts of the roots.
Definition: rootsrenderer.h:77
void zoomIn()
zoomIn changes the zoom to magnify more.
Definition: rootsrenderer.cpp:36
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 pr...
Definition: rootsrenderer.cpp:56
void drawTicks(QPainter &painter, double w, double h)
drawTicks is used internally to draw ticks on the axis.
Definition: rootsrenderer.cpp:93