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
GraphNodeItem Class Reference

#include <graphnodeitem.h>

Inheritance diagram for GraphNodeItem:

Public Member Functions

 GraphNodeItem (std::shared_ptr< dtree::Node > node, DtGraphicsScene *scene, QGraphicsItem *parent=0)
 
virtual ~GraphNodeItem ()
 
std::shared_ptr< dtree::NodegetNode () const
 
int getChildrenCount () const
 
GraphNodeItemgetChild (int idx)
 
int getChildrenId () const
 
GraphNodeItemgetParent () const
 
void setVariable (dtree::Variable var)
 
void connectAsParent (GraphNodeItem *item, int idx)
 
void connectAsChild (GraphNodeItem *item, int idx)
 
void unlinkParent ()
 
void unlinkChild (int idx)
 
void moveArrow (QPointF pt)
 
bool requiresChildrenHighlight (int childid) const
 
void childHoverEntered (int id)
 
void childHoverExited ()
 
void update ()
 

Protected Member Functions

void setChild (int idx, GraphNodeItem *child)
 
void setParent (GraphNodeItem *child)
 
void createArrow ()
 
QPointF getChildrenArrowLocation (int idx) const
 
QVariant itemChange (GraphicsItemChange change, const QVariant &value)
 

Constructor & Destructor Documentation

◆ GraphNodeItem()

GraphNodeItem::GraphNodeItem ( std::shared_ptr< dtree::Node node,
DtGraphicsScene scene,
QGraphicsItem *  parent = 0 
)
explicit

◆ ~GraphNodeItem()

GraphNodeItem::~GraphNodeItem ( )
virtual

Member Function Documentation

◆ childHoverEntered()

void GraphNodeItem::childHoverEntered ( int  id)

◆ childHoverExited()

void GraphNodeItem::childHoverExited ( )

◆ connectAsChild()

void GraphNodeItem::connectAsChild ( GraphNodeItem item,
int  idx 
)

◆ connectAsParent()

void GraphNodeItem::connectAsParent ( GraphNodeItem item,
int  idx 
)

◆ createArrow()

void GraphNodeItem::createArrow ( )
protected

◆ getChild()

GraphNodeItem * GraphNodeItem::getChild ( int  idx)

◆ getChildrenArrowLocation()

QPointF GraphNodeItem::getChildrenArrowLocation ( int  idx) const
protected

◆ getChildrenCount()

int GraphNodeItem::getChildrenCount ( ) const

◆ getChildrenId()

int GraphNodeItem::getChildrenId ( ) const
inline

◆ getNode()

std::shared_ptr<dtree::Node> GraphNodeItem::getNode ( ) const
inline

◆ getParent()

GraphNodeItem* GraphNodeItem::getParent ( ) const
inline

◆ itemChange()

QVariant GraphNodeItem::itemChange ( GraphicsItemChange  change,
const QVariant &  value 
)
protected

◆ moveArrow()

void GraphNodeItem::moveArrow ( QPointF  pt)

◆ requiresChildrenHighlight()

bool GraphNodeItem::requiresChildrenHighlight ( int  childid) const

◆ setChild()

void GraphNodeItem::setChild ( int  idx,
GraphNodeItem child 
)
protected

◆ setParent()

void GraphNodeItem::setParent ( GraphNodeItem child)
protected

◆ setVariable()

void GraphNodeItem::setVariable ( dtree::Variable  var)

◆ unlinkChild()

void GraphNodeItem::unlinkChild ( int  idx)

◆ unlinkParent()

void GraphNodeItem::unlinkParent ( )

◆ update()

void GraphNodeItem::update ( )

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