#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::DrawLeaderLine * | getFeature (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) |
QGIViewClip * | getClipGroup (void) |
virtual QColor | getCurrentColor (void) |
virtual bool | getFrameState (void) |
MDIViewPage * | getMDIViewPage (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::DrawView * | getViewObject () 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< ParameterGrp > | getParmGroupCol (void) |
QGIView * | getQGIVByName (std::string name) |
void | hoverEnterEvent (QGraphicsSceneHoverEvent *event) override |
void | hoverLeaveEvent (QGraphicsSceneHoverEvent *event) override |
QVariant | itemChange (GraphicsItemChange change, const QVariant &value) override |
Protected Attributes | |
QGIArrow * | m_arrow1 |
QGIArrow * | m_arrow2 |
bool | m_blockDraw |
QGEPath * | m_editPath |
QColor | m_editPathColor |
Qt::PenStyle | m_editPathStyle |
bool | m_hasHover |
QGIPrimPath * | m_line |
QColor | m_lineColor |
Qt::PenStyle | m_lineStyle |
double | m_lineWidth |
QGraphicsItem * | m_parentItem |
std::vector< QPointF > | m_pathPoints |
std::vector< Base::Vector3d > | m_savePoints |
double | m_saveX |
double | m_saveY |
Protected Attributes inherited from TechDrawGui::QGIView | |
QHash< QString, QGraphicsItem * > | alignHash |
QGCustomBorder * | m_border |
QBrush | m_brush |
QGICaption * | m_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 |
QGCustomLabel * | m_label |
QGCustomImage * | m_lock |
bool | m_locked |
double | m_lockHeight |
double | m_lockWidth |
QPen | m_pen |
std::string | viewName |
TechDraw::DrawView * | viewObj |
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 QGSPage * | getGraphicsScene (TechDraw::DrawView *dv) |
static QGVPage * | getGraphicsView (TechDraw::DrawView *dv) |
static QString | getPrefFont (void) |
static double | getPrefFontSize (void) |
static Gui::ViewProvider * | getViewProvider (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 |
|
explicit |
References draftgeoutils.intersections::connect(), ZVALUE::DIMENSION, m_arrow1, m_arrow2, m_editPath, m_line, and onLineEditFinished().
|
default |
void QGILeaderLine::abandonEdit | ( | void | ) |
References TechDrawGui::QGEPath::clearMarkers(), m_editPath, and restoreState().
Referenced by TechDrawGui::TaskLeaderLine::abandonEditSession().
|
overridevirtual |
Reimplemented from TechDrawGui::QGIView.
Referenced by draw().
void QGILeaderLine::closeEdit | ( | void | ) |
References m_editPath, and TechDrawGui::QGEPath::onEndEdit().
Referenced by TechDrawGui::TaskLeaderLine::onTrackerClicked().
|
overrideprotectedvirtual |
Reimplemented from TechDrawGui::QGIView.
References boundingRect(), TechDraw::DrawLeaderLine::getBaseScale(), TechDraw::DrawLeaderLine::getBaseView(), getFeature(), getLineWidth(), TechDraw::DrawView::getScale(), App::PropertyBool::getValue(), App::PropertyQuantity::getValue(), TechDrawGui::QGIView::getViewObject(), TechDrawGui::QGIView::getViewProvider(), getWayPointsFromFeature(), TechDrawGui::Rez::guiX(), TechDrawGui::QGEPath::inEdit(), TechDraw::DrawView::isLocked(), TechDrawGui::QGIView::isVisible(), m_blockDraw, m_editPath, m_hasHover, m_line, m_lineStyle, makeLeaderPath(), TechDraw::DrawLeaderLine::Scalable, draftfunctions.scale::scale(), setArrows(), TechDrawGui::QGIPrimPath::setFillStyle(), setNormalColorAll(), setPrettyNormal(), setPrettyPre(), setPrettySel(), TechDrawGui::QGIPrimPath::setStyle(), TechDrawGui::QGIPrimPath::setWidth(), TechDraw::DrawView::X, and TechDraw::DrawView::Y.
Referenced by itemChange(), onLineEditFinished(), onSourceChange(), and updateView().
|
overridevirtual |
Reimplemented from TechDrawGui::QGIView.
|
signal |
Referenced by onLineEditFinished().
|
protected |
double QGILeaderLine::getEdgeFuzz | ( | void | ) | const |
References TechDrawGui::PreferencesGui::edgeFuzz().
|
virtual |
double QGILeaderLine::getLineWidth | ( | void | ) |
|
overrideprotectedvirtual |
Reimplemented from TechDrawGui::QGIView.
References TechDrawGui::QGIView::getViewObject(), TechDrawGui::QGIView::getViewProvider(), TechDrawGui::PreferencesGui::leaderQColor(), and TechDrawGui::QGIView::m_colNormal.
Referenced by setNormalColorAll().
|
protected |
|
overridevirtual |
References TechDrawGui::QGIView::hoverEnterEvent(), m_hasHover, and setPrettyPre().
|
overridevirtual |
References TechDrawGui::QGIView::hoverLeaveEvent(), m_hasHover, and setPrettyNormal().
|
overrideprotectedvirtual |
References draw(), TechDrawGui::QGIView::itemChange(), setPrettyNormal(), and setPrettySel().
|
protected |
References Base::Console(), TechDraw::DrawLeaderLine::EndSymbol, getFeature(), TechDrawGui::QGIArrow::getOverlapAdjust(), TechDrawGui::QGIArrow::getPrefArrowSize(), App::PropertyEnumeration::getValue(), Base::ConsoleSingleton::Message(), and TechDraw::DrawLeaderLine::StartSymbol.
Referenced by draw().
|
overridevirtual |
|
overridevirtual |
|
slot |
References TechDrawGui::Rez::appX(), draw(), editComplete(), TechDraw::DrawUtil::fpCompare(), getAttachFromFeature(), getFeature(), m_blockDraw, and m_editPath.
Referenced by QGILeaderLine().
|
overridevirtualslot |
|
overridevirtual |
Reimplemented from TechDrawGui::QGIView.
References TechDrawGui::QGIView::paint().
|
protected |
References getFeature(), m_savePoints, m_saveX, and m_saveY.
Referenced by abandonEdit().
|
protected |
References getFeature(), m_savePoints, m_saveX, and m_saveY.
Referenced by startPathEdit().
void QGILeaderLine::setArrows | ( | std::vector< QPointF > | pathPoints | ) |
References TechDrawGui::QGIArrow::draw(), TechDraw::DrawLeaderLine::EndSymbol, getFeature(), getLineWidth(), TechDrawGui::QGIArrow::getPrefArrowSize(), App::PropertyEnumeration::getValue(), m_arrow1, m_arrow2, TechDrawGui::QGIArrow::setDirection(), TechDrawGui::QGIArrow::setDirMode(), TechDrawGui::QGIArrow::setSize(), TechDrawGui::QGIArrow::setStyle(), TechDrawGui::QGIPrimPath::setWidth(), and TechDraw::DrawLeaderLine::StartSymbol.
Referenced by draw().
void QGILeaderLine::setLeaderFeature | ( | TechDraw::DrawLeaderLine * | feat | ) |
|
protected |
References getNormalColor(), m_arrow1, m_arrow2, m_editPath, m_line, TechDrawGui::QGIPrimPath::setFillColor(), and TechDrawGui::QGIPrimPath::setNormalColor().
Referenced by draw(), and setLeaderFeature().
void QGILeaderLine::setPrettyNormal | ( | void | ) |
References m_arrow1, m_arrow2, m_line, and TechDrawGui::QGIPrimPath::setPrettyNormal().
Referenced by draw(), hoverLeaveEvent(), itemChange(), and setLeaderFeature().
void QGILeaderLine::setPrettyPre | ( | void | ) |
References m_arrow1, m_arrow2, m_line, and TechDrawGui::QGIPrimPath::setPrettyPre().
Referenced by draw(), and hoverEnterEvent().
void QGILeaderLine::setPrettySel | ( | void | ) |
References m_arrow1, m_arrow2, m_line, and TechDrawGui::QGIPrimPath::setPrettySel().
Referenced by draw(), and itemChange().
|
overridevirtual |
void QGILeaderLine::startPathEdit | ( | void | ) |
|
override |
Referenced by ArchProfile.ProfileTaskPanel::accept(), and ArchProfile.ProfileTaskPanel::retranslateUi().
|
overridevirtual |
Reimplemented from TechDrawGui::QGIView.
References Base::Console(), draw(), TechDrawGui::QGIView::getViewObject(), TechDrawGui::QGIView::getViewProvider(), and Base::ConsoleSingleton::Warning().
Referenced by TechDrawGui::QGSPage::addViewLeader(), and setLeaderFeature().
|
protected |
Referenced by QGILeaderLine(), setArrows(), setNormalColorAll(), setPrettyNormal(), setPrettyPre(), and setPrettySel().
|
protected |
Referenced by QGILeaderLine(), setArrows(), setNormalColorAll(), setPrettyNormal(), setPrettyPre(), and setPrettySel().
|
protected |
Referenced by draw(), and onLineEditFinished().
|
protected |
Referenced by abandonEdit(), closeEdit(), draw(), onLineEditFinished(), QGILeaderLine(), setNormalColorAll(), and startPathEdit().
|
protected |
|
protected |
|
protected |
Referenced by draw(), hoverEnterEvent(), and hoverLeaveEvent().
|
protected |
Referenced by draw(), QGILeaderLine(), setNormalColorAll(), setPrettyNormal(), setPrettyPre(), and setPrettySel().
|
protected |
|
protected |
Referenced by draw().
|
protected |
|
protected |
Referenced by onSourceChange().
|
protected |
|
protected |
Referenced by restoreState(), and saveState().
|
protected |
Referenced by restoreState(), and saveState().
|
protected |
Referenced by restoreState(), and saveState().