#include <QGIEdge.h>
Public Types | |
enum { Type = QGraphicsItem::UserType + 103 } | |
![]() | |
enum { Type = QGraphicsItem::UserType + 170 } | |
Public Member Functions | |
virtual QRectF boundingRect () const override | |
double getEdgeFuzz (void) const | |
bool getHiddenEdge () | |
int getProjIndex () const | |
bool getSmoothEdge () | |
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) override | |
QGIEdge (int index) | |
void setCosmetic (bool state) | |
void setHiddenEdge (bool b) | |
virtual void setPrettyNormal () override | |
void setSmoothEdge (bool b) | |
virtual QPainterPath shape () const override | |
int type () const override | |
~QGIEdge () | |
![]() | |
QColor getFillColor (void) | |
Qt::BrushStyle getFillStyle () | |
Qt::PenStyle getStyle () | |
virtual double getWidth () | |
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 setPrettyPre () | |
virtual void setPrettySel () | |
void setStyle (int s) | |
void setStyle (Qt::PenStyle s) | |
virtual void setWidth (double w) | |
int type () const override | |
~QGIPrimPath () | |
Protected Member Functions | |
QColor getHiddenColor () | |
Qt::PenStyle getHiddenStyle () | |
![]() | |
virtual QColor getNormalColor (void) | |
Base::Reference< ParameterGrp > getParmGroup (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 | |
bool isCosmetic | |
bool isHiddenEdge | |
bool isSmoothEdge | |
int projIndex | |
![]() | |
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
Constructor & Destructor Documentation
◆ QGIEdge()
|
explicit |
◆ ~QGIEdge()
TechDrawGui::QGIEdge::~QGIEdge | ( | ) |
Member Function Documentation
◆ boundingRect()
|
overridevirtual |
References shape().
◆ getEdgeFuzz()
double QGIEdge::getEdgeFuzz | ( | void | ) | const |
References TechDrawGui::PreferencesGui::edgeFuzz().
Referenced by shape().
◆ getHiddenColor()
|
protected |
References App::Color::asValue(), App::GetApplication(), ParameterGrp::GetGroup(), ParameterGrp::GetUnsigned(), and App::Application::GetUserParameter().
Referenced by setPrettyNormal().
◆ getHiddenEdge()
bool TechDrawGui::QGIEdge::getHiddenEdge | ( | ) |
◆ getHiddenStyle()
|
protected |
References App::GetApplication(), ParameterGrp::GetGroup(), ParameterGrp::GetInt(), and App::Application::GetUserParameter().
Referenced by setHiddenEdge().
◆ getProjIndex()
int TechDrawGui::QGIEdge::getProjIndex | ( | ) | const |
◆ getSmoothEdge()
bool TechDrawGui::QGIEdge::getSmoothEdge | ( | ) |
◆ paint()
|
overridevirtual |
Reimplemented from TechDrawGui::QGIPrimPath.
References TechDrawGui::QGIPrimPath::paint().
◆ setCosmetic()
void QGIEdge::setCosmetic | ( | bool | state | ) |
References isCosmetic, and TechDrawGui::QGIPrimPath::setWidth().
Referenced by QGIEdge(), and TechDrawGui::QGIViewPart::toggleCosmeticLines().
◆ setHiddenEdge()
void QGIEdge::setHiddenEdge | ( | bool | b | ) |
References getHiddenStyle(), isHiddenEdge, and TechDrawGui::QGIPrimPath::m_styleCurrent.
Referenced by TechDrawGui::QGIViewPart::drawViewPart().
◆ setPrettyNormal()
|
overridevirtual |
Reimplemented from TechDrawGui::QGIPrimPath.
References getHiddenColor(), TechDrawGui::QGIPrimPath::getNormalColor(), isHiddenEdge, and TechDrawGui::QGIPrimPath::m_colCurrent.
Referenced by TechDrawGui::QGIViewPart::drawViewPart().
◆ setSmoothEdge()
void TechDrawGui::QGIEdge::setSmoothEdge | ( | bool | b | ) |
◆ shape()
|
overridevirtual |
Reimplemented from TechDrawGui::QGIPrimPath.
References getEdgeFuzz().
Referenced by boundingRect().
◆ type()
|
override |
Member Data Documentation
◆ isCosmetic
|
protected |
Referenced by QGIEdge(), and setCosmetic().
◆ isHiddenEdge
|
protected |
Referenced by setHiddenEdge(), and setPrettyNormal().
◆ isSmoothEdge
|
protected |
◆ projIndex
|
protected |
The documentation for this class was generated from the following files:
- src/Mod/TechDraw/Gui/QGIEdge.h
- src/Mod/TechDraw/Gui/QGIEdge.cpp