#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< int > seps
 
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::QGIDatumLabel ( )

◆ ~QGIDatumLabel()

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

Member Function Documentation

◆ boundingRect()

◆ dragFinished

void TechDrawGui::QGIDatumLabel::dragFinished ( )
signal

◆ dragging

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

◆ 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

◆ 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

◆ mouseReleaseEvent()

void QGIDatumLabel::mouseReleaseEvent ( QGraphicsSceneMouseEvent *  event)
overridevirtual

◆ paint()

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

◆ selected

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

◆ setColor()

void QGIDatumLabel::setColor ( QColor  c)

◆ setDimString() [1/2]

void QGIDatumLabel::setDimString ( QString  t)

◆ setDimString() [2/2]

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

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

void QGIDatumLabel::setPosFromCenter ( const double &  xCenter,
const double &  yCenter 
)

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

◆ type()

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

◆ X()

double TechDrawGui::QGIDatumLabel::X ( ) const

◆ Y()

double TechDrawGui::QGIDatumLabel::Y ( ) const

Member Data Documentation

◆ m_colNormal

QColor TechDrawGui::QGIDatumLabel::m_colNormal
protected

◆ m_ctrl

bool TechDrawGui::QGIDatumLabel::m_ctrl
protected

◆ m_dimText

QGCustomText* TechDrawGui::QGIDatumLabel::m_dimText
protected

Referenced by getDimText(), getFont(), and setDimText().

◆ m_isFramed

bool TechDrawGui::QGIDatumLabel::m_isFramed
protected

Referenced by isFramed(), and setFramed().

◆ m_lineWidth

double TechDrawGui::QGIDatumLabel::m_lineWidth
protected

Referenced by getLineWidth(), and setLineWidth().

◆ m_tolTextOver

QGCustomText* TechDrawGui::QGIDatumLabel::m_tolTextOver
protected

◆ m_tolTextUnder

QGCustomText* TechDrawGui::QGIDatumLabel::m_tolTextUnder
protected

Referenced by getTolTextUnder().

◆ m_unitText

QGCustomText* TechDrawGui::QGIDatumLabel::m_unitText
protected

◆ parent

◆ posX

double TechDrawGui::QGIDatumLabel::posX
protected

Referenced by X().

◆ posY

double TechDrawGui::QGIDatumLabel::posY
protected

Referenced by Y().

◆ seps

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

◆ verticalSep

bool TechDrawGui::QGIDatumLabel::verticalSep

The documentation for this class was generated from the following files:
  • Sources/FreeCAD/src/Mod/TechDraw/Gui/QGIViewDimension.h
  • Sources/FreeCAD/src/Mod/TechDraw/Gui/QGIViewDimension.cpp