DSClosed.h

Classes

DSClosed -- DSClosed provides common functionality for all "closed" shapes. (full description)

class DSClosed : public DSBasic

Types

enum FillStyle

No_Fill
Full_Fill

Interface

Public Members
DSClosed()
DSClosed(const DSClosed& other)
virtual ~DSClosed()
virtual void setFillStyle(DSClosed::FillStyle fill)
virtual DSClosed::FillStyle getFillStyle()
virtual void setFillColor(String color)
virtual String getFillColor()
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)
Private Members
virtual void setDefaultOptions()

Description

Prerequisite

Etymology

DSClosed is used to provide a common interface for all closed shapes

Synopsis

DSClosed simply manages the fill options of any closed display shapes.

Motivation

A desire for a common interface for all closed shapes.

Example


 

Member Description

enum FillStyle

Type of fill to use.

DSClosed()
DSClosed(const DSClosed& other)
virtual ~DSClosed()

Constructors and destructors

virtual void setFillStyle(DSClosed::FillStyle fill)
virtual DSClosed::FillStyle getFillStyle()
virtual void setFillColor(String color)
virtual String getFillColor()

Get / Set fill options

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)

General DisplayShape functions. The non abstract functions in this group simply pass on calls up the class tree.

virtual Record getOptions()
virtual Bool setOptions(const Record& settings)

Get and set options

virtual void setDefaultOptions()

Used to set up the class when default constructor called