TechDrawGui::QGEPath Class Reference

#include <QGEPath.h>

Public Types

enum  { Type = QGraphicsItem::UserType + 301 }
 
- Public Types inherited from TechDrawGui::QGIPrimPath
enum  { Type = QGraphicsItem::UserType + 170 }
 

Public Slots

void onDoubleClick (QPointF pos, int markerIndex)
 
void onDragFinished (QPointF pos, int index)
 
void onDragging (QPointF pos, int index)
 
void onEndEdit (void)
 

Signals

void hover (bool state)
 
void pointsUpdated (QPointF attach, std::vector< QPointF > deltas)
 
void selected (bool state)
 

Public Member Functions

virtual QRectF boundingRect () const override
 
void clearMarkers ()
 
void drawGhost (void)
 
void dumpGhostPoints (const char *text)
 
void dumpMarkerPos (const char *text)
 
std::vector< QPointF > getDeltasFromLeader (void)
 
double getScale (void)
 
void inEdit (bool b)
 
bool inEdit (void)
 
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr) override
 
 QGEPath (QGILeaderLine *leader)
 
void setEndAdjust (double adjust)
 
void setPoints (std::vector< QPointF > pts)
 
void setScale (double s)
 
void setStartAdjust (double adjust)
 
virtual QPainterPath shape () const override
 
void showMarkers (std::vector< QPointF > points)
 
void startPathEdit (std::vector< QPointF > pathPoints)
 
int type () const override
 
void updateParent ()
 
virtual ~QGEPath ()
 
- Public Member Functions inherited from TechDrawGui::QGIPrimPath
QColor getFillColor (void)
 
Qt::BrushStyle getFillStyle ()
 
Qt::PenStyle getStyle ()
 
virtual double getWidth ()
 
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr) override
 
 QGIPrimPath ()
 
void resetFill ()
 
virtual void setCapStyle (Qt::PenCapStyle c)
 
void setFill (QBrush b)
 
void setFill (QColor c, Qt::BrushStyle s)
 
void setFillColor (QColor c)
 
void setFillOverride (bool b)
 
void setFillStyle (Qt::BrushStyle f)
 
void setHighlighted (bool state)
 
virtual void setNormalColor (QColor c)
 
virtual void setPrettyNormal ()
 
virtual void setPrettyPre ()
 
virtual void setPrettySel ()
 
void setStyle (int s)
 
void setStyle (Qt::PenStyle s)
 
virtual void setWidth (double w)
 
virtual QPainterPath shape () const override
 
int type () const override
 
 ~QGIPrimPath ()
 

Protected Member Functions

double getEdgeFuzz (void) const
 
virtual void hoverEnterEvent (QGraphicsSceneHoverEvent *event) override
 
virtual void hoverLeaveEvent (QGraphicsSceneHoverEvent *event) override
 
virtual QVariant itemChange (GraphicsItemChange change, const QVariant &value) override
 
- Protected Member Functions inherited from TechDrawGui::QGIPrimPath
virtual QColor getNormalColor (void)
 
Base::Reference< ParameterGrpgetParmGroup (void)
 
virtual QColor getPreColor (void)
 
virtual QColor getSelectColor (void)
 
virtual void hoverEnterEvent (QGraphicsSceneHoverEvent *event) override
 
virtual void hoverLeaveEvent (QGraphicsSceneHoverEvent *event) override
 
virtual QVariant itemChange (GraphicsItemChange change, const QVariant &value) override
 
virtual void mousePressEvent (QGraphicsSceneMouseEvent *event) override
 
virtual Qt::PenCapStyle prefCapStyle (void)
 

Protected Attributes

double m_endAdj
 
QGIPrimPathm_ghost
 
std::vector< QPointF > m_ghostPoints
 
bool m_inEdit
 
std::vector< QGMarker * > m_markers
 
QGILeaderLinem_parentLeader
 
double m_scale
 
double m_startAdj
 
- Protected Attributes inherited from TechDrawGui::QGIPrimPath
bool isHighlighted
 
QBrush m_brush
 
Qt::PenCapStyle m_capStyle
 
QColor m_colCurrent
 
QColor m_colDefFill
 
QColor m_colNormal
 
QColor m_colNormalFill
 
bool m_colOverride
 
QColor m_fillColorCurrent
 
bool m_fillOverride
 
Qt::BrushStyle m_fillStyleCurrent
 
QPen m_pen
 
Qt::PenStyle m_styleCurrent
 
Qt::BrushStyle m_styleDef
 
Qt::BrushStyle m_styleNormal
 
Qt::BrushStyle m_styleSelect
 
double m_width
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
Type 

Constructor & Destructor Documentation

◆ QGEPath()

◆ ~QGEPath()

virtual TechDrawGui::QGEPath::~QGEPath ( )
virtual

Member Function Documentation

◆ boundingRect()

QRectF QGEPath::boundingRect ( ) const
overridevirtual

References shape().

◆ clearMarkers()

void QGEPath::clearMarkers ( )

◆ drawGhost()

void QGEPath::drawGhost ( void  )

References m_ghost, and m_ghostPoints.

Referenced by onDragFinished().

◆ dumpGhostPoints()

void QGEPath::dumpGhostPoints ( const char *  text)

◆ dumpMarkerPos()

void QGEPath::dumpMarkerPos ( const char *  text)

◆ getDeltasFromLeader()

◆ getEdgeFuzz()

double QGEPath::getEdgeFuzz ( void  ) const
protected

◆ getScale()

double TechDrawGui::QGEPath::getScale ( void  )

◆ hover

void TechDrawGui::QGEPath::hover ( bool  state)
signal

Referenced by hoverEnterEvent(), and hoverLeaveEvent().

◆ hoverEnterEvent()

void QGEPath::hoverEnterEvent ( QGraphicsSceneHoverEvent *  event)
overrideprotectedvirtual

◆ hoverLeaveEvent()

void QGEPath::hoverLeaveEvent ( QGraphicsSceneHoverEvent *  event)
overrideprotectedvirtual

◆ inEdit() [1/2]

void TechDrawGui::QGEPath::inEdit ( bool  b)

◆ inEdit() [2/2]

bool TechDrawGui::QGEPath::inEdit ( void  )

◆ itemChange()

QVariant QGEPath::itemChange ( GraphicsItemChange  change,
const QVariant &  value 
)
overrideprotectedvirtual

◆ onDoubleClick

void QGEPath::onDoubleClick ( QPointF  pos,
int  markerIndex 
)
slot

References onEndEdit().

Referenced by showMarkers().

◆ onDragFinished

void QGEPath::onDragFinished ( QPointF  pos,
int  index 
)
slot

References drawGhost(), and m_ghostPoints.

Referenced by showMarkers().

◆ onDragging

void QGEPath::onDragging ( QPointF  pos,
int  index 
)
slot

Referenced by showMarkers().

◆ onEndEdit

void QGEPath::onEndEdit ( void  )
slot

◆ paint()

void QGEPath::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget widget = nullptr 
)
overridevirtual

◆ pointsUpdated

void TechDrawGui::QGEPath::pointsUpdated ( QPointF  attach,
std::vector< QPointF >  deltas 
)
signal

Referenced by updateParent().

◆ selected

◆ setEndAdjust()

void QGEPath::setEndAdjust ( double  adjust)

◆ setPoints()

void TechDrawGui::QGEPath::setPoints ( std::vector< QPointF >  pts)

◆ setScale()

void TechDrawGui::QGEPath::setScale ( double  s)

◆ setStartAdjust()

void QGEPath::setStartAdjust ( double  adjust)

◆ shape()

◆ showMarkers()

◆ startPathEdit()

void QGEPath::startPathEdit ( std::vector< QPointF >  pathPoints)

◆ type()

int TechDrawGui::QGEPath::type ( ) const
override

◆ updateParent()

void QGEPath::updateParent ( void  )

References inEdit(), m_ghostPoints, and pointsUpdated().

Referenced by onEndEdit().

Member Data Documentation

◆ m_endAdj

double TechDrawGui::QGEPath::m_endAdj
protected

Referenced by setEndAdjust().

◆ m_ghost

QGIPrimPath* TechDrawGui::QGEPath::m_ghost
protected

Referenced by drawGhost(), onEndEdit(), and QGEPath().

◆ m_ghostPoints

std::vector<QPointF> TechDrawGui::QGEPath::m_ghostPoints
protected

◆ m_inEdit

bool TechDrawGui::QGEPath::m_inEdit
protected

◆ m_markers

std::vector<QGMarker*> TechDrawGui::QGEPath::m_markers
protected

◆ m_parentLeader

QGILeaderLine* TechDrawGui::QGEPath::m_parentLeader
protected

Referenced by getDeltasFromLeader().

◆ m_scale

double TechDrawGui::QGEPath::m_scale
protected

◆ m_startAdj

double TechDrawGui::QGEPath::m_startAdj
protected

Referenced by setStartAdjust().


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