#include <QGIViewImage.h>
Public Types | |
enum | { Type = QGraphicsItem::UserType + 200 } |
Public Types inherited from TechDrawGui::QGIView | |
enum | { Type = QGraphicsItem::UserType + 101 } |
Public Member Functions | |
virtual void | draw () override |
QGIViewImage () | |
virtual void | rotateView (void) override |
void | setViewImageFeature (TechDraw::DrawViewImage *obj) |
int | type () const override |
virtual void | updateView (bool update=false) override |
~QGIViewImage () | |
Public Member Functions inherited from TechDrawGui::QGIView | |
virtual void | addArbitraryItem (QGraphicsItem *qgi) |
void | alignTo (QGraphicsItem *, const QString &alignment) |
virtual QRectF | boundingRect () const override |
virtual void | draw (void) |
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) |
void | mouseMoveEvent (QGraphicsSceneMouseEvent *event) override |
void | mousePressEvent (QGraphicsSceneMouseEvent *event) override |
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 | rotateView (void) |
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 void | updateView (bool update=false) |
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 | |
virtual void | drawImage () |
QVariant | itemChange (GraphicsItemChange change, const QVariant &value) override |
Protected Member Functions inherited from TechDrawGui::QGIView | |
virtual QRectF | customChildrenBoundingRect (void) const |
void | dumpRect (const char *text, QRectF r) |
Base::Reference< ParameterGrp > | getParmGroupCol (void) |
QGIView * | getQGIVByName (std::string name) |
void | hoverEnterEvent (QGraphicsSceneHoverEvent *event) override |
void | hoverLeaveEvent (QGraphicsSceneHoverEvent *event) override |
QVariant | itemChange (GraphicsItemChange change, const QVariant &value) override |
Protected Attributes | |
QGCustomClip * | m_cliparea |
QGCustomImage * | m_imageItem |
Protected Attributes inherited from TechDrawGui::QGIView | |
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 |
int | m_dragState |
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 | |
Public Slots inherited from TechDrawGui::QGIView | |
virtual void | onSourceChange (TechDraw::DrawView *newParent) |
Static Public Member Functions inherited from TechDrawGui::QGIView | |
static int | calculateFontPixelSize (double sizeInMillimetres) |
static int | calculateFontPixelWidth (const QFont &font) |
static double | getDimFontSize (void) |
static QGSPage * | getGraphicsScene (TechDraw::DrawView *dv) |
static QGVPage * | getGraphicsView (TechDraw::DrawView *dv) |
static QString | getPrefFont (void) |
static double | getPrefFontSize (void) |
static Gui::ViewProvider * | getViewProvider (App::DocumentObject *obj) |
Public Attributes inherited from TechDrawGui::QGIView | |
boost::signals2::signal< void(QGIView *, QPointF)> | signalSelectPoint |
Static Public Attributes inherited from TechDrawGui::QGIView | |
static const double | DefaultFontSizeInMM = 5.0 |
QGIViewImage::QGIViewImage | ( | ) |
QGIViewImage::~QGIViewImage | ( | ) |
|
overridevirtual |
Reimplemented from TechDrawGui::QGIView.
References TechDrawGui::QGCustomClip::centerAt(), TechDrawGui::ViewProviderImage::Crop, drawImage(), App::PropertyBool::getValue(), TechDrawGui::QGIView::getViewObject(), TechDrawGui::QGIView::getViewProvider(), TechDrawGui::Rez::guiX(), TechDrawGui::QGCustomImage::imageSize(), TechDrawGui::QGIView::isVisible(), m_cliparea, m_imageItem, and TechDrawGui::QGCustomClip::setRect().
Referenced by updateView().
|
protectedvirtual |
|
overrideprotected |
References TechDrawGui::QGIView::itemChange().
|
overridevirtual |
Reimplemented from TechDrawGui::QGIView.
References TechDrawGui::QGCustomClip::boundingRect(), App::PropertyQuantity::getValue(), TechDrawGui::QGIView::getViewObject(), m_cliparea, and TechDraw::DrawView::Rotation.
void QGIViewImage::setViewImageFeature | ( | TechDraw::DrawViewImage * | obj | ) |
References TechDrawGui::QGIView::setViewFeature().
|
override |
Referenced by ArchProfile.ProfileTaskPanel::accept(), and ArchProfile.ProfileTaskPanel::retranslateUi().
|
overridevirtual |
Reimplemented from TechDrawGui::QGIView.
References draw(), TechDrawGui::QGIView::getViewObject(), and TechDrawGui::QGIView::updateView().
|
protected |
Referenced by draw(), drawImage(), QGIViewImage(), and rotateView().
|
protected |
Referenced by draw(), drawImage(), and QGIViewImage().