#include <BLayers.h>

Public Member Functions | |
| void | Add (const BLayers &layers) |
| Adds a collection of BLayer objects to this collection. | |
| void | Add (const BLayer &layer) |
| Adds a copy of the specified BLayer to this collection. | |
| void | Add (const BLayerPtr &layer) |
| Adds a BLayer to this collection. | |
| BLayers (const BLayers &layers) | |
| Copy constructor. | |
| BLayers () | |
| Default constructor. | |
| void | Clear (void) |
| Removes all BLayer objects from this collection. | |
| const BLayerPtr | Get (const BString &name) const |
| Gets the BLayer with the specified name from this collection. | |
| BLayerPtr | Get (const BString &name) |
| Gets the BLayer with the specified name from this collection. | |
| const BLayerPtr | GetAt (size_t index) const |
| Gets the specified BLayer from this collection. | |
| BLayerPtr | GetAt (size_t index) |
| Gets the specified BLayer from this collection. | |
| size_t | GetCount (void) const |
| Get the number of BLayer objects in this collection. | |
| const BRect & | GetMBR () const |
| Gets the aggregate minimum bounding rectangle for all BLayer objects in this collection. | |
| BLayers & | operator= (const BLayers &rhs) |
| Assignment operator. | |
| void | Remove (const BLayerPtr &layer) |
| Removes a BLayer from this collection. | |
| void | RemoveEmptyLayers (void) |
| Removes all empty layers from the collection. | |
| void | Reserve (size_t size) |
| Reserves space for the requested number of elements in this collection. | |
| void | SetCoordSys (const BCoordSysPtr &pcs) |
| Sets the coordinate system for all BLayer objects in this collection to the specified BCoordSys. | |
| virtual bool | Transform (const BTransform &ct) |
| Transforms the geometry of each BLayer in this collection to a different coordinate system. | |
| virtual bool | TransformReverse (const BTransform &ct) |
| Transforms the geometry of each BLayer in this collection to a different coordinate system using the "reverse" of the BTransform. | |
| virtual | ~BLayers () |
| Destructor. | |
Protected Member Functions | |
| BRect | ComputeMBR (void) const |
| Computes the aggregate MBR for all BLayer objects in this collection. | |
| void | SetChanged (bool val=true) |
| Sets the indication of whether or not the MBR needs to be recalculated. | |
Protected Attributes | |
| bool | m_isChanged |
| A flag indicating whether or not the MBR needs to be recalculated. | |
| BLayerPtrVector | m_layers |
| The collection of BLayer objects. | |
| BRect | m_mbr |
| The aggregate minimum bounding rectangle for all BLayer objects in this collection. | |
| BLayers | ( | ) | [inline] |
Default constructor.
This will create an empty collection.
| virtual ~BLayers | ( | ) | [inline, virtual] |
Destructor.
| void Add | ( | const BLayers & | layers | ) |
| void Add | ( | const BLayer & | layer | ) | [inline] |
| void Add | ( | const BLayerPtr & | layer | ) | [inline] |
| void Clear | ( | void | ) | [inline] |
Removes all BLayer objects from this collection.
| BRect ComputeMBR | ( | void | ) | const [protected] |
| const BLayerPtr GetAt | ( | size_t | index | ) | const [inline] |
| BLayerPtr GetAt | ( | size_t | index | ) | [inline] |
| size_t GetCount | ( | void | ) | const [inline] |
| const BRect& GetMBR | ( | ) | const |
| void Remove | ( | const BLayerPtr & | layer | ) |
| void RemoveEmptyLayers | ( | void | ) |
| 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. |
| void SetChanged | ( | bool | val = true |
) | [inline, protected] |
Sets the indication of whether or not the MBR needs to be recalculated.
| val | True if the MBR needs to be recalculated and false otherwise. |
| void SetCoordSys | ( | const BCoordSysPtr & | pcs | ) |
Sets the coordinate system for all BLayer objects in this collection to the specified BCoordSys.
Please note that this method is intended to be used to set a coordinate system for BLayers whose source data does not include a coordinate system definition (e.g. DWG or DGN files). If a BLayer already has a different BCoordSys, the existing BCoordSys will be left in place.
| pcs | The new coordinate system definition. |
| virtual bool Transform | ( | const BTransform & | ct | ) | [virtual] |
Transforms the geometry of each BLayer in this collection to a different coordinate system.
| ct | The BTransform that defines the transformation. |
| virtual bool TransformReverse | ( | const BTransform & | ct | ) | [virtual] |
Transforms the geometry of each BLayer in this collection to a different coordinate system using the "reverse" of the BTransform.
| ct | The BTransform that defines the transformation. |
bool m_isChanged [mutable, protected] |
A flag indicating whether or not the MBR needs to be recalculated.
BLayerPtrVector m_layers [protected] |
The collection of BLayer objects.
The aggregate minimum bounding rectangle for all BLayer objects in this collection.