Documentation of MARTY
A Modern ARtificial Theoretical phYsicist
Public Types | Public Slots | Public Member Functions | Data Fields | Protected Member Functions | Private Attributes | Friends
Edge Class Reference
Inheritance diagram for Edge:
[legend]

Public Types

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

Public Slots

void changeColor ()
 
void changeName ()
 
void setName (QString const &t_name)
 
void setLineWidth (qint32 t_lineWidth)
 
void setFlipped (bool t_flipped)
 
void release ()
 
void nodeMoved ()
 
void changeEdgeType (QAction *action)
 

Public Member Functions

 Edge (Diagram *DiagramWidget)
 
 Edge (Diagram *DiagramWidget, Node *t_first, Node *t_second)
 
QString getName () const
 
qint32 getLineWidth () const
 
const NodegetFirst () const
 
const NodegetSecond () const
 
NodegetFirst ()
 
NodegetSecond ()
 
bool isConnectedTo (Node const *node) const
 
bool isFlipped () const
 
bool hasFocusInGraph () const
 
void focusInGraph ()
 
void unFocusInGraph ()
 
void wheelEventCustom (int delta)
 
bool getSign () const
 
qint32 getParticleType ()
 
QColor getColor () const
 
QColor getPaintColor () const
 
qreal length () const
 
double getCurve () const
 
void setCurve (double t_curve)
 
qreal getCurvature () const
 
void setCurvature (double curvature)
 
void setDiagramWidget (DiagramWidget *t_widget)
 
void setSides (Node *t_first, Node *t_second)
 
void flipLabel ()
 
void setColor (QColor t_color)
 
void setParticleType (qint32 t_type)
 
int type () const override
 
QRectF boundingRect () const override
 
QPainterPath shape () const override
 
void paint (QPainter *painter, QStyleOptionGraphicsItem const *option, QWidget *widget) override
 
void paintLine (QPainter *painter) const
 
void paintDashedLine (QPainter *painter) const
 
void paintDotLine (QPainter *painter) const
 
void paintSinusoid (QPainter *painter) const
 
void paintCycloid (QPainter *painter) const
 
void paintArrow (QPainter *painter) const
 

Data Fields

Proxylabel = nullptr
 

Protected Member Functions

void mousePressEvent (QGraphicsSceneMouseEvent *event) override
 
void mouseDoubleClickEvent (QGraphicsSceneMouseEvent *event) override
 
void mouseReleaseEvent (QGraphicsSceneMouseEvent *event) override
 
void keyPressEvent (QKeyEvent *event) override
 

Private Attributes

Diagramgraph
 
DiagramWidgetwidget
 
Nodefirst
 
Nodesecond
 
bool flippedLabel
 
QColor color
 
int signCurvature = 0
 
qreal curvature
 
qint32 lineWidth
 
qint32 amplitude
 
qint32 particleType
 
bool selected
 

Friends

class DiagramWidget
 

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