#include <BLayer.h>

Public Member Functions | |
| void | AddChild (const BLayerPtr &pLayer) |
| Adds a child layer to this BLayer. | |
| BLayer (const BLayer &l) | |
| Copy constructor. | |
| void | ClearChildren (void) |
| Removes all child layers from this BLayer. | |
| virtual BLayer * | Clone (void) const =0 |
| Create a deep-copy of this object. | |
| BLayerPtr | GetChildAt (size_t index) |
| Gets the child layer at the specified index. | |
| size_t | GetChildCount (void) const |
| Gets the number of children that this BLayer has. | |
| const BCoordSysPtr & | GetCoordSys (void) const |
| Gets the coordinate system for this BLayer. | |
| virtual const BRect & | GetMBR (void) const |
| Gets the minimum bounding rectangle for this BLayer. | |
| const BString & | GetName (void) const |
| Gets the name of this BLayer. | |
| BLayerPtr | GetParent (void) const |
| Gets the parent of the current BLayer. | |
| ELayerType | GetType (void) const |
| Get the layer type. | |
| bool | HasChildren (void) const |
| Indicates whether or not this BLayer has child layers. | |
| bool | HasCoordSys (void) const |
| Indicates whether or not this BLayer has a valid coordinate system. | |
| bool | IsChild (const BLayerPtr pLayer) const |
| Indicates whether or not the specified BLayer is a child of this BLayer, or a child of a child layer. | |
| virtual bool | IsEmpty (void) const =0 |
| Gets an indication of whether or not this BLayer is empty. | |
| bool | IsParent (const BLayerPtr pLayer) const |
| Indicates whether or not the specified BLayer is the parent of this BLayer, or the parent of the parent of this BLayer, or the parent of the parent of the parent of this BLayer, etc. | |
| bool | IsVisible (void) const |
| Gets an indication of whether or not this BLayer is currently visible. | |
| void | RemoveChild (const BLayerPtr &pLayer) |
| Removes the specified child from this BLayer. | |
| virtual void | SetCoordSys (const BCoordSysPtr &cs) |
| Sets the coordinate system for this BLayer. | |
| void | SetMBR (const BRect &mbr) |
| Sets the minimum bounding rectangle for this BLayer. | |
| void | SetName (const BString &name) |
| Sets the name of this BLayer. | |
| void | SetParent (const BLayerPtr &pLayer) |
| Sets the specified BLayer to be the parent of the current BLayer. | |
| void | SetVisible (bool visible) |
| Sets the visibility of this BLayer. | |
| virtual bool | Transform (const BTransform &ct)=0 |
| Transforms the geometry in this BLayer to a different coordinate system. | |
| virtual bool | TransformReverse (const BTransform &ct)=0 |
| Transforms the geometry in this BLayer to a different coordinate system using the "reverse" of the BTransform. | |
| virtual | ~BLayer () |
| Destructor. | |
Static Public Member Functions | |
| static void | SetRelationship (BLayerPtr pParent, BLayerPtr pChild) |
| Sets up a parent/child relationship for the specified BLayers. | |
Protected Member Functions | |
| BLayer (ELayerType type) | |
| Constructs a BLayer of the specified type. | |
| BLayer () | |
| Default constructor. | |
Protected Attributes | |
| BLayerPtrVector | m_childLayers |
| The collection of children of this BLayer. | |
| bool | m_isVisible |
| Indicates whether this BLayer is currently visible. | |
| BRect | m_mbr |
| The minimum bounding rectangle for this BLayer. | |
| BString | m_name |
| The name of this BLayer. | |
| BCoordSysPtr | m_pCoordSys |
| The coordinate system currently in use by this BLayer. | |
| BLayerPtr | m_pParentLayer |
| The parent of this BLayer. | |
| ELayerType | m_type |
| Indicates the type of this BLayer. | |
| virtual ~BLayer | ( | ) | [inline, virtual] |
Destructor.
| BLayer | ( | ) | [inline, protected] |
Default constructor.
This constructor is hidden because this is an abstract class.
| BLayer | ( | ELayerType | type | ) | [inline, protected] |
| void AddChild | ( | const BLayerPtr & | pLayer | ) |
| void ClearChildren | ( | void | ) | [inline] |
Removes all child layers from this BLayer.
| virtual BLayer* Clone | ( | void | ) | const [pure virtual] |
| BLayerPtr GetChildAt | ( | size_t | index | ) | [inline] |
Gets the child layer at the specified index.
| index | The zero-based index of the requested child layer. |
| size_t GetChildCount | ( | void | ) | const [inline] |
| const BCoordSysPtr& GetCoordSys | ( | void | ) | const [inline] |
| virtual const BRect& GetMBR | ( | void | ) | const [inline, virtual] |
Gets the minimum bounding rectangle for this BLayer.
Reimplemented in BVectorLayer.
| const BString& GetName | ( | void | ) | const [inline] |
| BLayerPtr GetParent | ( | void | ) | const [inline] |
| ELayerType GetType | ( | void | ) | const [inline] |
Get the layer type.
| bool HasChildren | ( | void | ) | const [inline] |
| bool HasCoordSys | ( | void | ) | const [inline] |
| bool IsChild | ( | const BLayerPtr | pLayer | ) | const |
| virtual bool IsEmpty | ( | void | ) | const [pure virtual] |
Gets an indication of whether or not this BLayer is empty.
Derived classes must implement this function.
Implemented in BVectorLayer.
| bool IsParent | ( | const BLayerPtr | pLayer | ) | const |
| bool IsVisible | ( | void | ) | const [inline] |
| void RemoveChild | ( | const BLayerPtr & | pLayer | ) |
| virtual void SetCoordSys | ( | const BCoordSysPtr & | cs | ) | [inline, virtual] |
| void SetMBR | ( | const BRect & | mbr | ) | [inline] |
Sets the minimum bounding rectangle for this BLayer.
| mbr | The minimum bounding rectangle. |
| void SetName | ( | const BString & | name | ) | [inline] |
| void SetParent | ( | const BLayerPtr & | pLayer | ) |
| void SetVisible | ( | bool | visible | ) | [inline] |
| virtual bool Transform | ( | const BTransform & | ct | ) | [pure virtual] |
Transforms the geometry in this BLayer to a different coordinate system.
| ct | The BTransform that describes the transformation. |
Implemented in BVectorLayer.
| virtual bool TransformReverse | ( | const BTransform & | ct | ) | [pure virtual] |
Transforms the geometry in this BLayer to a different coordinate system using the "reverse" of the BTransform.
| ct | The BTransform that describes the transformation. |
Implemented in BVectorLayer.
BLayerPtrVector m_childLayers [protected] |
The collection of children of this BLayer.
bool m_isVisible [protected] |
Indicates whether this BLayer is currently visible.
BCoordSysPtr m_pCoordSys [protected] |
The coordinate system currently in use by this BLayer.
BLayerPtr m_pParentLayer [protected] |
The parent of this BLayer.
ELayerType m_type [protected] |
Indicates the type of this BLayer.