TechDrawGui::QGILeaderLine Class Reference

#include <QGILeaderLine.h>

Public Types

enum  { Type = QGraphicsItem::UserType + 232 }
 
- Public Types inherited from TechDrawGui::QGIView
enum  { Type = QGraphicsItem::UserType + 101 }
 

Public Slots

void onLineEditFinished (QPointF attach, std::vector< QPointF > deltas)
 
virtual void onSourceChange (TechDraw::DrawView *newParent) override
 
- Public Slots inherited from TechDrawGui::QGIView
virtual void onSourceChange (TechDraw::DrawView *newParent)
 

Signals

void editComplete (void)
 

Public Member Functions

void abandonEdit (void)
 
virtual QRectF boundingRect () const override
 
void closeEdit (void)
 
virtual void drawBorder () override
 
double getEdgeFuzz (void) const
 
virtual TechDraw::DrawLeaderLinegetFeature (void)
 
double getLineWidth (void)
 
virtual void hoverEnterEvent (QGraphicsSceneHoverEvent *event) override
 
virtual void hoverLeaveEvent (QGraphicsSceneHoverEvent *event) override
 
virtual void mousePressEvent (QGraphicsSceneMouseEvent *event) override
 
virtual void mouseReleaseEvent (QGraphicsSceneMouseEvent *event) override
 
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr) override
 
 QGILeaderLine ()
 
void setArrows (std::vector< QPointF > pathPoints)
 
void setLeaderFeature (TechDraw::DrawLeaderLine *feat)
 
void setPrettyNormal ()
 
void setPrettyPre ()
 
void setPrettySel ()
 
virtual QPainterPath shape (void) const override
 
void startPathEdit (void)
 
int type () const override
 
virtual void updateView (bool update=false) override
 
 ~QGILeaderLine ()=default
 
- Public Member Functions inherited from TechDrawGui::QGIView
virtual void addArbitraryItem (QGraphicsItem *qgi)
 
void alignTo (QGraphicsItem *, const QString &alignment)
 
virtual QRectF boundingRect () const override
 
virtual void draw (void)
 
virtual void drawBorder (void)
 
virtual void drawCaption (void)
 
QGIViewClipgetClipGroup (void)
 
virtual QColor getCurrentColor (void)
 
virtual bool getFrameState (void)
 
MDIViewPagegetMDIViewPage (void) const
 
virtual QColor getNormalColor (void)
 
virtual QColor getPreColor (void)
 
double getScale (void)
 
virtual QColor getSelectColor (void)
 
virtual QColor getSettingColor (void)
 
const char * getViewName () const
 
const std::string getViewNameAsString () const
 
TechDraw::DrawViewgetViewObject () const
 
virtual void isVisible (bool state)
 
virtual bool isVisible (void)
 
void makeMark (Base::Vector3d v, QColor c=Qt::red)
 
void makeMark (double x, double y, QColor c=Qt::red)
 
void makeMark (QPointF p, QColor c=Qt::red)
 
void mouseMoveEvent (QGraphicsSceneMouseEvent *event) override
 
void mousePressEvent (QGraphicsSceneMouseEvent *event) override
 
void mouseReleaseEvent (QGraphicsSceneMouseEvent *event) override
 
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr) override
 
 QGIView ()
 
virtual void removeChild (QGIView *child)
 
virtual void rotateView (void)
 
virtual void setGroupSelection (bool b)
 
void setLocked (bool b)
 
virtual void setSettingColor (QColor c)
 
void setViewFeature (TechDraw::DrawView *obj)
 
virtual void toggleCache (bool state)
 
int type () const override
 
virtual void updateView (bool update=false)
 
virtual ~QGIView ()
 
void setPosition (qreal x, qreal y)
 Methods to ensure that Y-Coordinates are orientated correctly. More...
 
qreal getY ()
 
bool isInnerView ()
 
void isInnerView (bool state)
 
double getYInClip (double y)
 

Protected Member Functions

virtual void draw () override
 
QPointF getAttachFromFeature (void)
 
QColor getNormalColor () override
 
std::vector< QPointF > getWayPointsFromFeature (void)
 
virtual QVariant itemChange (GraphicsItemChange change, const QVariant &value) override
 
QPainterPath makeLeaderPath (std::vector< QPointF > qPoints)
 
void restoreState (void)
 
void saveState (void)
 
void setNormalColorAll ()
 
- Protected Member Functions inherited from TechDrawGui::QGIView
virtual QRectF customChildrenBoundingRect (void) const
 
void dumpRect (const char *text, QRectF r)
 
Base::Reference< ParameterGrpgetParmGroupCol (void)
 
QGIViewgetQGIVByName (std::string name)
 
void hoverEnterEvent (QGraphicsSceneHoverEvent *event) override
 
void hoverLeaveEvent (QGraphicsSceneHoverEvent *event) override
 
QVariant itemChange (GraphicsItemChange change, const QVariant &value) override
 

Protected Attributes

QGIArrowm_arrow1
 
QGIArrowm_arrow2
 
bool m_blockDraw
 
QGEPathm_editPath
 
QColor m_editPathColor
 
Qt::PenStyle m_editPathStyle
 
bool m_hasHover
 
QGIPrimPathm_line
 
QColor m_lineColor
 
Qt::PenStyle m_lineStyle
 
double m_lineWidth
 
QGraphicsItem * m_parentItem
 
std::vector< QPointF > m_pathPoints
 
std::vector< Base::Vector3dm_savePoints
 
double m_saveX
 
double m_saveY
 
- Protected Attributes inherited from TechDrawGui::QGIView
QHash< QString, QGraphicsItem * > alignHash
 
QGCustomBorderm_border
 
QBrush m_brush
 
QGICaptionm_caption
 
QColor m_colCurrent
 
QColor m_colNormal
 
QColor m_colPre
 
QColor m_colSel
 
QColor m_colSetting
 
QPen m_decorPen
 
int m_dragState
 
QFont m_font
 
bool m_innerView
 
QGCustomLabelm_label
 
QGCustomImagem_lock
 
bool m_locked
 
double m_lockHeight
 
double m_lockWidth
 
QPen m_pen
 
std::string viewName
 
TechDraw::DrawViewviewObj
 

Additional Inherited Members

- Static Public Member Functions inherited from TechDrawGui::QGIView
static int calculateFontPixelSize (double sizeInMillimetres)
 
static int calculateFontPixelWidth (const QFont &font)
 
static double getDimFontSize (void)
 
static QGSPagegetGraphicsScene (TechDraw::DrawView *dv)
 
static QGVPagegetGraphicsView (TechDraw::DrawView *dv)
 
static QString getPrefFont (void)
 
static double getPrefFontSize (void)
 
static Gui::ViewProvidergetViewProvider (App::DocumentObject *obj)
 
- Public Attributes inherited from TechDrawGui::QGIView
boost::signals2::signal< void(QGIView *, QPointF)> signalSelectPoint
 
- Static Public Attributes inherited from TechDrawGui::QGIView
static const double DefaultFontSizeInMM = 5.0
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
Type 

Constructor & Destructor Documentation

◆ QGILeaderLine()

QGILeaderLine::QGILeaderLine ( )
explicit

◆ ~QGILeaderLine()

TechDrawGui::QGILeaderLine::~QGILeaderLine ( )
default

Member Function Documentation

◆ abandonEdit()

void QGILeaderLine::abandonEdit ( void  )

◆ boundingRect()

QRectF QGILeaderLine::boundingRect ( ) const
overridevirtual

Reimplemented from TechDrawGui::QGIView.

Referenced by draw().

◆ closeEdit()

void QGILeaderLine::closeEdit ( void  )

◆ draw()

◆ drawBorder()

void QGILeaderLine::drawBorder ( void  )
overridevirtual

Reimplemented from TechDrawGui::QGIView.

◆ editComplete

void TechDrawGui::QGILeaderLine::editComplete ( void  )
signal

Referenced by onLineEditFinished().

◆ getAttachFromFeature()

◆ getEdgeFuzz()

double QGILeaderLine::getEdgeFuzz ( void  ) const

◆ getFeature()

◆ getLineWidth()

◆ getNormalColor()

QColor QGILeaderLine::getNormalColor ( void  )
overrideprotectedvirtual

◆ getWayPointsFromFeature()

◆ hoverEnterEvent()

void QGILeaderLine::hoverEnterEvent ( QGraphicsSceneHoverEvent *  event)
overridevirtual

◆ hoverLeaveEvent()

void QGILeaderLine::hoverLeaveEvent ( QGraphicsSceneHoverEvent *  event)
overridevirtual

◆ itemChange()

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

◆ makeLeaderPath()

◆ mousePressEvent()

void QGILeaderLine::mousePressEvent ( QGraphicsSceneMouseEvent *  event)
overridevirtual

◆ mouseReleaseEvent()

void QGILeaderLine::mouseReleaseEvent ( QGraphicsSceneMouseEvent *  event)
overridevirtual

◆ onLineEditFinished

void QGILeaderLine::onLineEditFinished ( QPointF  attach,
std::vector< QPointF >  deltas 
)
slot

◆ onSourceChange

◆ paint()

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

Reimplemented from TechDrawGui::QGIView.

References TechDrawGui::QGIView::paint().

◆ restoreState()

void QGILeaderLine::restoreState ( void  )
protected

References getFeature(), m_savePoints, m_saveX, and m_saveY.

Referenced by abandonEdit().

◆ saveState()

void QGILeaderLine::saveState ( void  )
protected

References getFeature(), m_savePoints, m_saveX, and m_saveY.

Referenced by startPathEdit().

◆ setArrows()

◆ setLeaderFeature()

◆ setNormalColorAll()

void QGILeaderLine::setNormalColorAll ( )
protected

◆ setPrettyNormal()

void QGILeaderLine::setPrettyNormal ( void  )

◆ setPrettyPre()

void QGILeaderLine::setPrettyPre ( void  )

◆ setPrettySel()

void QGILeaderLine::setPrettySel ( void  )

◆ shape()

◆ startPathEdit()

◆ type()

int TechDrawGui::QGILeaderLine::type ( void  ) const
override

◆ updateView()

Member Data Documentation

◆ m_arrow1

QGIArrow* TechDrawGui::QGILeaderLine::m_arrow1
protected

◆ m_arrow2

QGIArrow* TechDrawGui::QGILeaderLine::m_arrow2
protected

◆ m_blockDraw

bool TechDrawGui::QGILeaderLine::m_blockDraw
protected

Referenced by draw(), and onLineEditFinished().

◆ m_editPath

QGEPath* TechDrawGui::QGILeaderLine::m_editPath
protected

◆ m_editPathColor

QColor TechDrawGui::QGILeaderLine::m_editPathColor
protected

◆ m_editPathStyle

Qt::PenStyle TechDrawGui::QGILeaderLine::m_editPathStyle
protected

◆ m_hasHover

bool TechDrawGui::QGILeaderLine::m_hasHover
protected

◆ m_line

QGIPrimPath* TechDrawGui::QGILeaderLine::m_line
protected

◆ m_lineColor

QColor TechDrawGui::QGILeaderLine::m_lineColor
protected

◆ m_lineStyle

Qt::PenStyle TechDrawGui::QGILeaderLine::m_lineStyle
protected

Referenced by draw().

◆ m_lineWidth

double TechDrawGui::QGILeaderLine::m_lineWidth
protected

◆ m_parentItem

QGraphicsItem* TechDrawGui::QGILeaderLine::m_parentItem
protected

Referenced by onSourceChange().

◆ m_pathPoints

std::vector<QPointF> TechDrawGui::QGILeaderLine::m_pathPoints
protected

◆ m_savePoints

std::vector<Base::Vector3d> TechDrawGui::QGILeaderLine::m_savePoints
protected

Referenced by restoreState(), and saveState().

◆ m_saveX

double TechDrawGui::QGILeaderLine::m_saveX
protected

Referenced by restoreState(), and saveState().

◆ m_saveY

double TechDrawGui::QGILeaderLine::m_saveY
protected

Referenced by restoreState(), and saveState().


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