X11PCDLColoredLines.h

Classes

X11PCDLColoredLines -- Class to store commands to draw colored lines on an X11PixelCanvas. (full description)

class X11PCDLColoredLines : public X11PCDisplayListObject

Interface

Public Members
X11PCDLColoredLines()
X11PCDLColoredLines(const Vector<Short> & x1, const Vector<Short> & y1, const Vector<Short> & x2, const Vector<Short> & y2, 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 ~X11PCDLColoredLines()

Description

Prerequisite

Etymology

X11PCDLColoredLines : X11PixelCanvas Display List - Colored Lines

Synopsis

Stores in native X structures information required to draw a set of lines, each having their own color.

Motivation

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

Member Description

X11PCDLColoredLines()

Default Constructor Required

X11PCDLColoredLines(const Vector<Short> & x1, const Vector<Short> & y1, const Vector<Short> & x2, const Vector<Short> & y2, const Vector<uInt> & colors)

User Constructor

virtual void translate(Int xt, Int yt)

translate

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

draw func

virtual Char optType() const

For caching optimization

virtual ~X11PCDLColoredLines()

Destructor