VisioMove SDK (Android)
2.1.22
|
This interface provides an entry-point to retrieve objects from the Visioglobe engine.
void VgIEngine.addPostDrawCallback | ( | VgIEnginePostDrawCallbackRefPtr | pCallback | ) |
This method is used to add a VgIEnginePostDrawCallback to the engine.
pCallback | the post draw callback. |
VgIAnimationManager VgIEngine.editAnimationManager | ( | ) |
VgICamera VgIEngine.editCamera | ( | ) |
VgIDatabase VgIEngine.editDatabase | ( | ) |
VgFontManager VgIEngine.editFontManager | ( | ) |
VgInstanceFactory VgIEngine.editInstanceFactory | ( | ) |
VgLayerManager VgIEngine.editLayerManager | ( | ) |
VgILicenseManager VgIEngine.editLicenseManager | ( | ) |
VgLightRefPtr VgIEngine.editLight | ( | long | pLightNum | ) |
This method gives read-write access to one of the engine lights.
pLightNum | The index of the queried light. |
VgIResourceManager VgIEngine.editResourceManager | ( | ) |
VgITextureManager VgIEngine.editTextureManager | ( | ) |
VgSpatialList VgIEngine.execute | ( | VgQuery | pQuery | ) |
Executes a query to retrieve VgEngine::VgSpatial according to a VgEngine::VgQuery (e.g. all VgSpatials of the map, or having a specific ID) This call will not return results before selecting the Dataset, i.e. before VgEngine::VgIDatabase::selectDataset()
Example:
pQuery | Query to execute. |
String VgIEngine.getErrorString | ( | VgErrorCode | pErrorCode | ) |
pErrorCode |
VgErrorCode VgIEngine.getLastError | ( | ) |
References VgErrorCode.swigToEnum().
VgLightConstRefPtr VgIEngine.getLight | ( | long | pLightNum | ) |
This method gives read-only access to one of the engine lights.
pLightNum | The index of the queried light. |
long VgIEngine.getNumLights | ( | ) |
This method returns the number of lights in the scene.
VgPositionToolbox VgIEngine.getPositionToolbox | ( | ) |
VgPostDrawCallbacks VgIEngine.getPostDrawCallbacks | ( | ) |
boolean VgIEngine.isLoaded | ( | int[] | pGraphicsQueue, |
int[] | pLoadQueueSize, | ||
int[] | pLoadedQueueSize, | ||
int[] | pActiveThreads | ||
) |
This method is used to check if everything is loaded at a given time Useful for screencaptures, progress bars, and resource scheduling. It is best to run it on a VgEngine::VgIEnginePostDrawCallback
pGraphicsQueue | number of pending graphics operation (related to graphics context) |
pLoadQueueSize | number of pending operations. |
pLoadedQueueSize | another queue waiting to be processed |
pActiveThreads | current number of threads that are processing requests |
void VgIEngine.reloadShaders | ( | ) |
This method causes the engine to reinstantiate the shaders from source files.
Referenced by VgSurfaceView.onSurfaceCreated().
void VgIEngine.removePostDrawCallback | ( | VgIEnginePostDrawCallbackRefPtr | pCallback | ) |
This method is used to remove a VgIEnginePostDrawCallback to the engine.
pCallback | the post draw callback. |
void VgIEngine.replaceNamedTexture | ( | String | pResourceName, |
VgITextureRefPtr | pTexture | ||
) |
This method is used to override a given texture resource (defined in the configuration file). If a resource exists by that name, it is replaced by the provided texture instance and all items in the scene referencing it are updated. If there is no matching texture nothing happens.
pResourceName | the name of the texture resource to override. |
pTexture | The texture to override with. |
void VgIEngine.resetGraphicResources | ( | boolean | pIsContextLost | ) |
Resets all the GPU graphic resources.
pIsContextLost | Use true to specify that the context has been lost, false otherwise. |
Referenced by VgSurfaceView.onSurfaceCreated().
void VgIEngine.setClearColor | ( | VgColor | pClearColor | ) |
This method is used to change the clear color of the VgEAGLView. If the view has an opaque background, this clear color will be hidden, except for the first few frames while the background is loading. Thus you could set the clear color of the VgEAGLView to closely match the background (of the dataset).
pClearColor | The new color to use for screen clearing. |