BasicShape Class Reference

#include <BasicShape.hpp>

Inheritance diagram for BasicShape:

Inheritance graph
[legend]
Collaboration diagram for BasicShape:

Collaboration graph
[legend]
List of all members.

Detailed Description

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

These include circles, rectangles, lines, and polygons. All of these objects can contain a StrokeStyle.

Definition at line 44 of file BasicShape.hpp.

Public Member Functions

 BasicShape (void)
 Default constructor.
 BasicShape (const StrokeStyle &istyle)
 Constructor.
bool hasOwnStrokeStyle (void) const
 Accessor. Does this basic shape have a preferred appearance?
StrokeStyle getStrokeStyle (void) const
 Accessor. What is the style associated with this basic shape.
void setStrokeStyle (const StrokeStyle &istyle)
 Mutator. Set the stroke style.
void removeStrokeStyle (void)
 Mutator. Remove the stroke style...use default.

Protected Attributes

StrokeStyle lineStyle
 Default line style.
bool hasLineStyle
 A lineStyle has been set?


Constructor & Destructor Documentation

BasicShape void   )  [inline]
 

Default constructor.

Definition at line 55 of file BasicShape.hpp.

BasicShape const StrokeStyle istyle  )  [inline]
 

Constructor.

Defines a basic shape by a StrokeStyle.

Parameters:
istyle appearance of the stroke

Definition at line 63 of file BasicShape.hpp.


Member Function Documentation

StrokeStyle getStrokeStyle void   )  const [inline]
 

Accessor. What is the style associated with this basic shape.

Definition at line 71 of file BasicShape.hpp.

bool hasOwnStrokeStyle void   )  const [inline]
 

Accessor. Does this basic shape have a preferred appearance?

Definition at line 68 of file BasicShape.hpp.

void removeStrokeStyle void   )  [inline]
 

Mutator. Remove the stroke style...use default.

Definition at line 77 of file BasicShape.hpp.

void setStrokeStyle const StrokeStyle istyle  )  [inline]
 

Mutator. Set the stroke style.

Definition at line 74 of file BasicShape.hpp.


Member Data Documentation

bool hasLineStyle [protected]
 

A lineStyle has been set?

Definition at line 85 of file BasicShape.hpp.

StrokeStyle lineStyle [protected]
 

Default line style.

Definition at line 82 of file BasicShape.hpp.


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