Package com.banuba.sdk.scene
Class FaceMorphing.CppProxy
- java.lang.Object
-
- com.banuba.sdk.scene.FaceMorphing.CppProxy
-
- All Implemented Interfaces:
FaceMorphing
- Enclosing interface:
- FaceMorphing
public static final class FaceMorphing.CppProxy extends java.lang.Object implements FaceMorphing
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.banuba.sdk.scene.FaceMorphing
FaceMorphing.CppProxy
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
_djinni_private_destroy()
BeautyMorphing
asBeautyMorphing()
Cast to beauty_morphing subclass.Component
asComponent()
static FaceMorphing
create(MorphingType type)
Fabric method for face_morphing creating.protected void
finalize()
Morphing
getMorphing()
float
getWeight()
boolean
isVisible()
void
setMorphing(Morphing morph)
Sets morphing asset.void
setVisible(boolean visible)
Set face_morphing visibility flag.void
setWeight(float weight)
set morphing weight.
-
-
-
Method Detail
-
_djinni_private_destroy
public void _djinni_private_destroy()
-
finalize
protected void finalize() throws java.lang.Throwable
- Overrides:
finalize
in classjava.lang.Object
- Throws:
java.lang.Throwable
-
setMorphing
public void setMorphing(Morphing morph)
Description copied from interface:FaceMorphing
Sets morphing asset.- Specified by:
setMorphing
in interfaceFaceMorphing
- Parameters:
morph
- (morphing) morphing instance.
-
getMorphing
public Morphing getMorphing()
- Specified by:
getMorphing
in interfaceFaceMorphing
- Returns:
- setted morphing (morphing).
-
asBeautyMorphing
public BeautyMorphing 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
public Component asComponent()
- Specified by:
asComponent
in interfaceFaceMorphing
- Returns:
- upcast to base type
-
create
@Nullable public static FaceMorphing create(@NonNull MorphingType type)
Description copied from interface:FaceMorphing
Fabric method for face_morphing creating.- Returns:
- created (face_morphing).
-
-