TechDrawGui::QGIDecoration Class Reference

#include <QGIDecoration.h>

Public Types

enum  { Type = QGraphicsItem::UserType + 173 }
 

Public Member Functions

virtual QRectF boundingRect () const
 
virtual void draw ()
 
QColor getColor (void)
 
void makeMark (Base::Vector3d v)
 
void makeMark (double x, double y)
 
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr)
 
 QGIDecoration (void)
 
void setColor (QColor c)
 
void setFill (Qt::BrushStyle bs)
 
void setStyle (Qt::PenStyle s)
 
void setWidth (double w)
 
int type () const
 
 ~QGIDecoration ()
 

Protected Member Functions

virtual QColor prefNormalColor (void)
 
virtual QColor prefPreColor (void)
 
virtual QColor prefSelectColor (void)
 
void setPrettyNormal ()
 
void setPrettyPre ()
 
void setPrettySel ()
 

Protected Attributes

QBrush m_brush
 
Qt::BrushStyle m_brushCurrent
 
QColor m_colCurrent
 
QColor m_colNormal
 
QPen m_pen
 
Qt::PenStyle m_styleCurrent
 
double m_width
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
Type 

Constructor & Destructor Documentation

◆ QGIDecoration()

QGIDecoration::QGIDecoration ( void  )
explicit

References setWidth().

◆ ~QGIDecoration()

TechDrawGui::QGIDecoration::~QGIDecoration ( )

Member Function Documentation

◆ boundingRect()

QRectF QGIDecoration::boundingRect ( ) const
virtual

Reimplemented in TechDrawGui::QGITile.

◆ draw()

void QGIDecoration::draw ( void  )
virtual

◆ getColor()

◆ makeMark() [1/2]

void QGIDecoration::makeMark ( Base::Vector3d  v)

References makeMark().

◆ makeMark() [2/2]

void QGIDecoration::makeMark ( double  x,
double  y 
)

◆ paint()

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

◆ prefNormalColor()

QColor QGIDecoration::prefNormalColor ( void  )
protectedvirtual

◆ prefPreColor()

QColor QGIDecoration::prefPreColor ( void  )
protectedvirtual

◆ prefSelectColor()

QColor QGIDecoration::prefSelectColor ( void  )
protectedvirtual

◆ setColor()

◆ setFill()

void TechDrawGui::QGIDecoration::setFill ( Qt::BrushStyle  bs)

◆ setPrettyNormal()

void TechDrawGui::QGIDecoration::setPrettyNormal ( )
protected

◆ setPrettyPre()

void TechDrawGui::QGIDecoration::setPrettyPre ( )
protected

◆ setPrettySel()

void TechDrawGui::QGIDecoration::setPrettySel ( )
protected

◆ setStyle()

◆ setWidth()

◆ type()

int TechDrawGui::QGIDecoration::type ( void  ) const

Member Data Documentation

◆ m_brush

QBrush TechDrawGui::QGIDecoration::m_brush
protected

◆ m_brushCurrent

Qt::BrushStyle TechDrawGui::QGIDecoration::m_brushCurrent
protected

◆ m_colCurrent

◆ m_colNormal

QColor TechDrawGui::QGIDecoration::m_colNormal
protected

◆ m_pen

◆ m_styleCurrent

Qt::PenStyle TechDrawGui::QGIDecoration::m_styleCurrent
protected

◆ m_width


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