X11PCDLPolyline.h

Classes

X11PCDLPolyline -- Class to store and cache X11PixelCanvas polyline command. (full description)

class X11PCDLPolyline : public X11PCDisplayListObject

Interface

Public Members
X11PCDLPolyline()
X11PCDLPolyline(XPoint * points, uInt nPoints)
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 ~X11PCDLPolyline()

Description

Prerequisite

Etymology

X11PCDLPolyline : X11PixelCanvas Display List - polyline command

Synopsis

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

A polyline is a set of lines chained together - for N vertices, N-1 lines are drawn. Vertices are stored in sequence in native X structures and coordinates and used to draw the graphics.

Motivation

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

Member Description

X11PCDLPolyline()

Default Constructor Required

X11PCDLPolyline(XPoint * points, uInt nPoints)

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 ~X11PCDLPolyline()

Destructor