X11PCDLPoints.h

Classes

X11PCDLPoints -- Class to store and cache X11PixelCanvas points command. (full description)

class X11PCDLPoints : public X11PCDisplayListObject

Interface

Public Members
X11PCDLPoints()
X11PCDLPoints(XPoint * data, uInt n, uInt mode)
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 uInt nPoints() const
virtual XPoint * points() const
virtual ~X11PCDLPoints()

Description

Prerequisite

Etymology

X11PCDLPoints : X11PixelCanvas display list - drawPoints command

Synopsis

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

A set of points is stored in native X structures and coordinates and when drawn, draws the points in the current color.

Motivation

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

Member Description

X11PCDLPoints()

Default Constructor Required

X11PCDLPoints(XPoint * data, uInt n, uInt mode)

User Constructor

virtual void translate(Int xt, Int yt)

translate

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

draw

virtual Char optType() const

For caching optimization

virtual uInt nPoints() const

return number of points

virtual XPoint * points() const

pointer to the points

virtual ~X11PCDLPoints()

Destructor