Fillable Class Reference

#include <Fillable.hpp>

Inheritance diagram for Fillable:

Inheritance graph
[legend]
Collaboration diagram for Fillable:

Collaboration graph
[legend]
List of all members.

Detailed Description

This is an interface for fillable basic shapes to group them together.

These include circles, rectangles, and polygons. All of these objects can contain a fill color.

Definition at line 44 of file Fillable.hpp.

Public Member Functions

 Fillable (void)
 Default constructor.
 Fillable (const StrokeStyle &istyle)
 Constructor.
 Fillable (const Color &ifillColor)
 Constructor.
 Fillable (const StrokeStyle &istyle, const Color &ifillColor)
 Constructor.
bool hasOwnFillColor (void) const
 Accessor. Does this fillable have a preferred fill color?
Color getFillColor (void) const
 Accessor. What is the fill color for this fillable?
void setFillColor (const Color &ifillColor)
 Mutator. Set the fill color.
void removeFillColor (void)
 Mutator. Remove the fill color...use default.

Protected Attributes

Color fillColor
 Default fill color.
bool hasFillColor
 A fill color has been set?


Constructor & Destructor Documentation

Fillable void   )  [inline]
 

Default constructor.

Definition at line 55 of file Fillable.hpp.

References hasFillColor.

Fillable const StrokeStyle istyle  )  [inline]
 

Constructor.

Defines a basic shape by a StrokeStyle.

Parameters:
istyle appearance of the stroke

Definition at line 63 of file Fillable.hpp.

References hasFillColor.

Fillable const Color ifillColor  )  [inline]
 

Constructor.

Defines a basic shape by a fill color.

Parameters:
ifillColor appearance of the stroke

Definition at line 71 of file Fillable.hpp.

References fillColor, and hasFillColor.

Fillable const StrokeStyle istyle,
const Color ifillColor
[inline]
 

Constructor.

Defines a basic shape by a StrokeStyle and a fill color.

Parameters:
istyle appearance of the stroke
ifillColor appearance of the stroke

Definition at line 80 of file Fillable.hpp.

References fillColor, and hasFillColor.


Member Function Documentation

Color getFillColor void   )  const [inline]
 

Accessor. What is the fill color for this fillable?

Definition at line 88 of file Fillable.hpp.

bool hasOwnFillColor void   )  const [inline]
 

Accessor. Does this fillable have a preferred fill color?

Definition at line 85 of file Fillable.hpp.

void removeFillColor void   )  [inline]
 

Mutator. Remove the fill color...use default.

Definition at line 94 of file Fillable.hpp.

References hasFillColor.

void setFillColor const Color ifillColor  )  [inline]
 

Mutator. Set the fill color.

Definition at line 91 of file Fillable.hpp.

References fillColor, and hasFillColor.


Member Data Documentation

Color fillColor [protected]
 

Default fill color.

Definition at line 99 of file Fillable.hpp.

Referenced by Fillable(), and setFillColor().

bool hasFillColor [protected]
 

A fill color has been set?

Definition at line 102 of file Fillable.hpp.

Referenced by Fillable(), removeFillColor(), and setFillColor().


The documentation for this class was generated from the following file:
Generated on Wed Jun 19 03:31:33 2013 for GPS ToolKit Software Library by  doxygen 1.3.9.1