Ocean
Loading...
Searching...
No Matches
io/maps/Utilities.h
Go to the documentation of this file.
1/*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7
8#ifndef META_OCEAN_IO_MAPS_UTILITIES_H
9#define META_OCEAN_IO_MAPS_UTILITIES_H
10
11#include "ocean/io/maps/Maps.h"
13
14#include "ocean/base/Frame.h"
15
16namespace Ocean
17{
18
19namespace IO
20{
21
22namespace Maps
23{
24
25/**
26 * This class implements several utility functions for maps.
27 * @ingroup iomaps
28 */
29class OCEAN_IO_MAPS_EXPORT Utilities
30{
31 public:
32
33 /**
34 * Draws one basemap tile into an image.
35 * @param tile The tile to draw, must be valid
36 * @param imageExtent The image size in horizontal and vertical direction
37 * @return The resulting image
38 */
39 static Frame drawToImage(const Basemap::Tile& tile, const unsigned int imageExtent = 4096u);
40};
41
42}
43
44}
45
46}
47
48#endif // META_OCEAN_IO_MAPS_UTILITIES_H
This class implements Ocean's image class.
Definition Frame.h:1808
This class stores the information belonging to one map tile.
Definition Basemap.h:723
This class implements several utility functions for maps.
Definition io/maps/Utilities.h:30
static Frame drawToImage(const Basemap::Tile &tile, const unsigned int imageExtent=4096u)
Draws one basemap tile into an image.
The namespace covering the entire Ocean framework.
Definition Accessor.h:15