X11PCDLTranslate.h

Classes

X11PCDLTranslate -- X11 display list object that stores the translate command (full description)

class X11PCDLTranslate : public X11PCDisplayListObject

Interface

Public Members
X11PCDLTranslate()
X11PCDLTranslate(X11PixelCanvas * xpc, Int xt, Int yt)
virtual void translate(Int, Int)
virtual void draw(::XDisplay * , Drawable , GC , Int , Int )
virtual Char optType() const
virtual ~X11PCDLTranslate()

Description

Prerequisite

Etymology

X11PCDLPuxhMatrix : X11PixelCanvas Display List translate command

Synopsis

This class is designed for use with the X11PixelCanvas' caching mechanism.

Cached version of the translate command which can be used in display lists.

Motivation

Needed to be able to put all output graphics commands in a display list for fast and convenient processing.

Member Description

X11PCDLTranslate()

Default Constructor Required

X11PCDLTranslate(X11PixelCanvas * xpc, Int xt, Int yt)

User Constructor

virtual void translate(Int, Int)

translate does nothing

virtual void draw(::XDisplay * , Drawable , GC , Int , Int )

draw applies translation

virtual Char optType() const

For caching optimization

virtual ~X11PCDLTranslate()

Destructor