DISPLACE  1.0
A spatial model of fisheries to help sustainable fishing and maritime spatial planning
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
BaseStatsPlotImpl Class Referenceabstract

#include <BaseStatsPlotImpl.h>

Inheritance diagram for BaseStatsPlotImpl:
StatsPlot FishfarmsStatsPlot ShipsStatsPlot WindfarmsStatsPlot

Public Member Functions

 BaseStatsPlotImpl ()
 
- Public Member Functions inherited from StatsPlot
virtual ~StatsPlot () noexcept=default
 
virtual void update ()
 
void invalidate ()
 
void setVisible (bool visible)
 
bool isVisible () const
 

Protected Types

using HasChangedFunction = std::function< bool()>
 
using UpdateChangedStateFunction = std::function< void()>
 

Protected Member Functions

void checkUpdate (QCustomPlot *plot, HasChangedFunction hasChangedFunction, UpdateChangedStateFunction updateChangedStateFunction)
 
void doUpdate () override
 
virtual void update (QCustomPlot *)=0
 

Member Typedef Documentation

◆ HasChangedFunction

using BaseStatsPlotImpl::HasChangedFunction = std::function<bool()>
protected

◆ UpdateChangedStateFunction

using BaseStatsPlotImpl::UpdateChangedStateFunction = std::function<void()>
protected

Constructor & Destructor Documentation

◆ BaseStatsPlotImpl()

BaseStatsPlotImpl::BaseStatsPlotImpl ( )
inline

Member Function Documentation

◆ checkUpdate()

void BaseStatsPlotImpl::checkUpdate ( QCustomPlot plot,
BaseStatsPlotImpl::HasChangedFunction  hasChangedFunction,
BaseStatsPlotImpl::UpdateChangedStateFunction  updateChangedStateFunction 
)
protected

◆ doUpdate()

void BaseStatsPlotImpl::doUpdate ( )
overrideprotectedvirtual

Implements StatsPlot.

◆ update()

virtual void BaseStatsPlotImpl::update ( QCustomPlot )
protectedpure virtual

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