Package com.biodigital.humansdk
Class HKHuman
java.lang.Object
com.biodigital.humansdk.HKHuman
Represents the BioDigital Human 3D Canvas
-
Field Summary
FieldsModifier and TypeFieldDescriptionlist of BioDigital web API eventslist of BioDigital web API functionsHKCamera object for getting and setting the cameraHKLabels object controls object LabelsHKQuiz object contains data and functionality related to a quiz, if the content contains oneHKScene object provides information and control of the 3D sceneHKTimeline object controls Chapter navigation and animationsHKUI object controls display parameters and background colorsBioDigital 3D engine versionwebGl settings and parameters -
Constructor Summary
ConstructorsConstructorDescriptionHKHuman
(android.widget.RelativeLayout container) HKHuman constructor using the default viewer UI elements (ui.all = true)HKHuman
(android.widget.RelativeLayout container, HashMap<HumanUIOptions, 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 TypeMethodDescriptionvoid
Disable user inputvoid
Enable user input, only needed if input was disabled, it is on by defaultHKModel[]
Get a list of HKModel objects by ICD Numbervoid
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
setUIoptions
(HashMap<HumanUIOptions, Boolean> options) Set the built-in UI optionsvoid
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 -
labels
HKLabels object controls object Labels -
ui
HKUI object controls display parameters and background colors -
quiz
HKQuiz object contains data and functionality related to a quiz, if the content contains one -
camera
HKCamera object for getting and setting the camera -
version
BioDigital 3D engine version -
webGlInfo
webGl settings and parameters -
apiFunctions
list of BioDigital web API functions -
apiEvents
list of BioDigital web API events
-
-
Constructor Details
-
HKHuman
public HKHuman(android.widget.RelativeLayout container, HashMap<HumanUIOptions, 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
-
setUIoptions
Set the built-in UI options- Parameters:
options
- a set of option identifiers and booleans to turn them on and off
-
setInterface
Set the HKHumanInterface object to receive callback messages- Parameters:
bodyInterface
- set the object to receive callback functions
-
load
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
-