|
QGIS API Documentation 4.1.0-Master (376402f9aeb)
|
Contains utilities for working with Cesium data. More...
#include <qgscesiumutils.h>
Classes | |
| struct | B3DMContents |
| Encapsulates the contents of a B3DM file. More... | |
| struct | TileContents |
| Encapsulates the contents of a 3D tile. More... | |
Static Public Member Functions | |
| static B3DMContents | extractGltfFromB3dm (const QByteArray &tileContent) |
| Extracts GLTF binary data and other contents from the legacy b3dm (Batched 3D Model) tile format. | |
| static Q_DECL_DEPRECATED TileContents | extractGltfFromTileContent (const QByteArray &tileContent) |
| Parses tile content. | |
| static QVector< QgsCesiumUtils::TileContents > | extractTileContent (const QByteArray &tileContent) |
| Parses tile content and returns a list of TileContents. | |
| static QgsOrientedBox3D | parseBox (const json &box) |
| Parses a box object from a Cesium JSON document to an oriented bounding box. | |
| static QgsOrientedBox3D | parseBox (const QVariantList &box) |
| Parses a box object from a Cesium JSON document to an oriented bounding box. | |
| static QgsBox3D | parseRegion (const json ®ion) |
| Parses a region object from a Cesium JSON object to a 3D box. | |
| static QgsBox3D | parseRegion (const QVariantList ®ion) |
| Parses a region object from a Cesium JSON document to a 3D box. | |
| static QgsSphere | parseSphere (const json &sphere) |
| Parses a sphere object from a Cesium JSON document. | |
| static QgsSphere | parseSphere (const QVariantList &sphere) |
| Parses a sphere object from a Cesium JSON document. | |
| static QgsSphere | transformSphere (const QgsSphere &sphere, const QgsMatrix4x4 &transform) |
| Applies a transform to a sphere. | |
Contains utilities for working with Cesium data.
Definition at line 44 of file qgscesiumutils.h.
|
static |
Extracts GLTF binary data and other contents from the legacy b3dm (Batched 3D Model) tile format.
Returns empty byte array on error.
Definition at line 144 of file qgscesiumutils.cpp.
|
static |
Parses tile content.
Returns empty byte array on error.
Definition at line 258 of file qgscesiumutils.cpp.
|
static |
Parses tile content and returns a list of TileContents.
For b3dm and glTF tiles, the returned list will contain a single entry. For cmpt (composite) tiles, the returned list will contain one entry per inner tile that could be successfully parsed. Returns an empty list on error or for unsupported tile types (pnts, i3dm).
Definition at line 280 of file qgscesiumutils.cpp.
|
static |
Parses a box object from a Cesium JSON document to an oriented bounding box.
Definition at line 65 of file qgscesiumutils.cpp.
|
static |
Parses a box object from a Cesium JSON document to an oriented bounding box.
Definition at line 89 of file qgscesiumutils.cpp.
|
static |
Parses a region object from a Cesium JSON object to a 3D box.
Definition at line 35 of file qgscesiumutils.cpp.
|
static |
Parses a region object from a Cesium JSON document to a 3D box.
Definition at line 57 of file qgscesiumutils.cpp.
|
static |
Parses a sphere object from a Cesium JSON document.
Definition at line 97 of file qgscesiumutils.cpp.
|
static |
Parses a sphere object from a Cesium JSON document.
Definition at line 116 of file qgscesiumutils.cpp.
|
static |
Applies a transform to a sphere.
Definition at line 124 of file qgscesiumutils.cpp.