Cesium for Unity 1.23.0
Loading...
Searching...
No Matches
CesiumGeoJsonObject.cs
Go to the documentation of this file.
1using Reinterop;
2using System;
3using Unity.Mathematics;
4
5namespace CesiumForUnity
6{
17 [ReinteropNativeImplementation(
18 "CesiumForUnityNative::CesiumGeoJsonObjectImpl",
19 "CesiumGeoJsonObjectImpl.h")]
20 public partial class CesiumGeoJsonObject
21 {
25 internal CesiumGeoJsonObject()
26 {
27 CreateImplementation();
28 }
33
38 public partial bool IsValid();
39
47
54
60 public partial double3 GetObjectAsPoint();
61
67 public partial double3[] GetObjectAsMultiPoint();
68
75
82
89
96
102 public partial CesiumGeoJsonObject[] GetObjectAsGeometryCollection();
103
108 public partial bool HasStyle();
109
114 public partial CesiumVectorStyle GetStyle();
115
120 public partial void SetStyle(CesiumVectorStyle style);
121
129 public partial void ClearStyle();
130 }
131}
Represents a Feature in a GeoJSON document.
Represents a LineString in a GeoJSON document.
partial CesiumGeoJsonObject[] GetObjectAsGeometryCollection()
Gets this object as a GeometryCollection.
partial CesiumGeoJsonPolygon[] GetObjectAsMultiPolygon()
Gets this object as a MultiPolygon geometry.
partial CesiumGeoJsonLineString GetObjectAsLineString()
Gets this object as a LineString geometry.
partial double3[] GetObjectAsMultiPoint()
Gets this object as a MultiPoint geometry.
partial CesiumGeoJsonFeature[] GetObjectAsFeatureCollection()
Gets the features in this FeatureCollection.
partial CesiumVectorStyle GetStyle()
Gets the style of this GeoJSON object.
partial void ClearStyle()
Clears any style set on this GeoJSON object.
partial double3 GetObjectAsPoint()
Gets this object as a Point geometry.
partial bool IsValid()
Checks whether this GeoJSON object is valid.
partial CesiumGeoJsonObjectType GetObjectType()
Gets the type of this GeoJSON object.
partial CesiumGeoJsonLineString[] GetObjectAsMultiLineString()
Gets this object as a MultiLineString geometry.
partial bool HasStyle()
Checks whether this GeoJSON object has a style.
partial CesiumGeoJsonFeature GetObjectAsFeature()
Gets this object as a CesiumGeoJsonFeature, if it is a Feature.
partial void SetStyle(CesiumVectorStyle style)
Sets the style of this GeoJSON object.
partial CesiumGeoJsonPolygon GetObjectAsPolygon()
Gets this object as a Polygon geometry.
Represents a Polygon in a GeoJSON document.
CesiumGeoJsonObjectType
The type of a GeoJSON object.
Style information to use when drawing vector data.