Package com.biodigital.humansdk
Class HKUI
java.lang.Object
com.biodigital.humansdk.HKUI
UI settings
-
Field Summary
FieldsModifier and TypeFieldDescriptionlinear or radialbottom (linear) or center (radial) colorpositions for the colors from 0 to 100boolean
UI should display a playPause buttonboolean
UI should display a playPause button and timeline scrubbertop (linear) or outer (radial) color -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
gets the current background color this is run by the sdk when each chapter loadsvoid
hideUI()
hide the built in BioDigital UIvoid
presetBackgroundColor
(int topColor, int bottomColor) Change the background colors BEFORE loading a model without changing the style, default is radialvoid
presetBackgroundColor
(int topColor, int bottomColor, String bgType) Change the background style and color BEFORE loading a model with two specified colorsvoid
setBackgroundColor
(int topColor, int bottomColor) Change the background colors AFTER loading a modelwithout changing the style, default is radialvoid
setBackgroundColor
(int topColor, int bottomColor, String bgType) Change the background style AFTER loading a model with two specified colorsvoid
setOption
(HumanUIOptions option, Boolean value) set an option true or false
-
Field Details
-
topColor
top (linear) or outer (radial) color -
bottomColor
bottom (linear) or center (radial) color -
bgType
linear or radial -
colorStops
positions for the colors from 0 to 100 -
hasPlayPause
public boolean hasPlayPauseUI should display a playPause button -
hasScrubber
public boolean hasScrubberUI should display a playPause button and timeline scrubber
-
-
Constructor Details
-
HKUI
public HKUI()
-
-
Method Details
-
setOption
set an option true or false- Parameters:
option
- any UI optionvalue
- true or false
-
hideUI
public void hideUI()hide the built in BioDigital UI -
setBackgroundColor
public void setBackgroundColor(int topColor, int bottomColor) Change the background colors AFTER loading a modelwithout changing the style, default is radial- Parameters:
topColor
- Primary colorbottomColor
- Secondary color
-
presetBackgroundColor
public void presetBackgroundColor(int topColor, int bottomColor) Change the background colors BEFORE loading a model without changing the style, default is radial- Parameters:
topColor
- Primary colorbottomColor
- Secondary color
-
setBackgroundColor
Change the background style AFTER loading a model with two specified colors- Parameters:
topColor
- Primary colorbottomColor
- Secondary colorbgType
- Background style ("linear" or "radial", default is "radial")
-
presetBackgroundColor
Change the background style and color BEFORE loading a model with two specified colors- Parameters:
topColor
- Primary colorbottomColor
- Secondary colorbgType
- Background style ("linear" or "radial", default is "radial")
-
getBackgroundColor
public void getBackgroundColor()gets the current background color this is run by the sdk when each chapter loads
-