##// END OF EJS Templates
Handles rendering of plottables (2)...
Handles rendering of plottables (2) Handles rendering of scalars and vectors: the method that determines colors for each component is moved from VisualizationGraphHelper to the helper created previously

File last commit:

r917:3bf91527f27d
r919:f75604dde9e3
Show More
VisualizationGraphRenderingDelegate.h
35 lines | 1.1 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 onMouseMove(QMouseEvent *event) noexcept;
/// Sets properties of the plot's axes from the data series passed as parameter
void setAxesProperties(std::shared_ptr<IDataSeries> dataSeries) 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