SemanticGraphEdgeItem Class Reference

#include <VisionX/gui-plugins/SemanticRelationViewer/SemanticGraphEdgeItem.h>

+ Inheritance diagram for SemanticGraphEdgeItem:

Signals

void onLeftClick (SemanticGraphEdgeItem *selected)
 

Public Member Functions

void mousePressEvent (QGraphicsSceneMouseEvent *event) override
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override
 
QPainterPath shape () const override
 

Public Attributes

QColor color = Qt::GlobalColor::black
 
QString label
 
QPointF labelPosition
 
float openingAngle = M_PI / 8.0f
 
bool selected = false
 
float size = 10.0f
 
int sourceDescriptor = 0
 
int targetDescriptor = 0
 

Detailed Description

Definition at line 11 of file SemanticGraphEdgeItem.h.

Member Function Documentation

◆ mousePressEvent()

void mousePressEvent ( QGraphicsSceneMouseEvent *  event)
override

Definition at line 56 of file SemanticGraphEdgeItem.cpp.

+ Here is the call graph for this function:

◆ onLeftClick

void onLeftClick ( SemanticGraphEdgeItem selected)
signal
+ Here is the caller graph for this function:

◆ paint()

void paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget 
)
override

Definition at line 13 of file SemanticGraphEdgeItem.cpp.

+ Here is the call graph for this function:

◆ shape()

QPainterPath shape ( ) const
override

Definition at line 89 of file SemanticGraphEdgeItem.cpp.

Member Data Documentation

◆ color

QColor color = Qt::GlobalColor::black

Definition at line 32 of file SemanticGraphEdgeItem.h.

◆ label

QString label

Definition at line 34 of file SemanticGraphEdgeItem.h.

◆ labelPosition

QPointF labelPosition

Definition at line 35 of file SemanticGraphEdgeItem.h.

◆ openingAngle

float openingAngle = M_PI / 8.0f

Definition at line 27 of file SemanticGraphEdgeItem.h.

◆ selected

bool selected = false

Definition at line 30 of file SemanticGraphEdgeItem.h.

◆ size

float size = 10.0f

Definition at line 28 of file SemanticGraphEdgeItem.h.

◆ sourceDescriptor

int sourceDescriptor = 0

Definition at line 24 of file SemanticGraphEdgeItem.h.

◆ targetDescriptor

int targetDescriptor = 0

Definition at line 25 of file SemanticGraphEdgeItem.h.


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