Package com.victorvalentim.zividomelive
Class SceneEnvironmentService
java.lang.Object
com.victorvalentim.zividomelive.SceneEnvironmentService
Activation-scoped environment configuration that restores the facade state it replaced.
Restoration is ownership-safe: a property is restored only if it still contains the value applied by this activation, so a later owner is not overwritten.
API stability: Advanced Stable.
- Since:
- 2.0.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Temporarily clears the current source for this activation.floatfloatbooleanvoidResets the source-image alignment to identity for this activation.voidsetEquirectangular(processing.core.PImage image) Sets the borrowed equirectangular source for this activation.voidsetIntensity(float intensity) Sets the non-negative visual colour multiplier for this activation.voidsetOrientationAxisAngle(float axisX, float axisY, float axisZ, float angle) Sets a fixed axis-angle rotation applied directly to the equirectangular source lookup.voidsetVisible(boolean visible) Sets Environment visibility for this activation.voidsetYawOffset(float yawOffset) Sets the source-longitude offset for this activation.
-
Method Details
-
setEquirectangular
public void setEquirectangular(processing.core.PImage image) Sets the borrowed equirectangular source for this activation.- Parameters:
image- borrowed equirectangular source, ornullto clear temporarily
-
clear
public void clear()Temporarily clears the current source for this activation. -
setVisible
public void setVisible(boolean visible) Sets Environment visibility for this activation.- Parameters:
visible- true to render the Environment
-
setIntensity
public void setIntensity(float intensity) Sets the non-negative visual colour multiplier for this activation.- Parameters:
intensity- visual multiplier; finite negative values are clamped to zero and non-finite values are ignored
-
setYawOffset
public void setYawOffset(float yawOffset) Sets the source-longitude offset for this activation.- Parameters:
yawOffset- offset in radians; non-finite values are ignored
-
isVisible
public boolean isVisible()- Returns:
- current Environment visibility
-
getIntensity
public float getIntensity()- Returns:
- current non-negative visual colour multiplier
-
getYawOffset
public float getYawOffset()- Returns:
- current source-longitude offset in radians
-
setOrientationAxisAngle
public void setOrientationAxisAngle(float axisX, float axisY, float axisZ, float angle) Sets a fixed axis-angle rotation applied directly to the equirectangular source lookup. This aligns the background image without changing dome pitch/yaw/roll or scene geometry.- Parameters:
axisX- rotation-axis X componentaxisY- rotation-axis Y componentaxisZ- rotation-axis Z componentangle- rotation angle in radians- Throws:
IllegalArgumentException- when a component is non-finite or a non-zero rotation has a zero-length axis
-
resetOrientation
public void resetOrientation()Resets the source-image alignment to identity for this activation.
-