BCESolve
BCEValueSetPlot Class Reference

QCustomPlot with Tool-tip and click functionality. More...

#include <bcevaluesetplot.hpp>

Inheritance diagram for BCEValueSetPlot:
Collaboration diagram for BCEValueSetPlot:

Public Slots

void showPointToolTip (QMouseEvent *event)
 Shows coordinates for point the mouse is hovering over.
 
void getClickCoordinates (QMouseEvent *event)
 Gets coordinates of the point where a click is made.
 

Signals

void newEqmCoordinates (double x, double y)
 Signals new coordinates after the user clicks on the plot.
 

Public Member Functions

 BCEValueSetPlot ()
 Constructor.
 

Private Slots

void ShowContextMenu (const QPoint &pos)
 Slot for showing context menu. More...
 
void savePDF ()
 Saves graph as a PDF.
 
void savePNG ()
 Saves graph as a PNG.
 

Private Attributes

QAction * savePNGAction
 Pointer to QAction for saving PNG files.
 
QAction * savePDFAction
 Pointer to QAction for saving PDF files.
 
QString path
 Path to screenshots.
 

Detailed Description

QCustomPlot with Tool-tip and click functionality.

Plot template for the conditional-marginal plot and the plot of equilibria. The tool-tip provides the ability to hover the mouse over a point to see its coordinates. The click retrieves the coordinates of the click.

Member Function Documentation

◆ ShowContextMenu

void BCEValueSetPlot::ShowContextMenu ( const QPoint &  pos)
inlineprivateslot

Slot for showing context menu.

Creates a context menu and shows the actions for saving PDF/PNG files.


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