marble
MarbleGraphicsItem.cpp
Go to the documentation of this file.
61 const QSize neededPixmapSize = size().toSize() + QSize( 1, 1 ); // adding a pixel for rounding errors
QSize size() const
virtual void setProjection(const ViewportParams *viewport)=0
Type type() const
QRect toRect() const
CacheMode cacheMode() const
Returns the cache mode of the item.
Definition: MarbleGraphicsItem.cpp:154
void setRenderHint(RenderHint hint, bool on)
virtual QSizeF contentSize() const
Returns the size of the content of the MarbleGraphicsItem.
Definition: MarbleGraphicsItem.cpp:205
void fill(const QColor &color)
qreal x() const
qreal y() const
QSet< MarbleGraphicsItem * > m_children
Definition: MarbleGraphicsItem_p.h:109
bool isValid() const
void save()
void setLayout(AbstractMarbleGraphicsLayout *layout)
Set the layout of the graphics item.
Definition: MarbleGraphicsItem.cpp:146
void setLeft(qreal x)
virtual void setContentSize(const QSizeF &size)
Set the size of the content of the item.
Definition: MarbleGraphicsItem.cpp:210
MarbleGraphicsItem *const m_parent
Definition: MarbleGraphicsItem_p.h:107
virtual QList< QPointF > absolutePositions() const =0
bool m_visibility
Definition: MarbleGraphicsItem_p.h:104
bool contains(const QPointF &point) const
Returns true if the Item contains point in parent coordinates.
Definition: MarbleGraphicsItem.cpp:110
void append(const T &value)
QSize toSize() const
void drawPixmap(const QRectF &target, const QPixmap &pixmap, const QRectF &source)
bool contains(const QPoint &point, bool proper) const
MarbleGraphicsItem(MarbleGraphicsItemPrivate *d_ptr)
Definition: MarbleGraphicsItem.cpp:28
A public class that controls what is visible in the viewport of a Marble map.
Definition: ViewportParams.h:44
QList< QRectF > boundingRects() const
Used to get the set of screen bounding rects.
Definition: MarbleGraphicsItem.cpp:119
This file contains the headers for ViewportParams.
MarbleGraphicsItem::CacheMode m_cacheMode
Definition: MarbleGraphicsItem_p.h:100
void restore()
virtual QList< QPointF > positions() const =0
QPoint toPoint() const
void setCacheMode(CacheMode mode)
Set the cache mode of the item.
Definition: MarbleGraphicsItem.cpp:159
void updateChildPositions()
Definition: MarbleGraphicsItem_p.h:83
void setTop(qreal y)
void setVisible(bool visible)
Makes the item visible or invisible, depending on visible.
Definition: MarbleGraphicsItem.cpp:182
virtual QRectF contentRect() const
Returns the rect of the content in item coordinates.
Definition: MarbleGraphicsItem.cpp:215
void translate(const QPointF &offset)
AbstractMarbleGraphicsLayout * layout() const
Returns the layout of the MarbleGraphicsItem.
Definition: MarbleGraphicsItem.cpp:141
bool contains(const QPointF &point) const
bool paintEvent(QPainter *painter, const ViewportParams *viewport)
Paints the item on the screen in view coordinates.
Definition: MarbleGraphicsItem.cpp:38
AbstractMarbleGraphicsLayout * m_layout
Definition: MarbleGraphicsItem_p.h:112
virtual void paint(QPainter *painter)
Paints the item in item coordinates.
Definition: MarbleGraphicsItem.cpp:220
bool isNull() const
virtual bool eventFilter(QObject *object, QEvent *e)
Definition: MarbleGraphicsItem.cpp:225
bool m_repaintNeeded
Definition: MarbleGraphicsItem_p.h:98
virtual void setProjection(const ViewportParams *viewport)
Definition: MarbleGraphicsItem.cpp:272
virtual ~MarbleGraphicsItem()
Definition: MarbleGraphicsItem.cpp:33
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.