TechDrawGui::QGIDatumLabel Class Reference

#include <QGIViewDimension.h>

Public Types

enum  { Type = QGraphicsItem::UserType + 107 }
 

Signals

void dragFinished ()
 
void dragging (bool)
 
void hover (bool state)
 
void selected (bool state)
 
void setPretty (int state)
 

Public Member Functions

virtual QRectF boundingRect () const override
 
QGCustomTextgetDimText (void)
 
QFont getFont (void)
 
double getLineWidth (void)
 
double getTolAdjust (void)
 
QGCustomTextgetTolTextOver (void)
 
QGCustomTextgetTolTextUnder (void)
 
bool isFramed (void)
 
virtual void mouseReleaseEvent (QGraphicsSceneMouseEvent *event) override
 
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr) override
 
 QGIDatumLabel ()
 
void setColor (QColor c)
 
void setDimString (QString t)
 
void setDimString (QString t, qreal maxWidth)
 
void setDimText (QGCustomText *newText)
 
void setFont (QFont f)
 
void setFramed (bool framed)
 
void setLabelCenter ()
 
void setLineWidth (double lineWidth)
 
void setPosFromCenter (const double &xCenter, const double &yCenter)
 
void setPrettyNormal (void)
 
void setPrettyPre (void)
 
void setPrettySel (void)
 
void setToleranceString ()
 
void setTolTextOver (QGCustomText *newTol)
 
void setTolTextUnder (QGCustomText *newTol)
 
void setUnitString (QString t)
 
int type () const override
 
double X () const
 
double Y () const
 
virtual ~QGIDatumLabel ()=default
 

Public Attributes

QGIViewDimensionparent
 
std::vector< intseps
 
bool verticalSep
 

Protected Member Functions

int getPrecision (void)
 
virtual void hoverEnterEvent (QGraphicsSceneHoverEvent *event) override
 
virtual void hoverLeaveEvent (QGraphicsSceneHoverEvent *event) override
 
virtual QVariant itemChange (GraphicsItemChange change, const QVariant &value) override
 
virtual void mouseDoubleClickEvent (QGraphicsSceneMouseEvent *event) override
 
virtual void mouseMoveEvent (QGraphicsSceneMouseEvent *event) override
 
virtual void mousePressEvent (QGraphicsSceneMouseEvent *event) override
 

Protected Attributes

QColor m_colNormal
 
bool m_ctrl
 
QGCustomTextm_dimText
 
bool m_isFramed
 
double m_lineWidth
 
QGCustomTextm_tolTextOver
 
QGCustomTextm_tolTextUnder
 
QGCustomTextm_unitText
 
double posX
 
double posY
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
Type 

Constructor & Destructor Documentation

◆ QGIDatumLabel()

◆ ~QGIDatumLabel()

virtual TechDrawGui::QGIDatumLabel::~QGIDatumLabel ( )
virtualdefault

Member Function Documentation

◆ boundingRect()

◆ dragFinished

void TechDrawGui::QGIDatumLabel::dragFinished ( )
signal

Referenced by mouseReleaseEvent().

◆ dragging

void TechDrawGui::QGIDatumLabel::dragging ( bool  )
signal

Referenced by itemChange().

◆ getDimText()

QGCustomText * TechDrawGui::QGIDatumLabel::getDimText ( void  )

◆ getFont()

QFont TechDrawGui::QGIDatumLabel::getFont ( void  )

◆ getLineWidth()

double TechDrawGui::QGIDatumLabel::getLineWidth ( void  )

References m_lineWidth.

◆ getPrecision()

◆ getTolAdjust()

double QGIDatumLabel::getTolAdjust ( void  )

◆ getTolTextOver()

QGCustomText * TechDrawGui::QGIDatumLabel::getTolTextOver ( void  )

◆ getTolTextUnder()

QGCustomText * TechDrawGui::QGIDatumLabel::getTolTextUnder ( void  )

◆ hover

void TechDrawGui::QGIDatumLabel::hover ( bool  state)
signal

Referenced by hoverEnterEvent(), and hoverLeaveEvent().

◆ hoverEnterEvent()

void QGIDatumLabel::hoverEnterEvent ( QGraphicsSceneHoverEvent *  event)
overrideprotectedvirtual

◆ hoverLeaveEvent()

void QGIDatumLabel::hoverLeaveEvent ( QGraphicsSceneHoverEvent *  event)
overrideprotectedvirtual

◆ isFramed()

bool TechDrawGui::QGIDatumLabel::isFramed ( void  )

References m_isFramed.

◆ itemChange()

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

◆ mouseDoubleClickEvent()

void QGIDatumLabel::mouseDoubleClickEvent ( QGraphicsSceneMouseEvent *  event)
overrideprotectedvirtual

◆ mouseMoveEvent()

void QGIDatumLabel::mouseMoveEvent ( QGraphicsSceneMouseEvent *  event)
overrideprotectedvirtual

◆ mousePressEvent()

void QGIDatumLabel::mousePressEvent ( QGraphicsSceneMouseEvent *  event)
overrideprotectedvirtual

References m_ctrl.

◆ mouseReleaseEvent()

void QGIDatumLabel::mouseReleaseEvent ( QGraphicsSceneMouseEvent *  event)
overridevirtual

References dragFinished(), and m_ctrl.

◆ paint()

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

◆ selected

void TechDrawGui::QGIDatumLabel::selected ( bool  state)
signal

◆ setColor()

◆ setDimString() [1/2]

void QGIDatumLabel::setDimString ( QString  t)

◆ setDimString() [2/2]

void QGIDatumLabel::setDimString ( QString  t,
qreal  maxWidth 
)

References m_dimText.

◆ setDimText()

void TechDrawGui::QGIDatumLabel::setDimText ( QGCustomText newText)

References m_dimText.

◆ setFont()

void QGIDatumLabel::setFont ( QFont  f)

◆ setFramed()

void TechDrawGui::QGIDatumLabel::setFramed ( bool  framed)

◆ setLabelCenter()

void QGIDatumLabel::setLabelCenter ( )

◆ setLineWidth()

void TechDrawGui::QGIDatumLabel::setLineWidth ( double  lineWidth)

◆ setPosFromCenter()

◆ setPretty

void TechDrawGui::QGIDatumLabel::setPretty ( int  state)
signal

◆ setPrettyNormal()

void QGIDatumLabel::setPrettyNormal ( void  )

◆ setPrettyPre()

void QGIDatumLabel::setPrettyPre ( void  )

◆ setPrettySel()

void QGIDatumLabel::setPrettySel ( void  )

◆ setToleranceString()

void QGIDatumLabel::setToleranceString ( )

◆ setTolTextOver()

void TechDrawGui::QGIDatumLabel::setTolTextOver ( QGCustomText newTol)

References m_tolTextOver.

◆ setTolTextUnder()

void TechDrawGui::QGIDatumLabel::setTolTextUnder ( QGCustomText newTol)

References m_tolTextOver.

◆ setUnitString()

void QGIDatumLabel::setUnitString ( QString  t)

References m_unitText.

◆ type()

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

◆ X()

◆ Y()

Member Data Documentation

◆ m_colNormal

QColor TechDrawGui::QGIDatumLabel::m_colNormal
protected

Referenced by setColor().

◆ m_ctrl

bool TechDrawGui::QGIDatumLabel::m_ctrl
protected

◆ m_dimText

◆ m_isFramed

bool TechDrawGui::QGIDatumLabel::m_isFramed
protected

◆ m_lineWidth

double TechDrawGui::QGIDatumLabel::m_lineWidth
protected

◆ m_tolTextOver

◆ m_tolTextUnder

◆ m_unitText

QGCustomText* TechDrawGui::QGIDatumLabel::m_unitText
protected

◆ parent

◆ posX

double TechDrawGui::QGIDatumLabel::posX
protected

Referenced by QGIDatumLabel(), setLabelCenter(), and X().

◆ posY

double TechDrawGui::QGIDatumLabel::posY
protected

Referenced by QGIDatumLabel(), setLabelCenter(), and Y().

◆ seps

std::vector<int> TechDrawGui::QGIDatumLabel::seps

◆ verticalSep

bool TechDrawGui::QGIDatumLabel::verticalSep

Referenced by QGIDatumLabel().


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