#include <BSegment.h>

Public Member Functions | |
| 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. | |
| virtual const BPoint & | GetEndPoint (void) const =0 |
| Get the end point of this BSegment. | |
| virtual const BPoint & | GetStartPoint (void) const =0 |
| Gets the starting point of this BSegment. | |
| ESegmentType | GetType (void) const |
| Gets the segment type. | |
| virtual void | SetEndPoint (const BPoint &pt)=0 |
| Sets the end point of this BSegment. | |
| virtual void | SetStartPoint (const BPoint &pt)=0 |
| Sets the starting point of this BSegment. | |
| virtual BByteArray | ToByteArray (void) const |
| Stores this object in a BByteArray. | |
| virtual BGeometry * | Vectorize (double factor=1.0) const =0 |
| Converts this BSegment to a BPolyline that approximates this BSegment. | |
Protected Member Functions | |
| BSegment (const BSegment &seg) | |
| Copy constructor. | |
| BSegment (EGeometryType geoType, ESegmentType segType) | |
| Constructs a BSegment with the specified geometry type. | |
| BSegment () | |
| Default constructor. | |
Protected Attributes | |
| ESegmentType | m_type |
| The type of segment. | |
| BSegment | ( | ) | [inline, protected] |
Default constructor.
This constructor is hidden because this is an abstract class.
| BSegment | ( | EGeometryType | geoType, | |
| ESegmentType | segType | |||
| ) | [inline, protected] |
Constructs a BSegment with the specified geometry type.
This constructor is hidden because this is an abstract class.
| geoType | The geometry type to create. | |
| segType | The segment type to create. |
Copy constructor.
This constructor is hidden because this is an abstract class.
| seg | The BSegment to copy. |
| virtual size_t ComputeSize | ( | void | ) | const [inline, virtual] |
Computes the size of the BByteArray required to store this object.
Reimplemented from BLinearGeo.
| virtual void FromByteArray | ( | const BByteArray & | bytes, | |
| size_t & | startPos | |||
| ) | [inline, 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. |
Reimplemented from BLinearGeo.
| virtual const BPoint& GetEndPoint | ( | void | ) | const [pure virtual] |
| virtual const BPoint& GetStartPoint | ( | void | ) | const [pure virtual] |
| ESegmentType GetType | ( | void | ) | const [inline] |
Gets the segment type.
| virtual void SetEndPoint | ( | const BPoint & | pt | ) | [pure virtual] |
| virtual void SetStartPoint | ( | const BPoint & | pt | ) | [pure virtual] |
| virtual BByteArray ToByteArray | ( | void | ) | const [inline, virtual] |
Stores this object in a BByteArray.
Reimplemented from BLinearGeo.
| virtual BGeometry* Vectorize | ( | double | factor = 1.0 |
) | const [pure virtual] |
Converts this BSegment to a BPolyline that approximates this BSegment.
| factor | The value used to adjust the number of points in the resulting BPolyline. |
Implements BVectorizable.
ESegmentType m_type [protected] |