#include <QGIWeldSymbol.h>
Public Types | |
enum | { Type = QGraphicsItem::UserType + 340 } |
Public Types inherited from TechDrawGui::QGIView | |
enum | { Type = QGraphicsItem::UserType + 101 } |
Public Member Functions | |
virtual QRectF | boundingRect () const override |
virtual void | drawBorder () override |
double | getEdgeFuzz (void) const |
virtual TechDraw::DrawWeldSymbol * | getFeature (void) |
QPointF | getKinkPoint (void) |
QPointF | getTailPoint (void) |
void | getTileFeats (void) |
QPointF | getTileOrigin (void) |
virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr) override |
QGIWeldSymbol (QGILeaderLine *myParent=nullptr) | |
virtual void | setFeature (TechDraw::DrawWeldSymbol *feat) |
virtual void | setPrettyNormal () |
virtual void | setPrettyPre () |
virtual void | setPrettySel () |
virtual QPainterPath | shape (void) const override |
int | type () const override |
virtual void | updateView (bool update=false) override |
~QGIWeldSymbol ()=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 QRectF | customBoundingRect () const |
virtual void | draw () override |
void | drawAllAround (void) |
void | drawFieldFlag () |
void | drawTailText (void) |
void | drawTile (TechDraw::DrawTileWeld *tileFeat) |
std::vector< QGITile * > | getQGITiles (void) const |
virtual void | hoverEnterEvent (QGraphicsSceneHoverEvent *event) override |
virtual void | hoverLeaveEvent (QGraphicsSceneHoverEvent *event) override |
virtual QVariant | itemChange (GraphicsItemChange change, const QVariant &value) override |
double | prefArrowSize () |
double | prefFontSize (void) const |
virtual QColor | prefNormalColor () |
void | removeQGITiles (void) |
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 | |
QGIVertex * | m_allAround |
TechDraw::DrawTileWeld * | m_arrowFeat |
std::string | m_arrowName |
bool | m_blockDraw |
QGIPrimPath * | m_fieldFlag |
QFont | m_font |
TechDraw::DrawLeaderLine * | m_leadFeat |
TechDraw::DrawTileWeld * | m_otherFeat |
std::string | m_otherName |
QGILeaderLine * | m_qgLead |
QGCustomText * | m_tailText |
TechDraw::DrawWeldSymbol * | m_weldFeat |
std::string | m_weldFeatName |
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 | |
Public Slots inherited from TechDrawGui::QGIView | |
virtual void | onSourceChange (TechDraw::DrawView *newParent) |
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 |
|
default |
|
overridevirtual |
Reimplemented from TechDrawGui::QGIView.
References customBoundingRect().
|
protectedvirtual |
References TechDrawGui::QGCustomText::boundingRect(), getQGITiles(), m_allAround, m_fieldFlag, and m_tailText.
Referenced by boundingRect().
|
overrideprotectedvirtual |
Reimplemented from TechDrawGui::QGIView.
References drawAllAround(), drawFieldFlag(), drawTailText(), drawTile(), getTileFeats(), TechDrawGui::QGIView::isVisible(), m_arrowFeat, m_otherFeat, and removeQGITiles().
Referenced by updateView().
|
protected |
References ZVALUE::DIMENSION, TechDrawGui::PreferencesGui::dimFontSizePX(), TechDrawGui::QGIView::getCurrentColor(), getFeature(), getKinkPoint(), TechDrawGui::QGILeaderLine::getLineWidth(), m_allAround, m_qgLead, TechDrawGui::QGIPrimPath::setFill(), TechDrawGui::QGIPrimPath::setNormalColor(), TechDrawGui::QGIVertex::setRadius(), and TechDrawGui::QGIPrimPath::setWidth().
Referenced by draw().
|
overridevirtual |
Reimplemented from TechDrawGui::QGIView.
|
protected |
|
protected |
References TechDrawGui::QGCustomText::boundingRect(), TechDrawGui::QGIView::calculateFontPixelSize(), ZVALUE::DIMENSION, TechDrawGui::ViewProviderWeld::Font, Base::Tools::fromStdString(), TechDrawGui::QGIView::getCurrentColor(), getFeature(), getTailPoint(), App::PropertyString::getValue(), TechDrawGui::QGIView::getViewObject(), TechDrawGui::QGIView::getViewProvider(), TechDrawGui::QGCustomText::justifyLeftAt(), TechDrawGui::QGCustomText::justifyRightAt(), m_font, m_tailText, prefArrowSize(), TechDrawGui::QGCustomText::setColor(), and TechDraw::DrawWeldSymbol::TailText.
Referenced by draw().
|
protected |
References TechDraw::DrawWeldSymbol::AlternatingWeld, TechDrawGui::QGIView::calculateFontPixelSize(), TechDraw::DrawTileWeld::CenterText, Base::Console(), ZVALUE::DIMENSION, TechDrawGui::QGITile::draw(), TechDrawGui::ViewProviderWeld::Font, TechDrawGui::QGIView::getCurrentColor(), TechDraw::DrawLeaderLine::getScale(), getTileOrigin(), App::PropertyInteger::getValue(), App::PropertyString::getValue(), App::PropertyBool::getValue(), TechDrawGui::QGIView::getViewObject(), TechDrawGui::QGIView::getViewProvider(), TechDraw::DrawWeldSymbol::isTailRightSide(), TechDraw::DrawTileWeld::LeftText, m_leadFeat, m_weldFeat, Base::ConsoleSingleton::Message(), TechDraw::DrawTileWeld::RightText, TechDrawGui::QGITile::setAltWeld(), TechDrawGui::QGIDecoration::setColor(), TechDrawGui::QGITile::setFont(), TechDrawGui::QGITile::setTailRight(), TechDrawGui::QGITile::setTilePosition(), TechDrawGui::QGITile::setTileScale(), TechDrawGui::QGITile::setTileTextCenter(), TechDrawGui::QGITile::setTileTextLeft(), TechDrawGui::QGITile::setTileTextRight(), TechDraw::DrawTile::TileColumn, and TechDraw::DrawTile::TileRow.
Referenced by draw().
double TechDrawGui::QGIWeldSymbol::getEdgeFuzz | ( | void | ) | const |
|
virtual |
References m_weldFeat.
Referenced by drawAllAround(), drawFieldFlag(), drawTailText(), getTileFeats(), and updateView().
QPointF QGIWeldSymbol::getKinkPoint | ( | void | ) |
References TechDraw::DrawLeaderLine::getKinkPoint(), m_leadFeat, Base::Vector3< _Precision >::x, and Base::Vector3< _Precision >::y.
Referenced by drawAllAround(), and drawFieldFlag().
|
protected |
Referenced by customBoundingRect(), removeQGITiles(), setPrettyNormal(), setPrettyPre(), and setPrettySel().
QPointF QGIWeldSymbol::getTailPoint | ( | void | ) |
References TechDraw::DrawLeaderLine::getTailPoint(), m_leadFeat, Base::Vector3< _Precision >::x, and Base::Vector3< _Precision >::y.
Referenced by drawTailText().
void QGIWeldSymbol::getTileFeats | ( | void | ) |
References getFeature(), TechDraw::DrawWeldSymbol::getTiles(), App::PropertyInteger::getValue(), m_arrowFeat, m_otherFeat, and TechDraw::DrawTile::TileRow.
Referenced by draw().
QPointF QGIWeldSymbol::getTileOrigin | ( | void | ) |
References TechDraw::DrawLeaderLine::getTileOrigin(), m_leadFeat, Base::Vector3< _Precision >::x, and Base::Vector3< _Precision >::y.
Referenced by drawTile().
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
References TechDrawGui::QGIView::itemChange(), setPrettyNormal(), and setPrettySel().
|
overridevirtual |
Reimplemented from TechDrawGui::QGIView.
References TechDrawGui::QGIView::paint().
|
protected |
References TechDrawGui::PreferencesGui::dimArrowSize().
Referenced by drawTailText().
|
protected |
|
protectedvirtual |
References TechDrawGui::PreferencesGui::leaderQColor(), and TechDrawGui::QGIView::m_colNormal.
Referenced by QGIWeldSymbol().
|
protected |
References getQGITiles().
Referenced by draw().
|
virtual |
References App::DocumentObject::getNameInDocument(), m_weldFeat, and m_weldFeatName.
Referenced by TechDrawGui::QGSPage::addWeldSymbol().
|
virtual |
References getQGITiles(), m_allAround, TechDrawGui::QGIView::m_colCurrent, TechDrawGui::QGIView::m_colNormal, m_fieldFlag, m_tailText, TechDrawGui::QGCustomText::setColor(), TechDrawGui::QGIPrimPath::setNormalColor(), TechDrawGui::QGCustomText::setPrettyNormal(), and TechDrawGui::QGIPrimPath::setPrettyNormal().
Referenced by hoverLeaveEvent(), itemChange(), and QGIWeldSymbol().
|
virtual |
References TechDrawGui::QGIView::getPreColor(), getQGITiles(), m_allAround, TechDrawGui::QGIView::m_colCurrent, m_fieldFlag, m_tailText, TechDrawGui::QGCustomText::setColor(), TechDrawGui::QGIPrimPath::setNormalColor(), TechDrawGui::QGCustomText::setPrettyPre(), and TechDrawGui::QGIPrimPath::setPrettyPre().
Referenced by hoverEnterEvent().
|
virtual |
References getQGITiles(), TechDrawGui::QGIView::getSelectColor(), m_allAround, TechDrawGui::QGIView::m_colCurrent, m_fieldFlag, m_tailText, TechDrawGui::QGCustomText::setColor(), TechDrawGui::QGIPrimPath::setNormalColor(), TechDrawGui::QGCustomText::setPrettySel(), and TechDrawGui::QGIPrimPath::setPrettySel().
Referenced by hoverEnterEvent(), hoverLeaveEvent(), and itemChange().
|
overridevirtual |
|
override |
Referenced by ArchProfile.ProfileTaskPanel::accept(), and ArchProfile.ProfileTaskPanel::retranslateUi().
|
overridevirtual |
Reimplemented from TechDrawGui::QGIView.
References Base::Console(), draw(), getFeature(), TechDrawGui::QGIView::getViewObject(), and Base::ConsoleSingleton::Warning().
Referenced by TechDrawGui::QGSPage::addWeldSymbol().
|
protected |
Referenced by customBoundingRect(), drawAllAround(), QGIWeldSymbol(), setPrettyNormal(), setPrettyPre(), and setPrettySel().
|
protected |
Referenced by draw(), and getTileFeats().
|
protected |
|
protected |
|
protected |
Referenced by customBoundingRect(), drawFieldFlag(), QGIWeldSymbol(), setPrettyNormal(), setPrettyPre(), and setPrettySel().
|
protected |
Referenced by drawTailText().
|
protected |
Referenced by drawTile(), getKinkPoint(), getTailPoint(), getTileOrigin(), and QGIWeldSymbol().
|
protected |
Referenced by draw(), and getTileFeats().
|
protected |
|
protected |
Referenced by drawAllAround(), drawFieldFlag(), and QGIWeldSymbol().
|
protected |
Referenced by customBoundingRect(), drawTailText(), QGIWeldSymbol(), setPrettyNormal(), setPrettyPre(), and setPrettySel().
|
protected |
Referenced by drawTile(), getFeature(), and setFeature().
|
protected |
Referenced by setFeature().