DSClosed.h
Classes
- DSClosed -- DSClosed provides common functionality for all "closed" shapes. (full description)
Types
- 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()
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
Type of fill to use.
Constructors and destructors
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.
Get and set options
Used to set up the class when default constructor called