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

#include <nodegraphics.h>

Inheritance diagram for NodeWithPopStatsGraphics:
NodeGraphics

Public Types

enum  Type {
  Population, Biomass, Impact, CumcatchesPerPop,
  BenthosBiomass, BenthosNumber, BenthosMeanweight, LastType
}
 

Public Member Functions

 NodeWithPopStatsGraphics (Type type, NodeData *node, MapObjectsController *controller, int indx)
 
- Public Member Functions inherited from NodeGraphics
 NodeGraphics (NodeData *node, MapObjectsController *controller, int indx)
 

Protected Member Functions

virtual void drawShape (QPainter &painter, const qmapcontrol::RectWorldPx &rect)
 
Type getType () const
 
boost::optional< double > getValueForPop (int pop) const
 
QList< int > getInterestingList () const
 
- Protected Member Functions inherited from NodeGraphics
std::shared_ptr< types::EnvironmentDatagetEnvtData ()
 

Additional Inherited Members

- Static Public Member Functions inherited from NodeGraphics
static int piew ()
 
static int pieh ()
 
static void setPieSize (int w, int h)
 
- Protected Attributes inherited from NodeGraphics
QColor c
 
NodeDatamNode
 
MapObjectsControllermController
 
int mModelIndex
 

Member Enumeration Documentation

◆ Type

Enumerator
Population 
Biomass 
Impact 
CumcatchesPerPop 
BenthosBiomass 
BenthosNumber 
BenthosMeanweight 
LastType 

Constructor & Destructor Documentation

◆ NodeWithPopStatsGraphics()

NodeWithPopStatsGraphics::NodeWithPopStatsGraphics ( Type  type,
NodeData node,
MapObjectsController controller,
int  indx 
)
inline

Member Function Documentation

◆ drawShape()

void NodeWithPopStatsGraphics::drawShape ( QPainter &  painter,
const qmapcontrol::RectWorldPx &  rect 
)
protectedvirtual

Reimplemented from NodeGraphics.

◆ getInterestingList()

QList< int > NodeWithPopStatsGraphics::getInterestingList ( ) const
protected

◆ getType()

Type NodeWithPopStatsGraphics::getType ( ) const
inlineprotected

◆ getValueForPop()

boost::optional< double > NodeWithPopStatsGraphics::getValueForPop ( int  pop) const
protected

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