Engauge Digitizer 2
Loading...
Searching...
No Matches
Signals | Public Member Functions | List of all members
SegmentLine Class Reference

This class is a special case of the standard QGraphicsLineItem for segments. More...

#include <SegmentLine.h>

Inheritance diagram for SegmentLine:

Signals

void signalHover (bool)
 Pass hover enter/leave events to Segment that owns this.
 

Public Member Functions

 SegmentLine (QGraphicsScene &scene, const DocumentModelSegments &modelSegments, Segment *segment)
 Single constructor.
 
virtual void hoverEnterEvent (QGraphicsSceneHoverEvent *event)
 Highlight this and all other SegmentLines belonging to the same Segment upon hover enter.
 
virtual void hoverLeaveEvent (QGraphicsSceneHoverEvent *event)
 Unset highlighting triggered by hover enter.
 
virtual void mousePressEvent (QGraphicsSceneMouseEvent *event)
 Create points along this curve.
 
Segmentsegment () const
 Segment that owns this line.
 
void setHover (bool hover)
 Apply/remove highlighting triggered by hover enter/leave.
 
void updateModelSegment (const DocumentModelSegments &modelSegments)
 Update this segment line with new settings.
 

Detailed Description

This class is a special case of the standard QGraphicsLineItem for segments.

Definition at line 17 of file SegmentLine.h.

Constructor & Destructor Documentation

◆ SegmentLine()

SegmentLine::SegmentLine ( QGraphicsScene &  scene,
const DocumentModelSegments modelSegments,
Segment segment 
)

Single constructor.

Definition at line 18 of file SegmentLine.cpp.

◆ ~SegmentLine()

SegmentLine::~SegmentLine ( )

Definition at line 41 of file SegmentLine.cpp.

Member Function Documentation

◆ hoverEnterEvent()

void SegmentLine::hoverEnterEvent ( QGraphicsSceneHoverEvent *  event)
virtual

Highlight this and all other SegmentLines belonging to the same Segment upon hover enter.

Definition at line 47 of file SegmentLine.cpp.

◆ hoverLeaveEvent()

void SegmentLine::hoverLeaveEvent ( QGraphicsSceneHoverEvent *  event)
virtual

Unset highlighting triggered by hover enter.

Definition at line 54 of file SegmentLine.cpp.

◆ mousePressEvent()

void SegmentLine::mousePressEvent ( QGraphicsSceneMouseEvent *  event)
virtual

Create points along this curve.

Definition at line 61 of file SegmentLine.cpp.

◆ segment()

Segment * SegmentLine::segment ( ) const

Segment that owns this line.

Definition at line 68 of file SegmentLine.cpp.

◆ setHover()

void SegmentLine::setHover ( bool  hover)

Apply/remove highlighting triggered by hover enter/leave.

Definition at line 73 of file SegmentLine.cpp.

◆ updateModelSegment()

void SegmentLine::updateModelSegment ( const DocumentModelSegments modelSegments)

Update this segment line with new settings.

Definition at line 89 of file SegmentLine.cpp.


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