Light
Overview
Light is a class in Aspose.3D FOSS for Java.
Inherits from: Entity.
Light objects can be configured with color, intensity, falloff distances, inner and outer cone angles, and attached to a node hierarchy for scene illumination.
This class provides 33 methods for working with Light objects in Java programs.
Available methods include: Light, findProperty, getBoundingBox, getColor, getEnabled, getEntityRendererKey, getExcluded, getFalloffEnd, getFalloffStart, getInnerAngle, getIntensity, getName, and 20 additional methods.
All public members are accessible to any Java application after installing the Aspose.3D FOSS for Java package.
Properties: boundingBox, color, enabled, entityRendererKey, excluded, falloffEnd, and 10 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
color | Vector3 | Read | Gets the color. |
intensity | float | Read | Gets the intensity. |
falloffStart | float | Read | Gets the falloff start. |
falloffEnd | float | Read | Gets the falloff end. |
innerAngle | float | Read | Gets the inner angle. |
outerAngle | float | Read | Gets the outer angle. |
type | LightType | Read | Gets the type. |
enabled | boolean | Read | Gets the enabled. |
boundingBox | BoundingBox | Read | Gets the bounding box. |
parentNode | Node | Read | Gets the parent node. |
parentNodes | ArrayList<Node> | Read | Gets the parent nodes. |
excluded | boolean | Read | Gets the excluded. |
entityRendererKey | EntityRendererKey | Read | Gets the entity renderer key. |
scene | Scene | Read | Gets the scene. |
name | String | Read | Gets the name. |
properties | PropertyCollection | Read | Gets the properties. |
Methods
| Signature | Description |
|---|---|
Light() | Calls Light on this Light instance. |
Light(name: String) | Calls Light(name) on this Light instance. |
getColor() → Vector3 | Returns the color. |
setColor(value: Vector3) | Sets the color value. |
getIntensity() → float | Returns the intensity. |
setIntensity(value: float) | Sets the intensity value. |
getFalloffStart() → float | Returns the falloff start. |
setFalloffStart(value: float) | Sets the falloff start value. |
getFalloffEnd() → float | Returns the falloff end. |
setFalloffEnd(value: float) | Sets the falloff end value. |
getInnerAngle() → float | Returns the inner angle. |
setInnerAngle(value: float) | Sets the inner angle value. |
getOuterAngle() → float | Returns the outer angle. |
setOuterAngle(value: float) | Sets the outer angle value. |
getType() → LightType | Returns the type. |
setType(value: LightType) | Sets the type value. |
getEnabled() → boolean | Returns the enabled. |
setEnabled(value: boolean) | Sets the enabled value. |
getBoundingBox() → BoundingBox | Returns the bounding box. |
getParentNode() → Node | Returns the parent node. |
setParentNode(value: Node) | Sets the parent node value. |
getParentNodes() → ArrayList<Node> | Returns the parent nodes. |
getExcluded() → boolean | Returns the excluded. |
setExcluded(value: boolean) | Sets the excluded value. |
getEntityRendererKey() → EntityRendererKey | Returns the entity renderer key. |
getScene() → Scene | Returns the scene. |
getName() → String | Returns the name. |
setName(name: String) | Sets the name value. |
getProperties() → PropertyCollection | Returns the properties. |
findProperty(name: String) → Property | Calls findProperty(name) on this Light instance. |
getProperty(name: String) → Object | Calls getProperty(name) on this Light instance. |
setProperty(name: String, value: Object) | Sets the property value. |
removeProperty(name: String) → boolean | Calls removeProperty(name) on this Light instance. |