Class ScatterPlotWidget¶
Defined in File Widget.h
Inheritance Relationships¶
Base Type¶
public SmartPeak::GenericGraphicWidget(Class GenericGraphicWidget)
Derived Types¶
public SmartPeak::ChromatogramPlotWidget(Class ChromatogramPlotWidget)public SmartPeak::SpectraPlotWidget(Class SpectraPlotWidget)
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 &id, const std::string &title)¶
-
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_¶
-
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}¶
-
inline ScatterPlotWidget(SessionHandler &session_handler, SequenceHandler &sequence_handler, const std::string &id, const std::string &title)¶