Package com.banuba.sdk.scene
Class Scene.CppProxy
- java.lang.Object
-
- com.banuba.sdk.scene.Scene.CppProxy
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.banuba.sdk.scene.Scene
Scene.CppProxy
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
_djinni_private_destroy()
void
addEffectEvent(java.lang.String name, java.util.HashMap<java.lang.String,java.lang.String> params)
void
addFeatureParam(FeatureId feature, java.util.ArrayList<FeatureParameter> params)
void
addLayer(Layer layer)
void
clearRenderList()
Entity
createEntity(java.lang.String name)
void
disableRecognizerFeature(FeatureId feature)
void
enableRecognizerFeature(FeatureId feature)
protected void
finalize()
Parameter
findGlobalMaterialParameter(java.lang.String name)
find global material parameter by nameAssetManager
getAssetManager()
Get the AssetManager of a current scene.Camera
getCamera()
java.util.ArrayList<Component>
getComponents(ComponentType type)
Get all components present in this scene of specified typeLayer
getLayer(java.lang.String layerName)
Return first found layer with name `layerName` or NULL if such layer doesn't exist.java.util.ArrayList<Layer>
getLayers()
java.lang.String
getName()
Get a scene name.long
getNativeContext()
RenderList
getRenderList()
Entity
getRoot()
Get the root of entities hierarchy.int
getSurfaceHeight()
int
getSurfaceWidth()
TriggerStatusType
getTriggerStatus(TriggerType trigger)
void
removeLayer(Layer layer)
void
setName(java.lang.String name)
Set a new name for a scene.void
setRenderList(RenderList renderList)
-
-
-
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
-
setName
public void setName(java.lang.String name)
Description copied from interface:Scene
Set a new name for a scene. The name could be empty.
-
getName
public java.lang.String getName()
Description copied from interface:Scene
Get a scene name.
-
getRoot
public Entity getRoot()
Description copied from interface:Scene
Get the root of entities hierarchy. It always exists and has a name "Root".
-
getAssetManager
public AssetManager getAssetManager()
Description copied from interface:Scene
Get the AssetManager of a current scene. It always exists.- Specified by:
getAssetManager
in interfaceScene
-
getComponents
public java.util.ArrayList<Component> getComponents(ComponentType type)
Description copied from interface:Scene
Get all components present in this scene of specified type- Specified by:
getComponents
in interfaceScene
-
getLayer
public Layer getLayer(java.lang.String layerName)
Description copied from interface:Scene
Return first found layer with name `layerName` or NULL if such layer doesn't exist.
-
removeLayer
public void removeLayer(Layer layer)
- Specified by:
removeLayer
in interfaceScene
-
setRenderList
public void setRenderList(RenderList renderList)
- Specified by:
setRenderList
in interfaceScene
-
getRenderList
public RenderList getRenderList()
- Specified by:
getRenderList
in interfaceScene
-
clearRenderList
public void clearRenderList()
- Specified by:
clearRenderList
in interfaceScene
-
enableRecognizerFeature
public void enableRecognizerFeature(FeatureId feature)
- Specified by:
enableRecognizerFeature
in interfaceScene
-
disableRecognizerFeature
public void disableRecognizerFeature(FeatureId feature)
- Specified by:
disableRecognizerFeature
in interfaceScene
-
addFeatureParam
public void addFeatureParam(FeatureId feature, java.util.ArrayList<FeatureParameter> params)
- Specified by:
addFeatureParam
in interfaceScene
-
addEffectEvent
public void addEffectEvent(java.lang.String name, java.util.HashMap<java.lang.String,java.lang.String> params)
- Specified by:
addEffectEvent
in interfaceScene
-
getTriggerStatus
public TriggerStatusType getTriggerStatus(TriggerType trigger)
- Specified by:
getTriggerStatus
in interfaceScene
-
createEntity
public Entity createEntity(java.lang.String name)
- Specified by:
createEntity
in interfaceScene
-
getNativeContext
public long getNativeContext()
- Specified by:
getNativeContext
in interfaceScene
-
getSurfaceWidth
public int getSurfaceWidth()
- Specified by:
getSurfaceWidth
in interfaceScene
-
getSurfaceHeight
public int getSurfaceHeight()
- Specified by:
getSurfaceHeight
in interfaceScene
-
findGlobalMaterialParameter
public Parameter findGlobalMaterialParameter(java.lang.String name)
Description copied from interface:Scene
find global material parameter by name- Specified by:
findGlobalMaterialParameter
in interfaceScene
- Parameters:
name
- (string)- Returns:
- parameter (parameter) or null
-
-