Package com.banuba.sdk.scene
Interface Scene
- All Known Implementing Classes:
Scene.CppProxy
public interface Scene
A class representing a displayable scene. Aggregates in one place the
hierarchy of Entities with their Components, AssetManager and RenderList
and makes it work all together.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addEffectEvent
(String name, HashMap<String, String> params) void
addFeatureParam
(FeatureId feature, ArrayList<FeatureParameter> params) void
void
createEntity
(String name) void
disableRecognizerFeature
(FeatureId feature) void
enableRecognizerFeature
(FeatureId feature) find global material parameter by nameGet the AssetManager of a current scene.getComponents
(ComponentType type) Get all components present in this scene of specified typeReturn first found layer with name `layerName` or NULL if such layer doesn't exist.getName()
Get a scene name.long
getRoot()
Get the root of entities hierarchy.int
int
getTriggerStatus
(TriggerType trigger) void
removeLayer
(Layer layer) void
Set a new name for a scene.void
setRenderList
(RenderList renderList)
-
Method Details
-
setName
Set a new name for a scene. The name could be empty. -
getName
Get a scene name. -
getRoot
Get the root of entities hierarchy. It always exists and has a name "Root". -
getAssetManager
Get the AssetManager of a current scene. It always exists. -
addLayer
-
getLayers
-
getComponents
Get all components present in this scene of specified type -
getLayer
Return first found layer with name `layerName` or NULL if such layer doesn't exist. -
removeLayer
-
setRenderList
-
getRenderList
-
clearRenderList
void clearRenderList() -
getCamera
-
enableRecognizerFeature
-
disableRecognizerFeature
-
addFeatureParam
-
addEffectEvent
-
getTriggerStatus
-
createEntity
-
getNativeContext
long getNativeContext() -
getSurfaceWidth
int getSurfaceWidth() -
getSurfaceHeight
int getSurfaceHeight() -
findGlobalMaterialParameter
find global material parameter by name- Parameters:
name
- (string)- Returns:
- parameter (parameter) or null
-