#include <BAggregateGeo.h>

Public Member Functions | |
| void | Add (const BAggregateGeo &aggy) |
| Adds a collection of BGeometry objects to this BAggregateGeo. | |
| void | Add (const BGeometryPtr &pGeo) |
| Adds a BGeometry to this BAggregateGeo. | |
| virtual void | AddGeometry (const BGeometryPtr &pGeo) |
| Adds a BGeometry to this BAggregateGeo. | |
| BAggregateGeo (const BAggregateGeo &aggy) | |
| Copy constructor. | |
| BAggregateGeo () | |
| Default constructor, which constructs an empty collection of BGeometry objects. | |
| virtual BGeometry * | Clone (void) const |
| Creates a deep-copy of this object. | |
| virtual size_t | ComputeSize (void) const |
| Compute the size of the BByteArray required to store this object. | |
| virtual bool | Contains3dGeometry () const |
| Indicates whether or not the collection contains three dimensional BGeometry objects. | |
| 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. | |
| BAggregateGeoPtr | Flatten (void) const |
| Flattens the BAggregateGeo. | |
| 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 BGeometry from this BAggregateGeo. | |
| virtual size_t | GetGeometryCount (void) const |
| Gets the number of BGeometry objects in this BAggregateGeo. | |
| 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 BGeometryPtr &pGeo) |
| Removes a BGeometry from this BAggregateGeo. | |
| 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. | |
| ~BAggregateGeo () | |
| Destructor. | |
Protected Member Functions | |
| virtual BRect | ComputeMBR () const |
| Computes the minimum bounding rectangle for this BAggregateGeo. | |
| BAggregateGeo | ( | ) | [inline] |
Default constructor, which constructs an empty collection of BGeometry objects.
| BAggregateGeo | ( | const BAggregateGeo & | aggy | ) |
| ~BAggregateGeo | ( | ) | [inline] |
Destructor.
| void Add | ( | const BAggregateGeo & | aggy | ) |
Adds a collection of BGeometry objects to this BAggregateGeo.
| aggy | The collection of BGeometry objects. |
| void Add | ( | const BGeometryPtr & | pGeo | ) |
| virtual void AddGeometry | ( | const BGeometryPtr & | pGeo | ) | [virtual] |
Adds a BGeometry to this BAggregateGeo.
| pGeo | The BGeometry to be added. |
Implements BGeometryCollection.
| virtual BGeometry* Clone | ( | void | ) | const [virtual] |
| virtual BRect ComputeMBR | ( | ) | const [protected, virtual] |
Computes the minimum bounding rectangle for this BAggregateGeo.
Implements BGeometry.
| virtual size_t ComputeSize | ( | void | ) | const [inline, virtual] |
Compute the size of the BByteArray required to store this object.
Reimplemented from BGeometry.
| virtual bool Contains3dGeometry | ( | ) | const [virtual] |
Indicates whether or not the collection contains three dimensional BGeometry objects.
Implements BGeometryCollection.
| virtual double DistanceTo | ( | const BPoint & | point | ) | const [virtual] |
| virtual void DoResolveToPoint | ( | const BPoint & | refPt | ) | [virtual] |
| BAggregateGeoPtr Flatten | ( | void | ) | const |
Flattens the BAggregateGeo.
Returns a BAggregateGeo that contains only primitive (non-aggregate) BGeometry objects. Any aggregates in the collection will be flattened, and their BGeometry objects added to this collection.
| virtual void FromByteArray | ( | const BByteArray & | bytes, | |
| size_t & | startPos | |||
| ) | [virtual] |
Initializes an instance of this object from a BByteArray.
| 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 BGeometry from this BAggregateGeo.
| index | The index of the desired BGeometry. |
Implements BGeometryCollection.
| virtual size_t GetGeometryCount | ( | void | ) | const [inline, virtual] |
Gets the number of BGeometry objects in this BAggregateGeo.
Implements BGeometryCollection.
| virtual bool Intersects | ( | const BRect & | rect | ) | const [virtual] |
| virtual bool IsAggregate | ( | void | ) | const [inline, virtual] |
Determines whether or not this BGeometry is an aggregate geometry.
Since this object is a BAggregateGeo, this method will always return true.
Reimplemented from BGeometry.
| void Remove | ( | const BGeometryPtr & | pGeo | ) |
Removes a BGeometry from this BAggregateGeo.
| pGeo | The BGeometry to remove from this BAggregateGeo. |
| virtual BByteArray ToByteArray | ( | void | ) | const [virtual] |
Stores this object in a BByteArray.
Reimplemented from BGeometry.
| virtual void Transform | ( | const BTransform & | cst | ) | [virtual] |
Transforms the coordinates in this BGeometry to a different coordinate system.
| 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.
| cst | The BTransform that describes the transformation. |
Reimplemented from BGeometry.