casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions | Private Member Functions | Private Attributes
casa::DSClosed Class Reference

DSClosed provides common functionality for all "closed" shapes. More...

#include <DSClosed.h>

Inheritance diagram for casa::DSClosed:
casa::DSBasic casa::DisplayShape casa::DSEllipse casa::DSPoly casa::DSCircle casa::DSPixelEllipse casa::DSScreenEllipse casa::DSWorldEllipse casa::DSPixelPoly casa::DSRectangle casa::DSScreenPoly casa::DSWorldPoly

List of all members.

Public Types

enum  FillStyle {
  No_Fill,
  Full_Fill
}
 Type of fill to use. More...

Public Member Functions

 DSClosed ()
 Constructors and destructors.
 DSClosed (const DSClosed &other)
virtual ~DSClosed ()
virtual void setFillStyle (DSClosed::FillStyle fill)
 Get / Set fill options.
virtual DSClosed::FillStyle getFillStyle ()
virtual void setFillColor (String color)
virtual String getFillColor ()
virtual void draw (PixelCanvas *pc)
 General DisplayShape functions.
virtual void rotateAbout (const Float &angle, const Float &aboutX, const Float &aboutY)
virtual void move (const Float &dX, const Float &dY)
virtual Record getOptions ()
 Get and set options.
virtual Bool setOptions (const Record &settings)

Private Member Functions

virtual void setDefaultOptions ()
 
   

Private Attributes

DSClosed::FillStyle itsFillStyle
String itsFillColor

Detailed Description

DSClosed provides common functionality for all "closed" shapes.

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

Definition at line 64 of file DSClosed.h.


Member Enumeration Documentation

Type of fill to use.

Enumerator:
No_Fill 
Full_Fill 

Definition at line 69 of file DSClosed.h.


Constructor & Destructor Documentation

Constructors and destructors.

casa::DSClosed::DSClosed ( const DSClosed other)
virtual casa::DSClosed::~DSClosed ( ) [virtual]

Member Function Documentation

virtual void casa::DSClosed::draw ( PixelCanvas pc) [virtual]

General DisplayShape functions.

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

Reimplemented from casa::DSBasic.

Reimplemented in casa::DSPoly, casa::DSEllipse, casa::DSWorldPoly, casa::DSWorldEllipse, and casa::DSWorldRectangle.

virtual String casa::DSClosed::getFillColor ( ) [virtual]
virtual Record casa::DSClosed::getOptions ( ) [virtual]
virtual void casa::DSClosed::move ( const Float dX,
const Float dY 
) [virtual]
virtual void casa::DSClosed::rotateAbout ( const Float angle,
const Float aboutX,
const Float aboutY 
) [virtual]

Reimplemented from casa::DSBasic.

Reimplemented in casa::DSPoly, casa::DSRectangle, and casa::DSEllipse.

virtual void casa::DSClosed::setDefaultOptions ( ) [private, virtual]

   

Used to set up the class when default constructor called

Reimplemented from casa::DisplayShape.

Reimplemented in casa::DSRectangle, casa::DSEllipse, casa::DSPoly, and casa::DSCircle.

virtual void casa::DSClosed::setFillColor ( String  color) [virtual]
virtual void casa::DSClosed::setFillStyle ( DSClosed::FillStyle  fill) [virtual]

Get / Set fill options.

virtual Bool casa::DSClosed::setOptions ( const Record settings) [virtual]

Member Data Documentation

Definition at line 108 of file DSClosed.h.

Definition at line 107 of file DSClosed.h.


The documentation for this class was generated from the following file: