khtmlImLoad::ImagePlane

khtmlImLoad::ImagePlane Class Referenceabstract

#include <imageplane.h>

Inheritance diagram for khtmlImLoad::ImagePlane:

Public Member Functions

 ImagePlane (unsigned int _width, unsigned int _height)
 
virtual void ensureUpToDate (unsigned int tileX, unsigned int tileY, PixmapTile *tile)=0
 
virtual void flushCache ()=0
 
virtual bool isUpToDate (unsigned int tileX, unsigned int tileY, PixmapTile *tile)=0
 
- Public Member Functions inherited from khtmlImLoad::Plane
 Plane (unsigned int _width, unsigned int _height)
 
unsigned int tileHeight (unsigned int tileY)
 
unsigned int tileWidth (unsigned int tileX)
 

Public Attributes

ImageFormat format
 
- Public Attributes inherited from khtmlImLoad::Plane
unsigned int height
 
unsigned int tilesHeight
 
unsigned int tilesWidth
 
unsigned int width
 

Protected Member Functions

bool checkUpToDate (const unsigned char *versions, PixmapTile *tile)
 
void setupTile (unsigned int tileX, unsigned int tileY, PixmapTile *tile)
 
void updatePixmap (PixmapTile *tile, const QImage &image, unsigned int tileX, unsigned int tileY, unsigned int offX, unsigned int offY, unsigned char *versions)
 

Detailed Description

Image planes represent client-side image data, and are primarily an abstraction for pushing data to the server, as needed.

Definition at line 38 of file imageplane.h.

Member Function Documentation

bool khtmlImLoad::ImagePlane::checkUpToDate ( const unsigned char *  versions,
PixmapTile *  tile 
)
protected

Checks whether the tile is up-to-date for a given version array.

Definition at line 33 of file imageplane.cpp.

virtual void khtmlImLoad::ImagePlane::ensureUpToDate ( unsigned int  tileX,
unsigned int  tileY,
PixmapTile *  tile 
)
pure virtual

Ensures that the given pixmap tile is up-to-date.

Implemented in khtmlImLoad::RawImagePlane, and khtmlImLoad::ScaledImagePlane.

virtual bool khtmlImLoad::ImagePlane::isUpToDate ( unsigned int  tileX,
unsigned int  tileY,
PixmapTile *  tile 
)
pure virtual

Returns true if the given pixmap tile is up-to-date.

Note that this should compare the information in the pixmap with ideal the up-to-date image using the decoding information thus far, and not with the state of the image proper. (Which might not even be in memory)

Implemented in khtmlImLoad::RawImagePlane, and khtmlImLoad::ScaledImagePlane.

void khtmlImLoad::ImagePlane::setupTile ( unsigned int  tileX,
unsigned int  tileY,
PixmapTile *  tile 
)
protected

Creates the pixmap in the tile.

Definition at line 46 of file imageplane.cpp.

void khtmlImLoad::ImagePlane::updatePixmap ( PixmapTile *  tile,
const QImage image,
unsigned int  tileX,
unsigned int  tileY,
unsigned int  offX,
unsigned int  offY,
unsigned char *  versions 
)
protected

Update the pixmap using the appropriate image, starting from offset (offX, offY), and the matching version array.

Definition at line 52 of file imageplane.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Tue Jul 7 2020 22:44:41 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.