TechDrawGui::QGIPrimPath Class Reference

#include <QGIPrimPath.h>

Public Types

enum  { Type = QGraphicsItem::UserType + 170 }
 

Public Member Functions

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

Protected Member Functions

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)
 

Protected Attributes

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

◆ QGIPrimPath()

◆ ~QGIPrimPath()

TechDrawGui::QGIPrimPath::~QGIPrimPath ( )

Member Function Documentation

◆ getFillColor()

QColor TechDrawGui::QGIPrimPath::getFillColor ( void  )

◆ getFillStyle()

Qt::BrushStyle TechDrawGui::QGIPrimPath::getFillStyle ( )

◆ getNormalColor()

◆ getParmGroup()

Base::Reference< ParameterGrp > QGIPrimPath::getParmGroup ( void  )
protected

◆ getPreColor()

QColor QGIPrimPath::getPreColor ( void  )
protectedvirtual

◆ getSelectColor()

QColor QGIPrimPath::getSelectColor ( void  )
protectedvirtual

◆ getStyle()

Qt::PenStyle TechDrawGui::QGIPrimPath::getStyle ( )

◆ getWidth()

virtual double TechDrawGui::QGIPrimPath::getWidth ( void  )
virtual

◆ hoverEnterEvent()

void QGIPrimPath::hoverEnterEvent ( QGraphicsSceneHoverEvent *  event)
overrideprotectedvirtual

◆ hoverLeaveEvent()

void QGIPrimPath::hoverLeaveEvent ( QGraphicsSceneHoverEvent *  event)
overrideprotectedvirtual

◆ itemChange()

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

◆ mousePressEvent()

void QGIPrimPath::mousePressEvent ( QGraphicsSceneMouseEvent *  event)
overrideprotectedvirtual

◆ paint()

◆ prefCapStyle()

Qt::PenCapStyle QGIPrimPath::prefCapStyle ( void  )
protectedvirtual

◆ resetFill()

void QGIPrimPath::resetFill ( )

◆ setCapStyle()

void QGIPrimPath::setCapStyle ( Qt::PenCapStyle  c)
virtual

References m_capStyle, and m_pen.

◆ setFill() [1/2]

void QGIPrimPath::setFill ( QBrush  b)

◆ setFill() [2/2]

◆ setFillColor()

◆ setFillOverride()

void TechDrawGui::QGIPrimPath::setFillOverride ( bool  b)

◆ setFillStyle()

◆ setHighlighted()

void QGIPrimPath::setHighlighted ( bool  state)

◆ setNormalColor()

◆ setPrettyNormal()

◆ setPrettyPre()

◆ setPrettySel()

◆ setStyle() [1/2]

void QGIPrimPath::setStyle ( int  s)

References m_styleCurrent.

◆ setStyle() [2/2]

◆ setWidth()

◆ shape()

◆ type()

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

Member Data Documentation

◆ isHighlighted

bool TechDrawGui::QGIPrimPath::isHighlighted
protected

Referenced by QGIPrimPath(), and setHighlighted().

◆ m_brush

◆ m_capStyle

Qt::PenCapStyle TechDrawGui::QGIPrimPath::m_capStyle
protected

Referenced by QGIPrimPath(), and setCapStyle().

◆ m_colCurrent

◆ m_colDefFill

QColor TechDrawGui::QGIPrimPath::m_colDefFill
protected

◆ m_colNormal

QColor TechDrawGui::QGIPrimPath::m_colNormal
protected

◆ m_colNormalFill

QColor TechDrawGui::QGIPrimPath::m_colNormalFill
protected

◆ m_colOverride

bool TechDrawGui::QGIPrimPath::m_colOverride
protected

◆ m_fillColorCurrent

QColor TechDrawGui::QGIPrimPath::m_fillColorCurrent
protected

◆ m_fillOverride

bool TechDrawGui::QGIPrimPath::m_fillOverride
protected

Referenced by setPrettyPre(), and setPrettySel().

◆ m_fillStyleCurrent

◆ m_pen

QPen TechDrawGui::QGIPrimPath::m_pen
protected

◆ m_styleCurrent

Qt::PenStyle TechDrawGui::QGIPrimPath::m_styleCurrent
protected

◆ m_styleDef

Qt::BrushStyle TechDrawGui::QGIPrimPath::m_styleDef
protected

◆ m_styleNormal

Qt::BrushStyle TechDrawGui::QGIPrimPath::m_styleNormal
protected

◆ m_styleSelect

Qt::BrushStyle TechDrawGui::QGIPrimPath::m_styleSelect
protected

◆ m_width


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