cesium-native 0.50.0
Loading...
Searching...
No Matches
CesiumVectorData Namespace Reference

Classes for loading vector data such as GeoJSON. More...

Classes

struct  ColorStyle
 Specifies the color of a style type. More...
 
struct  ConstGeoJsonObjectIterator
 The const equivalent of GeoJsonObjectIterator. More...
 
struct  ConstGeoJsonObjectTypeIterator
 An iterator over all GeoJsonObject objects that contain a value of type ObjectType. More...
 
struct  ConstGeoJsonPrimitiveIterator
 Returns all geometry data of a given type from a GeoJsonObject. More...
 
class  GeoJsonDocument
 A vector document parsed from GeoJSON. More...
 
struct  GeoJsonFeature
 A GeoJsonFeature object represents a spatially bounded "thing." It is a collection of information that is possibly linked to a geometry object. More...
 
struct  GeoJsonFeatureCollection
 A FeatureCollection represents any number of GeoJsonFeature objects. More...
 
struct  GeoJsonGeometryCollection
 A GeometryCollection represents any number of GeoJsonObject objects. More...
 
struct  GeoJsonLineString
 A LineString geometry object. More...
 
struct  GeoJsonMultiLineString
 A MultiLineString geometry object. More...
 
struct  GeoJsonMultiPoint
 A MultiPoint geometry object. More...
 
struct  GeoJsonMultiPolygon
 A 'MultiPolygon' geometry object. More...
 
struct  GeoJsonObject
 An object in a GeoJSON document. More...
 
struct  GeoJsonObjectIterator
 Iterates over a GeoJsonObject and all of its children. More...
 
struct  GeoJsonPoint
 A Point geometry object. More...
 
struct  GeoJsonPolygon
 A Polygon geometry object. More...
 
struct  LineStyle
 The style used to draw polylines and strokes. More...
 
struct  PolygonStyle
 The style used to draw a Polygon. More...
 
struct  VectorDocumentAttribution
 Attribution that must be included with a vector document. More...
 
class  VectorRasterizer
 Rasterizes vector primitives into a CesiumGltf::ImageAsset. More...
 
struct  VectorStyle
 Style information to use when drawing vector data. More...
 

Typedefs

using ConstGeoJsonPointIterator
 An iterator over all Point and MultiPoint objects in and including a root GeoJSON object.
 
using ConstGeoJsonLineStringIterator
 An iterator over all LineString and MultiLineString objects in and including a root GeoJSON object.
 
using ConstGeoJsonPolygonIterator
 An iterator over all Polygon and MultiPolygon objects in and including a root GeoJSON object.
 
using GeoJsonObjectVariant
 Every possible object that can be specified in a GeoJSON document.
 

Enumerations

enum class  GeoJsonObjectType : uint8_t {
  Point = 0 , MultiPoint = 1 , LineString = 2 , MultiLineString = 3 ,
  Polygon = 4 , MultiPolygon = 5 , GeometryCollection = 6 , Feature = 7 ,
  FeatureCollection = 8
}
 A type of object in GeoJson data. More...
 
enum class  ColorMode : uint8_t { Normal = 0 , Random = 1 }
 The mode used for coloring. More...
 
enum class  LineWidthMode : uint8_t { Pixels = 0 , Meters = 1 }
 The mode to use when interpreting a given line width. More...
 

Functions

std::string_view geoJsonObjectTypeToString (GeoJsonObjectType type)
 Returns the name of a GeoJsonObjectType value.
 

Detailed Description

Classes for loading vector data such as GeoJSON.

--- comment: This file was generated by dep-graph-gen. DO NOT EDIT THIS FILE! title: CesiumVectorData Dependency Graph --- graph TD classDef dependencyNode fill:#fff,stroke:#ccc,color:#666,font-weight:bold,font-size:28px classDef libraryNode fill:#9f9,font-weight:bold,font-size:28px CesiumVectorData[CesiumVectorData] --> CesiumAsync[CesiumAsync] CesiumVectorData[CesiumVectorData] --> CesiumGeometry[CesiumGeometry] CesiumVectorData[CesiumVectorData] --> CesiumUtility[CesiumUtility] class CesiumAsync,CesiumGeometry,CesiumUtility,CesiumVectorData libraryNode

Typedef Documentation

◆ ConstGeoJsonLineStringIterator

Initial value:
std::vector<glm::dvec3>>
Returns all geometry data of a given type from a GeoJsonObject.
A LineString geometry object.
A MultiLineString geometry object.

An iterator over all LineString and MultiLineString objects in and including a root GeoJSON object.

Definition at line 28 of file GeoJsonObject.h.

◆ ConstGeoJsonPointIterator

Initial value:

An iterator over all Point and MultiPoint objects in and including a root GeoJSON object.

Definition at line 22 of file GeoJsonObject.h.

◆ ConstGeoJsonPolygonIterator

Initial value:
std::vector<std::vector<glm::dvec3>>>
A 'MultiPolygon' geometry object.

An iterator over all Polygon and MultiPolygon objects in and including a root GeoJSON object.

Definition at line 36 of file GeoJsonObject.h.

◆ GeoJsonObjectVariant

Initial value:
std::variant<
A FeatureCollection represents any number of GeoJsonFeature objects.
A GeoJsonFeature object represents a spatially bounded "thing." It is a collection of information tha...
A GeometryCollection represents any number of GeoJsonObject objects.
A MultiPoint geometry object.

Every possible object that can be specified in a GeoJSON document.

Definition at line 423 of file GeoJsonObjectTypes.h.

Enumeration Type Documentation

◆ ColorMode

enum class CesiumVectorData::ColorMode : uint8_t
strong

The mode used for coloring.

Enumerator
Normal 

The normal color mode. The color will be used directly.

Random 

The color will be chosen randomly.

The color randomization will be applied to each component, with the resulting value between 0 and the specified color component value. Alpha is always ignored. For example, if the color was (R: 0x00, G: 0x77, B: 0x00, A: 0xFF), the resulting randomized value could be (R: 0x00, G: 0x41, B: 0x00, A: 0xFF), or (R: 0x00, G: 0x76, B: 0x00, A: 0xFF), but never (R: 0x00, G: 0xAA, B: 0x00, A: 0xFF).

Definition at line 12 of file VectorStyle.h.

◆ GeoJsonObjectType

enum class CesiumVectorData::GeoJsonObjectType : uint8_t
strong

A type of object in GeoJson data.

Definition at line 19 of file GeoJsonObjectTypes.h.

◆ LineWidthMode

enum class CesiumVectorData::LineWidthMode : uint8_t
strong

The mode to use when interpreting a given line width.

Enumerator
Pixels 

The line will always be this number of pixels in width, no matter how close the user gets to the line.

Meters 

The line width will cover this number of meters of the ellipsoid it's rendered on. This may cause the line to disappear as the user zooms out.

This value specifies a size in meters at the equator of the ellipsoid it's rendered on.

Definition at line 48 of file VectorStyle.h.