QGIS API Documentation 3.41.0-Master (45a0abf3bec)
Loading...
Searching...
No Matches
Classes | Static Public Member Functions | List of all members
QgsCesiumUtils Class Reference

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 TileContents extractGltfFromTileContent (const QByteArray &tileContent)
 Parses tile content.
 
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 &region)
 Parses a region object from a Cesium JSON object to a 3D box.
 
static QgsBox3D parseRegion (const QVariantList &region)
 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.
 

Detailed Description

Contains utilities for working with Cesium data.

Since
QGIS 3.34

Definition at line 43 of file qgscesiumutils.h.

Member Function Documentation

◆ extractGltfFromB3dm()

QgsCesiumUtils::B3DMContents QgsCesiumUtils::extractGltfFromB3dm ( const QByteArray &  tileContent)
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 146 of file qgscesiumutils.cpp.

◆ extractGltfFromTileContent()

QgsCesiumUtils::TileContents QgsCesiumUtils::extractGltfFromTileContent ( const QByteArray &  tileContent)
static

Parses tile content.

Returns empty byte array on error.

Note
cmpt, pnts, i3dm tile types are currently not supported

Definition at line 199 of file qgscesiumutils.cpp.

◆ parseBox() [1/2]

QgsOrientedBox3D QgsCesiumUtils::parseBox ( const json &  box)
static

Parses a box object from a Cesium JSON document to an oriented bounding box.

Note
Not available in Python bindings.

Definition at line 60 of file qgscesiumutils.cpp.

◆ parseBox() [2/2]

QgsOrientedBox3D QgsCesiumUtils::parseBox ( const QVariantList &  box)
static

Parses a box object from a Cesium JSON document to an oriented bounding box.

Definition at line 84 of file qgscesiumutils.cpp.

◆ parseRegion() [1/2]

QgsBox3D QgsCesiumUtils::parseRegion ( const json &  region)
static

Parses a region object from a Cesium JSON object to a 3D box.

Note
Not available in Python bindings.

Definition at line 30 of file qgscesiumutils.cpp.

◆ parseRegion() [2/2]

QgsBox3D QgsCesiumUtils::parseRegion ( const QVariantList &  region)
static

Parses a region object from a Cesium JSON document to a 3D box.

Definition at line 52 of file qgscesiumutils.cpp.

◆ parseSphere() [1/2]

QgsSphere QgsCesiumUtils::parseSphere ( const json &  sphere)
static

Parses a sphere object from a Cesium JSON document.

Note
Not available in Python bindings.

Definition at line 92 of file qgscesiumutils.cpp.

◆ parseSphere() [2/2]

QgsSphere QgsCesiumUtils::parseSphere ( const QVariantList &  sphere)
static

Parses a sphere object from a Cesium JSON document.

Definition at line 111 of file qgscesiumutils.cpp.

◆ transformSphere()

QgsSphere QgsCesiumUtils::transformSphere ( const QgsSphere sphere,
const QgsMatrix4x4 transform 
)
static

Applies a transform to a sphere.

Definition at line 119 of file qgscesiumutils.cpp.


The documentation for this class was generated from the following files: