Class ScatterPlotWidget

Inheritance Relationships

Base Type

Derived Types

Class Documentation

class SmartPeak::ScatterPlotWidget : public SmartPeak::GenericGraphicWidget

Base class for ScatterPlot widgets.

Subclassed by SmartPeak::ChromatogramPlotWidget, SmartPeak::SpectraPlotWidget

Public Functions

inline ScatterPlotWidget(SessionHandler &session_handler, SequenceHandler &sequence_handler, const std::string &title)
inline void setWindowSize(float width, float height)
inline void setRefreshNeeded()
virtual void draw() override

Interface to show the widget

NOTE: free to override in inherited implmementations

Protected Functions

virtual void updateScatterPlotData() = 0

Protected Attributes

SessionHandler &session_handler_
SequenceHandler &sequence_handler_
float plot_width_ = 0.0f
float plot_height_ = 0.0f
const std::string plot_title_
bool show_legend_ = true
bool compact_view_ = true
SessionHandler::ScatterPlotData chrom_
bool refresh_needed_ = false
std::pair<float, float> slider_min_max_ = {0.0f, 0.0f}
std::pair<float, float> current_range_ = {0.0f, 0.0f}