YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
Arrow Class Reference

#include </home/runner/work/yarp-documentation/yarp-documentation/yarp/src/guis/yarpmanager/src-builder/arrow.h>

+ Inheritance diagram for Arrow:

Public Member Functions

 Arrow (BuilderItem *startItem, BuilderItem *endItem, int id, Manager *safeManager, bool nestedInApp=false, bool editingMode=false, BuilderItem *parent=0)
 
 ~Arrow ()
 
int type () const override
 
QPointF connectionPoint () override
 
void setConnected (bool)
 
int getId ()
 
QString getFrom ()
 
QString getTo ()
 
void setConnection (const Connection &conn)
 
void setConnectionSelected (bool selected)
 
void updateModel ()
 
void updateCarrier (QString carrier)
 
GraphicModelgetModel ()
 
QRectF boundingRect () const override
 
QPainterPath shape () const override
 
void setColor (const QColor &color)
 
BuilderItemstartItem () const
 
BuilderItemendItem () const
 
void addHandle (QPointF clickPos)
 
void updatePosition ()
 
QList< LineHandle * > handles ()
 
void removeHandle (LineHandle *)
 
int getHandleIndex (LineHandle *handle)
 
LineHandlegetLineHandle (int index)
 
void updateConnectionFrom (QString from)
 
void updateConnectionTo (QString to)
 
void updateGraphicModel ()
 
- Public Member Functions inherited from BuilderItem
 BuilderItem (QGraphicsObject *parent=0)
 
QString getItemName ()
 
QPointF getStartingPoint ()
 
ItemSignalHandlersignalHandler ()
 
void removeArrow (Arrow *arrow)
 
void removeArrows ()
 
void addArrow (Arrow *arrow)
 
QList< Arrow * > * getArrows ()
 
bool arrowAlreadyPresent (BuilderItem *endItem)
 
void updateConnections ()
 
bool allowInputConnections ()
 
bool allowOutputConnections ()
 
void snapToGrid (bool snap)
 
QPointF computeTopLeftGridPoint (const QPointF &pointP)
 
QList< QAction * > getActions ()
 
void setActions (QList< QAction * >)
 
bool isNestedInApp ()
 

Protected Member Functions

void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) override
 
void mouseDoubleClickEvent (QGraphicsSceneMouseEvent *event) override
 
void mousePressEvent (QGraphicsSceneMouseEvent *e) override
 
void mouseMoveEvent (QGraphicsSceneMouseEvent *e) override
 
void mouseReleaseEvent (QGraphicsSceneMouseEvent *e) override
 
QVariant itemChange (GraphicsItemChange change, const QVariant &value) override
 

Friends

class LineHandle
 
class Label
 

Additional Inherited Members

- Protected Attributes inherited from BuilderItem
QFont font
 
ItemType itemType
 
QString itemName
 
QRectF mainRect
 
QRectF boundingR
 
QPointF offset
 
bool pressed
 
bool moved
 
bool creatingNewConnection
 
bool allowInputs
 
bool allowOutputs
 
bool snap
 
bool nestedInApp
 
ItemSignalHandlersigHandler
 
QList< Arrow * > arrows
 
QList< QAction * > actions
 
QPointF startingPoint
 

Detailed Description

Definition at line 105 of file arrow.h.

Constructor & Destructor Documentation

◆ Arrow()

Arrow::Arrow ( BuilderItem startItem,
BuilderItem endItem,
int  id,
Manager safeManager,
bool  nestedInApp = false,
bool  editingMode = false,
BuilderItem parent = 0 
)

Definition at line 69 of file arrow.cpp.

◆ ~Arrow()

Arrow::~Arrow ( )

Definition at line 93 of file arrow.cpp.

Member Function Documentation

◆ addHandle()

void Arrow::addHandle ( QPointF  clickPos)

Definition at line 459 of file arrow.cpp.

◆ boundingRect()

QRectF Arrow::boundingRect ( ) const
overridevirtual

Implements BuilderItem.

Definition at line 299 of file arrow.cpp.

◆ connectionPoint()

QPointF Arrow::connectionPoint ( )
overridevirtual

Implements BuilderItem.

Definition at line 271 of file arrow.cpp.

◆ endItem()

BuilderItem * Arrow::endItem ( ) const
inline

Definition at line 133 of file arrow.h.

◆ getFrom()

QString Arrow::getFrom ( )

Definition at line 278 of file arrow.cpp.

◆ getHandleIndex()

int Arrow::getHandleIndex ( LineHandle handle)

Definition at line 509 of file arrow.cpp.

◆ getId()

int Arrow::getId ( )

Definition at line 294 of file arrow.cpp.

◆ getLineHandle()

LineHandle * Arrow::getLineHandle ( int  index)

Definition at line 521 of file arrow.cpp.

◆ getModel()

GraphicModel * Arrow::getModel ( )

Definition at line 107 of file arrow.cpp.

◆ getTo()

QString Arrow::getTo ( )

Definition at line 283 of file arrow.cpp.

◆ handles()

QList< LineHandle * > Arrow::handles ( )

Definition at line 487 of file arrow.cpp.

◆ itemChange()

QVariant Arrow::itemChange ( GraphicsItemChange  change,
const QVariant &  value 
)
overrideprotected

Definition at line 492 of file arrow.cpp.

◆ mouseDoubleClickEvent()

void Arrow::mouseDoubleClickEvent ( QGraphicsSceneMouseEvent *  event)
overrideprotected

Definition at line 447 of file arrow.cpp.

◆ mouseMoveEvent()

void Arrow::mouseMoveEvent ( QGraphicsSceneMouseEvent *  e)
overrideprotected

Definition at line 435 of file arrow.cpp.

◆ mousePressEvent()

void Arrow::mousePressEvent ( QGraphicsSceneMouseEvent *  e)
overrideprotected

Definition at line 415 of file arrow.cpp.

◆ mouseReleaseEvent()

void Arrow::mouseReleaseEvent ( QGraphicsSceneMouseEvent *  e)
overrideprotected

Definition at line 426 of file arrow.cpp.

◆ paint()

void Arrow::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget = 0 
)
overrideprotected

Definition at line 339 of file arrow.cpp.

◆ removeHandle()

void Arrow::removeHandle ( LineHandle handle)

Definition at line 482 of file arrow.cpp.

◆ setColor()

void Arrow::setColor ( const QColor &  color)
inline

Definition at line 131 of file arrow.h.

◆ setConnected()

void Arrow::setConnected ( bool  connected)

Definition at line 288 of file arrow.cpp.

◆ setConnection()

void Arrow::setConnection ( const Connection conn)

Definition at line 112 of file arrow.cpp.

◆ setConnectionSelected()

void Arrow::setConnectionSelected ( bool  selected)

Definition at line 265 of file arrow.cpp.

◆ shape()

QPainterPath Arrow::shape ( ) const
override

Definition at line 310 of file arrow.cpp.

◆ startItem()

BuilderItem * Arrow::startItem ( ) const
inline

Definition at line 132 of file arrow.h.

◆ type()

int Arrow::type ( ) const
inlineoverridevirtual

Implements BuilderItem.

Definition at line 116 of file arrow.h.

◆ updateCarrier()

void Arrow::updateCarrier ( QString  carrier)

Definition at line 156 of file arrow.cpp.

◆ updateConnectionFrom()

void Arrow::updateConnectionFrom ( QString  from)

Definition at line 171 of file arrow.cpp.

◆ updateConnectionTo()

void Arrow::updateConnectionTo ( QString  to)

Definition at line 191 of file arrow.cpp.

◆ updateGraphicModel()

void Arrow::updateGraphicModel ( )

Definition at line 210 of file arrow.cpp.

◆ updateModel()

void Arrow::updateModel ( )

Definition at line 252 of file arrow.cpp.

◆ updatePosition()

void Arrow::updatePosition ( )

Definition at line 329 of file arrow.cpp.

Friends And Related Symbol Documentation

◆ Label

friend class Label
friend

Definition at line 110 of file arrow.h.

◆ LineHandle

friend class LineHandle
friend

Definition at line 109 of file arrow.h.


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