Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::LinkGraphicsItem Class Referenceabstract
+ Inheritance diagram for inviwo::LinkGraphicsItem:

Public Types

enum  { Type = static_cast<int>(UserType) + static_cast<int>(LinkGraphicsType) }
 

Public Member Functions

 LinkGraphicsItem (ivec3 color=ivec3(0xbd, 0xcd, 0xd5))
 
virtual QPointF getStartPoint () const =0
 
virtual QPointF getEndPoint () const =0
 
virtual QPointF getStartDir () const =0
 
virtual QPointF getEndDir () const =0
 
virtual void updateShape ()
 
void paint (QPainter *p, const QStyleOptionGraphicsItem *options, QWidget *widget)
 
virtual QRectF boundingRect () const
 
virtual QPainterPath shape () const
 
int type () const
 
- Public Member Functions inherited from inviwo::EditorGraphicsItem
 EditorGraphicsItem (QGraphicsItem *parent)
 
 EditorGraphicsItem (const EditorGraphicsItem &)=delete
 
 EditorGraphicsItem (EditorGraphicsItem &&)=delete
 
EditorGraphicsItemoperator= (const EditorGraphicsItem &)=delete
 
EditorGraphicsItemoperator= (EditorGraphicsItem &&)=delete
 
QPoint mapPosToSceen (QPointF pos) const
 
virtual void showToolTip (QGraphicsSceneHelpEvent *event)
 
void showPortInfo (QGraphicsSceneHelpEvent *e, Port *port) const
 

Protected Member Functions

virtual QPainterPath obtainCurvePath () const
 
- Protected Member Functions inherited from inviwo::EditorGraphicsItem
void showToolTipHelper (QGraphicsSceneHelpEvent *event, QString string) const
 
NetworkEditorgetNetworkEditor () const
 

Protected Attributes

QColor color_
 
QPainterPath path_
 
QRectF rect_
 

Member Function Documentation

◆ paint()

void inviwo::LinkGraphicsItem::paint ( QPainter * p,
const QStyleOptionGraphicsItem * options,
QWidget * widget )

Overloaded paint method from QGraphicsItem. Here the actual representation is drawn.


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