BAggregatePoint Class Reference

#include <BAggregatePoint.h>

Inheritance diagram for BAggregatePoint:

Inheritance graph
[legend]

List of all members.


Detailed Description

An aggregate geometry that contains only BPointGeo geometries.

Public Member Functions

void Add (const BAggregatePoint &aggy)
 Adds a collection of BPointGeo objects to this BAggregatePoint geometry.
void Add (const BPointGeoPtr &pGeo)
 Adds a BPointGeo to this BAggregatePoint geometry.
virtual void AddGeometry (const BGeometryPtr &pGeo)
 Adds a BGeometry to the BAggregatePoint.
 BAggregatePoint (const BAggregatePoint &aggy)
 Copy constructor.
 BAggregatePoint (const BPoints &points)
 Constructs a BAggregatePoint from a collection of BPoints.
 BAggregatePoint ()
 Default constructor, which constructs an empty collection of BPointGeo objects.
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 bool Contains3dGeometry () const
 Indicates whether or not this BAggregatePoint contains 3D geometries.
virtual double DistanceTo (const BPoint &point) const
 Calculates the minimum distance from this BGeometry to the specified BPoint.
virtual void DoResolveToPoint (const BPoint &refPt)
 Resolves this BGeometry based on the input BPoint.
virtual void FromByteArray (const BByteArray &bytes, size_t &startPos)
 Initializes an instance of this object from a BByteArray.
virtual BGeometryPtr GetGeometryAt (size_t index) const
 Gets a BPointGeo from this BAggregatePoint.
virtual size_t GetGeometryCount (void) const
 Gets the number of BPointGeo objects in this BAggregatePoint.
virtual bool Intersects (const BRect &rect) const
 Determines whether or not this BGeometry intersects the specified BRect.
virtual bool IsAggregate (void) const
 Determines whether or not this BGeometry is an aggregate geometry.
void Remove (const BPointGeoPtr &pGeo)
 Removes a BPointGeo from this BAggregatePoint geometry.
virtual BByteArray ToByteArray (void) const
 Stores this object in a BByteArray.
virtual void Transform (const BTransform &cst)
 Transforms the coordinates in this BGeometry to a different coordinate system.
virtual void TransformReverse (const BTransform &cst)
 Transforms the coordinates in this BGeometry to a different coordinate system using the "reverse" of the BTransform.
virtual ~BAggregatePoint ()
 Destructor.

Protected Member Functions

virtual BRect ComputeMBR () const
 Computes the minimum bounding rectangle for this BAggregateLinear.

Constructor & Destructor Documentation

BAggregatePoint (  )  [inline]

Default constructor, which constructs an empty collection of BPointGeo objects.

BAggregatePoint ( const BPoints points  ) 

Constructs a BAggregatePoint from a collection of BPoints.

One BPointGeo is created for each BPoint, and the BPointGeo is stored in this BAggregatePoint.

Parameters:
points The collection of BPoints.

BAggregatePoint ( const BAggregatePoint aggy  )  [inline]

Copy constructor.

Parameters:
aggy The BAggregatePoint to copy.

virtual ~BAggregatePoint (  )  [inline, virtual]

Destructor.


Member Function Documentation

void Add ( const BAggregatePoint aggy  ) 

Adds a collection of BPointGeo objects to this BAggregatePoint geometry.

Parameters:
aggy The collection of BPointGeo objects.

void Add ( const BPointGeoPtr pGeo  ) 

Adds a BPointGeo to this BAggregatePoint geometry.

Parameters:
pGeo The BPointGeo to add to this BAggregatePoint geometry.

virtual void AddGeometry ( const BGeometryPtr pGeo  )  [virtual]

Adds a BGeometry to the BAggregatePoint.

This method will only succeed if the specified BGeometry is a BPointGeo.

Parameters:
pGeo The BGeometry to be added.

Implements BGeometryCollection.

virtual BGeometry* Clone ( void   )  const [virtual]

Creates a deep-copy of this object.

Returns:
A deep-copy of this object.

Implements BGeometry.

virtual BRect ComputeMBR (  )  const [protected, virtual]

Computes the minimum bounding rectangle for this BAggregateLinear.

Returns:
The minimum bounding rectangle.

Implements BGeometry.

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

virtual bool Contains3dGeometry (  )  const [virtual]

Indicates whether or not this BAggregatePoint contains 3D geometries.

Returns:
True if this collection contains 3D geometry and false otherwise.

Implements BGeometryCollection.

virtual double DistanceTo ( const BPoint point  )  const [virtual]

Calculates the minimum distance from this BGeometry to the specified BPoint.

Parameters:
point The BPoint used to calculate distance.
Returns:
The distance. The units used to express this distance are the same as the units used to express the location of this BGeometry.

Reimplemented from BGeometry.

virtual void DoResolveToPoint ( const BPoint refPt  )  [virtual]

Resolves this BGeometry based on the input BPoint.

This should only be called on BGeometry objects that are part of a BBlockDef and contain coordinates that represent offsets from a point rather then an absolute location.

Parameters:
refPt The insertion point.

Implements BGeometry.

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

virtual BGeometryPtr GetGeometryAt ( size_t  index  )  const [virtual]

Gets a BPointGeo from this BAggregatePoint.

Parameters:
index The index of the desired BPointGeo.
Returns:
The BPointGeo at the specified index.

Implements BGeometryCollection.

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

Gets the number of BPointGeo objects in this BAggregatePoint.

Returns:
The number of BPointGeo objects in this BAggregatePoint.

Implements BGeometryCollection.

virtual bool Intersects ( const BRect rect  )  const [virtual]

Determines whether or not this BGeometry intersects the specified BRect.

Parameters:
rect The BRect to test for intersection.
Returns:
True if the BGeometry intersects the BRect and false otherwise.

Reimplemented from BGeometry.

virtual bool IsAggregate ( void   )  const [inline, virtual]

Determines whether or not this BGeometry is an aggregate geometry.

Since this is a BAggregatePoint, this method will always return true.

Returns:
True if this BGeometry is an aggregate (a collection of geometries) and false otherwise.

Reimplemented from BGeometry.

void Remove ( const BPointGeoPtr pGeo  ) 

Removes a BPointGeo from this BAggregatePoint geometry.

Parameters:
pGeo The BPointGeo to remove from this BAggregatePoint geometry.

virtual BByteArray ToByteArray ( void   )  const [virtual]

Stores this object in a BByteArray.

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

Reimplemented from BGeometry.

virtual void Transform ( const BTransform cst  )  [virtual]

Transforms the coordinates in this BGeometry to a different coordinate system.

Parameters:
cst The BTransform that describes the transformation.

Reimplemented from BGeometry.

virtual void TransformReverse ( const BTransform cst  )  [virtual]

Transforms the coordinates in this BGeometry to a different coordinate system using the "reverse" of the BTransform.

Parameters:
cst The BTransform that describes the transformation.

Reimplemented from BGeometry.


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

GeoTranslate 5.0 From Blue Marble Geographics