X11PCDLColoredPoints.h

Classes

X11PCDLColoredPoints -- Class to store commands to draw colored points on an X11PixelCanvas. (full description)

class X11PCDLColoredPoints : public X11PCDisplayListObject

Interface

Public Members
X11PCDLColoredPoints()
X11PCDLColoredPoints(const Vector<Short> & x1, const Vector<Short> & y1, const Vector<uInt> & colors)
virtual void translate(Int xt, Int yt)
virtual void draw(::XDisplay * display, Drawable d, GC gc, Int xt, Int yt)
virtual Char optType() const
virtual ~X11PCDLColoredPoints()

Description

Prerequisite

Etymology

X11PCDLColoredPoints : X11PixelCanvas

Synopsis

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

Cached version of the X11PixelCanvas drawColoredPoints() function which stores point and color information in native X structures for later recall.

Motivation

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

Member Description

X11PCDLColoredPoints()

Default Constructor Required

X11PCDLColoredPoints(const Vector<Short> & x1, const Vector<Short> & y1, const Vector<uInt> & colors)

User Constructor

virtual void translate(Int xt, Int yt)

translate points

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

draw func

virtual Char optType() const

For caching optimization

virtual ~X11PCDLColoredPoints()

Destructor