20,741
edits
| Line 264: | Line 264: | ||
* update() - empty placeholder for the time being | * update() - empty placeholder for the time being | ||
* hasData() - to get the size of the internal _elements vector (beginning at 0) | * hasData() - to get the size of the internal _elements vector (beginning at 0) | ||
In addition, a bunch of additional fields are currently exposed to the model, because the design is currently not a full MVC implementation, so that we need to work around the lack for a proper MVC separation, and a real controller interface, by making handles to the enclosing layer and map available to the model, these are: | |||
* _view_handle - a handle to the layer (canvas group) | |||
* _map_handle - a handle to the layer's map (map group) | |||
These are properly initialized during construction of the layer. | |||
Now, to actually make a new layer known to the system, we need to add another file that registers the layer. For an example of how to do this, please see navaids.layer: | Now, to actually make a new layer known to the system, we need to add another file that registers the layer. For an example of how to do this, please see navaids.layer: | ||