DISPLACE  1.0
A spatial model of fisheries to help sustainable fishing and maritime spatial planning
ShipsStatsPlot Class Reference

#include <shipsstatsplot.h>

Inheritance diagram for ShipsStatsPlot:
BaseStatsPlotImpl StatsPlot

Public Member Functions

 ShipsStatsPlot (QCustomPlot *plot, QCPItemLine *timeLine)
 
void setTimelineLimits (double min, double max)
 
void update (DisplaceModel *model, displace::plot::ShipsStat stat, QCustomPlot *plot)
 
void createPopup (GraphInteractionController::PopupMenuLocation location, QMenu *menu)
 
- Public Member Functions inherited from BaseStatsPlotImpl
 BaseStatsPlotImpl ()
 
- Public Member Functions inherited from StatsPlot
virtual ~StatsPlot () noexcept=default
 
virtual void update ()
 
void invalidate ()
 
void setVisible (bool visible)
 
bool isVisible () const
 

Protected Member Functions

void update (QCustomPlot *plot) override
 
- Protected Member Functions inherited from BaseStatsPlotImpl
void checkUpdate (QCustomPlot *plot, HasChangedFunction hasChangedFunction, UpdateChangedStateFunction updateChangedStateFunction)
 
void doUpdate () override
 

Additional Inherited Members

- Protected Types inherited from BaseStatsPlotImpl
using HasChangedFunction = std::function< bool()>
 
using UpdateChangedStateFunction = std::function< void()>
 

Constructor & Destructor Documentation

◆ ShipsStatsPlot()

ShipsStatsPlot::ShipsStatsPlot ( QCustomPlot plot,
QCPItemLine timeLine 
)

Member Function Documentation

◆ createPopup()

void ShipsStatsPlot::createPopup ( GraphInteractionController::PopupMenuLocation  location,
QMenu *  menu 
)

◆ setTimelineLimits()

void ShipsStatsPlot::setTimelineLimits ( double  min,
double  max 
)
inline

◆ update() [1/2]

void ShipsStatsPlot::update ( DisplaceModel model,
displace::plot::ShipsStat  stat,
QCustomPlot plot 
)

◆ update() [2/2]

void ShipsStatsPlot::update ( QCustomPlot plot)
overrideprotectedvirtual

Implements BaseStatsPlotImpl.


The documentation for this class was generated from the following files: