Skip to main content

GlobeApi

Struct GlobeApi 

Source
pub struct GlobeApi { /* private fields */ }

Implementations§

Source§

impl GlobeApi

Source

pub const SYMBOLS: &'static [&'static str]

Source

pub unsafe fn load(path: &Path) -> Result<Self, LoadError>

§Safety

Use a trusted, ABI-compatible SDK and obey its GUI-thread/lifetime contract.

Source

pub unsafe fn GeoKernelGlobe_GetApiVersion(&self) -> u32

§Safety

Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.

Source

pub unsafe fn GeoKernelGlobe_DefaultOptions( &self, options: *mut GeoKernelGlobeOptions, ) -> i32

§Safety

Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.

Source

pub unsafe fn GeoKernelGlobe_DefaultCamera( &self, camera: *mut GeoKernelGlobeCamera, ) -> i32

§Safety

Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.

Source

pub unsafe fn GeoKernelGlobe_Initialize(&self) -> i32

§Safety

Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.

Source

pub unsafe fn GeoKernelGlobe_ProcessEvents(&self) -> i32

§Safety

Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.

Source

pub unsafe fn GeoKernelGlobe_GetCapabilities( &self, capabilities: *mut u64, ) -> i32

§Safety

Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.

Source

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.

Source

pub unsafe fn GeoKernelGlobe_Destroy(&self, handle: u64) -> i32

§Safety

Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.

Source

pub unsafe fn GeoKernelGlobe_Resize( &self, handle: u64, width: i32, height: i32, ) -> i32

§Safety

Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.

Source

pub unsafe fn GeoKernelGlobe_SetVisible(&self, handle: u64, visible: i32) -> i32

§Safety

Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.

Source

pub unsafe fn GeoKernelGlobe_GetNativeHandle( &self, handle: u64, native_window: *mut usize, ) -> i32

§Safety

Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.

Source

pub unsafe fn GeoKernelGlobe_GetOptions( &self, handle: u64, options: *mut GeoKernelGlobeOptions, ) -> i32

§Safety

Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.

Source

pub unsafe fn GeoKernelGlobe_SetOptions( &self, handle: u64, options: *const GeoKernelGlobeOptions, ) -> i32

§Safety

Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.

Source

pub unsafe fn GeoKernelGlobe_SetBasemap(&self, handle: u64, index: i32) -> i32

§Safety

Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.

Source

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.

Source

pub unsafe fn GeoKernelGlobe_GetCamera( &self, handle: u64, camera: *mut GeoKernelGlobeCamera, ) -> i32

§Safety

Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.

Source

pub unsafe fn GeoKernelGlobe_SetCamera( &self, handle: u64, camera: *const GeoKernelGlobeCamera, ) -> i32

§Safety

Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.

Source

pub unsafe fn GeoKernelGlobe_SetHomeCamera( &self, handle: u64, camera: *const GeoKernelGlobeCamera, ) -> i32

§Safety

Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.

Source

pub unsafe fn GeoKernelGlobe_ResetCamera(&self, handle: u64) -> i32

§Safety

Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.

Source

pub unsafe fn GeoKernelGlobe_Navigate(&self, handle: u64, action: i32) -> i32

§Safety

Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.

Source

pub unsafe fn GeoKernelGlobe_SetInteractionMode( &self, handle: u64, mode: i32, ) -> i32

§Safety

Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.

Source

pub unsafe fn GeoKernelGlobe_ClearInteraction(&self, handle: u64) -> i32

§Safety

Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

pub unsafe fn GeoKernelGlobe_CancelJob(&self, handle: u64, job_id: u64) -> i32

§Safety

Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.

Source

pub unsafe fn GeoKernelGlobe_ForgetJob(&self, handle: u64, job_id: u64) -> i32

§Safety

Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

pub unsafe fn GeoKernelGlobe_ClearMeasurement(&self, handle: u64) -> i32

§Safety

Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.

Source

pub unsafe fn GeoKernelGlobe_CancelTerrainAnalysis(&self, handle: u64) -> i32

§Safety

Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.

Source

pub unsafe fn GeoKernelGlobe_ClearTerrainAnalysis(&self, handle: u64) -> i32

§Safety

Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.

Source

pub unsafe fn GeoKernelGlobe_SetAnalysisOverlayVisible( &self, handle: u64, visible: i32, ) -> i32

§Safety

Obey GlobeInterop.h pointer, buffer, GUI-thread and ownership preconditions.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.