4#ifndef QGRAPHICSSCENEINDEX_H
5#define QGRAPHICSSCENEINDEX_H
18#include <QtWidgets/private/qtwidgetsglobal_p.h>
21#include <private/qobject_p.h>
23#include <QtCore/qnamespace.h>
24#include <QtCore/qobject.h>
25#include <QtGui/qtransform.h>
62 virtual void updateSceneRect(
const QRectF &
rect);
112 for (
int i = 0;
i < tli.
size(); ++
i)
116 for (
int i = 0;
i <
n / 2; ++
i)
The QGraphicsItem class is the base class for all graphical items in a QGraphicsScene.
GraphicsItemChange
This enum describes the state changes that are notified by QGraphicsItem::itemChange().
The QGraphicsSceneBspTreeIndex class provides an implementation of a BSP indexing algorithm for disco...
static bool itemCollidesWithPath(const QGraphicsItem *item, const QPainterPath &path, Qt::ItemSelectionMode mode)
void items_helper(const QRectF &rect, QGraphicsSceneIndexIntersector intersect, QList< QGraphicsItem * > *items, const QTransform &viewTransform, Qt::ItemSelectionMode mode, Qt::SortOrder order, const void *intersectData) const
void recursive_items_helper(QGraphicsItem *item, QRectF exposeRect, QGraphicsSceneIndexIntersector intersect, QList< QGraphicsItem * > *items, const QTransform &viewTransform, Qt::ItemSelectionMode mode, qreal parentOpacity, const void *intersectData) const
~QGraphicsSceneIndexPrivate()
Destructor of private scene index.
The QGraphicsSceneIndex class provides a base class to implement a custom indexing algorithm for disc...
virtual QList< QGraphicsItem * > items(Qt::SortOrder order=Qt::DescendingOrder) const =0
This pure virtual function all items in the index and sort them using order.
virtual QList< QGraphicsItem * > estimateItems(const QRectF &rect, Qt::SortOrder order) const =0
virtual void addItem(QGraphicsItem *item)=0
This pure virtual function inserts an item to the scene index.
virtual void removeItem(QGraphicsItem *item)=0
This pure virtual function removes an item to the scene index.
The QGraphicsScene class provides a surface for managing a large number of 2D graphical items.
qsizetype size() const noexcept
void swapItemsAt(qsizetype i, qsizetype j)
const_reference at(qsizetype i) const noexcept
\inmodule QtCore\reentrant
The QPolygonF class provides a list of points using floating point precision.
\inmodule QtCore\reentrant
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
bool(* QGraphicsSceneIndexIntersector)(const QGraphicsItem *item, const QRectF &exposeRect, Qt::ItemSelectionMode mode, const QTransform &deviceTransform, const void *data)
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLdouble GLdouble GLdouble GLdouble q
GLsizei const GLchar *const * path
GLfixed GLfixed GLint GLint order
#define Q_AUTOTEST_EXPORT
#define QT_REQUIRE_CONFIG(feature)
rect deviceTransform(view->viewportTransform()).map(QPointF(0