TechDrawGui::QGIGhostHighlight Class Reference

#include <QGIGhostHighlight.h>

Public Types

enum  { Type = QGraphicsItem::UserType + 177 }
 
- Public Types inherited from TechDrawGui::QGIHighlight
enum  { Type = QGraphicsItem::UserType + 176 }
 
- Public Types inherited from TechDrawGui::QGIDecoration
enum  { Type = QGraphicsItem::UserType + 173 }
 

Signals

void positionChange (QPointF p)
 

Public Member Functions

 QGIGhostHighlight ()
 
void setInteractive (bool state)
 
void setRadius (double r)
 
int type () const override
 
 ~QGIGhostHighlight ()
 
- Public Member Functions inherited from TechDrawGui::QGIHighlight
virtual void draw () override
 
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr) override
 
 QGIHighlight ()
 
void setBounds (double x1, double y1, double x2, double y2)
 
void setFont (QFont f, double fsize)
 
void setInteractive (bool state)
 
void setReference (const char *sym)
 
int type () const override
 
 ~QGIHighlight ()
 
- Public Member Functions inherited from TechDrawGui::QGIDecoration
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 QVariant itemChange (GraphicsItemChange change, const QVariant &value) override
 
virtual void mousePressEvent (QGraphicsSceneMouseEvent *event) override
 
virtual void mouseReleaseEvent (QGraphicsSceneMouseEvent *event) override
 
- Protected Member Functions inherited from TechDrawGui::QGIHighlight
QColor getHighlightColor ()
 
Qt::PenStyle getHighlightStyle ()
 
int getHoleStyle (void)
 
void makeHighlight ()
 
void makeReference ()
 
void setTools ()
 
- Protected Member Functions inherited from TechDrawGui::QGIDecoration
virtual QColor prefNormalColor (void)
 
virtual QColor prefPreColor (void)
 
virtual QColor prefSelectColor (void)
 
void setPrettyNormal ()
 
void setPrettyPre ()
 
void setPrettySel ()
 

Protected Attributes

bool m_dragging
 
- Protected Attributes inherited from TechDrawGui::QGIDecoration
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

◆ QGIGhostHighlight()

◆ ~QGIGhostHighlight()

QGIGhostHighlight::~QGIGhostHighlight ( )

Member Function Documentation

◆ itemChange()

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

◆ mousePressEvent()

void QGIGhostHighlight::mousePressEvent ( QGraphicsSceneMouseEvent *  event)
overrideprotectedvirtual

References m_dragging.

◆ mouseReleaseEvent()

void QGIGhostHighlight::mouseReleaseEvent ( QGraphicsSceneMouseEvent *  event)
overrideprotectedvirtual

References m_dragging, and positionChange().

◆ positionChange

void TechDrawGui::QGIGhostHighlight::positionChange ( QPointF  p)
signal

Referenced by mouseReleaseEvent().

◆ setInteractive()

void QGIGhostHighlight::setInteractive ( bool  state)

Referenced by QGIGhostHighlight().

◆ setRadius()

◆ type()

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

Member Data Documentation

◆ m_dragging

bool TechDrawGui::QGIGhostHighlight::m_dragging
protected

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