27 std::unique_ptr<StatusStringFormatterInterface>
fmt;
33 std::unique_ptr<StatusStringFormatterInterface> formatter)
37 ,
fmt(
std::move(formatter))
40 throw std::runtime_error(
"StatusStringReporter: not initialized custom plot.");
43 if (pos.in_axes_range) {
82 std::unique_ptr<StatusStringFormatterInterface> formatter)
84 std::move(formatter)))
Reports back status string composed for current mouse position in QCustomPlot.
StatusStringReporter(QCustomPlot *custom_plot, callback_t callback, std::unique_ptr< StatusStringFormatterInterface > formatter)
std::function< void(const std::string &)> callback_t
materialitems.h Collection of materials to populate MaterialModel.
Aggregate to hold mouse position info in QCustomPlot context.
std::unique_ptr< StatusStringFormatterInterface > fmt
std::unique_ptr< MouseMoveReporter > mouse_reporter
void entering_the_area()
Notify client on entering axes area.
void notify_client(const MousePosInfo &pos)
Notify client about mouse move with formatted status string.
QCustomPlot * custom_plot
StatusStringReporter * parent
void leaving_the_area()
Notify client on leaving axes area.
StatusStringReporterImpl(StatusStringReporter *parent, QCustomPlot *custom_plot, callback_t callback, std::unique_ptr< StatusStringFormatterInterface > formatter)