#include <QGIViewAnnotation.h>
Public Types | |
enum { Type = QGraphicsItem::UserType + 120 } | |
![]() | |
enum { Type = QGraphicsItem::UserType + 101 } | |
Public Member Functions | |
virtual void draw () override | |
QGIViewAnnotation () | |
virtual void rotateView (void) override | |
void setViewAnnoFeature (TechDraw::DrawViewAnnotation *obj) | |
int type () const override | |
virtual void updateView (bool update=false) override | |
~QGIViewAnnotation ()=default | |
m_textItem belongs to this group and will be deleted by Qt More... | |
![]() | |
virtual void addArbitraryItem (QGraphicsItem *qgi) | |
void alignTo (QGraphicsItem *, const QString &alignment) | |
virtual QRectF boundingRect () const override | |
virtual void drawBorder (void) | |
virtual void drawCaption (void) | |
QGIViewClip * getClipGroup (void) | |
virtual QColor getCurrentColor (void) | |
virtual bool getFrameState (void) | |
MDIViewPage * getMDIViewPage (void) const | |
virtual QColor getNormalColor (void) | |
virtual QColor getPreColor (void) | |
double getScale (void) | |
virtual QColor getSelectColor (void) | |
virtual QColor getSettingColor (void) | |
const char * getViewName () const | |
const std::string getViewNameAsString () const | |
TechDraw::DrawView * getViewObject () const | |
virtual void isVisible (bool state) | |
virtual bool isVisible (void) | |
void makeMark (Base::Vector3d v, QColor c=Qt::red) | |
void makeMark (double x, double y, QColor c=Qt::red) | |
void makeMark (QPointF p, QColor c=Qt::red) | |
virtual void mousePressEvent (QGraphicsSceneMouseEvent *event) override | |
virtual void mouseReleaseEvent (QGraphicsSceneMouseEvent *event) override | |
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr) override | |
QGIView () | |
virtual void removeChild (QGIView *child) | |
virtual void setGroupSelection (bool b) | |
void setLocked (bool b) | |
virtual void setSettingColor (QColor c) | |
void setViewFeature (TechDraw::DrawView *obj) | |
virtual void toggleCache (bool state) | |
int type () const override | |
virtual ~QGIView () | |
void setPosition (qreal x, qreal y) | |
Methods to ensure that Y-Coordinates are orientated correctly. More... | |
qreal getY () | |
bool isInnerView () | |
void isInnerView (bool state) | |
double getYInClip (double y) | |
Protected Member Functions | |
void drawAnnotation () | |
QVariant itemChange (GraphicsItemChange change, const QVariant &value) override | |
![]() | |
virtual QRectF customChildrenBoundingRect (void) const | |
void dumpRect (const char *text, QRectF r) | |
Base::Reference< ParameterGrp > getParmGroupCol (void) | |
QGIView * getQGIVByName (std::string name) | |
virtual void hoverEnterEvent (QGraphicsSceneHoverEvent *event) override | |
virtual void hoverLeaveEvent (QGraphicsSceneHoverEvent *event) override | |
Protected Attributes | |
QColor m_colNormal | |
QColor m_colPre | |
QColor m_colSel | |
QGCustomText * m_textItem | |
![]() | |
QHash< QString, QGraphicsItem * > alignHash | |
QGCustomBorder * m_border | |
QBrush m_brush | |
QGICaption * m_caption | |
QColor m_colCurrent | |
QColor m_colNormal | |
QColor m_colPre | |
QColor m_colSel | |
QColor m_colSetting | |
QPen m_decorPen | |
QFont m_font | |
bool m_innerView | |
QGCustomLabel * m_label | |
QGCustomImage * m_lock | |
bool m_locked | |
double m_lockHeight | |
double m_lockWidth | |
QPen m_pen | |
std::string viewName | |
TechDraw::DrawView * viewObj | |
Additional Inherited Members | |
![]() | |
virtual void onSourceChange (TechDraw::DrawView *newParent) | |
![]() | |
static int calculateFontPixelSize (double sizeInMillimetres) | |
static int calculateFontPixelWidth (const QFont &font) | |
static double getDimFontSize (void) | |
static QGVPage * getGraphicsView (TechDraw::DrawView *dv) | |
static QString getPrefFont (void) | |
static double getPrefFontSize (void) | |
static Gui::ViewProvider * getViewProvider (App::DocumentObject *obj) | |
![]() | |
boost::signals2::signal< void(QGIView *, QPointF)> signalSelectPoint | |
![]() | |
static const double DefaultFontSizeInMM = 5.0 | |
Member Enumeration Documentation
◆ anonymous enum
Constructor & Destructor Documentation
◆ QGIViewAnnotation()
|
explicit |
References m_textItem.
◆ ~QGIViewAnnotation()
|
default |
m_textItem belongs to this group and will be deleted by Qt
Member Function Documentation
◆ draw()
|
overridevirtual |
Reimplemented from TechDrawGui::QGIView.
References TechDrawGui::QGIView::draw(), drawAnnotation(), TechDrawGui::QGIView::isVisible(), and rotateView().
Referenced by updateView().
◆ drawAnnotation()
|
protected |
References App::Color::asCSSString(), TechDrawGui::QGIView::calculateFontPixelSize(), TechDrawGui::QGCustomText::centerAt(), Base::Console(), Base::Tools::escapedUnicodeToUtf8(), TechDrawGui::QGIView::getViewObject(), TechDrawGui::Rez::guiX(), m_textItem, and Base::ConsoleSingleton::Warning().
Referenced by draw().
◆ itemChange()
|
overrideprotectedvirtual |
Reimplemented from TechDrawGui::QGIView.
References TechDrawGui::QGIView::itemChange().
◆ rotateView()
|
overridevirtual |
Reimplemented from TechDrawGui::QGIView.
References App::PropertyQuantity::getValue(), TechDrawGui::QGIView::getViewObject(), m_textItem, and TechDraw::DrawView::Rotation.
Referenced by draw().
◆ setViewAnnoFeature()
void QGIViewAnnotation::setViewAnnoFeature | ( | TechDraw::DrawViewAnnotation * | obj | ) |
References TechDrawGui::QGIView::setViewFeature().
◆ type()
|
override |
◆ updateView()
|
overridevirtual |
Reimplemented from TechDrawGui::QGIView.
References draw(), TechDrawGui::QGIView::getViewObject(), and TechDrawGui::QGIView::updateView().
Member Data Documentation
◆ m_colNormal
|
protected |
◆ m_colPre
|
protected |
◆ m_colSel
|
protected |
◆ m_textItem
|
protected |
Referenced by drawAnnotation(), QGIViewAnnotation(), and rotateView().
The documentation for this class was generated from the following files:
- src/Mod/TechDraw/Gui/QGIViewAnnotation.h
- src/Mod/TechDraw/Gui/QGIViewAnnotation.cpp