pub struct GlobeApi { /* private fields */ }Implementations§
Source§impl GlobeApi
impl GlobeApi
pub const SYMBOLS: &'static [&'static str]
Sourcepub unsafe fn load(path: &Path) -> Result<Self, LoadError>
pub unsafe fn load(path: &Path) -> Result<Self, LoadError>
§Safety
Use a trusted, ABI-compatible SDK and obey its GUI-thread/lifetime contract.
Sourcepub unsafe fn GeoKernelGlobe_GetApiVersion(&self) -> u32
pub unsafe fn GeoKernelGlobe_GetApiVersion(&self) -> u32
§Safety
Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.
Sourcepub unsafe fn GeoKernelGlobe_DefaultOptions(
&self,
options: *mut GeoKernelGlobeOptions,
) -> i32
pub unsafe fn GeoKernelGlobe_DefaultOptions( &self, options: *mut GeoKernelGlobeOptions, ) -> i32
§Safety
Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.
Sourcepub unsafe fn GeoKernelGlobe_DefaultCamera(
&self,
camera: *mut GeoKernelGlobeCamera,
) -> i32
pub unsafe fn GeoKernelGlobe_DefaultCamera( &self, camera: *mut GeoKernelGlobeCamera, ) -> i32
§Safety
Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.
Sourcepub unsafe fn GeoKernelGlobe_Initialize(&self) -> i32
pub unsafe fn GeoKernelGlobe_Initialize(&self) -> i32
§Safety
Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.
Sourcepub unsafe fn GeoKernelGlobe_ProcessEvents(&self) -> i32
pub unsafe fn GeoKernelGlobe_ProcessEvents(&self) -> i32
§Safety
Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.
Sourcepub unsafe fn GeoKernelGlobe_GetCapabilities(
&self,
capabilities: *mut u64,
) -> i32
pub unsafe fn GeoKernelGlobe_GetCapabilities( &self, capabilities: *mut u64, ) -> i32
§Safety
Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.
Sourcepub unsafe fn GeoKernelGlobe_Create(
&self,
parent_window: usize,
options: *const GeoKernelGlobeOptions,
camera: *const GeoKernelGlobeCamera,
handle: *mut u64,
) -> i32
pub unsafe fn GeoKernelGlobe_Create( &self, parent_window: usize, options: *const GeoKernelGlobeOptions, camera: *const GeoKernelGlobeCamera, handle: *mut u64, ) -> i32
§Safety
Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.
Sourcepub unsafe fn GeoKernelGlobe_Destroy(&self, handle: u64) -> i32
pub unsafe fn GeoKernelGlobe_Destroy(&self, handle: u64) -> i32
§Safety
Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.
Sourcepub unsafe fn GeoKernelGlobe_Resize(
&self,
handle: u64,
width: i32,
height: i32,
) -> i32
pub unsafe fn GeoKernelGlobe_Resize( &self, handle: u64, width: i32, height: i32, ) -> i32
§Safety
Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.
Sourcepub unsafe fn GeoKernelGlobe_SetVisible(&self, handle: u64, visible: i32) -> i32
pub unsafe fn GeoKernelGlobe_SetVisible(&self, handle: u64, visible: i32) -> i32
§Safety
Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.
Sourcepub unsafe fn GeoKernelGlobe_GetNativeHandle(
&self,
handle: u64,
native_window: *mut usize,
) -> i32
pub unsafe fn GeoKernelGlobe_GetNativeHandle( &self, handle: u64, native_window: *mut usize, ) -> i32
§Safety
Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.
Sourcepub unsafe fn GeoKernelGlobe_GetOptions(
&self,
handle: u64,
options: *mut GeoKernelGlobeOptions,
) -> i32
pub unsafe fn GeoKernelGlobe_GetOptions( &self, handle: u64, options: *mut GeoKernelGlobeOptions, ) -> i32
§Safety
Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.
Sourcepub unsafe fn GeoKernelGlobe_SetOptions(
&self,
handle: u64,
options: *const GeoKernelGlobeOptions,
) -> i32
pub unsafe fn GeoKernelGlobe_SetOptions( &self, handle: u64, options: *const GeoKernelGlobeOptions, ) -> i32
§Safety
Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.
Sourcepub unsafe fn GeoKernelGlobe_SetBasemap(&self, handle: u64, index: i32) -> i32
pub unsafe fn GeoKernelGlobe_SetBasemap(&self, handle: u64, index: i32) -> i32
§Safety
Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.
Sourcepub unsafe fn GeoKernelGlobe_ConfigureTerrain(
&self,
handle: u64,
url_utf8: *const c_char,
max_zoom: i32,
exaggeration: f64,
lerc: i32,
) -> i32
pub unsafe fn GeoKernelGlobe_ConfigureTerrain( &self, handle: u64, url_utf8: *const c_char, max_zoom: i32, exaggeration: f64, lerc: i32, ) -> i32
§Safety
Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.
Sourcepub unsafe fn GeoKernelGlobe_GetCamera(
&self,
handle: u64,
camera: *mut GeoKernelGlobeCamera,
) -> i32
pub unsafe fn GeoKernelGlobe_GetCamera( &self, handle: u64, camera: *mut GeoKernelGlobeCamera, ) -> i32
§Safety
Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.
Sourcepub unsafe fn GeoKernelGlobe_SetCamera(
&self,
handle: u64,
camera: *const GeoKernelGlobeCamera,
) -> i32
pub unsafe fn GeoKernelGlobe_SetCamera( &self, handle: u64, camera: *const GeoKernelGlobeCamera, ) -> i32
§Safety
Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.
Sourcepub unsafe fn GeoKernelGlobe_SetHomeCamera(
&self,
handle: u64,
camera: *const GeoKernelGlobeCamera,
) -> i32
pub unsafe fn GeoKernelGlobe_SetHomeCamera( &self, handle: u64, camera: *const GeoKernelGlobeCamera, ) -> i32
§Safety
Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.
Sourcepub unsafe fn GeoKernelGlobe_ResetCamera(&self, handle: u64) -> i32
pub unsafe fn GeoKernelGlobe_ResetCamera(&self, handle: u64) -> i32
§Safety
Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.
§Safety
Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.
Sourcepub unsafe fn GeoKernelGlobe_SetInteractionMode(
&self,
handle: u64,
mode: i32,
) -> i32
pub unsafe fn GeoKernelGlobe_SetInteractionMode( &self, handle: u64, mode: i32, ) -> i32
§Safety
Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.
Sourcepub unsafe fn GeoKernelGlobe_ClearInteraction(&self, handle: u64) -> i32
pub unsafe fn GeoKernelGlobe_ClearInteraction(&self, handle: u64) -> i32
§Safety
Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.
Sourcepub unsafe fn GeoKernelGlobe_GetLastError(
&self,
buffer: *mut c_char,
capacity: u32,
required_bytes: *mut u32,
) -> i32
pub unsafe fn GeoKernelGlobe_GetLastError( &self, buffer: *mut c_char, capacity: u32, required_bytes: *mut u32, ) -> i32
§Safety
Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.
Sourcepub unsafe fn GeoKernelGlobe_GetBasemaps(
&self,
buffer: *mut c_char,
capacity: u32,
required_bytes: *mut u32,
) -> i32
pub unsafe fn GeoKernelGlobe_GetBasemaps( &self, buffer: *mut c_char, capacity: u32, required_bytes: *mut u32, ) -> i32
§Safety
Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.
Sourcepub unsafe fn GeoKernelGlobe_GetAttribution(
&self,
handle: u64,
buffer: *mut c_char,
capacity: u32,
required_bytes: *mut u32,
) -> i32
pub unsafe fn GeoKernelGlobe_GetAttribution( &self, handle: u64, buffer: *mut c_char, capacity: u32, required_bytes: *mut u32, ) -> i32
§Safety
Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.
Sourcepub unsafe fn GeoKernelGlobe_GetState(
&self,
handle: u64,
buffer: *mut c_char,
capacity: u32,
required_bytes: *mut u32,
) -> i32
pub unsafe fn GeoKernelGlobe_GetState( &self, handle: u64, buffer: *mut c_char, capacity: u32, required_bytes: *mut u32, ) -> i32
§Safety
Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.
Sourcepub unsafe fn GeoKernelGlobe_PollEvent(
&self,
handle: u64,
buffer: *mut c_char,
capacity: u32,
required_bytes: *mut u32,
) -> i32
pub unsafe fn GeoKernelGlobe_PollEvent( &self, handle: u64, buffer: *mut c_char, capacity: u32, required_bytes: *mut u32, ) -> i32
§Safety
Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.
Sourcepub unsafe fn GeoKernelGlobe_LoadVector(
&self,
handle: u64,
request_json: *const c_char,
job_id: *mut u64,
) -> i32
pub unsafe fn GeoKernelGlobe_LoadVector( &self, handle: u64, request_json: *const c_char, job_id: *mut u64, ) -> i32
§Safety
Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.
Sourcepub unsafe fn GeoKernelGlobe_SetVectorStyle(
&self,
handle: u64,
request_json: *const c_char,
job_id: *mut u64,
) -> i32
pub unsafe fn GeoKernelGlobe_SetVectorStyle( &self, handle: u64, request_json: *const c_char, job_id: *mut u64, ) -> i32
§Safety
Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.
Sourcepub unsafe fn GeoKernelGlobe_ConfigureBuildings(
&self,
handle: u64,
request_json: *const c_char,
job_id: *mut u64,
) -> i32
pub unsafe fn GeoKernelGlobe_ConfigureBuildings( &self, handle: u64, request_json: *const c_char, job_id: *mut u64, ) -> i32
§Safety
Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.
Sourcepub unsafe fn GeoKernelGlobe_LoadModel(
&self,
handle: u64,
request_json: *const c_char,
job_id: *mut u64,
) -> i32
pub unsafe fn GeoKernelGlobe_LoadModel( &self, handle: u64, request_json: *const c_char, job_id: *mut u64, ) -> i32
§Safety
Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.
Sourcepub unsafe fn GeoKernelGlobe_SetModelPlacement(
&self,
handle: u64,
request_json: *const c_char,
job_id: *mut u64,
) -> i32
pub unsafe fn GeoKernelGlobe_SetModelPlacement( &self, handle: u64, request_json: *const c_char, job_id: *mut u64, ) -> i32
§Safety
Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.
Sourcepub unsafe fn GeoKernelGlobe_LoadRaster(
&self,
handle: u64,
request_json: *const c_char,
job_id: *mut u64,
) -> i32
pub unsafe fn GeoKernelGlobe_LoadRaster( &self, handle: u64, request_json: *const c_char, job_id: *mut u64, ) -> i32
§Safety
Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.
Sourcepub unsafe fn GeoKernelGlobe_LoadDem(
&self,
handle: u64,
request_json: *const c_char,
job_id: *mut u64,
) -> i32
pub unsafe fn GeoKernelGlobe_LoadDem( &self, handle: u64, request_json: *const c_char, job_id: *mut u64, ) -> i32
§Safety
Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.
Sourcepub unsafe fn GeoKernelGlobe_GetLayers(
&self,
handle: u64,
buffer: *mut c_char,
capacity: u32,
required_bytes: *mut u32,
) -> i32
pub unsafe fn GeoKernelGlobe_GetLayers( &self, handle: u64, buffer: *mut c_char, capacity: u32, required_bytes: *mut u32, ) -> i32
§Safety
Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.
Sourcepub unsafe fn GeoKernelGlobe_GetLayerState(
&self,
handle: u64,
layer_id: *const c_char,
buffer: *mut c_char,
capacity: u32,
required_bytes: *mut u32,
) -> i32
pub unsafe fn GeoKernelGlobe_GetLayerState( &self, handle: u64, layer_id: *const c_char, buffer: *mut c_char, capacity: u32, required_bytes: *mut u32, ) -> i32
§Safety
Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.
Sourcepub unsafe fn GeoKernelGlobe_GetJobState(
&self,
handle: u64,
job_id: u64,
buffer: *mut c_char,
capacity: u32,
required_bytes: *mut u32,
) -> i32
pub unsafe fn GeoKernelGlobe_GetJobState( &self, handle: u64, job_id: u64, buffer: *mut c_char, capacity: u32, required_bytes: *mut u32, ) -> i32
§Safety
Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.
Sourcepub unsafe fn GeoKernelGlobe_CancelJob(&self, handle: u64, job_id: u64) -> i32
pub unsafe fn GeoKernelGlobe_CancelJob(&self, handle: u64, job_id: u64) -> i32
§Safety
Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.
Sourcepub unsafe fn GeoKernelGlobe_ForgetJob(&self, handle: u64, job_id: u64) -> i32
pub unsafe fn GeoKernelGlobe_ForgetJob(&self, handle: u64, job_id: u64) -> i32
§Safety
Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.
Sourcepub unsafe fn GeoKernelGlobe_FocusLayer(
&self,
handle: u64,
layer_id: *const c_char,
) -> i32
pub unsafe fn GeoKernelGlobe_FocusLayer( &self, handle: u64, layer_id: *const c_char, ) -> i32
§Safety
Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.
Sourcepub unsafe fn GeoKernelGlobe_RemoveLayer(
&self,
handle: u64,
layer_id: *const c_char,
) -> i32
pub unsafe fn GeoKernelGlobe_RemoveLayer( &self, handle: u64, layer_id: *const c_char, ) -> i32
§Safety
Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.
Sourcepub unsafe fn GeoKernelGlobe_SetLayerVisible(
&self,
handle: u64,
layer_id: *const c_char,
visible: i32,
) -> i32
pub unsafe fn GeoKernelGlobe_SetLayerVisible( &self, handle: u64, layer_id: *const c_char, visible: i32, ) -> i32
§Safety
Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.
Sourcepub unsafe fn GeoKernelGlobe_SetLayerOpacity(
&self,
handle: u64,
layer_id: *const c_char,
opacity: f64,
) -> i32
pub unsafe fn GeoKernelGlobe_SetLayerOpacity( &self, handle: u64, layer_id: *const c_char, opacity: f64, ) -> i32
§Safety
Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.
Sourcepub unsafe fn GeoKernelGlobe_GetFeatureInfo(
&self,
handle: u64,
layer_id: *const c_char,
feature_id: *const c_char,
buffer: *mut c_char,
capacity: u32,
required_bytes: *mut u32,
) -> i32
pub unsafe fn GeoKernelGlobe_GetFeatureInfo( &self, handle: u64, layer_id: *const c_char, feature_id: *const c_char, buffer: *mut c_char, capacity: u32, required_bytes: *mut u32, ) -> i32
§Safety
Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.
Sourcepub unsafe fn GeoKernelGlobe_SetDemStyle(
&self,
handle: u64,
color_enabled: i32,
minimum: f64,
maximum: f64,
) -> i32
pub unsafe fn GeoKernelGlobe_SetDemStyle( &self, handle: u64, color_enabled: i32, minimum: f64, maximum: f64, ) -> i32
§Safety
Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.
Sourcepub unsafe fn GeoKernelGlobe_SampleElevation(
&self,
handle: u64,
x: f64,
y: f64,
buffer: *mut c_char,
capacity: u32,
required_bytes: *mut u32,
) -> i32
pub unsafe fn GeoKernelGlobe_SampleElevation( &self, handle: u64, x: f64, y: f64, buffer: *mut c_char, capacity: u32, required_bytes: *mut u32, ) -> i32
§Safety
Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.
Sourcepub unsafe fn GeoKernelGlobe_GroundAt(
&self,
handle: u64,
x: f64,
y: f64,
buffer: *mut c_char,
capacity: u32,
required_bytes: *mut u32,
) -> i32
pub unsafe fn GeoKernelGlobe_GroundAt( &self, handle: u64, x: f64, y: f64, buffer: *mut c_char, capacity: u32, required_bytes: *mut u32, ) -> i32
§Safety
Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.
Sourcepub unsafe fn GeoKernelGlobe_IdentifyAt(
&self,
handle: u64,
x: f64,
y: f64,
buffer: *mut c_char,
capacity: u32,
required_bytes: *mut u32,
) -> i32
pub unsafe fn GeoKernelGlobe_IdentifyAt( &self, handle: u64, x: f64, y: f64, buffer: *mut c_char, capacity: u32, required_bytes: *mut u32, ) -> i32
§Safety
Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.
Sourcepub unsafe fn GeoKernelGlobe_SetMeasurementPoints(
&self,
handle: u64,
request_json: *const c_char,
) -> i32
pub unsafe fn GeoKernelGlobe_SetMeasurementPoints( &self, handle: u64, request_json: *const c_char, ) -> i32
§Safety
Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.
Sourcepub unsafe fn GeoKernelGlobe_StartTerrainAnalysis(
&self,
handle: u64,
request_json: *const c_char,
analysis_id: *mut u64,
) -> i32
pub unsafe fn GeoKernelGlobe_StartTerrainAnalysis( &self, handle: u64, request_json: *const c_char, analysis_id: *mut u64, ) -> i32
§Safety
Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.
Sourcepub unsafe fn GeoKernelGlobe_GetMeasurement(
&self,
handle: u64,
buffer: *mut c_char,
capacity: u32,
required_bytes: *mut u32,
) -> i32
pub unsafe fn GeoKernelGlobe_GetMeasurement( &self, handle: u64, buffer: *mut c_char, capacity: u32, required_bytes: *mut u32, ) -> i32
§Safety
Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.
Sourcepub unsafe fn GeoKernelGlobe_GetTerrainAnalysis(
&self,
handle: u64,
buffer: *mut c_char,
capacity: u32,
required_bytes: *mut u32,
) -> i32
pub unsafe fn GeoKernelGlobe_GetTerrainAnalysis( &self, handle: u64, buffer: *mut c_char, capacity: u32, required_bytes: *mut u32, ) -> i32
§Safety
Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.
Sourcepub unsafe fn GeoKernelGlobe_ClearMeasurement(&self, handle: u64) -> i32
pub unsafe fn GeoKernelGlobe_ClearMeasurement(&self, handle: u64) -> i32
§Safety
Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.
Sourcepub unsafe fn GeoKernelGlobe_CancelTerrainAnalysis(&self, handle: u64) -> i32
pub unsafe fn GeoKernelGlobe_CancelTerrainAnalysis(&self, handle: u64) -> i32
§Safety
Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.
Sourcepub unsafe fn GeoKernelGlobe_ClearTerrainAnalysis(&self, handle: u64) -> i32
pub unsafe fn GeoKernelGlobe_ClearTerrainAnalysis(&self, handle: u64) -> i32
§Safety
Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.