BBlockRefFeature Class Reference

#include <BBlockRefFeature.h>

Inheritance diagram for BBlockRefFeature:

Inheritance graph
[legend]

List of all members.


Detailed Description

A BFeature containing a reference to an external BBlockDef.

The BBlockRefFeature class represents a reference to group of features that will be treated as one. The geometry associated with this feature must be a BPointGeo object, representing the insertion point for the block of BFeature objects.

Public Member Functions

 BBlockRefFeature (const BBlockRefFeature &feat)
 Copy constructor.
 BBlockRefFeature ()
 Default constructor.
virtual BFeatureClone (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.
const BStringGetRefName (void) const
 Gets the name of the BBlockDef that is referenced by this BBlockRefFeature.
virtual void SetGeometry (const BGeometryPtr &geo)
 Sets the geometry for this BFeature.
void SetRefName (const BString &refName)
 Sets the name of the BBlockDef that is referenced by this BBlockRefFeature.
virtual BByteArray ToByteArray (void) const
 Stores this object in a BByteArray.


Constructor & Destructor Documentation

BBlockRefFeature (  )  [inline]

Default constructor.

This constructor creates a new BBlockRefFeature that does not reference a BBlockDef.

BBlockRefFeature ( const BBlockRefFeature feat  )  [inline]

Copy constructor.

Parameters:
feat The BBlockRefFeature to copy.


Member Function Documentation

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

Creates a deep-copy of this object.

Returns:
A deep-copy of this object.

Reimplemented from BFeature.

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 BFeature.

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 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.

Reimplemented from BFeature.

const BString& GetRefName ( void   )  const [inline]

Gets the name of the BBlockDef that is referenced by this BBlockRefFeature.

Returns:
The BBlockDef name.

virtual void SetGeometry ( const BGeometryPtr geo  )  [virtual]

Sets the geometry for this BFeature.

Note that the geometry for a BBlockRefFeature must always be a BPointGeo that represents the insertion point for the block.

Parameters:
geo The new BGeometry for this BFeature.

Reimplemented from BFeature.

void SetRefName ( const BString refName  )  [inline]

Sets the name of the BBlockDef that is referenced by this BBlockRefFeature.

Parameters:
refName The BBlockDef name.

virtual BByteArray ToByteArray ( void   )  const [virtual]

Stores this object in a BByteArray.

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

Reimplemented from BFeature.


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

GeoTranslate 5.0 From Blue Marble Geographics