BRoundRectangle Class Reference

#include <BRoundedRectangle.h>

Inheritance diagram for BRoundRectangle:

Inheritance graph
[legend]

List of all members.


Detailed Description

A geometry that represents a rectangle with rounded corners.

Public Member Functions

 BRoundRectangle (const BRoundRectangle &rect)
 Copy constructor.
 BRoundRectangle (const BRect &rect, double cornerRadius)
 Constructor.
 BRoundRectangle (void)
 Default constructor.
virtual BGeometryClone (void) const
 Creates a deep-copy of this object.
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.
double GetCornerRadius (void) const
 Gets the corner radius.
virtual BByteArray ToByteArray (void) const
 Stores this object in a BByteArray.
virtual ~BRoundRectangle (void)
 Destructor.

Protected Attributes

double m_cornerRadius
 The corner radius.

Constructor & Destructor Documentation

BRoundRectangle ( void   )  [inline]

Default constructor.

BRoundRectangle ( const BRect rect,
double  cornerRadius 
)

Constructor.

Parameters:
rect The BRect that gives the extents for this BRoundRectangle.
cornerRadius The radius value to be used for rounded corners.

BRoundRectangle ( const BRoundRectangle rect  )  [inline]

Copy constructor.

Parameters:
rect The BRoundRectangle object to copy.

virtual ~BRoundRectangle ( void   )  [inline, virtual]

Destructor.


Member Function Documentation

virtual BGeometry* Clone ( void   )  const [inline, virtual]

Creates a deep-copy of this object.

Returns:
A deep-copy of this object.

Reimplemented from BPolygon.

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.

Reimplemented from BPolygon.

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

Initializes an instance of this object from a BByteArray.

Parameters:
bytes The BByteArray containing the byte representation of the 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.

Reimplemented from BPolygon.

double GetCornerRadius ( void   )  const [inline]

Gets the corner radius.

Returns:
The corner radius.

virtual BByteArray ToByteArray ( void   )  const [virtual]

Stores this object in a BByteArray.

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

Reimplemented from BPolygon.


Member Data Documentation

double m_cornerRadius [protected]

The corner radius.


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

GeoTranslate 5.0 From Blue Marble Geographics