#include <BPoints.h>

Public Member Functions | |
| void | Add (const BPoints &points) |
| Adds a collection of BPoints to this collection. | |
| void | Add (const BPoint &point) |
| Adds a BPoint to this collection. | |
| BPoints (const BPoints &points) | |
| Copy constructor. | |
| BPoints (size_t size) | |
| Constructs a BPoint collection and reserves space for the specified number of BPoint objects. | |
| BPoints () | |
| Default constructor. | |
| void | Clear (void) |
| Removes a BPoint objects from this collection. | |
| virtual size_t | ComputeSize (void) const |
| Computes the size of the BByteArray required to store this object. | |
| virtual void | DoResolveToPoint (const BPoint &refPt) |
| Resolves the BPoints in this collection based on the input BPoint. | |
| virtual void | FromByteArray (const BByteArray &bytes, size_t &startPos) |
| Initializes an instance of this object from a BByteArray. | |
| BPoint & | GetAt (size_t index) |
| Gets the BPoint at the specified index in this collection. | |
| const BPoint & | GetAt (size_t index) const |
| Gets the BPoint at the specified index in this collection. | |
| size_t | GetCount (void) const |
| Get the number of BPoint objects in this collection. | |
| BPoint & | GetLast (void) |
| Gets the last BPoint in this collection. | |
| const BPoint & | GetLast (void) const |
| Gets the last BPoint in this collection. | |
| bool | IsClosed (void) const |
| Indicates whether or not this collection of BPoints is closed. | |
| void | Remove (const BPoint &point) |
| Removes the specified BPoint from this collection. | |
| void | RemoveFirst (void) |
| Removes the first BPoint from this collection. | |
| void | RemoveLast (void) |
| Removes the last BPoint from this collection. | |
| void | Reserve (size_t size) |
| Reserves space for the requested number of elements in this collection. | |
| BPoints | ReverseCopy (void) const |
| Reverses the order of the BPoints in this collection. | |
| void | SetAt (size_t index, const BPoint &point) |
| Sets the BPoint at the specified index. | |
| void | SetLast (const BPoint &point) |
| Sets value of the last BPoint in this collection. | |
| virtual BByteArray | ToByteArray (void) const |
| Stores this object in a BByteArray. | |
| virtual void | Transform (const BTransform &cst) |
| Transforms each BPoint in this collection to a different coordinate system. | |
| virtual void | TransformReverse (const BTransform &cst) |
| Transforms each BPoint in this collection to a different coordinate system using the "reverse" of the BTransform. | |
| virtual | ~BPoints () |
| Destructor. | |
| BPoints | ( | ) | [inline] |
Default constructor.
This will create an empty collection.
| BPoints | ( | size_t | size | ) | [inline] |
| virtual ~BPoints | ( | ) | [inline, virtual] |
Destructor.
| void Add | ( | const BPoints & | points | ) | [inline] |
| void Add | ( | const BPoint & | point | ) | [inline] |
| void Clear | ( | void | ) | [inline] |
Removes a BPoint objects from this collection.
| virtual size_t ComputeSize | ( | void | ) | const [inline, virtual] |
Computes the size of the BByteArray required to store this object.
Implements BByteStreamable.
| virtual void DoResolveToPoint | ( | const BPoint & | refPt | ) | [virtual] |
| 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 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. |
Implements BByteStreamable.
| BPoint& GetAt | ( | size_t | index | ) | [inline] |
| const BPoint& GetAt | ( | size_t | index | ) | const [inline] |
| size_t GetCount | ( | void | ) | const [inline] |
| BPoint& GetLast | ( | void | ) | [inline] |
| const BPoint& GetLast | ( | void | ) | const [inline] |
| bool IsClosed | ( | void | ) | const |
Indicates whether or not this collection of BPoints is closed.
A collection of points is said to be closed if the first point coincides with the last point.
| void Remove | ( | const BPoint & | point | ) |
| void RemoveFirst | ( | void | ) |
Removes the first BPoint from this collection.
| void RemoveLast | ( | void | ) |
Removes the last BPoint from this collection.
| void Reserve | ( | size_t | size | ) | [inline] |
Reserves space for the requested number of elements in this collection.
| size | The number of elements for which space shall be reserved. |
| BPoints ReverseCopy | ( | void | ) | const |
| void SetAt | ( | size_t | index, | |
| const BPoint & | point | |||
| ) | [inline] |
| void SetLast | ( | const BPoint & | point | ) | [inline] |
| virtual BByteArray ToByteArray | ( | void | ) | const [virtual] |
Stores this object in a BByteArray.
Implements BByteStreamable.
| virtual void Transform | ( | const BTransform & | cst | ) | [virtual] |
Transforms each BPoint in this collection to a different coordinate system.
| cst | The BTransform that defines the transformation. |
| virtual void TransformReverse | ( | const BTransform & | cst | ) | [virtual] |
Transforms each BPoint in this collection to a different coordinate system using the "reverse" of the BTransform.
| cst | The BTransform that defines the transformation. |