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 Object implements FaceMorphing
  • Method Details

    • _djinni_private_destroy

      public void _djinni_private_destroy()
    • finalize

      protected void finalize() throws Throwable
      Overrides:
      finalize in class Object
      Throws:
      Throwable
    • setMorphing

      public void setMorphing(Morphing morph)
      Description copied from interface: FaceMorphing
      Sets morphing asset.
      Specified by:
      setMorphing in interface FaceMorphing
      Parameters:
      morph - (morphing) morphing instance.
    • getMorphing

      public Morphing getMorphing()
      Specified by:
      getMorphing in interface FaceMorphing
      Returns:
      setted morphing (morphing).
    • asBeautyMorphing

      public BeautyMorphing asBeautyMorphing()
      Description copied from interface: FaceMorphing
      Cast to beauty_morphing subclass.
      Specified by:
      asBeautyMorphing in interface FaceMorphing
    • isVisible

      public boolean isVisible()
      Specified by:
      isVisible in interface FaceMorphing
      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 interface FaceMorphing
      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 interface FaceMorphing
      Parameters:
      weight - (float)
    • getWeight

      public float getWeight()
      Specified by:
      getWeight in interface FaceMorphing
      Returns:
      current morph weight (float)
    • asComponent

      public Component asComponent()
      Specified by:
      asComponent in interface FaceMorphing
      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).