TechDrawGui::QGIArrow Class Reference

#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< ParameterGrpgetParmGroup (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
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
Type 

Constructor & Destructor Documentation

◆ QGIArrow()

◆ ~QGIArrow()

TechDrawGui::QGIArrow::~QGIArrow ( )

Member Function Documentation

◆ draw()

◆ flip()

void TechDrawGui::QGIArrow::flip ( )

◆ getDirection()

Base::Vector3d TechDrawGui::QGIArrow::getDirection ( void  )

Referenced by draw().

◆ getDirMode()

bool TechDrawGui::QGIArrow::getDirMode ( )

◆ getOverlapAdjust()

◆ getPrefArrowSize()

◆ getPrefArrowStyle()

int QGIArrow::getPrefArrowStyle ( )
static

◆ getSize()

double TechDrawGui::QGIArrow::getSize ( void  )

◆ getStyle()

int TechDrawGui::QGIArrow::getStyle ( )

◆ isFlipped()

bool TechDrawGui::QGIArrow::isFlipped ( )

Referenced by draw().

◆ makeDot()

QPainterPath QGIArrow::makeDot ( double  length,
double  width,
bool  flipped 
)
protected

◆ makeFilledTriangle() [1/2]

QPainterPath QGIArrow::makeFilledTriangle ( Base::Vector3d  dir,
double  length,
double  width 
)
protected

◆ makeFilledTriangle() [2/2]

QPainterPath QGIArrow::makeFilledTriangle ( double  length,
double  width,
bool  flipped 
)
protected

◆ makeForkArrow() [1/2]

QPainterPath QGIArrow::makeForkArrow ( Base::Vector3d  dir,
double  length,
double  width 
)
protected

◆ makeForkArrow() [2/2]

QPainterPath QGIArrow::makeForkArrow ( double  length,
double  width,
bool  flipped 
)
protected

◆ makeHashMark() [1/2]

◆ makeHashMark() [2/2]

QPainterPath QGIArrow::makeHashMark ( double  length,
double  width,
bool  flipped 
)
protected

◆ makeOpenArrow() [1/2]

QPainterPath QGIArrow::makeOpenArrow ( Base::Vector3d  dir,
double  length,
double  width 
)
protected

◆ makeOpenArrow() [2/2]

QPainterPath QGIArrow::makeOpenArrow ( double  length,
double  width,
bool  flipped 
)
protected

◆ makeOpenDot()

QPainterPath QGIArrow::makeOpenDot ( double  length,
double  width,
bool  flipped 
)
protected

◆ makePyramid() [1/2]

◆ makePyramid() [2/2]

QPainterPath QGIArrow::makePyramid ( double  length,
bool  flipped 
)
protected

◆ paint()

void QGIArrow::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget widget = nullptr 
)
virtual

◆ setDirection() [1/2]

void TechDrawGui::QGIArrow::setDirection ( Base::Vector3d  v)

◆ setDirection() [2/2]

void TechDrawGui::QGIArrow::setDirection ( double  angle)

◆ setDirMode()

void TechDrawGui::QGIArrow::setDirMode ( bool  b)

◆ setFlipped()

void TechDrawGui::QGIArrow::setFlipped ( bool  flipped)

◆ setSize()

◆ setStyle()

◆ type()

int TechDrawGui::QGIArrow::type ( ) const

The documentation for this class was generated from the following files: