##// END OF EJS Templates
Remove cmake function called that isn't necessary and makes failed the configuration test if test is enable
Remove cmake function called that isn't necessary and makes failed the configuration test if test is enable

File last commit:

r1061:edadf7db2f1e
r1107:6684c2bc54eb
Show More
VisualizationGraphRenderingDelegate.h
42 lines | 1.5 KiB | text/x-c | CLexer
/ gui / include / Visualization / VisualizationGraphRenderingDelegate.h
#ifndef SCIQLOP_VISUALIZATIONGRAPHRENDERINGDELEGATE_H
#define SCIQLOP_VISUALIZATIONGRAPHRENDERINGDELEGATE_H
#include <Common/spimpl.h>
#include <Visualization/VisualizationDefs.h>
class IDataSeries;
class QCustomPlot;
class QMouseEvent;
class Unit;
class VisualizationGraphWidget;
class VisualizationGraphRenderingDelegate {
public:
/// Ctor
/// @param graphWidget the graph widget to which the delegate is associated
/// @remarks the graph widget must exist throughout the life cycle of the delegate
explicit VisualizationGraphRenderingDelegate(VisualizationGraphWidget &graphWidget);
void onMouseDoubleClick(QMouseEvent *event) noexcept;
void onMouseMove(QMouseEvent *event) noexcept;
/// Updates rendering when data of plot changed
void onPlotUpdated() noexcept;
/// Sets properties of the plot's axes from the data series passed as parameter
void setAxesProperties(std::shared_ptr<IDataSeries> dataSeries) noexcept;
/// Sets rendering properties of the plottables passed as parameter, from the data series that
/// generated these
void setPlottablesProperties(std::shared_ptr<IDataSeries> dataSeries,
PlottablesMap &plottables) noexcept;
/// Shows or hides graph overlay (name, close button, etc.)
void showGraphOverlay(bool show) noexcept;
private:
class VisualizationGraphRenderingDelegatePrivate;
spimpl::unique_impl_ptr<VisualizationGraphRenderingDelegatePrivate> impl;
};
#endif // SCIQLOP_VISUALIZATIONGRAPHRENDERINGDELEGATE_H