#include <BFeature.h>

Public Member Functions | |
| BFeature (const BFeature &feat) | |
| Copy constructor. | |
| BFeature (EFeatureType type) | |
| Constructor. | |
| BFeature () | |
| Default constructor. | |
| virtual BFeature * | Clone (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 BAttributes & | GetAttributes (void) const |
| Gets the BAttributes for this BFeature. | |
| BAttributes & | GetAttributes (void) |
| Gets the BAttributes for this BFeature. | |
| BRendition & | GetDefaultRendition (void) |
| Gets the default BRendition used when no other rendition has been specified. | |
| const BRendition & | GetDefaultRendition (void) const |
| Gets the default BRendition used when no other rendition has been specified. | |
| BGeometryPtr & | GetGeometry (void) |
| Gets the geometry for this BFeature. | |
| const BGeometryPtr & | GetGeometry (void) const |
| Gets the geometry for this BFeature. | |
| virtual const BRect & | GetMBR (void) const |
| Gets the minimum bounding rectangle for this BFeature. | |
| const BString & | GetName (void) const |
| Get the name for this BFeature. | |
| EFeatureType | GetType (void) const |
| Gets the feature type. | |
| bool | HasGeometry (void) const |
| Indicates whether or not this feature has a geometry object. | |
| bool | Is3d (void) const |
| Indicates whether or not this BFeature is three-dimensional. | |
| bool | IsVisible (void) const |
| Indicates whether or not the feature is visible. | |
| void | SetAttributes (const BAttributes &attrs) |
| Sets the attributes for the Bfeature. | |
| void | SetDefaultRendition (const BRendition &rend) |
| Sets the default BRendition to be used if no other rendition has been specified. | |
| virtual void | SetGeometry (const BGeometryPtr &geo) |
| Sets the BGeometry for this BFeature. | |
| void | SetIsVisible (bool visible) |
| Sets the visibility of this BFeature. | |
| void | SetMBR (const BRect mbr) |
| Sets the minimum bounding rectangle for this BFeature. | |
| void | SetName (const BString &name) |
| Sets the name for this BFeature. | |
| virtual BByteArray | ToByteArray (void) const |
| Stores this object in a BByteArray. | |
| virtual void | Transform (const BTransform &cst) |
| Transform this BFeature's geometry to a different coordinate system. | |
| virtual void | TransformReverse (const BTransform &cst) |
| Transform this BFeature's geometry to a different coordinate system using the "reverse" of the BTransform. | |
| virtual | ~BFeature () |
| Destructor. | |
Static Public Member Functions | |
| static BFeature * | FromBinary (const BByteArray &bytes, size_t &startPos, bool inclAttrs) |
| Initialize a BFeature from a BByteArray. | |
Protected Attributes | |
| BAttributes | m_attributes |
| The attribute data associated with this BFeature. | |
| BRendition | m_defaultRendition |
| The default rendition, used if no other rendition is specified. | |
| BGeometryPtr | m_geometry |
| The geometry associated with this BFeature. | |
| bool | m_inclCachedAttrs |
| Indicates whether or not to include attributes during FromByteArray(). | |
| bool | m_isVisible |
| Indicates whether or not the feature is visible. | |
| BString | m_name |
| The name of this BFeature. | |
| EFeatureType | m_type |
| The type of this BFeature. | |
| BFeature | ( | ) | [inline] |
Default constructor.
| BFeature | ( | EFeatureType | type | ) | [inline] |
Constructor.
| type | The feature type. |
| virtual ~BFeature | ( | ) | [inline, virtual] |
Destructor.
| virtual BFeature* Clone | ( | void | ) | const [inline, virtual] |
Creates a deep-copy of this object.
Reimplemented in BBlockRefFeature, BExternalRefFeature, BMultilineTextFeature, BSymbolFeature, and BTextFeature.
| virtual size_t ComputeSize | ( | void | ) | const [virtual] |
Computes the size of the BByteArray required to store this object.
Reimplemented from BMetadataContainer.
Reimplemented in BBlockRefFeature, BExternalRefFeature, BMultilineTextFeature, BSymbolFeature, and BTextFeature.
| static BFeature* FromBinary | ( | const BByteArray & | bytes, | |
| size_t & | startPos, | |||
| bool | inclAttrs | |||
| ) | [static] |
Initialize a BFeature 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. | |
| inclAttrs | Indicates whether or not to include the attributes when making a feature from a BByteArray. |
| 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. |
Reimplemented from BMetadataContainer.
Reimplemented in BBlockRefFeature, BExternalRefFeature, BMultilineTextFeature, BSymbolFeature, and BTextFeature.
| const BAttributes& GetAttributes | ( | void | ) | const [inline] |
| BAttributes& GetAttributes | ( | void | ) | [inline] |
| BRendition& GetDefaultRendition | ( | void | ) | [inline] |
Gets the default BRendition used when no other rendition has been specified.
| const BRendition& GetDefaultRendition | ( | void | ) | const [inline] |
Gets the default BRendition used when no other rendition has been specified.
| BGeometryPtr& GetGeometry | ( | void | ) | [inline] |
| const BGeometryPtr& GetGeometry | ( | void | ) | const [inline] |
| virtual const BRect& GetMBR | ( | void | ) | const [virtual] |
Gets the minimum bounding rectangle for this BFeature.
Reimplemented in BSymbolFeature, and BTextFeature.
| const BString& GetName | ( | void | ) | const [inline] |
| EFeatureType GetType | ( | void | ) | const [inline] |
Gets the feature type.
| bool HasGeometry | ( | void | ) | const [inline] |
Indicates whether or not this feature has a geometry object.
| bool Is3d | ( | void | ) | const |
| bool IsVisible | ( | void | ) | const [inline] |
Indicates whether or not the feature is visible.
| void SetAttributes | ( | const BAttributes & | attrs | ) | [inline] |
Sets the attributes for the Bfeature.
| attrs | An attribute collection. |
| void SetDefaultRendition | ( | const BRendition & | rend | ) | [inline] |
Sets the default BRendition to be used if no other rendition has been specified.
| rend | The default rendition. |
| virtual void SetGeometry | ( | const BGeometryPtr & | geo | ) | [virtual] |
Sets the BGeometry for this BFeature.
| geo | A BGeometry object. |
Reimplemented in BBlockRefFeature, BExternalRefFeature, BSymbolFeature, and BTextFeature.
| void SetIsVisible | ( | bool | visible | ) | [inline] |
| void SetMBR | ( | const BRect | mbr | ) |
Sets the minimum bounding rectangle for this BFeature.
| mbr | The minimum bounding rectangle. |
| void SetName | ( | const BString & | name | ) | [inline] |
| virtual BByteArray ToByteArray | ( | void | ) | const [virtual] |
Stores this object in a BByteArray.
Reimplemented from BMetadataContainer.
Reimplemented in BBlockRefFeature, BExternalRefFeature, BMultilineTextFeature, BSymbolFeature, and BTextFeature.
| virtual void Transform | ( | const BTransform & | cst | ) | [virtual] |
Transform this BFeature's geometry to a different coordinate system.
| cst | The BTransform that defines the transformation. |
Reimplemented in BMultilineTextFeature, BSymbolFeature, and BTextFeature.
| virtual void TransformReverse | ( | const BTransform & | cst | ) | [virtual] |
Transform this BFeature's geometry to a different coordinate system using the "reverse" of the BTransform.
| cst | The BTransform that defines the transformation. |
Reimplemented in BMultilineTextFeature, BSymbolFeature, and BTextFeature.
BAttributes m_attributes [protected] |
The attribute data associated with this BFeature.
BRendition m_defaultRendition [protected] |
The default rendition, used if no other rendition is specified.
BGeometryPtr m_geometry [protected] |
The geometry associated with this BFeature.
bool m_inclCachedAttrs [protected] |
Indicates whether or not to include attributes during FromByteArray().
bool m_isVisible [protected] |
Indicates whether or not the feature is visible.
EFeatureType m_type [protected] |
The type of this BFeature.