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

NameTypeAccessDescription
colorVector3ReadGets the color.
intensityfloatReadGets the intensity.
falloffStartfloatReadGets the falloff start.
falloffEndfloatReadGets the falloff end.
innerAnglefloatReadGets the inner angle.
outerAnglefloatReadGets the outer angle.
typeLightTypeReadGets the type.
enabledbooleanReadGets the enabled.
boundingBoxBoundingBoxReadGets the bounding box.
parentNodeNodeReadGets the parent node.
parentNodesArrayList<Node>ReadGets the parent nodes.
excludedbooleanReadGets the excluded.
entityRendererKeyEntityRendererKeyReadGets the entity renderer key.
sceneSceneReadGets the scene.
nameStringReadGets the name.
propertiesPropertyCollectionReadGets the properties.

Methods

SignatureDescription
Light()Calls Light on this Light instance.
Light(name: String)Calls Light(name) on this Light instance.
getColor()Vector3Returns the color.
setColor(value: Vector3)Sets the color value.
getIntensity()floatReturns the intensity.
setIntensity(value: float)Sets the intensity value.
getFalloffStart()floatReturns the falloff start.
setFalloffStart(value: float)Sets the falloff start value.
getFalloffEnd()floatReturns the falloff end.
setFalloffEnd(value: float)Sets the falloff end value.
getInnerAngle()floatReturns the inner angle.
setInnerAngle(value: float)Sets the inner angle value.
getOuterAngle()floatReturns the outer angle.
setOuterAngle(value: float)Sets the outer angle value.
getType()LightTypeReturns the type.
setType(value: LightType)Sets the type value.
getEnabled()booleanReturns the enabled.
setEnabled(value: boolean)Sets the enabled value.
getBoundingBox()BoundingBoxReturns the bounding box.
getParentNode()NodeReturns the parent node.
setParentNode(value: Node)Sets the parent node value.
getParentNodes()ArrayList<Node>Returns the parent nodes.
getExcluded()booleanReturns the excluded.
setExcluded(value: boolean)Sets the excluded value.
getEntityRendererKey()EntityRendererKeyReturns the entity renderer key.
getScene()SceneReturns the scene.
getName()StringReturns the name.
setName(name: String)Sets the name value.
getProperties()PropertyCollectionReturns the properties.
findProperty(name: String)PropertyCalls findProperty(name) on this Light instance.
getProperty(name: String)ObjectCalls getProperty(name) on this Light instance.
setProperty(name: String, value: Object)Sets the property value.
removeProperty(name: String)booleanCalls removeProperty(name) on this Light instance.

See Also

 English