#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::DrawWeldSymbolgetFeature (void)
 
QPointF getKinkPoint (void)
 
QPointF getTailPoint (void)
 
void getTileFeats (void)
 
QPointF getTileOrigin (void)
 
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) 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 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)
 
virtual void mousePressEvent (QGraphicsSceneMouseEvent *event) override
 
virtual void mouseReleaseEvent (QGraphicsSceneMouseEvent *event) 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 ~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< ParameterGrpgetParmGroupCol (void)
 
QGIViewgetQGIVByName (std::string name)
 

Protected Attributes

QGIVertexm_allAround
 
TechDraw::DrawTileWeldm_arrowFeat
 
std::string m_arrowName
 
bool m_blockDraw
 
QGIPrimPathm_fieldFlag
 
QFont m_font
 
TechDraw::DrawLeaderLinem_leadFeat
 
TechDraw::DrawTileWeldm_otherFeat
 
std::string m_otherName
 
QGILeaderLinem_qgLead
 
QGCustomTextm_tailText
 
TechDraw::DrawWeldSymbolm_weldFeat
 
std::string m_weldFeatName
 
- 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
 
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

- 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 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

◆ QGIWeldSymbol()

◆ ~QGIWeldSymbol()

TechDrawGui::QGIWeldSymbol::~QGIWeldSymbol ( )
default

Member Function Documentation

◆ boundingRect()

QRectF QGIWeldSymbol::boundingRect ( ) const
overridevirtual

Reimplemented from TechDrawGui::QGIView.

References customBoundingRect().

◆ customBoundingRect()

QRectF QGIWeldSymbol::customBoundingRect ( ) const
protectedvirtual

◆ draw()

void QGIWeldSymbol::draw ( void  )
overrideprotectedvirtual

◆ drawAllAround()

◆ drawBorder()

void QGIWeldSymbol::drawBorder ( void  )
overridevirtual

Reimplemented from TechDrawGui::QGIView.

◆ drawFieldFlag()

◆ drawTailText()

◆ drawTile()

◆ getEdgeFuzz()

double TechDrawGui::QGIWeldSymbol::getEdgeFuzz ( void  ) const

◆ getFeature()

TechDraw::DrawWeldSymbol * QGIWeldSymbol::getFeature ( void  )
virtual

◆ getKinkPoint()

◆ getQGITiles()

std::vector< QGITile * > QGIWeldSymbol::getQGITiles ( void  ) const
protected

◆ getTailPoint()

QPointF QGIWeldSymbol::getTailPoint ( void  )

◆ getTileFeats()

◆ getTileOrigin()

QPointF QGIWeldSymbol::getTileOrigin ( void  )

◆ hoverEnterEvent()

void QGIWeldSymbol::hoverEnterEvent ( QGraphicsSceneHoverEvent *  event)
overrideprotectedvirtual

◆ hoverLeaveEvent()

void QGIWeldSymbol::hoverLeaveEvent ( QGraphicsSceneHoverEvent *  event)
overrideprotectedvirtual

◆ itemChange()

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

◆ paint()

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

Reimplemented from TechDrawGui::QGIView.

References TechDrawGui::QGIView::paint().

◆ prefArrowSize()

double QGIWeldSymbol::prefArrowSize ( )
protected

◆ prefFontSize()

double QGIWeldSymbol::prefFontSize ( void  ) const
protected

◆ prefNormalColor()

QColor QGIWeldSymbol::prefNormalColor ( void  )
protectedvirtual

◆ removeQGITiles()

void QGIWeldSymbol::removeQGITiles ( void  )
protected

References getQGITiles().

Referenced by draw().

◆ setFeature()

void QGIWeldSymbol::setFeature ( TechDraw::DrawWeldSymbol feat)
virtual

◆ setPrettyNormal()

◆ setPrettyPre()

◆ setPrettySel()

◆ shape()

◆ type()

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

◆ updateView()

void QGIWeldSymbol::updateView ( bool  update = false)
overridevirtual

Member Data Documentation

◆ m_allAround

QGIVertex* TechDrawGui::QGIWeldSymbol::m_allAround
protected

◆ m_arrowFeat

TechDraw::DrawTileWeld* TechDrawGui::QGIWeldSymbol::m_arrowFeat
protected

Referenced by draw(), and getTileFeats().

◆ m_arrowName

std::string TechDrawGui::QGIWeldSymbol::m_arrowName
protected

◆ m_blockDraw

bool TechDrawGui::QGIWeldSymbol::m_blockDraw
protected

◆ m_fieldFlag

QGIPrimPath* TechDrawGui::QGIWeldSymbol::m_fieldFlag
protected

◆ m_font

QFont TechDrawGui::QGIWeldSymbol::m_font
protected

Referenced by drawTailText().

◆ m_leadFeat

TechDraw::DrawLeaderLine* TechDrawGui::QGIWeldSymbol::m_leadFeat
protected

◆ m_otherFeat

TechDraw::DrawTileWeld* TechDrawGui::QGIWeldSymbol::m_otherFeat
protected

Referenced by draw(), and getTileFeats().

◆ m_otherName

std::string TechDrawGui::QGIWeldSymbol::m_otherName
protected

◆ m_qgLead

QGILeaderLine* TechDrawGui::QGIWeldSymbol::m_qgLead
protected

◆ m_tailText

QGCustomText* TechDrawGui::QGIWeldSymbol::m_tailText
protected

◆ m_weldFeat

TechDraw::DrawWeldSymbol* TechDrawGui::QGIWeldSymbol::m_weldFeat
protected

Referenced by drawTile(), getFeature(), and setFeature().

◆ m_weldFeatName

std::string TechDrawGui::QGIWeldSymbol::m_weldFeatName
protected

Referenced by setFeature().


The documentation for this class was generated from the following files:
  • Sources/FreeCAD/src/Mod/TechDraw/Gui/QGIWeldSymbol.h
  • Sources/FreeCAD/src/Mod/TechDraw/Gui/QGIWeldSymbol.cpp