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

#include <nodemapobject.h>

Inheritance diagram for NodeMapObject:
MapObject

Public Types

enum  Role {
  GraphNodeRole, GraphNodeWithPopStatsRole, GraphNodeWithBiomass, GraphNodeWithCumFTimeRole,
  GraphNodeWithCumSweptAreaRole, GraphNodeWithCumSubsurfaceSweptAreaRole, GraphNodeWithCumCatchesRole, GraphNodeWithCumCatchesWithThresholdRole,
  GraphNodeWithCumDiscardsRole, GraphNodeWithCumDiscardsRatioRole, GraphNodeWithNbChokedRole, GraphNodeWithPopImpact,
  GraphNodeWithPopCumcatches, GraphNodeWithBenthosBiomass, GraphNodeWithBenthosNumber, GraphNodeWithBenthosMeanweight,
  GraphNodeWithTariffs0, GraphNodeWithTariffs1, GraphNodeWithTariffs2, GraphNodeWithSalinity,
  GraphNodeWithSST, GraphNodeWithWind, GraphNodeWithNitrogen, GraphNodeWithPhosphorus,
  GraphNodeWithOxygen, GraphNodeWithDissolvedCarbon, GraphNodeWithBathymetry, GraphNodeWithShippingdensity,
  GraphNodeWithSiltfraction
}
 

Public Member Functions

 NodeMapObject (MapObjectsController *controller, int indx, Role role, std::shared_ptr< NodeData > node)
 
std::shared_ptr< qmapcontrol::Geometry > getGeometryEntity () const
 
virtual bool showProperties ()
 
virtual void updateProperties ()
 
bool selected () const
 
std::shared_ptr< NodeDatanode () const
 
Role getRole () const
 
- Public Member Functions inherited from MapObject
 MapObject ()
 
virtual ~MapObject ()
 
virtual void toggleSelection () final
 
virtual void setSelection (bool selection)
 

Protected Member Functions

QString updateStatText (QString prefix)
 
QList< int > getInterestingList () const
 

Member Enumeration Documentation

◆ Role

Enumerator
GraphNodeRole 
GraphNodeWithPopStatsRole 
GraphNodeWithBiomass 
GraphNodeWithCumFTimeRole 
GraphNodeWithCumSweptAreaRole 
GraphNodeWithCumSubsurfaceSweptAreaRole 
GraphNodeWithCumCatchesRole 
GraphNodeWithCumCatchesWithThresholdRole 
GraphNodeWithCumDiscardsRole 
GraphNodeWithCumDiscardsRatioRole 
GraphNodeWithNbChokedRole 
GraphNodeWithPopImpact 
GraphNodeWithPopCumcatches 
GraphNodeWithBenthosBiomass 
GraphNodeWithBenthosNumber 
GraphNodeWithBenthosMeanweight 
GraphNodeWithTariffs0 
GraphNodeWithTariffs1 
GraphNodeWithTariffs2 
GraphNodeWithSalinity 
GraphNodeWithSST 
GraphNodeWithWind 
GraphNodeWithNitrogen 
GraphNodeWithPhosphorus 
GraphNodeWithOxygen 
GraphNodeWithDissolvedCarbon 
GraphNodeWithBathymetry 
GraphNodeWithShippingdensity 
GraphNodeWithSiltfraction 

Constructor & Destructor Documentation

◆ NodeMapObject()

NodeMapObject::NodeMapObject ( MapObjectsController controller,
int  indx,
Role  role,
std::shared_ptr< NodeData node 
)

Member Function Documentation

◆ getGeometryEntity()

std::shared_ptr<qmapcontrol::Geometry> NodeMapObject::getGeometryEntity ( ) const
inlinevirtual

Implements MapObject.

◆ getInterestingList()

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

◆ getRole()

Role NodeMapObject::getRole ( ) const
inline

◆ node()

std::shared_ptr<NodeData> NodeMapObject::node ( ) const
inline

◆ selected()

bool NodeMapObject::selected ( ) const
inline

◆ showProperties()

bool NodeMapObject::showProperties ( )
virtual

Reimplemented from MapObject.

◆ updateProperties()

void NodeMapObject::updateProperties ( )
virtual

Reimplemented from MapObject.

◆ updateStatText()

QString NodeMapObject::updateStatText ( QString  prefix)
protected

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