#include <QGIArrow.h>
Public Types | |
enum { Type = QGraphicsItem::UserType + 109 } | |
![]() | |
enum { Type = QGraphicsItem::UserType + 170 } | |
Public Member Functions | |
void draw () | |
void flip () | |
Base::Vector3d getDirection (void) | |
bool getDirMode () | |
double getSize () | |
int getStyle () | |
bool isFlipped () | |
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) | |
QGIArrow () | |
void setDirection (Base::Vector3d v) | |
void setDirection (double angle) | |
void setDirMode (bool b) | |
void setFlipped (bool flipped) | |
void setSize (double s) | |
void setStyle (int s) | |
int type () const | |
~QGIArrow () | |
![]() | |
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 setPrettyNormal () | |
virtual void setPrettyPre () | |
virtual void setPrettySel () | |
void setStyle (int s) | |
void setStyle (Qt::PenStyle s) | |
virtual void setWidth (double w) | |
virtual QPainterPath shape () const override | |
int type () const override | |
~QGIPrimPath () | |
Static Public Member Functions | |
static double getOverlapAdjust (int style, double size) | |
static double getPrefArrowSize () | |
static int getPrefArrowStyle () | |
Protected Member Functions | |
QPainterPath makeDot (double length, double width, bool flipped) | |
QPainterPath makeFilledTriangle (Base::Vector3d dir, double length, double width) | |
QPainterPath makeFilledTriangle (double length, double width, bool flipped) | |
QPainterPath makeForkArrow (Base::Vector3d dir, double length, double width) | |
QPainterPath makeForkArrow (double length, double width, bool flipped) | |
QPainterPath makeHashMark (Base::Vector3d dir, double length, double width) | |
QPainterPath makeHashMark (double length, double width, bool flipped) | |
QPainterPath makeOpenArrow (Base::Vector3d dir, double length, double width) | |
QPainterPath makeOpenArrow (double length, double width, bool flipped) | |
QPainterPath makeOpenDot (double length, double width, bool flipped) | |
QPainterPath makePyramid (Base::Vector3d dir, double length) | |
QPainterPath makePyramid (double length, bool flipped) | |
![]() | |
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) | |
Additional Inherited Members | |
![]() | |
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
◆ QGIArrow()
|
explicit |
◆ ~QGIArrow()
TechDrawGui::QGIArrow::~QGIArrow | ( | ) |
Member Function Documentation
◆ draw()
void QGIArrow::draw | ( | ) |
◆ flip()
void TechDrawGui::QGIArrow::flip | ( | ) |
◆ getDirection()
Base::Vector3d TechDrawGui::QGIArrow::getDirection | ( | void | ) |
Referenced by draw().
◆ getDirMode()
bool TechDrawGui::QGIArrow::getDirMode | ( | ) |
◆ getOverlapAdjust()
|
static |
◆ getPrefArrowSize()
|
static |
References TechDrawGui::PreferencesGui::dimArrowSize().
Referenced by TechDrawGui::QGIViewBalloon::draw(), TechDrawGui::QGIViewDimension::drawArrows(), TechDrawGui::QGISectionLine::extensionEndsISO(), TechDrawGui::QGISectionLine::makeArrowsISO(), TechDrawGui::QGISectionLine::makeArrowsTrad(), TechDrawGui::QGILeaderLine::makeLeaderPath(), TechDrawGui::QGISectionLine::QGISectionLine(), and TechDrawGui::QGILeaderLine::setArrows().
◆ getPrefArrowStyle()
|
static |
References TechDrawGui::PreferencesGui::dimArrowStyle().
Referenced by TechDrawGui::QGIViewDimension::drawArrows().
◆ getSize()
double TechDrawGui::QGIArrow::getSize | ( | ) |
◆ getStyle()
int TechDrawGui::QGIArrow::getStyle | ( | ) |
◆ isFlipped()
◆ makeDot()
|
protected |
References TechDrawGui::Rez::guiX(), and TechDrawGui::QGIPrimPath::setFillStyle().
Referenced by draw().
◆ makeFilledTriangle() [1/2]
|
protected |
◆ makeFilledTriangle() [2/2]
|
protected |
References TechDrawGui::Rez::guiX(), and TechDrawGui::QGIPrimPath::setFillStyle().
Referenced by draw().
◆ makeForkArrow() [1/2]
|
protected |
◆ makeForkArrow() [2/2]
|
protected |
References TechDrawGui::Rez::guiX(), and TechDrawGui::QGIPrimPath::setFillStyle().
Referenced by draw().
◆ makeHashMark() [1/2]
|
protected |
◆ makeHashMark() [2/2]
|
protected |
References TechDrawGui::Rez::guiX(), and TechDrawGui::QGIPrimPath::setFillStyle().
Referenced by draw().
◆ makeOpenArrow() [1/2]
|
protected |
◆ makeOpenArrow() [2/2]
|
protected |
References TechDrawGui::Rez::guiX(), and TechDrawGui::QGIPrimPath::setFillStyle().
Referenced by draw().
◆ makeOpenDot()
|
protected |
References TechDrawGui::Rez::guiX(), and TechDrawGui::QGIPrimPath::setFillStyle().
Referenced by draw().
◆ makePyramid() [1/2]
|
protected |
◆ makePyramid() [2/2]
|
protected |
References TechDrawGui::Rez::guiX(), and TechDrawGui::QGIPrimPath::setFillStyle().
Referenced by draw().
◆ paint()
|
virtual |
Reimplemented from TechDrawGui::QGIPrimPath.
References TechDrawGui::QGIPrimPath::paint().
◆ setDirection() [1/2]
void TechDrawGui::QGIArrow::setDirection | ( | Base::Vector3d | v | ) |
Referenced by TechDrawGui::QGIViewDimension::drawArrows(), and TechDrawGui::QGILeaderLine::setArrows().
◆ setDirection() [2/2]
void TechDrawGui::QGIArrow::setDirection | ( | double | angle | ) |
◆ setDirMode()
void TechDrawGui::QGIArrow::setDirMode | ( | bool | b | ) |
Referenced by TechDrawGui::QGIViewDimension::resetArrows(), and TechDrawGui::QGILeaderLine::setArrows().
◆ setFlipped()
void TechDrawGui::QGIArrow::setFlipped | ( | bool | flipped | ) |
◆ setSize()
void QGIArrow::setSize | ( | double | s | ) |
◆ setStyle()
void TechDrawGui::QGIArrow::setStyle | ( | int | s | ) |
◆ type()
int TechDrawGui::QGIArrow::type | ( | ) | const |
The documentation for this class was generated from the following files:
- src/Mod/TechDraw/Gui/QGIArrow.h
- src/Mod/TechDraw/Gui/QGIArrow.cpp