|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Enum
com.trolltech.qt.gui.QGraphicsItem.CacheMode
public static final class QGraphicsItem.CacheMode
This enum describes QGraphicsItem
's cache modes. Caching is used to speed up rendering by allocating and rendering to an off-screen pixel buffer, which can be reused when the item requires redrawing. For some paint devices, the cache is stored directly in graphics memory, which makes rendering very quick.
QGraphicsItem::setCacheMode()
.
Field Summary | |
---|---|
static QGraphicsItem.CacheMode |
DeviceCoordinateCache
Caching is enabled at the paint device level, in device coordinates. |
static QGraphicsItem.CacheMode |
ItemCoordinateCache
Caching is enabled for the item's logical (local) coordinate system. |
static QGraphicsItem.CacheMode |
NoCache
The default; all item caching is disabled. |
Method Summary | |
---|---|
static QGraphicsItem.CacheMode |
resolve(int value)
|
int |
value()
This function should return an integer value for the enum values of the enumeration that implements this interface. |
static QGraphicsItem.CacheMode |
valueOf(java.lang.String name)
|
static QGraphicsItem.CacheMode[] |
values()
|
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final QGraphicsItem.CacheMode NoCache
QGraphicsItem::paint()
is called every time the item needs redrawing.
public static final QGraphicsItem.CacheMode ItemCoordinateCache
QGraphicsItem
creates an off-screen pixel buffer with a configurable size / resolution that you can pass to QGraphicsItem::setCacheMode()
. Rendering quality will typically degrade, depending on the resolution of the cache and the item transformation. The first time the item is redrawn, it will render itself into the cache, and the cache is then reused for every subsequent expose. The cache is also reused as the item is transformed. To adjust the resolution of the cache, you can call setCacheMode()
again.
public static final QGraphicsItem.CacheMode DeviceCoordinateCache
DeviceCoordinateCache
always renders at maximum quality.
Method Detail |
---|
public static QGraphicsItem.CacheMode[] values()
public static QGraphicsItem.CacheMode valueOf(java.lang.String name)
public int value()
value
in interface QtEnumerator
public static QGraphicsItem.CacheMode resolve(int value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |