MPSolve 3.2.1
Loading...
Searching...
No Matches
xmpsolve::QRootsRenderer Class Reference
Inheritance diagram for xmpsolve::QRootsRenderer:
xmpsolve::RootsRenderer

Public Member Functions

 QRootsRenderer (QWidget *parent=0)
 
void setModel (RootsModel *model)
 setRoots can be used to set the roots that the RootsRenderer shall renderer. More...
 
void paintEvent (QPaintEvent *event)
 
void zoomIn ()
 zoomIn handles the zooming operations triggering update().
 
void zoomOut ()
 zoomOut handles the zoomin triggering update().
 
void setCenter (double x, double y)
 setCenter handled the recentering calling update() More...
 
void mousePressEvent (QMouseEvent *event)
 
void mouseReleaseEvent (QMouseEvent *event)
 
void mouseMoveEvent (QMouseEvent *event)
 
- Public Member Functions inherited from xmpsolve::RootsRenderer
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...
 

Additional Inherited Members

- Protected Member Functions inherited from xmpsolve::RootsRenderer
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.
 
- Protected Attributes inherited from xmpsolve::RootsRenderer
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.
 
RootsModelm_model
 m_model is the model containing the roots that should be displayed.
 

Member Function Documentation

◆ setCenter()

void xmpsolve::QRootsRenderer::setCenter ( double  x,
double  y 
)

setCenter handled the recentering calling update()

Parameters
xThe x coordinate of the new center point.
yThe y coordinate of the new center point.

◆ setModel()

void xmpsolve::QRootsRenderer::setModel ( RootsModel model)

setRoots can be used to set the roots that the RootsRenderer shall renderer.

Parameters
modelThe roots model that should be displayed.

The documentation for this class was generated from the following files: