Package com.biodigital.humansdk
Class HKLabels
java.lang.Object
com.biodigital.humansdk.HKLabels
HKLabels manages object labels in the scene
- Since:
- sdk 2.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Create a Label in the scene with an HKLabel object.void
Delete a Label in the scenevoid
hide()
Hides the annotations in the scene This allows apps to draw native annotations over the viewvoid
show()
Shows the annotations in the current scenevoid
Update a Label in the scene with an updated HKLabel object.
-
Field Details
-
labels
A map of annotation IDs to HKAnnotation objects in the current scene
-
-
Constructor Details
-
HKLabels
public HKLabels()
-
-
Method Details
-
show
public void show()Shows the annotations in the current scene -
hide
public void hide()Hides the annotations in the scene This allows apps to draw native annotations over the view -
create
Create a Label in the scene with an HKLabel object.- Parameters:
label
- : set up an HKLabel object and pass it to this function to add it to the scene- Since:
- sdk 2.0
-
update
Update a Label in the scene with an updated HKLabel object.- Parameters:
labelId
- : Id of the updated Label to update in the scene- Since:
- sdk 2.0
-
destroy
Delete a Label in the scene- Parameters:
labelId
- : Id of the Label to remove from the scene- Since:
- sdk 2.0
-