|
Ocean
|
This class is the base class for all map objects. More...
#include <Basemap.h>
Public Types | |
| enum | ObjectType : uint32_t { OT_UNKNOWN = 0u , OT_BUILDING , OT_LAND_COVER , OT_LAND_USE , OT_ROAD , OT_TRANSIT , OT_WATER } |
| Definition of individual object types. More... | |
Public Member Functions | |
| ObjectType | objectType () const |
| Returns the type of this object. | |
| unsigned int | layerExtent () const |
| Returns the extent of the layer in which this object is defined. | |
| Vector2 | vectorFromCoordinate (const PixelPositionI &coordinate, const Scalar targetExtent) const |
| Converts the coordinate defined in the owning layer of this object to a target domain with individual extent. | |
Protected Member Functions | |
| Object (const ObjectType objectType, const unsigned int layerExtent) | |
| Creates a new object. | |
Protected Attributes | |
| ObjectType | objectType_ = OT_UNKNOWN |
| The object's type. | |
| unsigned int | layerExtent_ = 0u |
| The extent of the layer to which this object belongs, in pixel, with range [1, infinity), 0 if invalid. | |
This class is the base class for all map objects.
Objects are extracted from layers, layer coordinates are given with pixel precision.
| enum Ocean::IO::Maps::Basemap::Object::ObjectType : uint32_t |
Definition of individual object types.
|
inlineprotected |
Creates a new object.
| objectType | The type of the new object, must be valid |
| layerExtent | The extent of the layer to which this object belongs, in pixel, with range [1, infinity) |
|
inline |
Returns the extent of the layer in which this object is defined.
|
inline |
Returns the type of this object.
|
inline |
Converts the coordinate defined in the owning layer of this object to a target domain with individual extent.
| coordinate | The coordinate located in the layer to which this object belongs, with range (-infinity, infinity)x(-infinity, infinity) |
| targetExtent | The extent of the target domain, with sub-pixel precision, with range [1, infinity) |
|
protected |
The extent of the layer to which this object belongs, in pixel, with range [1, infinity), 0 if invalid.
|
protected |
The object's type.