42 #ifndef QGRAPHICSSCENEINDEX_H 43 #define QGRAPHICSSCENEINDEX_H 58 #include <private/qobject_p.h> 60 #include <QtCore/qnamespace.h> 61 #include <QtCore/qobject.h> 62 #include <QtGui/qtransform.h> 70 #if !defined(QT_NO_GRAPHICSVIEW) || (QT_EDITION & QT_MODULE_GRAPHICSVIEW) != QT_MODULE_GRAPHICSVIEW 79 template<
typename T>
class QList;
105 virtual void updateSceneRect(
const QRectF &rect);
108 virtual void clear();
114 virtual void prepareBoundingRectChange(
const QGraphicsItem *item);
158 for (
int i = 0; i < tli.
size(); ++i)
159 recursive_items_helper(tli.
at(i), rect, intersector, items, viewTransform, mode);
161 const int n = items->
size();
162 for (
int i = 0; i < n / 2; ++i)
163 items->swap(i, n - i - 1);
176 #endif // QT_NO_GRAPHICSVIEW 182 #endif // QGRAPHICSSCENEINDEX_H
The QGraphicsScene class provides a surface for managing a large number of 2D graphical items...
#define QT_END_NAMESPACE
This macro expands to.
The QPainterPath class provides a container for painting operations, enabling graphical shapes to be ...
The QPointF class defines a point in the plane using floating point precision.
The QGraphicsItem class is the base class for all graphical items in a QGraphicsScene.
static void clear(QVariant::Private *d)
The QGraphicsSceneBspTreeIndex class provides an implementation of a BSP indexing algorithm for disco...
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
QGraphicsSceneIndexPointIntersector * pointIntersector
GraphicsItemChange
This enum describes the state changes that are notified by QGraphicsItem::itemChange().
The QObject class is the base class of all Qt objects.
QGraphicsSceneIndexPathIntersector * pathIntersector
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QRectF class defines a rectangle in the plane using floating point precision. ...
QGraphicsSceneIndexIntersector()
const T & at(int i) const
Returns the item at index position i in the list.
The QPolygonF class provides a vector of points using floating point precision.
The QGraphicsSceneIndex class provides a base class to implement a custom indexing algorithm for disc...
virtual ~QGraphicsSceneIndexIntersector()
#define Q_DECLARE_PUBLIC(Class)
int size() const
Returns the number of items in the list.
#define Q_AUTOTEST_EXPORT
#define Q_DECLARE_PRIVATE(Class)
QGraphicsSceneIndexRectIntersector * rectIntersector
The QList class is a template class that provides lists.
void items_helper(const QRectF &rect, QGraphicsSceneIndexIntersector *intersector, QList< QGraphicsItem *> *items, const QTransform &viewTransform, Qt::ItemSelectionMode mode, Qt::SortOrder order) const