Package com.banuba.sdk.scene
Class FaceMorphing.CppProxy
java.lang.Object
com.banuba.sdk.scene.FaceMorphing.CppProxy
- All Implemented Interfaces:
FaceMorphing
- Enclosing interface:
- FaceMorphing
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.banuba.sdk.scene.FaceMorphing
FaceMorphing.CppProxy
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Cast to beauty_morphing subclass.static FaceMorphing
create
(MorphingType type) Fabric method for face_morphing creating.protected void
finalize()
float
boolean
void
setMorphing
(Morphing morph) Sets morphing asset.void
setVisible
(boolean visible) Set face_morphing visibility flag.void
setWeight
(float weight) set morphing weight.
-
Method Details
-
_djinni_private_destroy
public void _djinni_private_destroy() -
finalize
-
setMorphing
Description copied from interface:FaceMorphing
Sets morphing asset.- Specified by:
setMorphing
in interfaceFaceMorphing
- Parameters:
morph
- (morphing) morphing instance.
-
getMorphing
- Specified by:
getMorphing
in interfaceFaceMorphing
- Returns:
- setted morphing (morphing).
-
asBeautyMorphing
Description copied from interface:FaceMorphing
Cast to beauty_morphing subclass.- Specified by:
asBeautyMorphing
in interfaceFaceMorphing
-
isVisible
public boolean isVisible()- Specified by:
isVisible
in interfaceFaceMorphing
- Returns:
- visible(bool) visibility flag.
-
setVisible
public void setVisible(boolean visible) Description copied from interface:FaceMorphing
Set face_morphing visibility flag. Will be overridden if entity with mesh_instance component is child of entity with face_tracker component. Subclass of component.- Specified by:
setVisible
in interfaceFaceMorphing
- Parameters:
visible
- (bool) visibility flag.
-
setWeight
public void setWeight(float weight) Description copied from interface:FaceMorphing
set morphing weight. Must be in range [0, 1]- Specified by:
setWeight
in interfaceFaceMorphing
- Parameters:
weight
- (float)
-
getWeight
public float getWeight()- Specified by:
getWeight
in interfaceFaceMorphing
- Returns:
- current morph weight (float)
-
asComponent
- Specified by:
asComponent
in interfaceFaceMorphing
- Returns:
- upcast to base type
-
create
Description copied from interface:FaceMorphing
Fabric method for face_morphing creating.- Returns:
- created (face_morphing).
-