X11PCDLLine.h
Classes
- X11PCDLLine -- Class to store and cache X11PixelCanvas line command. (full description)
Interface
- Public Members
- X11PCDLLine()
- X11PCDLLine(Short x1, Short y1, Short x2, Short y2)
- 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 short x1() const
- virtual short y1() const
- virtual short x2() const
- virtual short y2() const
- virtual ~X11PCDLLine()
Prerequisite
Etymology
X11PCDLLine : X11PixelCanvas
Display List - Line command.
Synopsis
This class is designed for use with the
X11PixelCanvas'
caching mechanism.
It stores the endpoints of a single line and draws the line when
asked.
Motivation
Needed to be able to put all output graphics commands in
a display list for fast and convenient handling.
Member Description
Default Constructor Required
X11PCDLLine(Short x1, Short y1, Short x2, Short y2)
User Constructor
virtual void translate(Int xt, Int yt)
translate the line
virtual void draw(::XDisplay * display, Drawable d, GC gc, Int xt, Int yt)
draw func
virtual Char optType() const
For caching optimization
virtual short x1() const
line endpoints
virtual short y1() const
virtual short x2() const
virtual short y2() const
Destructor