BFillStyle Class Reference

#include <BFillStyle.h>

Inheritance diagram for BFillStyle:

Inheritance graph
[legend]

List of all members.


Detailed Description

Defines the way a closed geometry (polygon, ellipse, etc.

) is filled.

Public Member Functions

 BFillStyle (const BFillStyle &fs)
 Copy constructor.
 BFillStyle ()
 Default constructor.
virtual size_t ComputeSize (void) const
 Computes the size of the BByteArray required to store this object.
virtual void FromByteArray (const BByteArray &bytes, size_t &startPos)
 Initializes an instance of this object from a BByteArray.
BColor GetBGColor (void) const
 Gets the background color.
BColor GetFGColor (void) const
 Gets the foreground color.
EHatchType GetHatch (void) const
 Gets the hatch style type.
EFillStyle GetStyle (void) const
 Gets the fill style type.
void SetBGColor (const BColor &color)
 Sets the background color.
void SetFGColor (const BColor &color)
 Sets the foreground color.
void SetHatch (EHatchType hatch)
 Sets the hatch style type.
void SetStyle (EFillStyle style)
 Sets the fill style type.
virtual BByteArray ToByteArray (void) const
 Stores this object in a BByteArray.
virtual ~BFillStyle ()
 Destructor.

Static Public Member Functions

static size_t SizeOf (void)
 Returns the size of a BFillStyle in bytes.


Constructor & Destructor Documentation

BFillStyle (  )  [inline]

Default constructor.

BFillStyle ( const BFillStyle fs  )  [inline]

Copy constructor.

Parameters:
fs The BFillStyle object to copy.

virtual ~BFillStyle (  )  [inline, virtual]

Destructor.


Member Function Documentation

virtual size_t ComputeSize ( void   )  const [inline, virtual]

Computes the size of the BByteArray required to store this object.

Returns:
The size of the BByteArray.

Implements BByteStreamable.

virtual void FromByteArray ( const BByteArray bytes,
size_t &  startPos 
) [inline, virtual]

Initializes an instance of this object from a BByteArray.

Parameters:
bytes The BByteArray containing the byte representation for this object.
startPos The position in the BByteArray where the byte representation begins. This value will be updated to point to the byte past the end of this object in the byte array.

Implements BByteStreamable.

BColor GetBGColor ( void   )  const [inline]

Gets the background color.

Returns:
The background color.

BColor GetFGColor ( void   )  const [inline]

Gets the foreground color.

Returns:
The foreground color.

EHatchType GetHatch ( void   )  const [inline]

Gets the hatch style type.

Returns:
The hatch style type.

EFillStyle GetStyle ( void   )  const [inline]

Gets the fill style type.

Returns:
The fill style type.

void SetBGColor ( const BColor color  )  [inline]

Sets the background color.

Parameters:
color The background color.

void SetFGColor ( const BColor color  )  [inline]

Sets the foreground color.

Parameters:
color The foreground color.

void SetHatch ( EHatchType  hatch  )  [inline]

Sets the hatch style type.

Parameters:
hatch The hatch style type.

void SetStyle ( EFillStyle  style  )  [inline]

Sets the fill style type.

Parameters:
style The fill style type.

static size_t SizeOf ( void   )  [inline, static]

Returns the size of a BFillStyle in bytes.

Returns:
The size of a BFillStyle in bytes.

virtual BByteArray ToByteArray ( void   )  const [inline, virtual]

Stores this object in a BByteArray.

Returns:
A BByteArray that stores the contents of this object.

Implements BByteStreamable.


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

GeoTranslate 5.0 From Blue Marble Geographics