X11PCDLImageComponent.h

Classes

X11PCDLImageComponent -- Storing and caching of component (RGB/HSV) images for the X11PixelCanvas. (full description)

class X11PCDLImageComponent : public X11PCDisplayListObject

Interface

Public Members
X11PCDLImageComponent(X11PixelCanvas *xpc, const Matrix<uInt> &data, const uInt &x, const uInt &y, const Display::ColorComponent &component)
virtual ~X11PCDLImageComponent()
virtual void translate(Int xt, Int yt)
virtual void draw(::XDisplay *display, Drawable d, GC gc, Int xt, Int yt)
virtual Char optType() const

Description

Synopsis

This class implements the X11PCDisplayListObject interface to provide storing and caching of component-based (RGB/HSV) images for the X11PixelCanvas.

Member Description

X11PCDLImageComponent(X11PixelCanvas *xpc, const Matrix<uInt> &data, const uInt &x, const uInt &y, const Display::ColorComponent &component)

Constructor takes the Matrix of data, the x and y position at which to paint the data, and the color component to draw.

virtual ~X11PCDLImageComponent()

Destructor.

virtual void translate(Int xt, Int yt)

Translate the image component.

virtual void draw(::XDisplay *display, Drawable d, GC gc, Int xt, Int yt)

Draw function.

virtual Char optType() const

For caching optimisation.