DSBasic.h

Classes

DSBasic -- Base class for all "basic" shapes (full description)

class DSBasic : public DisplayShape

Interface

Public Members
DSBasic()
DSBasic(const DSBasic& other)
virtual ~DSBasic()
virtual void setLineWidth(const Int pixels)
virtual Int getLineWidth()
virtual void draw(PixelCanvas* pc)
virtual void rotateAbout(const Float& angle, const Float& aboutX, const Float& aboutY)
virtual void move(const Float& dX, const Float& dY)
virtual Record getOptions()
virtual Bool setOptions(const Record& settings)

Description

Prerequisite

Etymology

DSBasic is a base for all basic classes, it manages linewidth.

Synopsis

DSBasic is a base class for any shape using basic lines to draw it self, i.e. shapes such as lines, circles and polygons should extend this class. More complex DisplayShapes, e.g. text should not.

Motivation

A common interface for the setting of linewidths

Example


Member Description

DSBasic()

Default constructor

DSBasic(const DSBasic& other)

Copy constructor

virtual ~DSBasic()

Destructor

virtual void setLineWidth(const Int pixels)
virtual Int getLineWidth()

Manage line width

virtual void draw(PixelCanvas* pc)
virtual void rotateAbout(const Float& angle, const Float& aboutX, const Float& aboutY)
virtual void move(const Float& dX, const Float& dY)
virtual Record getOptions()
virtual Bool setOptions(const Record& settings)

Standard fns