#include <QGIArrow.h>
Public Types | |
enum | { Type = QGraphicsItem::UserType + 109 } |
Public Types inherited from TechDrawGui::QGIPrimPath | |
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=nullptr) |
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 () | |
Public Member Functions inherited from TechDrawGui::QGIPrimPath | |
QColor | getFillColor (void) |
Qt::BrushStyle | getFillStyle () |
Qt::PenStyle | getStyle () |
virtual double | getWidth () |
virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr) override |
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) |
Protected Member Functions inherited from TechDrawGui::QGIPrimPath | |
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 | |
Protected Attributes inherited from TechDrawGui::QGIPrimPath | |
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 |
|
explicit |
TechDrawGui::QGIArrow::~QGIArrow | ( | ) |
void QGIArrow::draw | ( | ) |
References getDirection(), isFlipped(), makeDot(), makeFilledTriangle(), makeForkArrow(), makeHashMark(), makeOpenArrow(), makeOpenDot(), and makePyramid().
Referenced by TechDrawGui::QGIViewDimension::drawArrows(), TechDrawGui::QGIViewBalloon::drawBalloon(), TechDrawGui::QGISectionLine::makeArrowsISO(), TechDrawGui::QGISectionLine::makeArrowsTrad(), and TechDrawGui::QGILeaderLine::setArrows().
void TechDrawGui::QGIArrow::flip | ( | ) |
Base::Vector3d TechDrawGui::QGIArrow::getDirection | ( | void | ) |
Referenced by draw().
bool TechDrawGui::QGIArrow::getDirMode | ( | ) |
|
static |
|
static |
References TechDrawGui::PreferencesGui::dimArrowSize().
Referenced by TechDrawGui::QGIViewDimension::drawArrows(), TechDrawGui::QGIViewBalloon::drawBalloon(), TechDrawGui::QGISectionLine::extensionEndsISO(), TechDrawGui::QGISectionLine::makeArrowsISO(), TechDrawGui::QGISectionLine::makeArrowsTrad(), TechDrawGui::QGILeaderLine::makeLeaderPath(), TechDrawGui::QGISectionLine::QGISectionLine(), and TechDrawGui::QGILeaderLine::setArrows().
|
static |
References TechDrawGui::PreferencesGui::dimArrowStyle().
Referenced by TechDrawGui::QGIViewDimension::drawArrows().
double TechDrawGui::QGIArrow::getSize | ( | void | ) |
int TechDrawGui::QGIArrow::getStyle | ( | ) |
|
protected |
References TechDrawGui::Rez::guiX(), and TechDrawGui::QGIPrimPath::setFillStyle().
Referenced by draw().
|
protected |
|
protected |
References TechDrawGui::Rez::guiX(), and TechDrawGui::QGIPrimPath::setFillStyle().
Referenced by draw().
|
protected |
|
protected |
References TechDrawGui::Rez::guiX(), and TechDrawGui::QGIPrimPath::setFillStyle().
Referenced by draw().
|
protected |
|
protected |
References TechDrawGui::Rez::guiX(), and TechDrawGui::QGIPrimPath::setFillStyle().
Referenced by draw().
|
protected |
|
protected |
References TechDrawGui::Rez::guiX(), and TechDrawGui::QGIPrimPath::setFillStyle().
Referenced by draw().
|
protected |
References TechDrawGui::Rez::guiX(), and TechDrawGui::QGIPrimPath::setFillStyle().
Referenced by draw().
|
protected |
|
protected |
References TechDrawGui::Rez::guiX(), and TechDrawGui::QGIPrimPath::setFillStyle().
Referenced by draw().
|
virtual |
Reimplemented from TechDrawGui::QGIPrimPath.
References TechDrawGui::QGIPrimPath::paint().
void TechDrawGui::QGIArrow::setDirection | ( | Base::Vector3d | v | ) |
Referenced by TechDrawGui::QGIViewDimension::drawArrows(), and TechDrawGui::QGILeaderLine::setArrows().
void TechDrawGui::QGIArrow::setDirection | ( | double | angle | ) |
void TechDrawGui::QGIArrow::setDirMode | ( | bool | b | ) |
Referenced by TechDrawGui::QGIViewDimension::resetArrows(), and TechDrawGui::QGILeaderLine::setArrows().
void TechDrawGui::QGIArrow::setFlipped | ( | bool | flipped | ) |
void QGIArrow::setSize | ( | double | s | ) |
void TechDrawGui::QGIArrow::setStyle | ( | int | s | ) |
int TechDrawGui::QGIArrow::type | ( | ) | const |
Referenced by ArchProfile.ProfileTaskPanel::accept(), and ArchProfile.ProfileTaskPanel::retranslateUi().