Package com.biodigital.humansdk
Class HKHuman
java.lang.Object
com.biodigital.humansdk.HKHuman
public class HKHuman
extends java.lang.Object
Represents the BioDigital Human 3D Canvas
-
Field Summary
Fields Modifier and Type Field Description HKAnnotations
annotations
HKAnnotations object controls object annotationsjava.util.ArrayList<java.lang.String>
apiEvents
list of BioDigital web API eventsjava.util.ArrayList<java.lang.String>
apiFunctions
list of BioDigital web API functionsHKCamera
camera
HKCamera object for getting and setting the cameraHKScene
scene
HKScene object provides information and control of the 3D sceneHKTimeline
timeline
HKTimeline object controls Chapter navigation and animationsHKUI
ui
HKUI object controls display parameters and background colorsjava.lang.String
version
BioDigital 3D engine versionjava.util.Map<java.lang.String,java.lang.Boolean>
webGlInfo
webGl settings and parameters -
Constructor Summary
Constructors Constructor Description HKHuman(android.widget.RelativeLayout container)
HKHuman constructor using the default viewer UI elements (ui.all = true)HKHuman(android.widget.RelativeLayout container, java.util.HashMap<HumanUIOptions,java.lang.Boolean> uiOptionsMap)
HKHuman constructor NOTE: This new implementation separates the view from the SDK and allows for loading and unloading scenes into the same HKHuman object for faster loading -
Method Summary
Modifier and Type Method Description void
disableInput()
Disable user inputvoid
enableInput()
Enable user input, only needed if input was disabled, it is on by defaultHKModel[]
findModel(java.lang.String ICD)
Get a list of HKModel objects by ICD Numbervoid
load(java.lang.String modelId)
Loads a BioDigital Human 3D model into the view Use unload() when you are done viewing the modelvoid
setInterface(HKHumanInterface bodyInterface)
Set the HKHumanInterface object to receive callback messagesvoid
unload()
Unload the current scene - Use this method to clear the HKHuman when exiting a model view
-
Field Details
-
scene
HKScene object provides information and control of the 3D scene -
timeline
HKTimeline object controls Chapter navigation and animations -
annotations
HKAnnotations object controls object annotations -
ui
HKUI object controls display parameters and background colors -
camera
HKCamera object for getting and setting the camera -
version
public java.lang.String versionBioDigital 3D engine version -
webGlInfo
public java.util.Map<java.lang.String,java.lang.Boolean> webGlInfowebGl settings and parameters -
apiFunctions
public java.util.ArrayList<java.lang.String> apiFunctionslist of BioDigital web API functions -
apiEvents
public java.util.ArrayList<java.lang.String> apiEventslist of BioDigital web API events
-
-
Constructor Details
-
HKHuman
public HKHuman(android.widget.RelativeLayout container, java.util.HashMap<HumanUIOptions,java.lang.Boolean> uiOptionsMap)HKHuman constructor NOTE: This new implementation separates the view from the SDK and allows for loading and unloading scenes into the same HKHuman object for faster loading- Parameters:
container
- the containing viewuiOptionsMap
- initialize the UI options
-
HKHuman
public HKHuman(android.widget.RelativeLayout container)HKHuman constructor using the default viewer UI elements (ui.all = true)- Parameters:
container
- the containing view
-
-
Method Details
-
setInterface
Set the HKHumanInterface object to receive callback messages- Parameters:
bodyInterface
- set the object to receive callback functions
-
load
public void load(java.lang.String modelId)Loads a BioDigital Human 3D model into the view Use unload() when you are done viewing the model- Parameters:
modelId
- The unique identifier of the model
-
unload
public void unload()Unload the current scene - Use this method to clear the HKHuman when exiting a model view -
disableInput
public void disableInput()Disable user input -
enableInput
public void enableInput()Enable user input, only needed if input was disabled, it is on by default -
findModel
Get a list of HKModel objects by ICD Number- Parameters:
ICD
- the code for the condition- Returns:
- An array of HKModel objects which match the ICD code
-